X-Git-Url: http://git.openwrt.org/?a=blobdiff_plain;f=target%2Flinux%2Framips%2Fdts%2Fmt7620a_alfa-network_tube-e4g.dts;h=95ba2c7cdf5b1d74d78098bb2eef1f9b2512857c;hb=01996b785dcef61e6dadb50f61a13f905f3e497d;hp=2462e13b4733d96b560a916aa6da95bdea004c6d;hpb=621297e86736556f772a3a1e3907c4ad9223bd74;p=openwrt%2Fstaging%2Fjow.git diff --git a/target/linux/ramips/dts/mt7620a_alfa-network_tube-e4g.dts b/target/linux/ramips/dts/mt7620a_alfa-network_tube-e4g.dts index 2462e13b47..95ba2c7cdf 100644 --- a/target/linux/ramips/dts/mt7620a_alfa-network_tube-e4g.dts +++ b/target/linux/ramips/dts/mt7620a_alfa-network_tube-e4g.dts @@ -4,6 +4,7 @@ #include #include +#include / { compatible = "alfa-network,tube-e4g", "ralink,mt7620a-soc"; @@ -69,29 +70,31 @@ compatible = "gpio-leds"; 4g { - label = "tube-e4g:green:4g"; + label = "green:4g"; gpios = <&gpio0 7 GPIO_ACTIVE_LOW>; }; lan { - label = "tube-e4g:blue:lan"; + function = LED_FUNCTION_LAN; + color = ; gpios = <&gpio2 4 GPIO_ACTIVE_LOW>; }; power: power { - label = "tube-e4g:green:power"; + function = LED_FUNCTION_POWER; + color = ; gpios = <&gpio2 0 GPIO_ACTIVE_LOW>; default-state = "keep"; }; sim1 { - label = "tube-e4g:green:sim1"; + label = "green:sim1"; gpios = <&gpio2 3 GPIO_ACTIVE_LOW>; default-state = "keep"; }; sim2 { - label = "tube-e4g:green:sim2"; + label = "green:sim2"; gpios = <&gpio2 2 GPIO_ACTIVE_LOW>; default-state = "keep"; }; @@ -103,11 +106,8 @@ }; ðernet { - mtd-mac-address = <&factory 0x28>; -}; - -&gpio0 { - status = "okay"; + nvmem-cells = <&macaddr_factory_28>; + nvmem-cell-names = "mac-address"; }; &gpio1 { @@ -118,10 +118,6 @@ status = "okay"; }; -&gsw { - mediatek,port4 = "ephy"; -}; - &ohci { status = "okay"; }; @@ -168,10 +164,20 @@ read-only; }; - factory: partition@40000 { + partition@40000 { label = "factory"; reg = <0x40000 0x10000>; read-only; + + nvmem-layout { + compatible = "fixed-layout"; + #address-cells = <1>; + #size-cells = <1>; + + macaddr_factory_28: macaddr@28 { + reg = <0x28 0x6>; + }; + }; }; partition@50000 {