X-Git-Url: http://git.openwrt.org/?a=blobdiff_plain;f=target%2Flinux%2Framips%2Fdts%2Fmt7620a_dlink_dir-510l.dts;h=885e64f9f2d2aa5bd7059f2c6a0b6b0bf771dba3;hb=HEAD;hp=8a79d9a454ce8061ffb8e0ff573df0c57dce20fb;hpb=e4ce3109f28712dad3b3db27938a7b853346d9b6;p=openwrt%2Fopenwrt.git diff --git a/target/linux/ramips/dts/mt7620a_dlink_dir-510l.dts b/target/linux/ramips/dts/mt7620a_dlink_dir-510l.dts index 8a79d9a454..03f5739091 100644 --- a/target/linux/ramips/dts/mt7620a_dlink_dir-510l.dts +++ b/target/linux/ramips/dts/mt7620a_dlink_dir-510l.dts @@ -1,10 +1,11 @@ // SPDX-License-Identifier: GPL-2.0-or-later OR MIT -/dts-v1/; #include "mt7620a.dtsi" #include +#include #include +#include / { compatible = "dlink,dir-510l", "ralink,mt7620a-soc"; @@ -41,12 +42,14 @@ compatible = "gpio-leds"; led_status: status { - label = "dir-510l:green:status"; + function = LED_FUNCTION_STATUS; + color = ; gpios = <&gpio0 14 GPIO_ACTIVE_HIGH>; }; status-red { - label = "dir-510l:red:status"; + function = LED_FUNCTION_STATUS; + color = ; gpios = <&gpio0 11 GPIO_ACTIVE_HIGH>; }; }; @@ -60,10 +63,6 @@ status = "okay"; }; -&gpio0 { - status = "okay"; -}; - &spi0 { status = "okay"; @@ -90,15 +89,33 @@ }; partition@210000 { - compatible = "amit,jimage"; + compatible = "openwrt,uimage", "denx,uimage"; + openwrt,ih-magic = ; + openwrt,offset = <0x10000>; label = "firmware"; reg = <0x210000 0xde0000>; }; - config: partition@ff0000 { + partition@ff0000 { label = "config"; reg = <0xff0000 0x10000>; read-only; + + nvmem-layout { + compatible = "fixed-layout"; + #address-cells = <1>; + #size-cells = <1>; + + eeprom_config_e05d: eeprom@e05d { + reg = <0xe05d 0x200>; + }; + + macaddr_config_e490: macaddr@e490 { + compatible = "mac-base"; + reg = <0xe490 0x6>; + #nvmem-cell-cells = <1>; + }; + }; }; }; }; @@ -119,19 +136,14 @@ &pcie0 { mt76x0e@0,0 { reg = <0x0000 0 0 0 0>; - mtd-mac-address = <&config 0xe490>; - mtd-mac-address-increment = <(2)>; - mediatek,mtd-eeprom = <&config 0xe05d>; + nvmem-cells = <&eeprom_config_e05d>, <&macaddr_config_e490 2>; + nvmem-cell-names = "eeprom", "mac-address"; }; }; -&gsw { - mediatek,port4 = "ephy"; -}; - &state_default { default { - ralink,group = "i2c", "uartf"; - ralink,function = "gpio"; + groups = "i2c", "uartf"; + function = "gpio"; }; };