Message ID | 20241022091428.477697-8-u.kleine-koenig@baylibre.com (mailing list archive) |
---|---|
State | Handled Elsewhere |
Headers | show |
Series | riscv: dts: Replace deprecated snps,nr-gpios property for snps,dw-apb-gpio-port devices | expand |
On Tue, Oct 22, 2024 at 11:14:30AM +0200, Uwe Kleine-König wrote: > snps,dw-apb-gpio-port is deprecated since commit ef42a8da3cf3 > ("dt-bindings: gpio: dwapb: Add ngpios property support"). The > respective driver supports this since commit 7569486d79ae ("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 <u.kleine-koenig@baylibre.com> Please add Fixes tag. Others LGTM. Reviewed-by: Inochi Amaoto <inochiama@gmail.com>
On 2024/10/22 17:14, Uwe Kleine-König wrote: > snps,dw-apb-gpio-port is deprecated since commit ef42a8da3cf3 > ("dt-bindings: gpio: dwapb: Add ngpios property support"). The > respective driver supports this since commit 7569486d79ae ("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 <u.kleine-koenig@baylibre.com> Reviewed-by: Chen Wang <unicorn_wang@outlook.com> Thanks. > --- > arch/riscv/boot/dts/sophgo/sg2042.dtsi | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > > diff --git a/arch/riscv/boot/dts/sophgo/sg2042.dtsi b/arch/riscv/boot/dts/sophgo/sg2042.dtsi > index 4e5fa6591623..e62ac51ac55a 100644 > --- a/arch/riscv/boot/dts/sophgo/sg2042.dtsi > +++ b/arch/riscv/boot/dts/sophgo/sg2042.dtsi > @@ -112,7 +112,7 @@ port0a: gpio-controller@0 { > compatible = "snps,dw-apb-gpio-port"; > gpio-controller; > #gpio-cells = <2>; > - snps,nr-gpios = <32>; > + ngpios = <32>; > reg = <0>; > interrupt-controller; > #interrupt-cells = <2>; > @@ -134,7 +134,7 @@ port1a: gpio-controller@0 { > compatible = "snps,dw-apb-gpio-port"; > gpio-controller; > #gpio-cells = <2>; > - snps,nr-gpios = <32>; > + ngpios = <32>; > reg = <0>; > interrupt-controller; > #interrupt-cells = <2>; > @@ -156,7 +156,7 @@ port2a: gpio-controller@0 { > compatible = "snps,dw-apb-gpio-port"; > gpio-controller; > #gpio-cells = <2>; > - snps,nr-gpios = <32>; > + ngpios = <32>; > reg = <0>; > interrupt-controller; > #interrupt-cells = <2>; > > base-commit: 7436324ebd147598f940dde1335b7979dbccc339
On Tue, Oct 22, 2024 at 06:04:17PM +0800, Inochi Amaoto wrote: > On Tue, Oct 22, 2024 at 11:14:30AM +0200, Uwe Kleine-König wrote: > > snps,dw-apb-gpio-port is deprecated since commit ef42a8da3cf3 > > ("dt-bindings: gpio: dwapb: Add ngpios property support"). The > > respective driver supports this since commit 7569486d79ae ("gpio: dwapb: > > Add ngpios DT-property support") which is included in Linux v5.10-rc1. > > Please add Fixes tag. Ah, I expected that the usage of snps,nr-gpios in the dts files predates the deprecation. So we could add: Fixes: a508d794f86e ("riscv: sophgo: dts: add gpio controllers for SG2042 SoC") . That's a commit that just entered mainline in v6.12-rc1. But I'm not entirely sure backporting to stable is sensible. Best regards Uwe
On Tue, Oct 22, 2024 at 04:08:37PM +0200, Uwe Kleine-König wrote: > On Tue, Oct 22, 2024 at 06:04:17PM +0800, Inochi Amaoto wrote: > > On Tue, Oct 22, 2024 at 11:14:30AM +0200, Uwe Kleine-König wrote: > > > snps,dw-apb-gpio-port is deprecated since commit ef42a8da3cf3 > > > ("dt-bindings: gpio: dwapb: Add ngpios property support"). The > > > respective driver supports this since commit 7569486d79ae ("gpio: dwapb: > > > Add ngpios DT-property support") which is included in Linux v5.10-rc1. > > > > Please add Fixes tag. > > Ah, I expected that the usage of snps,nr-gpios in the dts files predates > the deprecation. So we could add: > > Fixes: a508d794f86e ("riscv: sophgo: dts: add gpio controllers for SG2042 SoC") > > . That's a commit that just entered mainline in v6.12-rc1. But I'm not > entirely sure backporting to stable is sensible. Ye, I don't think I'd bother with a fixes tag even, since it'll probably get backported automagically if you add one.
On Tue, 22 Oct 2024 11:14:30 +0200, Uwe Kleine-König wrote: > snps,dw-apb-gpio-port is deprecated since commit ef42a8da3cf3 > ("dt-bindings: gpio: dwapb: Add ngpios property support"). The > respective driver supports this since commit 7569486d79ae ("gpio: dwapb: > Add ngpios DT-property support") which is included in Linux v5.10-rc1. > > This change was created using > > [...] Applied to sophgo/fixes, thanks! [1/1] riscv: dts: Replace deprecated snps,nr-gpios property for snps,dw-apb-gpio-port devices https://github.com/sophgo/linux/commit/d99913e1b80b51a058020835e7ea1a44397cb4d7 Thanks, Inochi
diff --git a/arch/riscv/boot/dts/sophgo/sg2042.dtsi b/arch/riscv/boot/dts/sophgo/sg2042.dtsi index 4e5fa6591623..e62ac51ac55a 100644 --- a/arch/riscv/boot/dts/sophgo/sg2042.dtsi +++ b/arch/riscv/boot/dts/sophgo/sg2042.dtsi @@ -112,7 +112,7 @@ port0a: gpio-controller@0 { compatible = "snps,dw-apb-gpio-port"; gpio-controller; #gpio-cells = <2>; - snps,nr-gpios = <32>; + ngpios = <32>; reg = <0>; interrupt-controller; #interrupt-cells = <2>; @@ -134,7 +134,7 @@ port1a: gpio-controller@0 { compatible = "snps,dw-apb-gpio-port"; gpio-controller; #gpio-cells = <2>; - snps,nr-gpios = <32>; + ngpios = <32>; reg = <0>; interrupt-controller; #interrupt-cells = <2>; @@ -156,7 +156,7 @@ port2a: gpio-controller@0 { compatible = "snps,dw-apb-gpio-port"; gpio-controller; #gpio-cells = <2>; - snps,nr-gpios = <32>; + ngpios = <32>; reg = <0>; interrupt-controller; #interrupt-cells = <2>;
snps,dw-apb-gpio-port is deprecated since commit ef42a8da3cf3 ("dt-bindings: gpio: dwapb: Add ngpios property support"). The respective driver supports this since commit 7569486d79ae ("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 <u.kleine-koenig@baylibre.com> --- arch/riscv/boot/dts/sophgo/sg2042.dtsi | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) base-commit: 7436324ebd147598f940dde1335b7979dbccc339