projects
/
openwrt
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ramips: use NVMEM cells with mt76 EEPROM for Netgear R6220 & WNDR3700 v5
[openwrt/openwrt.git]
/
target
/
linux
/
ramips
/
dts
/
rt3050_teltonika_rut5xx.dts
diff --git
a/target/linux/ramips/dts/rt3050_teltonika_rut5xx.dts
b/target/linux/ramips/dts/rt3050_teltonika_rut5xx.dts
index 6a0965d76071ca99eab7af84238395a93de00769..6be2590a0cda2e33d3875b87c7cb1f29e2ffc49a 100644
(file)
--- a/
target/linux/ramips/dts/rt3050_teltonika_rut5xx.dts
+++ b/
target/linux/ramips/dts/rt3050_teltonika_rut5xx.dts
@@
-1,5
+1,3
@@
-/dts-v1/;
-
#include "rt3050.dtsi"
#include <dt-bindings/gpio/gpio.h>
#include "rt3050.dtsi"
#include <dt-bindings/gpio/gpio.h>
@@
-20,7
+18,7
@@
compatible = "gpio-leds";
led_status: status {
compatible = "gpio-leds";
led_status: status {
- label = "
rut5xx:
green:status";
+ label = "green:status";
gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
};
};
gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
};
};
@@
-35,12
+33,21
@@
linux,code = <KEY_RESTART>;
};
};
linux,code = <KEY_RESTART>;
};
};
+
+ watchdog {
+ compatible = "linux,wdt-gpio";
+ gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
+ hw_algo = "toggle";
+ /* hw_margin_ms is actually 280s but driver limits it to 60s */
+ hw_margin_ms = <60000>;
+ always-running;
+ };
};
&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>;
@@
-85,7
+92,8
@@
};
ðernet {
};
ðernet {
- mtd-mac-address = <&factory 0x28>;
+ nvmem-cells = <&macaddr_factory_28>;
+ nvmem-cell-names = "mac-address";
};
&esw {
};
&esw {
@@
-99,3
+107,13
@@
&otg {
status = "okay";
};
&otg {
status = "okay";
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_28: macaddr@28 {
+ reg = <0x28 0x6>;
+ };
+};