@@ -44,10 +44,11 @@ leds {
compatible = "gpio-leds";
led-1 {
- gpios = <&gpio4 RK_PA4 GPIO_ACTIVE_LOW>;
color = <LED_COLOR_ID_GREEN>;
+ default-state = "on";
function = LED_FUNCTION_ACTIVITY;
- linux,default-trigger = "heartbeat";
+ gpios = <&gpio4 RK_PA4 GPIO_ACTIVE_LOW>;
+ linux,default-trigger = "timer";
pinctrl-names = "default";
pinctrl-0 = <&pi_nled_activity>;
};
@@ -18,11 +18,11 @@ leds {
compatible = "gpio-leds";
led-0 {
- gpios = <&gpio0 RK_PA6 GPIO_ACTIVE_HIGH>;
color = <LED_COLOR_ID_GREEN>;
- function = LED_FUNCTION_STATUS;
- linux,default-trigger = "timer";
default-state = "on";
+ function = LED_FUNCTION_HEARTBEAT;
+ gpios = <&gpio0 RK_PA6 GPIO_ACTIVE_HIGH>;
+ linux,default-trigger = "heartbeat";
pinctrl-names = "default";
pinctrl-0 = <&user_led2>;
};
- sort properties - add default-state for led-1 - change function for led-0 from STATUS to HEARTBEAT - change trigger for led-0 from "timer" to "heartbeat" - change trigger for led-1 from "heartbeat" to "timer" Signed-off-by: FUKAUMI Naoki <naoki@radxa.com> --- arch/arm64/boot/dts/rockchip/rk3566-radxa-cm3-io.dts | 5 +++-- arch/arm64/boot/dts/rockchip/rk3566-radxa-cm3.dtsi | 6 +++--- 2 files changed, 6 insertions(+), 5 deletions(-)