mirror of
https://github.com/Fishwaldo/build.git
synced 2025-06-05 13:51:45 +00:00
fixed LED in rockpis device tree
This commit is contained in:
parent
a156fddf8f
commit
bb63ed6d2a
2 changed files with 68 additions and 0 deletions
46
patch/kernel/rockchip64-dev/fix-rockpi4b-led.patch
Normal file
46
patch/kernel/rockchip64-dev/fix-rockpi4b-led.patch
Normal file
|
@ -0,0 +1,46 @@
|
|||
diff --git a/arch/arm64/boot/dts/rockchip/rk3399-rockpi4b.dts b/arch/arm64/boot/dts/rockchip/rk3399-rockpi4b.dts
|
||||
index 7f10da2a8..1d4721dcc 100644
|
||||
--- a/arch/arm64/boot/dts/rockchip/rk3399-rockpi4b.dts
|
||||
+++ b/arch/arm64/boot/dts/rockchip/rk3399-rockpi4b.dts
|
||||
@@ -140,20 +140,15 @@
|
||||
};
|
||||
|
||||
leds {
|
||||
+ status = "okay";
|
||||
compatible = "gpio-leds";
|
||||
pinctrl-names = "default";
|
||||
- pinctrl-0 = <&work_led_gpio>, <&diy_led_gpio>;
|
||||
-
|
||||
- work-led {
|
||||
- label = "work";
|
||||
- default-state = "on";
|
||||
- gpios = <&gpio0 RK_PB3 GPIO_ACTIVE_HIGH>;
|
||||
- };
|
||||
+ pinctrl-0 = <&status_led_gpio>;
|
||||
|
||||
- diy-led {
|
||||
- label = "diy";
|
||||
- default-state = "off";
|
||||
- gpios = <&gpio0 RK_PA2 GPIO_ACTIVE_HIGH>;
|
||||
+ system-status {
|
||||
+ label = "status";
|
||||
+ gpios = <&gpio3 29 GPIO_ACTIVE_HIGH>;
|
||||
+ linux,default-trigger = "heartbeat";
|
||||
};
|
||||
};
|
||||
|
||||
@@ -643,12 +638,8 @@
|
||||
};
|
||||
|
||||
leds {
|
||||
- work_led_gpio: work_led-gpio {
|
||||
- rockchip,pins = <0 RK_PB3 RK_FUNC_GPIO &pcfg_pull_none>;
|
||||
- };
|
||||
-
|
||||
- diy_led_gpio: diy_led-gpio {
|
||||
- rockchip,pins = <0 RK_PA2 RK_FUNC_GPIO &pcfg_pull_none>;
|
||||
+ status_led_gpio: status_led_gpio {
|
||||
+ rockchip,pins = <3 28 RK_FUNC_GPIO &pcfg_pull_none>;
|
||||
};
|
||||
};
|
||||
|
22
patch/u-boot/u-boot-rockchip64-dev/fix-rockpi4b-led.patch
Normal file
22
patch/u-boot/u-boot-rockchip64-dev/fix-rockpi4b-led.patch
Normal file
|
@ -0,0 +1,22 @@
|
|||
diff --git a/arch/arm/dts/rk3399-rockpi4b.dts b/arch/arm/dts/rk3399-rockpi4b.dts
|
||||
index 5d73ce5..5574e9b 100644
|
||||
--- a/arch/arm/dts/rk3399-rockpi4b.dts
|
||||
+++ b/arch/arm/dts/rk3399-rockpi4b.dts
|
||||
@@ -65,14 +65,9 @@
|
||||
status = "okay";
|
||||
compatible = "gpio-leds";
|
||||
|
||||
- power-led {
|
||||
- label = "power";
|
||||
- gpios = <&gpio0 11 GPIO_ACTIVE_HIGH>;
|
||||
- };
|
||||
-
|
||||
- standby-led {
|
||||
- label = "standby";
|
||||
- gpios = <&gpio0 2 GPIO_ACTIVE_HIGH>;
|
||||
+ system-status {
|
||||
+ label = "status";
|
||||
+ gpios = <&gpio3 28 GPIO_ACTIVE_HIGH>;
|
||||
};
|
||||
};
|
||||
|
Loading…
Add table
Reference in a new issue