diff mbox series

[4/8] arm64: dts: hisilicon: Use generic "ngpios" rather than "snps,nr-gpios"

Message ID 20201109170529.2ee1f04e@xhacker.debian
State Accepted
Commit 25df3e1f64f54cfb4b23ff3ed1292c3eba94b22e
Headers show
Series None | expand

Commit Message

Jisheng Zhang Nov. 9, 2020, 9:05 a.m. UTC
This is to remove similar errors as below:

OF: /.../gpio-port@0: could not find phandle

Commit 7569486d79ae ("gpio: dwapb: Add ngpios DT-property support")
explained the reason of above errors well and added the generic
"ngpios" property, let's use it.

Signed-off-by: Jisheng Zhang <Jisheng.Zhang@synaptics.com>
---
 arch/arm64/boot/dts/hisilicon/hip05.dtsi | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Comments

Wei Xu Nov. 25, 2020, 2:28 a.m. UTC | #1
Hi Jisheng,

On 2020/11/9 17:05, Jisheng Zhang wrote:
> This is to remove similar errors as below:

> 

> OF: /.../gpio-port@0: could not find phandle

> 

> Commit 7569486d79ae ("gpio: dwapb: Add ngpios DT-property support")

> explained the reason of above errors well and added the generic

> "ngpios" property, let's use it.

> 

> Signed-off-by: Jisheng Zhang <Jisheng.Zhang@synaptics.com>

> ---

>  arch/arm64/boot/dts/hisilicon/hip05.dtsi | 4 ++--

>  1 file changed, 2 insertions(+), 2 deletions(-)

> 

> diff --git a/arch/arm64/boot/dts/hisilicon/hip05.dtsi b/arch/arm64/boot/dts/hisilicon/hip05.dtsi

> index bc49955360db..fbe83eb9f77b 100644

> --- a/arch/arm64/boot/dts/hisilicon/hip05.dtsi

> +++ b/arch/arm64/boot/dts/hisilicon/hip05.dtsi

> @@ -335,7 +335,7 @@ porta: 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>;

> @@ -354,7 +354,7 @@ portb: 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>;

> 


Thanks!
Applied to the hisilicon arm64 dt tree.

Best Regards,
Wei
diff mbox series

Patch

diff --git a/arch/arm64/boot/dts/hisilicon/hip05.dtsi b/arch/arm64/boot/dts/hisilicon/hip05.dtsi
index bc49955360db..fbe83eb9f77b 100644
--- a/arch/arm64/boot/dts/hisilicon/hip05.dtsi
+++ b/arch/arm64/boot/dts/hisilicon/hip05.dtsi
@@ -335,7 +335,7 @@  porta: 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>;
@@ -354,7 +354,7 @@  portb: 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>;