| 
 | 
	
     
     
    
    Posted at  5/11/2022 00:53:13
        
  
     
 
     
  
   
  Only Author 
    
 
  	             
 
6#
 
        
 Last edited by valeriy.simakov In 5/11/2022 16:09 Editor  
 
I'm new to Linux, maybe I made mistakes... 
 
// New pins: 
RSTUSB2251   GPIO4_B5 gpio141      
lan_hub           GPIO4_D2 gpio154 
 
// My dts modifications: 
(rk3568-firefly-roc-pc.dtsi) 
/ { 
...  
 
firefly_leds: leds { 
... 
 
                lan7800_1_reset: lan7800_1 { 
                                default-state = "on"; 
                                gpios = <&gpio4 RK_PB4 GPIO_ACTIVE_HIGH>; 
                                pinctrl-names = "gpio"; 
                                pinctrl-1 = <&lan7800_1>; 
                }; 
 
                lan7800_2_reset: lan7800_2 { 
                                default-state = "on"; 
                                gpios = <&gpio4 RK_PC2 GPIO_ACTIVE_HIGH>; 
                                pinctrl-names = "gpio"; 
                                pinctrl-1 = <&lan7800_2>; 
                }; 
 
                lan_hub_reset: lan_hub { 
                                default-state = "on"; 
                                gpios = <&gpio4 RK_PD2 GPIO_ACTIVE_HIGH>; 
                                pinctrl-names = "gpio"; 
                                pinctrl-1 = <&lan_hub>; 
                }; 
 
                RSTFT4232H_1_reset: RSTFT4232H_1 { 
                        default-state = "on"; 
                        gpios = <&gpio4 RK_PB2 GPIO_ACTIVE_HIGH>; 
                        pinctrl-names = "gpio"; 
                        pinctrl-1 = <&RSTFT4232H_1>; 
                }; 
 
                RSTFT4232H_2_reset: RSTFT4232H_2 { 
                        default-state = "on"; 
                        gpios = <&gpio4 RK_PB3 GPIO_ACTIVE_HIGH>; 
                        pinctrl-names = "gpio"; 
                        pinctrl-1 = <&RSTFT4232H_2>; 
                }; 
 
                RSTUSB2251_reset: RSTUSB2251 { 
                        default-state = "on"; 
                        gpios = <&gpio4 RK_PB5 GPIO_ACTIVE_HIGH>; 
                        pinctrl-names = "gpio"; 
                        pinctrl-1 = <&RSTUSB2251>; 
                }; 
}; 
... 
}; 
&pinctrl { 
... 
        leds { 
... 
                lan7800_1: lan7800_1 { 
                        rockchip,pins = <4 RK_PB4 RK_FUNC_GPIO &pcfg_pull_up>; 
                }; 
 
                lan7800_2: lan7800_2 { 
                        rockchip,pins = <4 RK_PC2 RK_FUNC_GPIO &pcfg_pull_up>; 
                }; 
 
                lan_hub: lan_hub { 
                        rockchip,pins = <4 RK_PD2 RK_FUNC_GPIO &pcfg_pull_up>; 
                }; 
 
                RSTFT4232H_1: RSTFT4232H_1 { 
                        rockchip,pins = <4 RK_PB2 RK_FUNC_GPIO &pcfg_pull_up>; 
                }; 
 
                RSTFT4232H_2: RSTFT4232H_2 { 
                        rockchip,pins = <4 RK_PB3 RK_FUNC_GPIO &pcfg_pull_up>; 
                }; 
 
                RSTUSB2251: RSTUSB2251 { 
                        rockchip,pins = <4 RK_PB5 RK_FUNC_GPIO &pcfg_pull_up>; 
                }; 
        }; 
}; 
 
rk3568-firefly-roc-pc.zip
(1.69 KB, Down times: 2)
 
 
 
 |   
 
 
 
 |