From 85ca6923bc21a7de031ca9b68e13ecfb4f3debd3 Mon Sep 17 00:00:00 2001 From: Ilya Lipnitskiy Date: Mon, 5 Apr 2021 22:53:46 -0700 Subject: ramips: gpio-ralink: use ngpios, not ralink,num-gpios DTS properties that match *-gpios are treated specially. Use ngpios instead, as most GPIO drivers upstream do. Fixes 5.10 DTS errors such as: OF: /palmbus@300000/gpio@600: could not find phandle Fixes DTC warnings such as: Warning (gpios_property): /palmbus@300000/gpio@600:ralink,num-gpios: Could not get phandle node for (cell 0) Signed-off-by: Ilya Lipnitskiy Cc: Daniel Golle --- target/linux/ramips/dts/rt5350.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'target/linux/ramips/dts/rt5350.dtsi') diff --git a/target/linux/ramips/dts/rt5350.dtsi b/target/linux/ramips/dts/rt5350.dtsi index 579d41456b..ac4c6d9db2 100644 --- a/target/linux/ramips/dts/rt5350.dtsi +++ b/target/linux/ramips/dts/rt5350.dtsi @@ -117,8 +117,8 @@ gpio-controller; #gpio-cells = <2>; + ngpios = <22>; ralink,gpio-base = <0>; - ralink,num-gpios = <22>; ralink,register-map = [ 00 04 08 0c 20 24 28 2c 30 34 ]; @@ -134,8 +134,8 @@ gpio-controller; #gpio-cells = <2>; + ngpios = <6>; ralink,gpio-base = <22>; - ralink,num-gpios = <6>; ralink,register-map = [ 00 04 08 0c 10 14 18 1c 20 24 ]; -- cgit v1.2.3