projects
/
openwrt
/
staging
/
hauke.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ramips: rtxxxx: convert to nvmem-layout
[openwrt/staging/hauke.git]
/
target
/
linux
/
ramips
/
dts
/
rt3052_alfa-network_w502u.dts
diff --git
a/target/linux/ramips/dts/rt3052_alfa-network_w502u.dts
b/target/linux/ramips/dts/rt3052_alfa-network_w502u.dts
index 1a43f61959b65ab59c55338ccd5fd4d62244b343..0b9270461bd226d1bf7285031c638fa12cd5dd5a 100644
(file)
--- a/
target/linux/ramips/dts/rt3052_alfa-network_w502u.dts
+++ b/
target/linux/ramips/dts/rt3052_alfa-network_w502u.dts
@@
-45,6
+45,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_28: macaddr@28 {
+ reg = <0x28 0x6>;
+ };
+ };
};
partition@50000 {
};
partition@50000 {
@@
-59,14
+73,14
@@
compatible = "gpio-leds";
usb {
compatible = "gpio-leds";
usb {
- label = "
w502u:
blue:usb";
+ label = "blue:usb";
gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
trigger-sources = <&otg_port1>;
linux,default-trigger = "usbport";
};
led_wps: wps {
gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
trigger-sources = <&otg_port1>;
linux,default-trigger = "usbport";
};
led_wps: wps {
- label = "
w502u:
blue:wps";
+ label = "blue:wps";
gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
};
};
gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
};
};
@@
-97,7
+111,8
@@
};
ðernet {
};
ðernet {
- mtd-mac-address = <&factory 0x28>;
+ nvmem-cells = <&macaddr_factory_28>;
+ nvmem-cell-names = "mac-address";
};
&esw {
};
&esw {
@@
-105,7
+120,8
@@
};
&wmac {
};
&wmac {
- ralink,mtd-eeprom = <&factory 0x0>;
+ nvmem-cells = <&eeprom_factory_0>;
+ nvmem-cell-names = "eeprom";
};
&otg {
};
&otg {