mbox series

[00/10] arm64: dts: rockchip: standardize the definition of LEDs for Radxa boards

Message ID 20240808093808.1740-1-naoki@radxa.com (mailing list archive)
Headers show
Series arm64: dts: rockchip: standardize the definition of LEDs for Radxa boards | expand

Message

FUKAUMI Naoki Aug. 8, 2024, 9:37 a.m. UTC
the standard definition of LEDs for Radxa boards are:

  color = <LED_COLOR_ID_xxx>; [1]
  default-state = "on"; [2]
  function = LED_FUNCTION_xxx [1] [3]
  gpios = <&gpioX RK_Pxx GPIO_ACTIVE_xxx>;
  linux,default-trigger = "xxx"; [3]
  pinctrl-names = "default"; [4]
  pinctrl-0 = <&xxx>; [4]

[1] use "color:function" instead of `label = "xxx:yyy:zzz"`
[2] all LEDs should be turned on at U-Boot
[3] if trigger is "heartbeat", FUNCTION should be HEARTBEAT
[4] if it's SOM and carrier board, put pinctrl properties here
    if it's SBC, put them under `compatible = "gpio-leds"`

FUKAUMI Naoki (10):
  arm64: dts: rockchip: standardize the definition of LEDs for Radxa
    ROCK Pi S
  arm64: dts: rockchip: standardize the definition of LEDs for Radxa
    ROCK Pi E
  arm64: dts: rockchip: standardize the definition of LEDs for Radxa
    ROCK 4C+
  arm64: dts: rockchip: standardize the definition of LEDs for Radxa
    ROCK Pi 4
  arm64: dts: rockchip: standardize the definition of LEDs for Radxa CM3
    IO
  arm64: dts: rockchip: standardize the definition of LEDs for Radxa
    ROCK 3C
  arm64: dts: rockchip: standardize the definition of LEDs for Radxa E25
  arm64: dts: rockchip: standardize the definition of LEDs for Radxa
    ROCK 3A
  arm64: dts: rockchip: standardize the definition of LEDs for Radxa
    ROCK 5B
  arm64: dts: rockchip: standardize the definition of LEDs for Radxa
    ROCK 5A

 arch/arm64/boot/dts/rockchip/rk3308-rock-pi-s.dts    | 4 +---
 arch/arm64/boot/dts/rockchip/rk3328-rock-pi-e.dtsi   | 4 +++-
 arch/arm64/boot/dts/rockchip/rk3399-rock-4c-plus.dts | 6 ++++--
 arch/arm64/boot/dts/rockchip/rk3399-rock-pi-4.dtsi   | 3 ++-
 arch/arm64/boot/dts/rockchip/rk3566-radxa-cm3-io.dts | 5 +++--
 arch/arm64/boot/dts/rockchip/rk3566-radxa-cm3.dtsi   | 6 +++---
 arch/arm64/boot/dts/rockchip/rk3566-rock-3c.dts      | 9 +++++----
 arch/arm64/boot/dts/rockchip/rk3568-radxa-cm3i.dtsi  | 5 +++--
 arch/arm64/boot/dts/rockchip/rk3568-radxa-e25.dts    | 7 ++++---
 arch/arm64/boot/dts/rockchip/rk3568-rock-3a.dts      | 9 +++++----
 arch/arm64/boot/dts/rockchip/rk3588-rock-5b.dts      | 3 ++-
 arch/arm64/boot/dts/rockchip/rk3588s-rock-5a.dts     | 3 ++-
 12 files changed, 37 insertions(+), 27 deletions(-)

Comments

