设置风扇默认开启

This commit is contained in:
kalous12
2023-08-30 03:10:35 +00:00
parent ddf356c1c5
commit 6c77c52a20
7 changed files with 109 additions and 0 deletions

View File

@ -175,6 +175,16 @@
pinctrl-names = "default";
pinctrl-0 = <&sys_status_led_pin>;
};
fan: fan {
label = "fan";
default-state = "on";
linux,default-trigger = "none";
gpios = <&gpio0 RK_PB7 GPIO_ACTIVE_HIGH>;
pinctrl-names = "default";
pinctrl-0 = <&fan_pin>;
};
};
rk809_sound: rk809-sound {
@ -1096,6 +1106,10 @@
sys_status_led_pin: sys-status-led-pin {
rockchip,pins = <0 RK_PC7 RK_FUNC_GPIO &pcfg_pull_none>;
};
fan_pin: fan-pin {
rockchip,pins = <0 RK_PB7 RK_FUNC_GPIO &pcfg_pull_none>;
};
};
spi3 {

View File

@ -320,6 +320,15 @@
pinctrl-0 = <&red_led_pin>;
};
fan: fan {
label = "fan";
default-state = "on";
linux,default-trigger = "none";
gpios = <&gpio4 RK_PC0 GPIO_ACTIVE_HIGH>;
pinctrl-names = "default";
pinctrl-0 = <&fan_pin>;
};
};
rk809_sound: rk809-sound {
@ -1401,6 +1410,9 @@
red_led_pin: red-led-pin {
rockchip,pins = <2 RK_PB7 RK_FUNC_GPIO &pcfg_pull_none>;
};
fan_pin: fan-pin {
rockchip,pins = <4 RK_PC0 RK_FUNC_GPIO &pcfg_pull_none>;
};
};
sdio-pwrseq {

View File

@ -54,6 +54,15 @@
pinctrl-names = "default";
pinctrl-0 = <&user_led3_pin>;
};
fan: fan {
label = "fan";
default-state = "on";
linux,default-trigger = "none";
gpios = <&gpio0 RK_PC1 GPIO_ACTIVE_HIGH>;
pinctrl-names = "default";
pinctrl-0 = <&fan_pin>;
};
};
ext_cam_clk: external-camera0-clock {
@ -782,6 +791,11 @@
user_led3_pin:user_led3_pin{
rockchip,pins = <2 RK_PB7 RK_FUNC_GPIO &pcfg_pull_none>;
};
fan_pin: fan-pin {
rockchip,pins = <0 RK_PC1 RK_FUNC_GPIO &pcfg_pull_none>;
};
};
power{

View File

@ -197,6 +197,16 @@
pinctrl-names = "default";
pinctrl-0 = <&sys_status_led_pin>;
};
fan: fan {
label = "fan";
default-state = "on";
linux,default-trigger = "none";
gpios = <&gpio0 RK_PB7 GPIO_ACTIVE_HIGH>;
pinctrl-names = "default";
pinctrl-0 = <&fan_pin>;
};
};
rk809_sound: rk809-sound {
@ -984,6 +994,10 @@
sys_status_led_pin: sys-status-led-pin {
rockchip,pins = <0 RK_PC7 RK_FUNC_GPIO &pcfg_pull_none>;
};
fan_pin: fan-pin {
rockchip,pins = <0 RK_PB7 RK_FUNC_GPIO &pcfg_pull_none>;
};
};
spi3 {

View File

@ -239,6 +239,16 @@
pinctrl-names = "default";
pinctrl-0 = <&sys_status_led_pin>;
};
fan: fan {
label = "fan";
default-state = "on";
linux,default-trigger = "none";
gpios = <&gpio0 RK_PB7 GPIO_ACTIVE_HIGH>;
pinctrl-names = "default";
pinctrl-0 = <&fan_pin>;
};
};
rk809_sound: rk809-sound {
@ -1098,5 +1108,9 @@
sys_status_led_pin: sys-status-led-pin {
rockchip,pins = <0 RK_PC7 RK_FUNC_GPIO &pcfg_pull_none>;
};
fan_pin: fan-pin {
rockchip,pins = <0 RK_PB7 RK_FUNC_GPIO &pcfg_pull_none>;
};
};
};

View File

@ -301,6 +301,16 @@
pinctrl-names = "default";
pinctrl-0 = <&led0_pin>;
};
fan: fan {
label = "fan";
default-state = "on";
linux,default-trigger = "none";
gpios = <&gpio0 RK_PB7 GPIO_ACTIVE_HIGH>;
pinctrl-names = "default";
pinctrl-0 = <&fan_pin>;
};
};
adc_keys: adc-keys {
@ -887,6 +897,10 @@
led0_pin: led0-pin {
rockchip,pins = <4 RK_PD2 RK_FUNC_GPIO &pcfg_pull_none>;
};
fan_pin: fan-pin {
rockchip,pins = <0 RK_PB7 RK_FUNC_GPIO &pcfg_pull_none>;
};
};
cam {

View File

@ -260,6 +260,25 @@
pinctrl-names = "default";
pinctrl-0 = <&sys_status_led_pin>;
};
fan0: fan0 {
label = "fan0";
default-state = "on";
linux,default-trigger = "none";
gpios = <&gpio0 RK_PB7 GPIO_ACTIVE_HIGH>;
pinctrl-names = "default";
pinctrl-0 = <&fan0_pin>;
};
fan1: fan1 {
label = "fan1";
default-state = "on";
linux,default-trigger = "none";
gpios = <&gpio0 RK_PC6 GPIO_ACTIVE_HIGH>;
pinctrl-names = "default";
pinctrl-0 = <&fan1_pin>;
};
};
rk809_sound: rk809-sound {
@ -1218,5 +1237,13 @@
sys_status_led_pin: sys-status-led-pin {
rockchip,pins = <0 RK_PC7 RK_FUNC_GPIO &pcfg_pull_none>;
};
fan0_pin: fan0-pin {
rockchip,pins = <0 RK_PB7 RK_FUNC_GPIO &pcfg_pull_none>;
};
fan1_pin: fan1-pin {
rockchip,pins = <0 RK_PC6 RK_FUNC_GPIO &pcfg_pull_none>;
};
};
};