ARM: dts: imx6qdl-mba6: add mac address for USB ethernet controller
authorAlexander Stein <alexander.stein@ew.tq-group.com>
Mon, 15 May 2023 05:44:29 +0000 (07:44 +0200)
committerShawn Guo <shawnguo@kernel.org>
Sat, 27 May 2023 08:13:13 +0000 (16:13 +0800)
The mac address is stored in mainboard eeprom.

Signed-off-by: Alexander Stein <alexander.stein@ew.tq-group.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
arch/arm/boot/dts/imx6qdl-mba6.dtsi
arch/arm/boot/dts/imx6qdl-mba6a.dtsi
arch/arm/boot/dts/imx6qdl-mba6b.dtsi

index 78555a6188510f63da0bf1a2659423cbc56205de..c911688e9832b4bfa96bda32153bbf8c114197f5 100644 (file)
 &usbh1 {
        disable-over-current;
        status = "okay";
+       #address-cells = <1>;
+       #size-cells = <0>;
+
+       hub@1 {
+               compatible = "usb424,2517";
+               reg = <1>;
+               #address-cells = <1>;
+               #size-cells = <0>;
+
+               ethernet@1 {
+                       compatible = "usb424,9e00";
+                       reg = <1>;
+                       nvmem-cells = <&mba_mac_address>;
+                       nvmem-cell-names = "mac-address";
+               };
+       };
 };
 
 &usbotg {
index df8fa169e9f6dd94a0ddb48f65ac68dd0f2b9c2e..27fec340c380a225a4fcc0885cb0c69311056fd6 100644 (file)
                compatible = "atmel,24c64";
                reg = <0x57>;
                pagesize = <32>;
+               #address-cells = <1>;
+               #size-cells = <1>;
+
+               mba_mac_address: mac-address@20 {
+                       reg = <0x20 0x6>;
+               };
        };
 
        rtc0: rtc@68 {
index 7d1cd7454c7f5b5033d7d3856dff4ff284fcdfba..0a9f076eeb36ea8fa5c15f3b7dc5639f2c3af85d 100644 (file)
                compatible = "atmel,24c64";
                reg = <0x57>;
                pagesize = <32>;
+               #address-cells = <1>;
+               #size-cells = <1>;
+
+               mba_mac_address: mac-address@20 {
+                       reg = <0x20 0x6>;
+               };
        };
 
        rtc0: rtc@68 {