]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
arm: dts: rockchip: turn LEDs on at boot for Radxa boards
authorFUKAUMI Naoki <naoki@radxa.com>
Thu, 8 Aug 2024 22:23:25 +0000 (07:23 +0900)
committerKever Yang <kever.yang@rock-chips.com>
Fri, 25 Oct 2024 12:46:40 +0000 (20:46 +0800)
Basically, Radxa's boards are intended to turn LEDs on at U-Boot.
add `default-state = "on"` to u-boot.dtsi.

Signed-off-by: FUKAUMI Naoki <naoki@radxa.com>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
arch/arm/dts/rk3328-rock-pi-e-base-u-boot.dtsi
arch/arm/dts/rk3399-rock-4c-plus-u-boot.dtsi
arch/arm/dts/rk3399-rock-pi-4-u-boot.dtsi
arch/arm/dts/rk3566-radxa-cm3-io-u-boot.dtsi
arch/arm/dts/rk3568-radxa-e25-u-boot.dtsi
arch/arm/dts/rk3568-rock-3a-u-boot.dtsi
arch/arm/dts/rk3588-rock-5b-u-boot.dtsi
arch/arm/dts/rk3588s-rock-5a-u-boot.dtsi

index 39bb66c4fcb7844ae6c4ac48242334762063a303..a30adb0be988c01ad2f7603e60facbb95b9a1844 100644 (file)
@@ -6,6 +6,12 @@
 #include "rk3328-u-boot.dtsi"
 
 / {
+       leds {
+               led-0 {
+                       default-state = "on";
+               };
+       };
+
        smbios {
                compatible = "u-boot,sysinfo-smbios";
 
index 50dae5cb5effb57e73ad6aba2849f18f4dcf6d5f..7a6af430a6f4ec7cebbc73506904ae15dfc475b2 100644 (file)
@@ -6,6 +6,18 @@
 #include "rk3399-u-boot.dtsi"
 #include "rk3399-sdram-lpddr4-100.dtsi"
 
+/ {
+       leds {
+               led-0 {
+                       default-state = "on";
+               };
+
+               led-1 {
+                       default-state = "on";
+               };
+       };
+};
+
 &pcfg_pull_none_18ma {
        bootph-pre-ram;
        bootph-some-ram;
index b3bfc77f7569af25cdfaa6c69b33985008e68b18..4861574636e7199cb20add37738a1ec0559cb260 100644 (file)
@@ -6,6 +6,14 @@
 #include "rk3399-u-boot.dtsi"
 #include "rk3399-sdram-lpddr4-100.dtsi"
 
+/ {
+       leds {
+               led-0 {
+                       default-state = "on";
+               };
+       };
+};
+
 &sdhci {
        cap-mmc-highspeed;
        mmc-ddr-1_8v;
index e0e501deccfe684731f9ce8fbe5ff6c0eeab31ed..412f9e06affcb1878e20573409941d9bf218e43d 100644 (file)
@@ -5,6 +5,14 @@
 
 #include "rk356x-u-boot.dtsi"
 
+/ {
+       leds {
+               led-1 {
+                       default-state = "on";
+               };
+       };
+};
+
 &sdhci {
        cap-mmc-highspeed;
 };
index 74755a44eaee42bb74e94b904ecc2e0292c20099..efeab626d8a9822df07fb6760ff22775e61b40bc 100644 (file)
@@ -2,6 +2,29 @@
 
 #include "rk356x-u-boot.dtsi"
 
+/ {
+       gpio-leds {
+               led-0 {
+                       default-state = "on";
+               };
+
+               led-red {
+                       default-state = "on";
+                       gpios = <&gpio0 RK_PC0 GPIO_ACTIVE_HIGH>;
+               };
+
+               led-green {
+                       default-state = "on";
+                       gpios = <&gpio0 RK_PC1 GPIO_ACTIVE_HIGH>;
+               };
+
+               led-blue {
+                       default-state = "on";
+                       gpios = <&gpio4 RK_PC5 GPIO_ACTIVE_HIGH>;
+               };
+       };
+};
+
 &pcie3x1 {
        pinctrl-0 = <&pcie30x1_reset_h>;
 };
index 0da3d9c56b83260653ae0cd1a720d3f2dfb7f494..29c18f5a340a51134dcdc922ebdb067d61b9ea1b 100644 (file)
@@ -6,6 +6,14 @@
 
 #include "rk356x-u-boot.dtsi"
 
+/ {
+       leds {
+               led-0 {
+                       default-state = "on";
+               };
+       };
+};
+
 &pcie3x2 {
        pinctrl-0 = <&pcie3x2_reset_h>;
 };
index b0ad1158854c640349a5ea1b5098789439762fcb..aad10104553d201d58924aae48d4dfad7ac5e0cd 100644 (file)
@@ -6,6 +6,14 @@
 #include <dt-bindings/usb/pd.h>
 #include "rk3588-u-boot.dtsi"
 
+/ {
+       leds {
+               led_rgb_b {
+                       default-state = "on";
+               };
+       };
+};
+
 &fspim2_pins {
        bootph-pre-ram;
        bootph-some-ram;
index efba0c359ba58e78c0db097e4ce28cd3e6c7cb04..a75ae296386eed64bae62b7cbc107c4d792c10c2 100644 (file)
@@ -5,6 +5,14 @@
 
 #include "rk3588s-u-boot.dtsi"
 
+/ {
+       leds {
+               io-led {
+                       default-state = "on";
+               };
+       };
+};
+
 &sdhci {
        cap-mmc-highspeed;
        mmc-hs200-1_8v;