Skip to content

Commit d99913e

Browse files
ukleinekinochisa
authored andcommitted
riscv: dts: Replace deprecated snps,nr-gpios property for snps,dw-apb-gpio-port devices
snps,dw-apb-gpio-port is deprecated since commit ef42a8d ("dt-bindings: gpio: dwapb: Add ngpios property support"). The respective driver supports this since commit 7569486 ("gpio: dwapb: Add ngpios DT-property support") which is included in Linux v5.10-rc1. This change was created using git grep -l snps,nr-gpios arch/riscv/boot/dts | xargs perl -p -i -e 's/\bsnps,nr-gpios\b/ngpios/ . Signed-off-by: Uwe Kleine-König <[email protected]> Reviewed-by: Inochi Amaoto <[email protected]> Reviewed-by: Chen Wang <[email protected]> Fixes: a508d79 ("riscv: sophgo: dts: add gpio controllers for SG2042 SoC") Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Inochi Amaoto <[email protected]> Signed-off-by: Chen Wang <[email protected]>
1 parent 9852d85 commit d99913e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

arch/riscv/boot/dts/sophgo/sg2042.dtsi

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@
112112
compatible = "snps,dw-apb-gpio-port";
113113
gpio-controller;
114114
#gpio-cells = <2>;
115-
snps,nr-gpios = <32>;
115+
ngpios = <32>;
116116
reg = <0>;
117117
interrupt-controller;
118118
#interrupt-cells = <2>;
@@ -134,7 +134,7 @@
134134
compatible = "snps,dw-apb-gpio-port";
135135
gpio-controller;
136136
#gpio-cells = <2>;
137-
snps,nr-gpios = <32>;
137+
ngpios = <32>;
138138
reg = <0>;
139139
interrupt-controller;
140140
#interrupt-cells = <2>;
@@ -156,7 +156,7 @@
156156
compatible = "snps,dw-apb-gpio-port";
157157
gpio-controller;
158158
#gpio-cells = <2>;
159-
snps,nr-gpios = <32>;
159+
ngpios = <32>;
160160
reg = <0>;
161161
interrupt-controller;
162162
#interrupt-cells = <2>;

0 commit comments

Comments
 (0)