arm64: dts: rename grf-gpio nodename in rk3328.dtsi
authorJohan Jonker <jbx6244@gmail.com>
Wed, 12 May 2021 12:23:46 +0000 (14:23 +0200)
committerHeiko Stuebner <heiko@sntech.de>
Fri, 14 May 2021 14:39:37 +0000 (16:39 +0200)
A test with the command below gives this error:

/arch/arm64/boot/dts/rockchip/rk3328-a1.dt.yaml: syscon@ff100000:
grf-gpio: {'compatible': ['rockchip,rk3328-grf-gpio'],
'gpio-controller': True, '#gpio-cells': [[2]], 'phandle': [[68]]} is not
of type 'array'

Due to the regex "(?<!,nr)-gpios?$" anything that ends on
'-gpio', '-gpios' gives a match.

Rename 'grf-gpio' nodename to generic 'gpio'

make ARCH=arm64 dtbs_check
DT_SCHEMA_FILES=~/.local/lib/python3.5/site-packages/dtschema/
schemas/gpio/gpio-consumer.yaml

Signed-off-by: Johan Jonker <jbx6244@gmail.com>
Link: https://lore.kernel.org/r/20210512122346.9463-5-jbx6244@gmail.com
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
arch/arm64/boot/dts/rockchip/rk3328.dtsi

index 4b37071a584ce8253c0eb64975943a6dbe7efc37..bc0bdc3d86ff8f47ac83fdf424c00fe0defe75d7 100644 (file)
                        status = "disabled";
                };
 
-               grf_gpio: grf-gpio {
+               grf_gpio: gpio {
                        compatible = "rockchip,rk3328-grf-gpio";
                        gpio-controller;
                        #gpio-cells = <2>;