ath79: add support for 8Devices Carambola3 board
[openwrt/openwrt.git] / target / linux / ramips / dts / mt7628an_tplink_8m.dtsi
index 9f7f7ccd6c78c9f2b321ab08dccbfdceda320231..3db4bb9b9c24c1f968bb49a0d0f17e59b32767b6 100644 (file)
@@ -1,20 +1,22 @@
 #include "mt7628an.dtsi"
 
+#include <dt-bindings/input/input.h>
+#include <dt-bindings/gpio/gpio.h>
+
 / {
        chosen {
                bootargs = "console=ttyS0,115200";
        };
 
-       memory@0 {
-               device_type = "memory";
-               reg = <0x0 0x4000000>;
+       aliases {
+               label-mac-device = &ethernet;
        };
 };
 
 &spi0 {
        status = "okay";
 
-       m25p80@0 {
+       flash@0 {
                compatible = "jedec,spi-nor";
                reg = <0>;
                spi-max-frequency = <10000000>;
                                label = "factory";
                                reg = <0x7d0000 0x30000>;
                                read-only;
-                       };
-               };
-       };
-};
 
-&ehci {
-       status = "disabled";
-};
+                               nvmem-layout {
+                                       compatible = "fixed-layout";
+                                       #address-cells = <1>;
+                                       #size-cells = <1>;
 
-&ohci {
-       status = "disabled";
-};
+                                       macaddr_factory_f100: macaddr@f100 {
+                                               compatible = "mac-base";
+                                               reg = <0xf100 0x6>;
+                                               #nvmem-cell-cells = <1>;
+                                       };
 
-&wmac {
-       status = "okay";
-       mtd-mac-address = <&factory 0xf100>;
-       mediatek,mtd-eeprom = <&factory 0x20000>;
+                                       eeprom_factory_20000: eeprom@20000 {
+                                               reg = <0x20000 0x400>;
+                                       };
+
+                                       eeprom_factory_28000: eeprom@28000 {
+                                               reg = <0x28000 0x200>;
+                                       };
+                               };
+                       };
+               };
+       };
 };
 
 &ethernet {
-       mtd-mac-address = <&factory 0xf100>;
-       mediatek,portmap = "llllw";
+       nvmem-cells = <&macaddr_factory_f100 0>;
+       nvmem-cell-names = "mac-address";
 };