ramips: fix mtd partition node names for Phicomm PSG1208
[openwrt/openwrt.git] / target / linux / ramips / dts / mt7628an_iptime.dtsi
index bbd8642f2a5f46a733ffc754d4d3cf7c350ace48..ccc6debfc9bcf3b9244f4ac7e64e8081c392e40a 100644 (file)
 
                reset {
                        label = "reset";
-                       gpios = <&gpio1 6 GPIO_ACTIVE_LOW>;
+                       gpios = <&gpio 38 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_RESTART>;
                        debounce-interval = <60>;
                };
 
                wps {
                        label = "wps";
-                       gpios = <&gpio1 13 GPIO_ACTIVE_LOW>;
+                       gpios = <&gpio 45 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_WPS_BUTTON>;
                        debounce-interval = <60>;
                };
        };
 };
 
-&pinctrl {
-       state_default: pinctrl0 {
-               gpio {
-                       ralink,group = "uart1", "wdt";
-                       ralink,function = "gpio";
-               };
+&state_default {
+       gpio {
+               groups = "uart1", "wdt";
+               function = "gpio";
        };
 };
 
@@ -87,7 +85,8 @@
 };
 
 &ethernet {
-       mtd-mac-address = <&uboot 0x1fc20>;
+       nvmem-cells = <&macaddr_uboot_1fc20>;
+       nvmem-cell-names = "mac-address";
 };
 
 &pcie {
 
 &wmac {
        status = "okay";
+
+       mediatek,mtd-eeprom = <&factory 0x0>;
+};
+
+&uboot {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_uboot_1fc20: macaddr@1fc20 {
+               reg = <0x1fc20 0x6>;
+       };
 };