ramips: add support for SNR-CPE-ME2-SFP
[openwrt/openwrt.git] / target / linux / ramips / dts / mt7628an_jotale_js76x8.dtsi
index 61c5d7b7c498fd73e2729482d99f1a8bd61e59fe..2d2f8a58b8d0622d3df6005b25aef624e7737364 100644 (file)
                compatible = "gpio-leds";
 
                led_system: system {
-                       label = "js76x8:green:system";
+                       label = "green:system";
                        gpios = <&gpio 37 GPIO_ACTIVE_LOW>;
                };
 
                wifi {
-                       label = "js76x8:green:wifi";
+                       label = "green:wifi";
                        gpios = <&gpio 44 GPIO_ACTIVE_LOW>;
                        linux,default-trigger = "phy0tpt";
                };
        pinctrl-names = "default";
        pinctrl-0 = <&spi_pins>, <&spi_cs1_pins>;
 
-       flash@0 {
+       flash0: flash@0 {
                compatible = "jedec,spi-nor";
                reg = <0>;
                spi-max-frequency = <40000000>;
-               m25p,chunked-io = <32>;
 
                partitions {
                        compatible = "fixed-partitions";
 };
 
 &ethernet {
-       mtd-mac-address = <&factory 0x28>;
+       nvmem-cells = <&macaddr_factory_28>;
+       nvmem-cell-names = "mac-address";
 };
 
 &sdhci {
 
 &wmac {
        status = "okay";
+
+       mediatek,mtd-eeprom = <&factory 0x0>;
+};
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_28: macaddr@28 {
+               reg = <0x28 0x6>;
+       };
 };