X-Git-Url: http://git.openwrt.org/?a=blobdiff_plain;f=target%2Flinux%2Framips%2Fdts%2Fmt7620a_iodata_wn-ac1167gr.dts;h=5eca06fcb93cc9e92db4d6e4862627029885ba4e;hb=9ac891f8c44124e931c15f1257347cd8ba311a19;hp=1cc59e4bb66a5c6c26f9993bc2b6b4fee53f0fae;hpb=b756ea2a909a36d7e931b96edf0d15539421c733;p=openwrt%2Fopenwrt.git diff --git a/target/linux/ramips/dts/mt7620a_iodata_wn-ac1167gr.dts b/target/linux/ramips/dts/mt7620a_iodata_wn-ac1167gr.dts index 1cc59e4bb6..5eca06fcb9 100644 --- a/target/linux/ramips/dts/mt7620a_iodata_wn-ac1167gr.dts +++ b/target/linux/ramips/dts/mt7620a_iodata_wn-ac1167gr.dts @@ -1,5 +1,4 @@ // SPDX-License-Identifier: GPL-2.0-or-later OR MIT -/dts-v1/; #include "mt7620a.dtsi" @@ -21,23 +20,23 @@ compatible = "gpio-leds"; led_power: power { - label = "wn-ac1167gr:green:power"; + label = "green:power"; gpios = <&gpio0 7 GPIO_ACTIVE_LOW>; default-state = "on"; }; wlan2g { - label = "wn-ac1167gr:green:wlan2g"; + label = "green:wlan2g"; gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; }; notification { - label = "wn-ac1167gr:green:notification"; + label = "green:notification"; gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; }; wlan5g { - label = "wn-ac1167gr:green:wlan5g"; + label = "green:wlan5g"; gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; }; }; @@ -139,7 +138,9 @@ ðernet { pinctrl-names = "default"; pinctrl-0 = <&rgmii1_pins &mdio_pins>; - mtd-mac-address = <&factory 0x4>; + + nvmem-cells = <&macaddr_factory_4>; + nvmem-cell-names = "mac-address"; port@5 { status = "okay"; @@ -184,6 +185,10 @@ }; }; +&gsw { + mediatek,ephy-base = /bits/ 8 <12>; +}; + &state_default { gpio { groups = "i2c", "uartf"; @@ -206,3 +211,13 @@ &wmac { ralink,mtd-eeprom = <&factory 0x0>; }; + +&factory { + compatible = "nvmem-cells"; + #address-cells = <1>; + #size-cells = <1>; + + macaddr_factory_4: macaddr@4 { + reg = <0x4 0x6>; + }; +};