diff mbox series

[8/8] ARM: dts: socfgpa: Use generic "ngpios" rather than "snps,nr-gpios"

Message ID 20201109170712.6e8c1a90@xhacker.debian
State New
Headers show
Series None | expand

Commit Message

Jisheng Zhang Nov. 9, 2020, 9:07 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/arm/boot/dts/socfpga.dtsi         | 6 +++---
 arch/arm/boot/dts/socfpga_arria10.dtsi | 6 +++---
 2 files changed, 6 insertions(+), 6 deletions(-)

Comments

Dinh Nguyen Nov. 13, 2020, 1:48 p.m. UTC | #1
On 11/9/20 3:07 AM, 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/arm/boot/dts/socfpga.dtsi         | 6 +++---

>  arch/arm/boot/dts/socfpga_arria10.dtsi | 6 +++---

>  2 files changed, 6 insertions(+), 6 deletions(-)

> 

> diff --git a/arch/arm/boot/dts/socfpga.dtsi b/arch/arm/boot/dts/socfpga.dtsi

> index 0b021eef0b53..32b7ad814ec6 100644

> --- a/arch/arm/boot/dts/socfpga.dtsi

> +++ b/arch/arm/boot/dts/socfpga.dtsi

> @@ -612,7 +612,7 @@ porta: gpio-controller@0 {

>  				compatible = "snps,dw-apb-gpio-port";

>  				gpio-controller;

>  				#gpio-cells = <2>;

> -				snps,nr-gpios = <29>;

> +				ngpios = <29>;

>  				reg = <0>;

>  				interrupt-controller;

>  				#interrupt-cells = <2>;

> @@ -633,7 +633,7 @@ portb: gpio-controller@0 {

>  				compatible = "snps,dw-apb-gpio-port";

>  				gpio-controller;

>  				#gpio-cells = <2>;

> -				snps,nr-gpios = <29>;

> +				ngpios = <29>;

>  				reg = <0>;

>  				interrupt-controller;

>  				#interrupt-cells = <2>;

> @@ -654,7 +654,7 @@ portc: gpio-controller@0 {

>  				compatible = "snps,dw-apb-gpio-port";

>  				gpio-controller;

>  				#gpio-cells = <2>;

> -				snps,nr-gpios = <27>;

> +				ngpios = <27>;

>  				reg = <0>;

>  				interrupt-controller;

>  				#interrupt-cells = <2>;

> diff --git a/arch/arm/boot/dts/socfpga_arria10.dtsi b/arch/arm/boot/dts/socfpga_arria10.dtsi

> index 0013ec3463c4..34e23e0582fb 100644

> --- a/arch/arm/boot/dts/socfpga_arria10.dtsi

> +++ b/arch/arm/boot/dts/socfpga_arria10.dtsi

> @@ -491,7 +491,7 @@ porta: gpio-controller@0 {

>  				compatible = "snps,dw-apb-gpio-port";

>  				gpio-controller;

>  				#gpio-cells = <2>;

> -				snps,nr-gpios = <29>;

> +				ngpios = <29>;

>  				reg = <0>;

>  				interrupt-controller;

>  				#interrupt-cells = <2>;

> @@ -511,7 +511,7 @@ portb: gpio-controller@0 {

>  				compatible = "snps,dw-apb-gpio-port";

>  				gpio-controller;

>  				#gpio-cells = <2>;

> -				snps,nr-gpios = <29>;

> +				ngpios = <29>;

>  				reg = <0>;

>  				interrupt-controller;

>  				#interrupt-cells = <2>;

> @@ -531,7 +531,7 @@ portc: gpio-controller@0 {

>  				compatible = "snps,dw-apb-gpio-port";

>  				gpio-controller;

>  				#gpio-cells = <2>;

> -				snps,nr-gpios = <27>;

> +				ngpios = <27>;

>  				reg = <0>;

>  				interrupt-controller;

>  				#interrupt-cells = <2>;

> 


Acked-by: Dinh Nguyen <dinguyen@kernel.org>
Dinh Nguyen Jan. 4, 2021, 9:19 p.m. UTC | #2
On 11/9/20 3:07 AM, 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/arm/boot/dts/socfpga.dtsi         | 6 +++---

>   arch/arm/boot/dts/socfpga_arria10.dtsi | 6 +++---

>   2 files changed, 6 insertions(+), 6 deletions(-)

> 

> diff --git a/arch/arm/boot/dts/socfpga.dtsi b/arch/arm/boot/dts/socfpga.dtsi

> index 0b021eef0b53..32b7ad814ec6 100644

> --- a/arch/arm/boot/dts/socfpga.dtsi

> +++ b/arch/arm/boot/dts/socfpga.dtsi

> @@ -612,7 +612,7 @@ porta: gpio-controller@0 {

>   				compatible = "snps,dw-apb-gpio-port";

>   				gpio-controller;

>   				#gpio-cells = <2>;

> -				snps,nr-gpios = <29>;

> +				ngpios = <29>;

>   				reg = <0>;

>   				interrupt-controller;

>   				#interrupt-cells = <2>;

> @@ -633,7 +633,7 @@ portb: gpio-controller@0 {

>   				compatible = "snps,dw-apb-gpio-port";

>   				gpio-controller;

>   				#gpio-cells = <2>;

> -				snps,nr-gpios = <29>;

> +				ngpios = <29>;

>   				reg = <0>;

>   				interrupt-controller;

>   				#interrupt-cells = <2>;

> @@ -654,7 +654,7 @@ portc: gpio-controller@0 {

>   				compatible = "snps,dw-apb-gpio-port";

>   				gpio-controller;

>   				#gpio-cells = <2>;

> -				snps,nr-gpios = <27>;

> +				ngpios = <27>;

>   				reg = <0>;

>   				interrupt-controller;

>   				#interrupt-cells = <2>;

> diff --git a/arch/arm/boot/dts/socfpga_arria10.dtsi b/arch/arm/boot/dts/socfpga_arria10.dtsi

> index 0013ec3463c4..34e23e0582fb 100644

> --- a/arch/arm/boot/dts/socfpga_arria10.dtsi

> +++ b/arch/arm/boot/dts/socfpga_arria10.dtsi

> @@ -491,7 +491,7 @@ porta: gpio-controller@0 {

>   				compatible = "snps,dw-apb-gpio-port";

>   				gpio-controller;

>   				#gpio-cells = <2>;

> -				snps,nr-gpios = <29>;

> +				ngpios = <29>;

>   				reg = <0>;

>   				interrupt-controller;

>   				#interrupt-cells = <2>;

> @@ -511,7 +511,7 @@ portb: gpio-controller@0 {

>   				compatible = "snps,dw-apb-gpio-port";

>   				gpio-controller;

>   				#gpio-cells = <2>;

> -				snps,nr-gpios = <29>;

> +				ngpios = <29>;

>   				reg = <0>;

>   				interrupt-controller;

>   				#interrupt-cells = <2>;

> @@ -531,7 +531,7 @@ portc: gpio-controller@0 {

>   				compatible = "snps,dw-apb-gpio-port";

>   				gpio-controller;

>   				#gpio-cells = <2>;

> -				snps,nr-gpios = <27>;

> +				ngpios = <27>;

>   				reg = <0>;

>   				interrupt-controller;

>   				#interrupt-cells = <2>;

> 


Applied to socfpga dts tree.

Thanks,
Dinh
diff mbox series

Patch

diff --git a/arch/arm/boot/dts/socfpga.dtsi b/arch/arm/boot/dts/socfpga.dtsi
index 0b021eef0b53..32b7ad814ec6 100644
--- a/arch/arm/boot/dts/socfpga.dtsi
+++ b/arch/arm/boot/dts/socfpga.dtsi
@@ -612,7 +612,7 @@  porta: gpio-controller@0 {
 				compatible = "snps,dw-apb-gpio-port";
 				gpio-controller;
 				#gpio-cells = <2>;
-				snps,nr-gpios = <29>;
+				ngpios = <29>;
 				reg = <0>;
 				interrupt-controller;
 				#interrupt-cells = <2>;
@@ -633,7 +633,7 @@  portb: gpio-controller@0 {
 				compatible = "snps,dw-apb-gpio-port";
 				gpio-controller;
 				#gpio-cells = <2>;
-				snps,nr-gpios = <29>;
+				ngpios = <29>;
 				reg = <0>;
 				interrupt-controller;
 				#interrupt-cells = <2>;
@@ -654,7 +654,7 @@  portc: gpio-controller@0 {
 				compatible = "snps,dw-apb-gpio-port";
 				gpio-controller;
 				#gpio-cells = <2>;
-				snps,nr-gpios = <27>;
+				ngpios = <27>;
 				reg = <0>;
 				interrupt-controller;
 				#interrupt-cells = <2>;
diff --git a/arch/arm/boot/dts/socfpga_arria10.dtsi b/arch/arm/boot/dts/socfpga_arria10.dtsi
index 0013ec3463c4..34e23e0582fb 100644
--- a/arch/arm/boot/dts/socfpga_arria10.dtsi
+++ b/arch/arm/boot/dts/socfpga_arria10.dtsi
@@ -491,7 +491,7 @@  porta: gpio-controller@0 {
 				compatible = "snps,dw-apb-gpio-port";
 				gpio-controller;
 				#gpio-cells = <2>;
-				snps,nr-gpios = <29>;
+				ngpios = <29>;
 				reg = <0>;
 				interrupt-controller;
 				#interrupt-cells = <2>;
@@ -511,7 +511,7 @@  portb: gpio-controller@0 {
 				compatible = "snps,dw-apb-gpio-port";
 				gpio-controller;
 				#gpio-cells = <2>;
-				snps,nr-gpios = <29>;
+				ngpios = <29>;
 				reg = <0>;
 				interrupt-controller;
 				#interrupt-cells = <2>;
@@ -531,7 +531,7 @@  portc: gpio-controller@0 {
 				compatible = "snps,dw-apb-gpio-port";
 				gpio-controller;
 				#gpio-cells = <2>;
-				snps,nr-gpios = <27>;
+				ngpios = <27>;
 				reg = <0>;
 				interrupt-controller;
 				#interrupt-cells = <2>;