ramips: fix mtd partition node names for Phicomm PSG1208
[openwrt/openwrt.git] / target / linux / ramips / dts / mt7620a_engenius_esr600.dts
index 4da1c9c7082e46aafe59666c794e693864314aea..267525a0fcebbd5bfa1e4d417a9b3615bd968178 100644 (file)
                compatible = "gpio-leds";
 
                led_power: power {
-                       label = "esr600:amber:power";
+                       label = "amber:power";
                        gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
                };
 
                wps2g {
-                       label = "esr600:amber:wps2g";
+                       label = "amber:wps2g";
                        gpios = <&gpio2 6 GPIO_ACTIVE_LOW>;
                };
 
                wlan5g {
-                       label = "esr600:blue:wlan5g";
+                       label = "blue:wlan5g";
                        gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
                };
 
                wlan2g {
-                       label = "esr600:blue:wlan2g";
+                       label = "blue:wlan2g";
                        gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
                };
        };
        };
 };
 
-&gpio1 {
-       status = "okay";
-};
-
 &gpio2 {
        status = "okay";
 };
        pinctrl-names = "default";
        pinctrl-0 = <&rgmii1_pins &mdio_pins>;
 
-       mtd-mac-address = <&iNIC_rf 0x4>;
+       nvmem-cells = <&macaddr_iNIC_rf_4>;
+       nvmem-cell-names = "mac-address";
 
        port@5 {
                status = "okay";
 
        mdio-bus {
                status = "okay";
-               mediatek,mdio-mode;
 
                ethernet-phy@0 {
                        reg = <0>;
                                0x7c 0x0000007e /* PORT0 STATUS */
                                0x0c 0x05600000 /* PORT6 PAD MODE CTRL */
                                0x94 0x0000007e /* PORT6 STATUS */
-                               >;
+                       >;
                };
        };
 };
 
+&gsw {
+       mediatek,ephy-base = /bits/ 8 <8>;
+};
+
 &state_default {
        gpio {
                groups = "i2c", "uartf", "nd_sd", "wled";
 &ohci {
        status = "okay";
 };
+
+&iNIC_rf {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_iNIC_rf_4: macaddr@4 {
+               reg = <0x4 0x6>;
+       };
+};