Skip to contentSkip to conversation

ARM: shmobile: lager.dts: link usb-phy to pci nodes

PATCH In review Ben Dooks 2 participants 3 messages Mar 6, 2014 – Mar 30, 2014

Subsystems (2)
lore
Share & tools
lore

Ben Dooks

author
#0 lore raw

PATCH 9/9 ARM: shmobile: lager.dts: link usb-phy to pci nodes

Add the necessary links to add the USB phy nodes to the PCI devices that are behind the bridges specified.

---
 arch/arm/boot/dts/r8a7790-lager.dts | 37 +++++++++++++++++++++++++++++++++++++
 1 file changed, 37 insertions(+)
arch/arm/boot/dts/r8a7790-lager.dts +37 -0
index 63d58d6..62f486e 100644
@@ -233,18 +233,55 @@
 &pci0 {
 	pinctrl-0 = <&usb0_pins>;
 	pinctrl-names = "default";
+	device_type = "pci";
+
+	pci@0,1 {
+		reg = <0x800 0 0 0 0>;
+		device_type = "pci";
+		usb-phy = <&usbphy>;
+	};
+
+	pci@0,2 {
+		reg = <0x1000 0 0 0 0>;
+		device_type = "pci";
+		usb-phy = <&usbphy>;
+	};
 };
 
 &pci1 {
 	status = "okay";
 	pinctrl-0 = <&usb1_pins>;
 	pinctrl-names = "default";
+
+	pci@0,1 {
+		reg = <0x800 0 0 0 0>;
+		device_type = "pci";
+		usb-phy = <&usbphy>;
+	};
+
+	pci@0,2 {
+		reg = <0x1000 0 0 0 0>;
+		device_type = "pci";
+		usb-phy = <&usbphy>;
+	};
 };
 
 &pci2 {
 	status = "okay";
 	pinctrl-0 = <&usb2_pins>;
 	pinctrl-names = "default";
+
+	pci@0,1 {
+		reg = <0x800 0 0 0 0>;
+		device_type = "pci";
+		usb-phy = <&usbphy>;
+	};
+
+	pci@0,2 {
+		reg = <0x1000 0 0 0 0>;
+		device_type = "pci";
+		usb-phy = <&usbphy>;
+	};
 };
 
 &usbphy {
Signature · 1 line
1.9.0
#1 lore raw

Hello.

Quoted 56 lines · Ben Dooks

Add the necessary links to add the USB phy nodes to the PCI devices that are behind the bridges specified.

---
  arch/arm/boot/dts/r8a7790-lager.dts | 37 +++++++++++++++++++++++++++++++++++++
  1 file changed, 37 insertions(+)
arch/arm/boot/dts/r8a7790-lager.dts +28 -0
index 63d58d6..62f486e 100644
@@ -233,18 +233,55 @@
  &pci0 {
  	pinctrl-0 = <&usb0_pins>;
  	pinctrl-names = "default";
+	device_type = "pci";
+
+	pci@0,1 {
+		reg = <0x800 0 0 0 0>;
+		device_type = "pci";
+		usb-phy = <&usbphy>;
+	};
+
+	pci@0,2 {
+		reg = <0x1000 0 0 0 0>;
+		device_type = "pci";
+		usb-phy = <&usbphy>;
+	};
  };
 
  &pci1 {
  	status = "okay";
  	pinctrl-0 = <&usb1_pins>;
  	pinctrl-names = "default";
+
+	pci@0,1 {
+		reg = <0x800 0 0 0 0>;
+		device_type = "pci";
+		usb-phy = <&usbphy>;
+	};
+
+	pci@0,2 {
+		reg = <0x1000 0 0 0 0>;
+		device_type = "pci";
+		usb-phy = <&usbphy>;
+	};
  };
 
  &pci2 {
  	status = "okay";
  	pinctrl-0 = <&usb2_pins>;
  	pinctrl-names = "default";
+
+	pci@0,1 {
+		reg = <0x800 0 0 0 0>;

arch/arm/boot/dts/r8a7790-lager.dts line 285

Quoted 10 lines
arch/arm/boot/dts/r8a7790-lager.dts +9 -0
+		device_type = "pci";
+		usb-phy = <&usbphy>;
+	};
+
+	pci@0,2 {
+		reg = <0x1000 0 0 0 0>;
+		device_type = "pci";
+		usb-phy = <&usbphy>;
+	};
  };

I don't see why the internal PCI devices are added to the board file, not
the SoC file.

WBR, Sergei

author
#2 lore raw
In reply to Ben Dooks
Quoted 67 lines · Sergei Shtylyov

Hello.

Quoted 63 lines · Ben Dooks

Add the necessary links to add the USB phy nodes to the PCI devices that are behind the bridges specified.

---
  arch/arm/boot/dts/r8a7790-lager.dts | 37
+++++++++++++++++++++++++++++++++++++
  1 file changed, 37 insertions(+)
arch/arm/boot/dts/r8a7790-lager.dts +33 -0
index 63d58d6..62f486e 100644
@@ -233,18 +233,55 @@
  &pci0 {
      pinctrl-0 = <&usb0_pins>;
      pinctrl-names = "default";
+    device_type = "pci";
+
+    pci@0,1 {
+        reg = <0x800 0 0 0 0>;
+        device_type = "pci";
+        usb-phy = <&usbphy>;
+    };
+
+    pci@0,2 {
+        reg = <0x1000 0 0 0 0>;
+        device_type = "pci";
+        usb-phy = <&usbphy>;
+    };
  };
 
  &pci1 {
      status = "okay";
      pinctrl-0 = <&usb1_pins>;
      pinctrl-names = "default";
+
+    pci@0,1 {
+        reg = <0x800 0 0 0 0>;
+        device_type = "pci";
+        usb-phy = <&usbphy>;
+    };
+
+    pci@0,2 {
+        reg = <0x1000 0 0 0 0>;
+        device_type = "pci";
+        usb-phy = <&usbphy>;
+    };
  };
 
  &pci2 {
      status = "okay";
      pinctrl-0 = <&usb2_pins>;
      pinctrl-names = "default";
+
+    pci@0,1 {
+        reg = <0x800 0 0 0 0>;
+        device_type = "pci";
+        usb-phy = <&usbphy>;
+    };
+
+    pci@0,2 {
Quoted 8 lines

arch/arm/boot/dts/r8a7790-lager.dts line 249

Quoted 5 lines
arch/arm/boot/dts/r8a7790-lager.dts +4 -0
+        reg = <0x1000 0 0 0 0>;
+        device_type = "pci";
+        usb-phy = <&usbphy>;
+    };
  };

I don't see why the internal PCI devices are added to the board
file, not the SoC file.

Thanks, I think they probably do belong in the .dtsi file.

Signature · 2 lines
Ben Dooks				http://www.codethink.co.uk/
Senior Engineer				Codethink - Providing Genius