Skip to contentSkip to conversation

arm/arm64: dts: Use generic "ngpios" rather than "snps,nr-gpios"

PATCH Applied Jisheng Zhang 5 participants 19 messages Nov 9, 2020 – Jan 4, 2021

Subsystems (6)
lore
Share & tools
lore
#0 lore raw

cover arm/arm64: dts: Use generic "ngpios" rather than "snps,nr-gpios"

To remove similar errors as below for all snps dw gpio users:

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.

Jisheng Zhang (8):
arm64: dts: socfpga: Use generic "ngpios" rather than "snps,nr-gpios"
arm64: dts: apm: Use generic "ngpios" rather than "snps,nr-gpios"
arm64: dts: bitmain: Use generic "ngpios" rather than "snps,nr-gpios"
arm64: dts: hisilicon: Use generic "ngpios" rather than

    "snps,nr-gpios"
  arm64: dts: agilex: Use generic "ngpios" rather than "snps,nr-gpios"
  arm64: dts: synaptics: Use generic "ngpios" rather than
    "snps,nr-gpios"

ARM: dts: berlin: Use generic "ngpios" rather than "snps,nr-gpios"
ARM: dts: socfgpa: Use generic "ngpios" rather than "snps,nr-gpios"

 arch/arm/boot/dts/berlin2.dtsi                    | 12 ++++++------
 arch/arm/boot/dts/berlin2cd.dtsi                  | 12 ++++++------
 arch/arm/boot/dts/berlin2q.dtsi                   | 12 ++++++------
 arch/arm/boot/dts/socfpga.dtsi                    |  6 +++---
 arch/arm/boot/dts/socfpga_arria10.dtsi            |  6 +++---
 arch/arm64/boot/dts/altera/socfpga_stratix10.dtsi |  4 ++--
 arch/arm64/boot/dts/apm/apm-shadowcat.dtsi        |  2 +-
 arch/arm64/boot/dts/apm/apm-storm.dtsi            |  2 +-
 arch/arm64/boot/dts/bitmain/bm1880.dtsi           |  6 +++---
 arch/arm64/boot/dts/hisilicon/hip05.dtsi          |  4 ++--
 arch/arm64/boot/dts/intel/socfpga_agilex.dtsi     |  4 ++--
 arch/arm64/boot/dts/synaptics/as370.dtsi          |  4 ++--
 arch/arm64/boot/dts/synaptics/berlin4ct.dtsi      | 12 ++++++------
 13 files changed, 43 insertions(+), 43 deletions(-)
Signature · 1 line
2.29.2
#1 lore raw

PATCH 1/8 arm64: dts: socfpga: Use generic "ngpios" rather than "snps,nr-gpios"

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.

---
 arch/arm64/boot/dts/altera/socfpga_stratix10.dtsi | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
