[PATCH 2/2] arm: dts: rockchip: turn LEDs on at boot for Radxa boards
FUKAUMI Naoki
naoki at radxa.com
Sun Aug 25 00:24:16 CEST 2024
sorry, please ignore this patch.
https://patchwork.ozlabs.org/project/uboot/patch/20240808222325.2082-2-naoki@radxa.com/
is right one.
--
FUKAUMI Naoki
Radxa Computer (Shenzhen) Co., Ltd.
On 8/16/24 09:12, FUKAUMI Naoki wrote:
> 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 at radxa.com>
> ---
> this patch depends on
> https://patchwork.ozlabs.org/project/uboot/patch/20240815223713.2479-1-naoki@radxa.com/
> ---
> .../arm/dts/rk3328-rock-pi-e-base-u-boot.dtsi | 6 +++++
> arch/arm/dts/rk3399-rock-4c-plus-u-boot.dtsi | 12 ++++++++++
> arch/arm/dts/rk3399-rock-pi-4-u-boot.dtsi | 8 +++++++
> arch/arm/dts/rk3566-radxa-cm3-io-u-boot.dtsi | 8 +++++++
> arch/arm/dts/rk3568-radxa-e25-u-boot.dtsi | 23 +++++++++++++++++++
> arch/arm/dts/rk3568-rock-3a-u-boot.dtsi | 8 +++++++
> arch/arm/dts/rk3588-rock-5b-u-boot.dtsi | 8 +++++++
> arch/arm/dts/rk3588s-rock-5a-u-boot.dtsi | 8 +++++++
> 8 files changed, 81 insertions(+)
>
> diff --git a/arch/arm/dts/rk3328-rock-pi-e-base-u-boot.dtsi b/arch/arm/dts/rk3328-rock-pi-e-base-u-boot.dtsi
> index 39bb66c4fcb..a30adb0be98 100644
> --- a/arch/arm/dts/rk3328-rock-pi-e-base-u-boot.dtsi
> +++ b/arch/arm/dts/rk3328-rock-pi-e-base-u-boot.dtsi
> @@ -6,6 +6,12 @@
> #include "rk3328-u-boot.dtsi"
>
> / {
> + leds {
> + led-0 {
> + default-state = "on";
> + };
> + };
> +
> smbios {
> compatible = "u-boot,sysinfo-smbios";
>
> diff --git a/arch/arm/dts/rk3399-rock-4c-plus-u-boot.dtsi b/arch/arm/dts/rk3399-rock-4c-plus-u-boot.dtsi
> index 50dae5cb5ef..7a6af430a6f 100644
> --- a/arch/arm/dts/rk3399-rock-4c-plus-u-boot.dtsi
> +++ b/arch/arm/dts/rk3399-rock-4c-plus-u-boot.dtsi
> @@ -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;
> diff --git a/arch/arm/dts/rk3399-rock-pi-4-u-boot.dtsi b/arch/arm/dts/rk3399-rock-pi-4-u-boot.dtsi
> index b3bfc77f756..4861574636e 100644
> --- a/arch/arm/dts/rk3399-rock-pi-4-u-boot.dtsi
> +++ b/arch/arm/dts/rk3399-rock-pi-4-u-boot.dtsi
> @@ -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;
> diff --git a/arch/arm/dts/rk3566-radxa-cm3-io-u-boot.dtsi b/arch/arm/dts/rk3566-radxa-cm3-io-u-boot.dtsi
> index e0e501deccf..412f9e06aff 100644
> --- a/arch/arm/dts/rk3566-radxa-cm3-io-u-boot.dtsi
> +++ b/arch/arm/dts/rk3566-radxa-cm3-io-u-boot.dtsi
> @@ -5,6 +5,14 @@
>
> #include "rk356x-u-boot.dtsi"
>
> +/ {
> + leds {
> + led-1 {
> + default-state = "on";
> + };
> + };
> +};
> +
> &sdhci {
> cap-mmc-highspeed;
> };
> diff --git a/arch/arm/dts/rk3568-radxa-e25-u-boot.dtsi b/arch/arm/dts/rk3568-radxa-e25-u-boot.dtsi
> index 74755a44eae..efeab626d8a 100644
> --- a/arch/arm/dts/rk3568-radxa-e25-u-boot.dtsi
> +++ b/arch/arm/dts/rk3568-radxa-e25-u-boot.dtsi
> @@ -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>;
> };
> diff --git a/arch/arm/dts/rk3568-rock-3a-u-boot.dtsi b/arch/arm/dts/rk3568-rock-3a-u-boot.dtsi
> index 0da3d9c56b8..29c18f5a340 100644
> --- a/arch/arm/dts/rk3568-rock-3a-u-boot.dtsi
> +++ b/arch/arm/dts/rk3568-rock-3a-u-boot.dtsi
> @@ -6,6 +6,14 @@
>
> #include "rk356x-u-boot.dtsi"
>
> +/ {
> + leds {
> + led-0 {
> + default-state = "on";
> + };
> + };
> +};
> +
> &pcie3x2 {
> pinctrl-0 = <&pcie3x2_reset_h>;
> };
> diff --git a/arch/arm/dts/rk3588-rock-5b-u-boot.dtsi b/arch/arm/dts/rk3588-rock-5b-u-boot.dtsi
> index 4dd17ff408c..8cf78b19739 100644
> --- a/arch/arm/dts/rk3588-rock-5b-u-boot.dtsi
> +++ b/arch/arm/dts/rk3588-rock-5b-u-boot.dtsi
> @@ -5,6 +5,14 @@
>
> #include "rk3588-u-boot.dtsi"
>
> +/ {
> + leds {
> + led_rgb_b {
> + default-state = "on";
> + };
> + };
> +};
> +
> &fspim2_pins {
> bootph-pre-ram;
> bootph-some-ram;
> diff --git a/arch/arm/dts/rk3588s-rock-5a-u-boot.dtsi b/arch/arm/dts/rk3588s-rock-5a-u-boot.dtsi
> index efba0c359ba..a75ae296386 100644
> --- a/arch/arm/dts/rk3588s-rock-5a-u-boot.dtsi
> +++ b/arch/arm/dts/rk3588s-rock-5a-u-boot.dtsi
> @@ -5,6 +5,14 @@
>
> #include "rk3588s-u-boot.dtsi"
>
> +/ {
> + leds {
> + io-led {
> + default-state = "on";
> + };
> + };
> +};
> +
> &sdhci {
> cap-mmc-highspeed;
> mmc-hs200-1_8v;
More information about the U-Boot
mailing list