Skip to contentSkip to conversation

powerpc/83xx: Update ranges in gianfar node to match other dts

PATCH Superseded Kumar Gala 3 participants 5 messages Mar 24, 2009

Subsystems (2)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

Kumar Gala

author
#0 lore raw

PATCH 1/1 powerpc/83xx: Update ranges in gianfar node to match other dts

The gianfar node @ 25000 was missing its ranges prop for the mdio bus and provided an explicit ranges property on gianfar@24000 to match all other .dts

---
 arch/powerpc/boot/dts/mpc8313erdb.dts |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
arch/powerpc/boot/dts/mpc8313erdb.dts +2 -1
index 3ebf7ec..20a0fa8 100644
@@ -180,7 +180,7 @@
 			#address-cells = <1>;
 			#size-cells = <1>;
 			sleep = <&pmc 0x20000000>;
-			ranges;
+			ranges = <0x0 0x24000 0x1000>;
 
 			cell-index = <0>;
 			device_type = "network";
@@ -221,6 +221,7 @@
 			model = "eTSEC";
 			compatible = "gianfar";
 			reg = <0x25000 0x1000>;
+			ranges = <0x0 0x25000 0x1000>;
 			local-mac-address = [ 00 00 00 00 00 00 ];
 			interrupts = <34 0x8 33 0x8 32 0x8>;
 			interrupt-parent = <&ipic>;
Signature · 1 line
1.5.6.6
#1 lore raw
Quoted 6 lines · Kumar Gala

The gianfar node @ 25000 was missing its ranges prop for the mdio bus and provided an explicit ranges property on gianfar@24000 to match all other .dts

---

I think this part is missing:

arch/powerpc/boot/dts/mpc8313erdb.dts +4 -4
index 3ebf7ec..98de8bf 100644
@@ -195,11 +195,11 @@
 			fixed-link = <1 1 1000 0 0>;
 			fsl,magic-packet;
 
-			mdio@24520 {
+			mdio@520 {
 				#address-cells = <1>;
 				#size-cells = <0>;
 				compatible = "fsl,gianfar-mdio";
-				reg = <0x24520 0x20>;
+				reg = <0x520 0x20>;
 				phy4: ethernet-phy@4 {
 					interrupt-parent = <&ipic>;
 					interrupts = <20 0x8>;
@@ -229,11 +229,11 @@
 			sleep = <&pmc 0x10000000>;
 			fsl,magic-packet;
 
-			mdio@25520 {
+			mdio@520 {
 				#address-cells = <1>;
 				#size-cells = <0>;
 				compatible = "fsl,gianfar-tbi";
-				reg = <0x25520 0x20>;
+				reg = <0x520 0x20>;
 
 				tbi1: tbi-phy@11 {
 					reg = <0x11>;
Quoted 26 lines
 arch/powerpc/boot/dts/mpc8313erdb.dts |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
arch/powerpc/boot/dts/mpc8313erdb.dts +2 -1
index 3ebf7ec..20a0fa8 100644
@@ -180,7 +180,7 @@
 			#address-cells = <1>;
 			#size-cells = <1>;
 			sleep = <&pmc 0x20000000>;
-			ranges;
+			ranges = <0x0 0x24000 0x1000>;
 
 			cell-index = <0>;
 			device_type = "network";
@@ -221,6 +221,7 @@
 			model = "eTSEC";
 			compatible = "gianfar";
 			reg = <0x25000 0x1000>;
+			ranges = <0x0 0x25000 0x1000>;
 			local-mac-address = [ 00 00 00 00 00 00 ];
 			interrupts = <34 0x8 33 0x8 32 0x8>;
 			interrupt-parent = <&ipic>;
Signature · 1 line
1.5.6.6
Signature · 3 lines
Anton Vorontsov
email: [email protected]
irc://irc.freenode.net/bd2
author
#2 lore raw
Quoted 42 lines · Anton Vorontsov
Quoted 6 lines · Kumar Gala

The gianfar node @ 25000 was missing its ranges prop for the mdio bus and provided an explicit ranges property on gianfar@24000 to match all other .dts

---

I think this part is missing:

arch/powerpc/boot/dts/mpc8313erdb.dts +4 -4
index 3ebf7ec..98de8bf 100644
@@ -195,11 +195,11 @@
 			fixed-link = <1 1 1000 0 0>;
 			fsl,magic-packet;
 
-			mdio@24520 {
+			mdio@520 {
 				#address-cells = <1>;
 				#size-cells = <0>;
 				compatible = "fsl,gianfar-mdio";
-				reg = <0x24520 0x20>;
+				reg = <0x520 0x20>;
 				phy4: ethernet-phy@4 {
 					interrupt-parent = <&ipic>;
 					interrupts = <20 0x8>;
@@ -229,11 +229,11 @@
 			sleep = <&pmc 0x10000000>;
 			fsl,magic-packet;
 
-			mdio@25520 {
+			mdio@520 {
 				#address-cells = <1>;
 				#size-cells = <0>;
 				compatible = "fsl,gianfar-tbi";
-				reg = <0x25520 0x20>;
+				reg = <0x520 0x20>;
 
 				tbi1: tbi-phy@11 {
 					reg = <0x11>;
Quoted 1 line
Quoted 1 line

yep, sending a new version

- k

#3 lore raw
In reply to Kumar Gala
Quoted 14 lines · Kumar Gala

The gianfar node @ 25000 was missing its ranges prop for the mdio bus and provided an explicit ranges property on gianfar@24000 to match all other .dts

---
 arch/powerpc/boot/dts/mpc8313erdb.dts |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
arch/powerpc/boot/dts/mpc8313erdb.dts +0 -0
index 3ebf7ec..20a0fa8 100644

arch/powerpc/boot/dts/mpc8313erdb.dts line 186

Quoted 8 lines
arch/powerpc/boot/dts/mpc8313erdb.dts +1 -1
@@ -180,7 +180,7 @@
 			#address-cells = <1>;
 			#size-cells = <1>;
 			sleep = <&pmc 0x20000000>;
-			ranges;
+			ranges = <0x0 0x24000 0x1000>;
 
 			cell-index = <0>;
 			device_type = "network";

You need to fix the reg property of the child node to match this change in ranges. Was this boot-tested (or is it a case of Linux's device tree parsing being excessively tolerant of broken trees)?

-Scott

author
#4 lore raw
Quoted 21 lines · Scott Wood
Quoted 20 lines · Kumar Gala

The gianfar node @ 25000 was missing its ranges prop for the mdio bus and provided an explicit ranges property on gianfar@24000 to match all other .dts

---
arch/powerpc/boot/dts/mpc8313erdb.dts | 3 ++-

1 files changed, 2 insertions(+), 1 deletions(-)
arch/powerpc/boot/dts/mpc8313erdb.dts +1 -1
index 3ebf7ec..20a0fa8 100644
@@ -180,7 +180,7 @@
 			#address-cells = <1>;
 			#size-cells = <1>;
 			sleep = <&pmc 0x20000000>;
-			ranges;
+			ranges = <0x0 0x24000 0x1000>;
 
Quoted 7 lines

arch/powerpc/boot/dts/mpc8313erdb.dts line 186

Quoted 2 lines
arch/powerpc/boot/dts/mpc8313erdb.dts +0 -0
 			cell-index = <0>;
 			device_type = "network";

You need to fix the reg property of the child node to match this change in ranges. Was this boot-tested (or is it a case of Linux's device tree parsing being excessively tolerant of broken trees)?

I didn't boot test.. Anton pointed this issue out as well.

- k