projects
/
openwrt
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ramips: fix frequency limit property for some Edimax devices
[openwrt/openwrt.git]
/
target
/
linux
/
ramips
/
dts
/
mt7620n_zbtlink_zbt-we2026.dts
diff --git
a/target/linux/ramips/dts/mt7620n_zbtlink_zbt-we2026.dts
b/target/linux/ramips/dts/mt7620n_zbtlink_zbt-we2026.dts
index 0cadbddcb4ac6a6292155c467f82f635bdcb223c..acf3501f90365991f150e7ed555102208ef82572 100644
(file)
--- a/
target/linux/ramips/dts/mt7620n_zbtlink_zbt-we2026.dts
+++ b/
target/linux/ramips/dts/mt7620n_zbtlink_zbt-we2026.dts
@@
-1,10
+1,8
@@
-/dts-v1/;
+#include "mt7620n.dtsi"
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h>
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h>
-#include "mt7620n.dtsi"
-
/ {
compatible = "zbtlink,zbt-we2026", "ralink,mt7620n-soc";
model = "Zbtlink ZBT-WE2026";
/ {
compatible = "zbtlink,zbt-we2026", "ralink,mt7620n-soc";
model = "Zbtlink ZBT-WE2026";
@@
-24,12
+22,12
@@
compatible = "gpio-leds";
led_power: power {
compatible = "gpio-leds";
led_power: power {
- label = "
zbt-we2026:
red:power";
+ label = "red:power";
gpios = <&gpio1 14 GPIO_ACTIVE_LOW>;
};
wlan {
gpios = <&gpio1 14 GPIO_ACTIVE_LOW>;
};
wlan {
- label = "
zbt-we2026:
green:wlan";
+ label = "green:wlan";
gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
};
};
gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
};
};
@@
-56,7
+54,7
@@
&spi0 {
status = "okay";
&spi0 {
status = "okay";
-
en25q64
@0 {
+
flash
@0 {
compatible = "jedec,spi-nor";
reg = <0>;
spi-max-frequency = <10000000>;
compatible = "jedec,spi-nor";
reg = <0>;
spi-max-frequency = <10000000>;
@@
-79,9
+77,20
@@
};
factory: partition@40000 {
};
factory: partition@40000 {
+ compatible = "nvmem-cells";
label = "factory";
reg = <0x40000 0x10000>;
label = "factory";
reg = <0x40000 0x10000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
read-only;
read-only;
+
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0x200>;
+ };
+
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
};
partition@50000 {
};
partition@50000 {
@@
-94,19
+103,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";
};
};
-&pinctrl {
- state_default: pinctrl0 {
- default {
- ralink,group = "i2c", "spi refclk", "wled";
- ralink,function = "gpio";
- };
+&state_default {
+ default {
+ groups = "i2c", "spi refclk", "wled";
+ function = "gpio";
};
};
};
};