Skip to contentSkip to conversation

Configure USB Ethernet mac for omap4 and 5

PATCH New Tony Lindgren 1 participant 4 messages Jan 5, 2017 1 message not in the archive Device tree bindings

lore
Share & tools
lore
#0 lore raw

v2 cover Configure USB Ethernet mac for omap4 and 5

Hi,

Here are these patches reposted using the hub naming.

Regards,

Tony

Tony Lindgren (3):
ARM: dts: pandaboard: Allow bootloader to configure USB Ethernet MAC
ARM: dts: omap5-uevm: Allow bootloader to configure USB Ethernet MAC
ARM: dts: omap5-igep0050: Allow bootloader to configure USB Ethernet
MAC

 arch/arm/boot/dts/omap4-panda-common.dtsi | 16 ++++++++++++++++
 arch/arm/boot/dts/omap5-igep0050.dts      | 21 +++++++++++++++++++++
 arch/arm/boot/dts/omap5-uevm.dts          | 21 +++++++++++++++++++++
 3 files changed, 58 insertions(+)
Signature · 5 lines
2.11.0
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

A message that is not in the archive (sent off-list or not yet received): 20170105163703.1982-1-tony-4v6yS6AI5VpBDgjK7y7TUQ@public.gmane.org

#2 lore raw

PATCH v2 1/3 ARM: dts: pandaboard: Allow bootloader to configure USB Ethernet MAC

Inspired by a patch for beagleboard xm by Laurent Pinchart <laurent.pinchart-ryLnwIuWjnjg/[email protected]>, similar patch also works for pandaboard. The only difference is that the hub is address 1 instead
of 2.

Cc Laurent Pinchart <laurent.pinchart-ryLnwIuWjnjg/[email protected]>
---
 arch/arm/boot/dts/omap4-panda-common.dtsi | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)
arch/arm/boot/dts/omap4-panda-common.dtsi +16 -0
@@ -16,6 +16,7 @@
 	aliases {
 		display0 = &dvi0;
 		display1 = &hdmi0;
+		ethernet = &ethernet;
 	};
 
 	leds: leds {
@@ -520,6 +521,21 @@
 
 &usbhsehci {
 	phys = <&hsusb1_phy>;
+
+	#address-cells = <1>;
+	#size-cells = <0>;
+
+	hub@1 {
+		compatible = "usb424,9514";
+		reg = <1>;
+		#address-cells = <1>;
+		#size-cells = <0>;
+
+		ethernet: usbether@1 {
+			compatible = "usb424,ec00";
+			reg = <1>;
+		};
+	};
 };
 
 &dss {
Signature · 5 lines
2.11.0
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
#3 lore raw

PATCH v2 2/3 ARM: dts: omap5-uevm: Allow bootloader to configure USB Ethernet MAC

In reply to a message not in the archive

Note that with 9730 the wiring is different compared to 9514 found on beagleboard xm for example.

On beagleboard xm we have:

/sys/bus/usb/devices/1-2 hub
/sys/bus/usb/devices/1-2.1 9514

While on omap5-uevm we have:

/sys/bus/usb/devices/1-2 hub
/sys/bus/usb/devices/1-3 9730

Cc Laurent Pinchart <laurent.pinchart-ryLnwIuWjnjg/[email protected]>
---
 arch/arm/boot/dts/omap5-uevm.dts | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)
arch/arm/boot/dts/omap5-uevm.dts +21 -0
@@ -18,6 +18,10 @@
 		reg = <0 0x80000000 0 0x7f000000>; /* 2032 MB */
 	};
 
+	aliases {
+		ethernet = &ethernet;
+	};
+
 	leds {
 		compatible = "gpio-leds";
 		led1 {
@@ -164,6 +168,23 @@
 	>;
 };
 
+&usbhsehci {
+	#address-cells = <1>;
+	#size-cells = <0>;
+
+	hub@2 {
+		compatible = "usb424,3503";
+		reg = <2>;
+		#address-cells = <1>;
+		#size-cells = <0>;
+	};
+
+	ethernet: usbether@3 {
+		compatible = "usb424,9730";
+		reg = <3>;
+	};
+};
+
 &wlcore {
 	compatible = "ti,wl1837";
 };
Signature · 5 lines
2.11.0
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
#4 lore raw

PATCH v2 3/3 ARM: dts: omap5-igep0050: Allow bootloader to configure USB Ethernet MAC

In reply to a message not in the archive

This is slightly different wiring compared to omap5-uevm or pandaboard:

/sys/bus/usb/devices/3-2 hub
/sys/bus/usb/devices/3-2.3 7500

Cc Laurent Pinchart <laurent.pinchart-ryLnwIuWjnjg/[email protected]>
---
 arch/arm/boot/dts/omap5-igep0050.dts | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)
arch/arm/boot/dts/omap5-igep0050.dts +21 -0
@@ -19,6 +19,10 @@
 		reg = <0x0 0x80000000 0 0x7f000000>;	/* 2032 MB */
 	};
 
+	aliases {
+		ethernet = &ethernet;
+	};
+
 	gpio_keys {
 		compatible = "gpio-keys";
 		pinctrl-0 = <&power_button_pin>;
@@ -116,3 +120,20 @@
 		OMAP5_IOPAD(0x1ca, PIN_OUTPUT | MUX_MODE6)	/* perslimbus2_clock.gpio5_145 */
 	>;
 };
+
+&usbhsehci {
+	#address-cells = <1>;
+	#size-cells = <0>;
+
+	hub@2 {
+		compatible = "usb424,3503";
+		reg = <2>;
+		#address-cells = <1>;
+		#size-cells = <0>;
+
+		ethernet: usbether@3 {
+			compatible = "usb424,7500";
+			reg = <3>;
+		};
+	};
+};
Signature · 5 lines
2.11.0
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html