ath79: add Embedded Wireless Balin Platform
[openwrt/openwrt.git] / target / linux / ath79 / dts / ar9344_zbtlink_zbt-wd323.dts
index 5f24bf23d6c71afb652835bb96611330a4ae5b2f..8fc21be1dcb4965f886d483b72d09f31d6cc7383 100644 (file)
        pinctrl-0 = <&enable_gpio21>;
 };
 
-&uart {
-       status = "okay";
-};
-
 &gpio {
        pinctrl-names = "default";
        pinctrl-0 = <&jtag_disable_pins>;
 &eth0 {
        status = "okay";
        phy-handle = <&swphy4>;
-       mtd-mac-address = <&art 0x0>;
+       nvmem-cells = <&macaddr_art_0>;
+       nvmem-cell-names = "mac-address";
 };
 
 &eth1 {
        status = "okay";
-       mtd-mac-address = <&art 0x6>;
+       nvmem-cells = <&macaddr_art_6>;
+       nvmem-cell-names = "mac-address";
 };
 
 &spi {
                pinctrl-single,bits = <0x14 0x0 0xff00>;
        };
 };
+
+&art {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_art_0: macaddr@0 {
+               reg = <0x0 0x6>;
+       };
+
+       macaddr_art_6: macaddr@6 {
+               reg = <0x6 0x6>;
+       };
+};