Rob Herring (Arm) Aug. 8, 2024, 4:46 p.m. UTC | #1
On Thu, 08 Aug 2024 18:37:58 +0900, FUKAUMI Naoki wrote:
> the standard definition of LEDs for Radxa boards are:
> 
>   color = <LED_COLOR_ID_xxx>; [1]
>   default-state = "on"; [2]
>   function = LED_FUNCTION_xxx [1] [3]
>   gpios = <&gpioX RK_Pxx GPIO_ACTIVE_xxx>;
>   linux,default-trigger = "xxx"; [3]
>   pinctrl-names = "default"; [4]
>   pinctrl-0 = <&xxx>; [4]
> 
> [1] use "color:function" instead of `label = "xxx:yyy:zzz"`
> [2] all LEDs should be turned on at U-Boot
> [3] if trigger is "heartbeat", FUNCTION should be HEARTBEAT
> [4] if it's SOM and carrier board, put pinctrl properties here
>     if it's SBC, put them under `compatible = "gpio-leds"`
> 
> FUKAUMI Naoki (10):
>   arm64: dts: rockchip: standardize the definition of LEDs for Radxa
>     ROCK Pi S
>   arm64: dts: rockchip: standardize the definition of LEDs for Radxa
>     ROCK Pi E
>   arm64: dts: rockchip: standardize the definition of LEDs for Radxa
>     ROCK 4C+
>   arm64: dts: rockchip: standardize the definition of LEDs for Radxa
>     ROCK Pi 4
>   arm64: dts: rockchip: standardize the definition of LEDs for Radxa CM3
>     IO
>   arm64: dts: rockchip: standardize the definition of LEDs for Radxa
>     ROCK 3C
>   arm64: dts: rockchip: standardize the definition of LEDs for Radxa E25
>   arm64: dts: rockchip: standardize the definition of LEDs for Radxa
>     ROCK 3A
>   arm64: dts: rockchip: standardize the definition of LEDs for Radxa
>     ROCK 5B
>   arm64: dts: rockchip: standardize the definition of LEDs for Radxa
>     ROCK 5A
> 
>  arch/arm64/boot/dts/rockchip/rk3308-rock-pi-s.dts    | 4 +---
>  arch/arm64/boot/dts/rockchip/rk3328-rock-pi-e.dtsi   | 4 +++-
>  arch/arm64/boot/dts/rockchip/rk3399-rock-4c-plus.dts | 6 ++++--
>  arch/arm64/boot/dts/rockchip/rk3399-rock-pi-4.dtsi   | 3 ++-
>  arch/arm64/boot/dts/rockchip/rk3566-radxa-cm3-io.dts | 5 +++--
>  arch/arm64/boot/dts/rockchip/rk3566-radxa-cm3.dtsi   | 6 +++---
>  arch/arm64/boot/dts/rockchip/rk3566-rock-3c.dts      | 9 +++++----
>  arch/arm64/boot/dts/rockchip/rk3568-radxa-cm3i.dtsi  | 5 +++--
>  arch/arm64/boot/dts/rockchip/rk3568-radxa-e25.dts    | 7 ++++---
>  arch/arm64/boot/dts/rockchip/rk3568-rock-3a.dts      | 9 +++++----
>  arch/arm64/boot/dts/rockchip/rk3588-rock-5b.dts      | 3 ++-
>  arch/arm64/boot/dts/rockchip/rk3588s-rock-5a.dts     | 3 ++-
>  12 files changed, 37 insertions(+), 27 deletions(-)
> 
> --
> 2.43.0
> 
> 
> 


My bot found new DTB warnings on the .dts files added or changed in this
series.

Some warnings may be from an existing SoC .dtsi. Or perhaps the warnings
are fixed by another series. Ultimately, it is up to the platform
maintainer whether these warnings are acceptable or not. No need to reply
unless the platform maintainer has comments.

If you already ran DT checks and didn't see these error(s), then
make sure dt-schema is up to date:

  pip3 install dtschema --upgrade


New warnings running 'make CHECK_DTBS=y rockchip/rk3308-rock-pi-s.dtb rockchip/rk3399-rock-4c-plus.dtb rockchip/rk3566-radxa-cm3-io.dtb rockchip/rk3566-rock-3c.dtb rockchip/rk3568-radxa-e25.dtb rockchip/rk3568-rock-3a.dtb rockchip/rk3588-rock-5b.dtb rockchip/rk3588s-rock-5a.dtb' for 20240808093808.1740-1-naoki@radxa.com:

arch/arm64/boot/dts/rockchip/rk3568-radxa-e25.dts:24.5-30: Warning (pwms_property): /pwm-leds/multi-led/led-red:pwms: property size (12) too small for cell size 3
arch/arm64/boot/dts/rockchip/rk3568-radxa-e25.dts:29.5-30: Warning (pwms_property): /pwm-leds/multi-led/led-green:pwms: property size (12) too small for cell size 3
arch/arm64/boot/dts/rockchip/rk3568-radxa-e25.dts:34.5-31: Warning (pwms_property): /pwm-leds/multi-led/led-blue:pwms: property size (12) too small for cell size 3