diff --git a/patch/kernel/rockchip64-dev/fix-rockpi4b-led.patch b/patch/kernel/rockchip64-dev/fix-rockpi4b-led.patch new file mode 100644 index 000000000..e60f607ac --- /dev/null +++ b/patch/kernel/rockchip64-dev/fix-rockpi4b-led.patch @@ -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>; + }; + }; + diff --git a/patch/u-boot/u-boot-rockchip64-dev/fix-rockpi4b-led.patch b/patch/u-boot/u-boot-rockchip64-dev/fix-rockpi4b-led.patch new file mode 100644 index 000000000..6686ba957 --- /dev/null +++ b/patch/u-boot/u-boot-rockchip64-dev/fix-rockpi4b-led.patch @@ -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>; + }; + }; +