arch/arm64/boot/dts/altera/socfpga_stratix10.dtsi +2 -2
index 0f893984c256..d301ac0d406b 100644
@@ -203,7 +203,7 @@ porta: gpio-controller@0 {
 				compatible = "snps,dw-apb-gpio-port";
 				gpio-controller;
 				#gpio-cells = <2>;
-				snps,nr-gpios = <24>;
+				ngpios = <24>;
 				reg = <0>;
 				interrupt-controller;
 				#interrupt-cells = <2>;
@@ -223,7 +223,7 @@ portb: gpio-controller@0 {
 				compatible = "snps,dw-apb-gpio-port";
 				gpio-controller;
 				#gpio-cells = <2>;
-				snps,nr-gpios = <24>;
+				ngpios = <24>;
 				reg = <0>;
 				interrupt-controller;
 				#interrupt-cells = <2>;
Signature · 1 line
2.29.2
maintainer Acked-by on v1 1/8
#2 lore raw

Re: [PATCH 1/8] arm64: dts: socfpga: Use generic "ngpios" rather than "snps,nr-gpios"

Quoted 28 lines · Jisheng Zhang

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.

---
 arch/arm64/boot/dts/altera/socfpga_stratix10.dtsi | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
arch/arm64/boot/dts/altera/socfpga_stratix10.dtsi +1 -1
index 0f893984c256..d301ac0d406b 100644
@@ -203,7 +203,7 @@ porta: gpio-controller@0 {
 				compatible = "snps,dw-apb-gpio-port";
 				gpio-controller;
 				#gpio-cells = <2>;
-				snps,nr-gpios = <24>;
+				ngpios = <24>;
 				reg = <0>;
 				interrupt-controller;
 				#interrupt-cells = <2>;

arch/arm64/boot/dts/altera/socfpga_stratix10.dtsi portb: gpio-controller@0 { · line 229

Quoted 8 lines
arch/arm64/boot/dts/altera/socfpga_stratix10.dtsi +1 -1
@@ -223,7 +223,7 @@ portb: gpio-controller@0 {
 				compatible = "snps,dw-apb-gpio-port";
 				gpio-controller;
 				#gpio-cells = <2>;
-				snps,nr-gpios = <24>;
+				ngpios = <24>;
 				reg = <0>;
 				interrupt-controller;
 				#interrupt-cells = <2>;
#3 lore raw

PATCH 2/8 arm64: dts: apm: Use generic "ngpios" rather than "snps,nr-gpios"

In reply to Jisheng Zhang

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.

---
 arch/arm64/boot/dts/apm/apm-shadowcat.dtsi | 2 +-
 arch/arm64/boot/dts/apm/apm-storm.dtsi     | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
arch/arm64/boot/dts/apm/apm-shadowcat.dtsi +1 -1
index a83c82c50e29..08b19fc5ee9f 100644
@@ -716,7 +716,7 @@ porta: gpio-controller@0 {
 				compatible = "snps,dw-apb-gpio-port";
 				gpio-controller;
 				#gpio-cells = <2>;
-				snps,nr-gpios = <32>;
+				ngpios = <32>;
 				reg = <0>;
 			};
 		};
arch/arm64/boot/dts/apm/apm-storm.dtsi +1 -1
index 0f37e77f5459..4689fca9112e 100644
@@ -832,7 +832,7 @@ porta: gpio-controller@0 {
 				compatible = "snps,dw-apb-gpio-port";
 				gpio-controller;
 				#gpio-cells = <2>;
-				snps,nr-gpios = <32>;
+				ngpios = <32>;
 				reg = <0>;
 			};
 		};
Signature · 1 line
2.29.2
#4 lore raw

PATCH 3/8 arm64: dts: bitmain: Use generic "ngpios" rather than "snps,nr-gpios"

In reply to Jisheng Zhang

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.

---
 arch/arm64/boot/dts/bitmain/bm1880.dtsi | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
arch/arm64/boot/dts/bitmain/bm1880.dtsi +3 -3
index fa6e6905f588..53a9b76057aa 100644
@@ -127,7 +127,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>;
@@ -145,7 +145,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>;
@@ -163,7 +163,7 @@ portc: gpio-controller@0 {
 				compatible = "snps,dw-apb-gpio-port";
 				gpio-controller;
 				#gpio-cells = <2>;
-				snps,nr-gpios = <8>;
+				ngpios = <8>;
 				reg = <0>;
 				interrupt-controller;
 				#interrupt-cells = <2>;
Signature · 1 line
2.29.2
Acked-by on v1 3/8
#5 lore raw

Re: [PATCH 3/8] arm64: dts: bitmain: Use generic "ngpios" rather than "snps,nr-gpios"

Quoted 9 lines · Jisheng Zhang

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.

Thanks,
Mani

Quoted 38 lines
---
 arch/arm64/boot/dts/bitmain/bm1880.dtsi | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
arch/arm64/boot/dts/bitmain/bm1880.dtsi +3 -3
index fa6e6905f588..53a9b76057aa 100644
@@ -127,7 +127,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>;
@@ -145,7 +145,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>;
@@ -163,7 +163,7 @@ portc: gpio-controller@0 {
 				compatible = "snps,dw-apb-gpio-port";
 				gpio-controller;
 				#gpio-cells = <2>;
-				snps,nr-gpios = <8>;
+				ngpios = <8>;
 				reg = <0>;
 				interrupt-controller;
 				#interrupt-cells = <2>;
Signature · 1 line
2.29.2
#6 lore raw

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

In reply to Jisheng Zhang

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.

---
 arch/arm64/boot/dts/hisilicon/hip05.dtsi | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
arch/arm64/boot/dts/hisilicon/hip05.dtsi +2 -2
index bc49955360db..fbe83eb9f77b 100644
@@ -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>;
Signature · 1 line
2.29.2
maintainer
#7 lore raw

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

Hi Jisheng,

Quoted 28 lines · Jisheng Zhang

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.

---
 arch/arm64/boot/dts/hisilicon/hip05.dtsi | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
arch/arm64/boot/dts/hisilicon/hip05.dtsi +1 -1
index bc49955360db..fbe83eb9f77b 100644
@@ -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>;

arch/arm64/boot/dts/hisilicon/hip05.dtsi portb: gpio-controller@0 { · line 360

Quoted 8 lines
arch/arm64/boot/dts/hisilicon/hip05.dtsi +1 -1
@@ -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

#8 lore raw

PATCH 5/8 arm64: dts: agilex: Use generic "ngpios" rather than "snps,nr-gpios"

In reply to Jisheng Zhang

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.

---
 arch/arm64/boot/dts/intel/socfpga_agilex.dtsi | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
arch/arm64/boot/dts/intel/socfpga_agilex.dtsi +2 -2
index e1c0fcba5c20..2f731e3a7cd7 100644
@@ -202,7 +202,7 @@ porta: gpio-controller@0 {
 				compatible = "snps,dw-apb-gpio-port";
 				gpio-controller;
 				#gpio-cells = <2>;
-				snps,nr-gpios = <24>;
+				ngpios = <24>;
 				reg = <0>;
 				interrupt-controller;
 				#interrupt-cells = <2>;
@@ -222,7 +222,7 @@ portb: gpio-controller@0 {
 				compatible = "snps,dw-apb-gpio-port";
 				gpio-controller;
 				#gpio-cells = <2>;
-				snps,nr-gpios = <24>;
+				ngpios = <24>;
 				reg = <0>;
 				interrupt-controller;
 				#interrupt-cells = <2>;
Signature · 1 line
2.29.2
maintainer Acked-by on v1 5/8
#9 lore raw

Re: [PATCH 5/8] arm64: dts: agilex: Use generic "ngpios" rather than "snps,nr-gpios"

Quoted 28 lines · Jisheng Zhang

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.

---
 arch/arm64/boot/dts/intel/socfpga_agilex.dtsi | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
arch/arm64/boot/dts/intel/socfpga_agilex.dtsi +1 -1
index e1c0fcba5c20..2f731e3a7cd7 100644
@@ -202,7 +202,7 @@ porta: gpio-controller@0 {
 				compatible = "snps,dw-apb-gpio-port";
 				gpio-controller;
 				#gpio-cells = <2>;
-				snps,nr-gpios = <24>;
+				ngpios = <24>;
 				reg = <0>;
 				interrupt-controller;
 				#interrupt-cells = <2>;

arch/arm64/boot/dts/intel/socfpga_agilex.dtsi portb: gpio-controller@0 { · line 228

Quoted 8 lines
arch/arm64/boot/dts/intel/socfpga_agilex.dtsi +1 -1
@@ -222,7 +222,7 @@ portb: gpio-controller@0 {
 				compatible = "snps,dw-apb-gpio-port";
 				gpio-controller;
 				#gpio-cells = <2>;
-				snps,nr-gpios = <24>;
+				ngpios = <24>;
 				reg = <0>;
 				interrupt-controller;
 				#interrupt-cells = <2>;
maintainer Acked-by on v1 5/8
#10 lore raw

Re: [PATCH 5/8] arm64: dts: agilex: Use generic "ngpios" rather than "snps,nr-gpios"

In reply to Jisheng Zhang
Quoted 28 lines · Jisheng Zhang

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.

---
 arch/arm64/boot/dts/intel/socfpga_agilex.dtsi | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
arch/arm64/boot/dts/intel/socfpga_agilex.dtsi +1 -1
index e1c0fcba5c20..2f731e3a7cd7 100644
@@ -202,7 +202,7 @@ porta: gpio-controller@0 {
 				compatible = "snps,dw-apb-gpio-port";
 				gpio-controller;
 				#gpio-cells = <2>;
-				snps,nr-gpios = <24>;
+				ngpios = <24>;
 				reg = <0>;
 				interrupt-controller;
 				#interrupt-cells = <2>;

arch/arm64/boot/dts/intel/socfpga_agilex.dtsi portb: gpio-controller@0 { · line 228

Quoted 8 lines
arch/arm64/boot/dts/intel/socfpga_agilex.dtsi +1 -1
@@ -222,7 +222,7 @@ portb: gpio-controller@0 {
 				compatible = "snps,dw-apb-gpio-port";
 				gpio-controller;
 				#gpio-cells = <2>;
-				snps,nr-gpios = <24>;
+				ngpios = <24>;
 				reg = <0>;
 				interrupt-controller;
 				#interrupt-cells = <2>;
#11 lore raw

PATCH 6/8 arm64: dts: synaptics: Use generic "ngpios" rather than "snps,nr-gpios"

In reply to Jisheng Zhang

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.

---
 arch/arm64/boot/dts/synaptics/as370.dtsi     |  4 ++--
 arch/arm64/boot/dts/synaptics/berlin4ct.dtsi | 12 ++++++------
 2 files changed, 8 insertions(+), 8 deletions(-)
arch/arm64/boot/dts/synaptics/as370.dtsi +2 -2
index addeb0efc616..4bb5d650df9c 100644
@@ -143,7 +143,7 @@ porta: gpio-port@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>;
@@ -161,7 +161,7 @@ portb: gpio-port@1 {
 					compatible = "snps,dw-apb-gpio-port";
 					gpio-controller;
 					#gpio-cells = <2>;
-					snps,nr-gpios = <32>;
+					ngpios = <32>;
 					reg = <0>;
 					interrupt-controller;
 					#interrupt-cells = <2>;
arch/arm64/boot/dts/synaptics/berlin4ct.dtsi +6 -6
index 15625b99e336..0949acee4728 100644
@@ -140,7 +140,7 @@ porta: gpio-port@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>;
@@ -158,7 +158,7 @@ portb: gpio-port@1 {
 					compatible = "snps,dw-apb-gpio-port";
 					gpio-controller;
 					#gpio-cells = <2>;
-					snps,nr-gpios = <32>;
+					ngpios = <32>;
 					reg = <0>;
 					interrupt-controller;
 					#interrupt-cells = <2>;
@@ -176,7 +176,7 @@ portc: gpio-port@2 {
 					compatible = "snps,dw-apb-gpio-port";
 					gpio-controller;
 					#gpio-cells = <2>;
-					snps,nr-gpios = <32>;
+					ngpios = <32>;
 					reg = <0>;
 					interrupt-controller;
 					#interrupt-cells = <2>;
@@ -194,7 +194,7 @@ portd: gpio-port@3 {
 					compatible = "snps,dw-apb-gpio-port";
 					gpio-controller;
 					#gpio-cells = <2>;
-					snps,nr-gpios = <32>;
+					ngpios = <32>;
 					reg = <0>;
 					interrupt-controller;
 					#interrupt-cells = <2>;
@@ -269,7 +269,7 @@ porte: gpio-port@4 {
 					compatible = "snps,dw-apb-gpio-port";
 					gpio-controller;
 					#gpio-cells = <2>;
-					snps,nr-gpios = <32>;
+					ngpios = <32>;
 					reg = <0>;
 				};
 			};
@@ -284,7 +284,7 @@ portf: gpio-port@5 {
 					compatible = "snps,dw-apb-gpio-port";
 					gpio-controller;
 					#gpio-cells = <2>;
-					snps,nr-gpios = <32>;
+					ngpios = <32>;
 					reg = <0>;
 				};
 			};
Signature · 1 line
2.29.2
#12 lore raw

PATCH 7/8 ARM: dts: berlin: Use generic "ngpios" rather than "snps,nr-gpios"

In reply to Jisheng Zhang

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.

---
 arch/arm/boot/dts/berlin2.dtsi   | 12 ++++++------
 arch/arm/boot/dts/berlin2cd.dtsi | 12 ++++++------
 arch/arm/boot/dts/berlin2q.dtsi  | 12 ++++++------
 3 files changed, 18 insertions(+), 18 deletions(-)
arch/arm/boot/dts/berlin2.dtsi +6 -6
index 6194857f8a02..1114c592e461 100644
@@ -191,7 +191,7 @@ porta: gpio-port@0 {
 					compatible = "snps,dw-apb-gpio-port";
 					gpio-controller;
 					#gpio-cells = <2>;
-					snps,nr-gpios = <8>;
+					ngpios = <8>;
 					reg = <0>;
 					interrupt-controller;
 					#interrupt-cells = <2>;
@@ -209,7 +209,7 @@ portb: gpio-port@1 {
 					compatible = "snps,dw-apb-gpio-port";
 					gpio-controller;
 					#gpio-cells = <2>;
-					snps,nr-gpios = <8>;
+					ngpios = <8>;
 					reg = <0>;
 					interrupt-controller;
 					#interrupt-cells = <2>;
@@ -227,7 +227,7 @@ portc: gpio-port@2 {
 					compatible = "snps,dw-apb-gpio-port";
 					gpio-controller;
 					#gpio-cells = <2>;
-					snps,nr-gpios = <8>;
+					ngpios = <8>;
 					reg = <0>;
 					interrupt-controller;
 					#interrupt-cells = <2>;
@@ -245,7 +245,7 @@ portd: gpio-port@3 {
 					compatible = "snps,dw-apb-gpio-port";
 					gpio-controller;
 					#gpio-cells = <2>;
-					snps,nr-gpios = <8>;
+					ngpios = <8>;
 					reg = <0>;
 					interrupt-controller;
 					#interrupt-cells = <2>;
@@ -446,7 +446,7 @@ portf: gpio-port@5 {
 					compatible = "snps,dw-apb-gpio-port";
 					gpio-controller;
 					#gpio-cells = <2>;
-					snps,nr-gpios = <8>;
+					ngpios = <8>;
 					reg = <0>;
 				};
 			};
@@ -461,7 +461,7 @@ porte: gpio-port@4 {
 					compatible = "snps,dw-apb-gpio-port";
 					gpio-controller;
 					#gpio-cells = <2>;
-					snps,nr-gpios = <8>;
+					ngpios = <8>;
 					reg = <0>;
 					interrupt-controller;
 					#interrupt-cells = <2>;
arch/arm/boot/dts/berlin2cd.dtsi +6 -6
index 6f30d7eb3b41..b2768f7a3185 100644
@@ -181,7 +181,7 @@ porta: gpio-port@0 {
 					compatible = "snps,dw-apb-gpio-port";
 					gpio-controller;
 					#gpio-cells = <2>;
-					snps,nr-gpios = <8>;
+					ngpios = <8>;
 					reg = <0>;
 					interrupt-controller;
 					#interrupt-cells = <2>;
@@ -199,7 +199,7 @@ portb: gpio-port@1 {
 					compatible = "snps,dw-apb-gpio-port";
 					gpio-controller;
 					#gpio-cells = <2>;
-					snps,nr-gpios = <8>;
+					ngpios = <8>;
 					reg = <0>;
 					interrupt-controller;
 					#interrupt-cells = <2>;
@@ -217,7 +217,7 @@ portc: gpio-port@2 {
 					compatible = "snps,dw-apb-gpio-port";
 					gpio-controller;
 					#gpio-cells = <2>;
-					snps,nr-gpios = <8>;
+					ngpios = <8>;
 					reg = <0>;
 					interrupt-controller;
 					#interrupt-cells = <2>;
@@ -235,7 +235,7 @@ portd: gpio-port@3 {
 					compatible = "snps,dw-apb-gpio-port";
 					gpio-controller;
 					#gpio-cells = <2>;
-					snps,nr-gpios = <8>;
+					ngpios = <8>;
 					reg = <0>;
 					interrupt-controller;
 					#interrupt-cells = <2>;
@@ -473,7 +473,7 @@ portf: gpio-port@5 {
 					compatible = "snps,dw-apb-gpio-port";
 					gpio-controller;
 					#gpio-cells = <2>;
-					snps,nr-gpios = <8>;
+					ngpios = <8>;
 					reg = <0>;
 				};
 			};
@@ -518,7 +518,7 @@ porte: gpio-port@4 {
 					compatible = "snps,dw-apb-gpio-port";
 					gpio-controller;
 					#gpio-cells = <2>;
-					snps,nr-gpios = <8>;
+					ngpios = <8>;
 					reg = <0>;
 				};
 			};
arch/arm/boot/dts/berlin2q.dtsi +6 -6
index b6a0acac6836..598a46f96a82 100644
@@ -252,7 +252,7 @@ porta: gpio-port@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>;
@@ -270,7 +270,7 @@ portb: gpio-port@1 {
 					compatible = "snps,dw-apb-gpio-port";
 					gpio-controller;
 					#gpio-cells = <2>;
-					snps,nr-gpios = <32>;
+					ngpios = <32>;
 					reg = <0>;
 					interrupt-controller;
 					#interrupt-cells = <2>;
@@ -288,7 +288,7 @@ portc: gpio-port@2 {
 					compatible = "snps,dw-apb-gpio-port";
 					gpio-controller;
 					#gpio-cells = <2>;
-					snps,nr-gpios = <32>;
+					ngpios = <32>;
 					reg = <0>;
 					interrupt-controller;
 					#interrupt-cells = <2>;
@@ -306,7 +306,7 @@ portd: gpio-port@3 {
 					compatible = "snps,dw-apb-gpio-port";
 					gpio-controller;
 					#gpio-cells = <2>;
-					snps,nr-gpios = <32>;
+					ngpios = <32>;
 					reg = <0>;
 					interrupt-controller;
 					#interrupt-cells = <2>;
@@ -552,7 +552,7 @@ portf: gpio-port@5 {
 					compatible = "snps,dw-apb-gpio-port";
 					gpio-controller;
 					#gpio-cells = <2>;
-					snps,nr-gpios = <32>;
+					ngpios = <32>;
 					reg = <0>;
 				};
 			};
@@ -613,7 +613,7 @@ porte: gpio-port@4 {
 					compatible = "snps,dw-apb-gpio-port";
 					gpio-controller;
 					#gpio-cells = <2>;
-					snps,nr-gpios = <32>;
+					ngpios = <32>;
 					reg = <0>;
 				};
 			};
Signature · 1 line
2.29.2
#13 lore raw

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

In reply to Jisheng Zhang

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.

---
 arch/arm/boot/dts/socfpga.dtsi         | 6 +++---
 arch/arm/boot/dts/socfpga_arria10.dtsi | 6 +++---
 2 files changed, 6 insertions(+), 6 deletions(-)
arch/arm/boot/dts/socfpga.dtsi +3 -3
index 0b021eef0b53..32b7ad814ec6 100644
@@ -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>;
arch/arm/boot/dts/socfpga_arria10.dtsi +3 -3
index 0013ec3463c4..34e23e0582fb 100644
@@ -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>;
Signature · 1 line
2.29.2
maintainer Acked-by on v1 8/8
#14 lore raw

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

Quoted 69 lines · Jisheng Zhang

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.

---
 arch/arm/boot/dts/socfpga.dtsi         | 6 +++---
 arch/arm/boot/dts/socfpga_arria10.dtsi | 6 +++---
 2 files changed, 6 insertions(+), 6 deletions(-)
arch/arm/boot/dts/socfpga.dtsi +3 -3
index 0b021eef0b53..32b7ad814ec6 100644
@@ -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>;
arch/arm/boot/dts/socfpga_arria10.dtsi +2 -2
index 0013ec3463c4..34e23e0582fb 100644
@@ -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>;

arch/arm/boot/dts/socfpga_arria10.dtsi portc: gpio-controller@0 { · line 537

Quoted 8 lines
arch/arm/boot/dts/socfpga_arria10.dtsi +1 -1
@@ -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>;
maintainer Applied
#15 lore raw

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

In reply to Jisheng Zhang
Quoted 69 lines · Jisheng Zhang

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.

---
  arch/arm/boot/dts/socfpga.dtsi         | 6 +++---
  arch/arm/boot/dts/socfpga_arria10.dtsi | 6 +++---
  2 files changed, 6 insertions(+), 6 deletions(-)
arch/arm/boot/dts/socfpga.dtsi +3 -3
index 0b021eef0b53..32b7ad814ec6 100644
@@ -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>;
arch/arm/boot/dts/socfpga_arria10.dtsi +2 -2
index 0013ec3463c4..34e23e0582fb 100644
@@ -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>;

arch/arm/boot/dts/socfpga_arria10.dtsi portc: gpio-controller@0 { · line 537

Quoted 8 lines
arch/arm/boot/dts/socfpga_arria10.dtsi +1 -1
@@ -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

Reviewed-by on the v1 series
#16 lore raw
In reply to Jisheng Zhang
Quoted 7 lines · Jisheng Zhang

To remove similar errors as below for all snps dw gpio users:

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.

For all 8 patches.

Thanks for cleaning this up!

Yours,
Linus Walleij

#17 lore raw
Quoted 13 lines · On Tue, 10 Nov 2020 15:43:36 +0100 Linus Walleij <[email protected]>…
Quoted 7 lines · Jisheng Zhang

To remove similar errors as below for all snps dw gpio users:

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.

Quoted 7 lines

For all 8 patches.

Thanks for cleaning this up!

Yours,
Linus Walleij

Hi all,

I merged patch6 and patch7 to berlin, will send out a berlin SoC dts Pull-Request today.

For other patches, I see Wei has taken patch4, will other patches be taken by each SoC maintainers?

thanks

#18 lore raw
Quoted 24 lines · Jisheng Zhang
Quoted 13 lines · On Tue, 10 Nov 2020 15:43:36 +0100 Linus Walleij <[email protected]>…
Quoted 7 lines · Jisheng Zhang

To remove similar errors as below for all snps dw gpio users:

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.

Quoted 7 lines

For all 8 patches.

Thanks for cleaning this up!

Yours,
Linus Walleij

Quoted 7 lines

Hi all,

I merged patch6 and patch7 to berlin, will send out a berlin SoC dts Pull-Request today.

For other patches, I see Wei has taken patch4, will other patches be taken by each SoC maintainers?

For bitmain platform, I don't have any other patches this cylce. So I'll just send this patch directly to [email protected].

Thanks,
Mani

Quoted 2 lines

thanks