projects
/
openwrt
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ramips: mt76x8: add support for TP-Link RE365 v1
[openwrt/openwrt.git]
/
target
/
linux
/
ramips
/
dts
/
mt7620n_asus_rt-n12p.dts
diff --git
a/target/linux/ramips/dts/mt7620n_asus_rt-n12p.dts
b/target/linux/ramips/dts/mt7620n_asus_rt-n12p.dts
index 801f4c50ec0b205c73edf9abdc4a6f9742bb5c53..29350a855657916a816e12025de84a5e630aa4f0 100644
(file)
--- a/
target/linux/ramips/dts/mt7620n_asus_rt-n12p.dts
+++ b/
target/linux/ramips/dts/mt7620n_asus_rt-n12p.dts
@@
-1,5
+1,3
@@
-/dts-v1/;
-
#include "mt7620n.dtsi"
#include <dt-bindings/gpio/gpio.h>
#include "mt7620n.dtsi"
#include <dt-bindings/gpio/gpio.h>
@@
-24,22
+22,22
@@
compatible = "gpio-leds";
wan {
compatible = "gpio-leds";
wan {
- label = "
rt-n12p:
green:wan";
+ label = "green:wan";
gpios = <&gpio2 4 GPIO_ACTIVE_LOW>;
};
lan {
gpios = <&gpio2 4 GPIO_ACTIVE_LOW>;
};
lan {
- label = "
rt-n12p:
green:lan";
+ label = "green:lan";
gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;
};
led_power: power {
gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;
};
led_power: power {
- label = "
rt-n12p:
green:power";
+ label = "green:power";
gpios = <&gpio2 3 GPIO_ACTIVE_LOW>;
};
air {
gpios = <&gpio2 3 GPIO_ACTIVE_LOW>;
};
air {
- label = "
rt-n12p:
green:air";
+ label = "green:air";
gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
};
};
gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
};
};
@@
-70,7
+68,7
@@
&spi0 {
status = "okay";
&spi0 {
status = "okay";
-
m25p80
@0 {
+
flash
@0 {
compatible = "jedec,spi-nor";
reg = <0>;
spi-max-frequency = <10000000>;
compatible = "jedec,spi-nor";
reg = <0>;
spi-max-frequency = <10000000>;
@@
-96,6
+94,20
@@
label = "factory";
reg = <0x40000 0x10000>;
read-only;
label = "factory";
reg = <0x40000 0x10000>;
read-only;
+
+ nvmem-layout {
+ compatible = "fixed-layout";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0x200>;
+ };
+
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
+ };
};
partition@50000 {
};
partition@50000 {
@@
-108,17
+120,20
@@
};
ðernet {
};
ðernet {
- mtd-mac-address = <&factory 0x4>;
- mediatek,portmap = "wllll";
+ nvmem-cells = <&macaddr_factory_4>;
+ nvmem-cell-names = "mac-address";
+
+ mediatek,portmap = "llllw";
};
&wmac {
};
&wmac {
- ralink,mtd-eeprom = <&factory 0>;
+ nvmem-cells = <&eeprom_factory_0>;
+ nvmem-cell-names = "eeprom";
};
&state_default {
default {
};
&state_default {
default {
-
ralink,group
= "ephy", "wled", "i2c", "wdt", "pa", "spi refclk";
-
ralink,
function = "gpio";
+
groups
= "ephy", "wled", "i2c", "wdt", "pa", "spi refclk";
+ function = "gpio";
};
};
};
};