]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
ARM: omap3: beagleboard-xm: dt: Add ethernet to the device tree
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Fri, 2 Dec 2016 21:11:37 +0000 (23:11 +0200)
committerTony Lindgren <tony@atomide.com>
Fri, 6 Jan 2017 16:48:19 +0000 (08:48 -0800)
The Beagleboard-xM has a LAN9514 USB hub and ethernet controller,
connected to port 2 of the OMAP EHCI controller. The board however has
no EEPROM to store the ethernet MAC address, which is programmed by the
boot loader.

To allow Linux to use the same MAC address as the boot loader (or for
that matter any fixed MAC address), we need a node in the device tree
for the ethernet controller that the boot loader can update at runtime
with a local-mac-address property. Add it, along with an alias for the
ethernet controller to let the boot loader locate it easily.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/boot/dts/omap3-beagle-xm.dts

index 85e297ed0ea1c1390b16525736c46c26909de310..673cee2234b2979f4102236b3296b13fb9aed244 100644 (file)
@@ -27,6 +27,7 @@ memory@80000000 {
        aliases {
                display0 = &dvi0;
                display1 = &tv0;
+               ethernet = &ethernet;
        };
 
        leds {
@@ -348,6 +349,21 @@ &usbhshost {
 
 &usbhsehci {
        phys = <0 &hsusb2_phy>;
+
+       #address-cells = <1>;
+       #size-cells = <0>;
+
+       hub@2 {
+               compatible = "usb424,9514";
+               reg = <2>;
+               #address-cells = <1>;
+               #size-cells = <0>;
+
+               ethernet: usbether@1 {
+                       compatible = "usb424,ec00";
+                       reg = <1>;
+               };
+       };
 };
 
 &vaux2 {