ARM: dts: exynos: Add Ethernet interface description for Odroid X/X2
authorŁukasz Stelmach <l.stelmach@samsung.com>
Tue, 3 Nov 2020 18:44:12 +0000 (19:44 +0100)
committerKrzysztof Kozlowski <krzk@kernel.org>
Thu, 5 Nov 2020 19:30:20 +0000 (20:30 +0100)
Add Ethernet interface description for Odroid X/X2.

Add an alias to enable bootloaders to find the Ethernet interface
and assign a MAC address.

Signed-off-by: Łukasz Stelmach <l.stelmach@samsung.com>
Link: https://lore.kernel.org/r/20201103184412.18874-7-l.stelmach@samsung.com
Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
arch/arm/boot/dts/exynos4412-odroidx.dts

index d6ee62b..0e9d626 100644 (file)
        model = "Hardkernel ODROID-X board based on Exynos4412";
        compatible = "hardkernel,odroid-x", "samsung,exynos4412", "samsung,exynos4";
 
+       aliases {
+               ethernet = &ethernet;
+       };
+
        memory@40000000 {
                device_type = "memory";
                reg = <0x40000000 0x3FF00000>;
 };
 
 &ehci {
+       #address-cells = <1>;
+       #size-cells = <0>;
        phys = <&exynos_usbphy 2>;
        phy-names = "hsic0";
+
+       hub@2 {
+               compatible = "usb0424,3503";
+               reg = <2>;
+               #address-cells = <1>;
+               #size-cells = <0>;
+
+               hub@1 {
+                       compatible = "usb0424,9514";
+                       reg = <1>;
+                       #address-cells = <1>;
+                       #size-cells = <0>;
+
+                       ethernet: usbether@1 {
+                               compatible = "usb0424,ec00";
+                               reg = <1>;
+                               local-mac-address = [00 00 00 00 00 00]; /* Filled in by a bootloader */
+                       };
+               };
+       };
 };
 
 &gpio_keys {