Johan Jonker f0344b3354 ARM: dts: rockchip: rename and label gpio-led subnodes
Current dts files with 'gpio-led' nodes were manually verified.
In order to automate this process leds-gpio.txt
has been converted to yaml. With this conversion a check
for pattern properties was added. A test with the command
below gives a screen full of warnings like:

arch/arm/boot/dts/rk3188-radxarock.dt.yaml: gpio-leds:
'blue', 'green', 'sleep'
do not match any of the regexes:
'(^led-[0-9a-f]$|led)', 'pinctrl-[0-9]+'

Fix these errors with help of the following rules:

1: Add nodename in the preferred form.

2: Always add a label that ends with '_led' to prevent conflicts
   with other labels such as 'power' and 'mmc'

3: If leds need pinctrl add a label that ends with '_led_pin'
   also to prevent conflicts with other labels.

patternProperties:
  # The first form is preferred, but fall back to just 'led'
  # anywhere in the node name to at least catch some child nodes.
  "(^led-[0-9a-f]$|led)":

make ARCH=arm dtbs_check
DT_SCHEMA_FILES=Documentation/devicetree/bindings/leds/
leds-gpio.yaml

Signed-off-by: Johan Jonker <jbx6244@gmail.com>
Link: https://lore.kernel.org/r/20200428144933.10953-1-jbx6244@gmail.com
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
2020-05-19 00:26:03 +02:00
..
2020-02-08 14:17:27 -08:00
2019-07-19 17:19:24 -07:00
2020-02-08 13:58:44 -08:00
2020-04-03 15:22:05 -07:00
2019-06-21 09:58:42 -07:00
2020-02-08 13:58:44 -08:00
2020-03-20 23:20:26 +01:00
2019-07-19 17:19:24 -07:00
2020-02-08 13:58:44 -08:00
2020-02-08 13:58:44 -08:00
2020-02-17 14:39:34 +08:00
2020-02-17 14:39:34 +08:00
2020-02-17 14:39:34 +08:00
2020-02-17 14:39:34 +08:00
2020-02-17 14:39:34 +08:00
2020-03-25 22:21:22 +01:00
2020-02-08 13:58:44 -08:00
2020-01-13 10:11:40 -08:00
2020-04-03 15:22:05 -07:00
2020-04-03 15:22:05 -07:00
2020-02-17 14:39:34 +08:00
2020-02-17 14:39:34 +08:00