projects
/
openwrt
/
staging
/
jow.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ramips: clean up useless dts partition labels
[openwrt/staging/jow.git]
/
target
/
linux
/
ramips
/
dts
/
mt7620n_comfast_cf-wr800n.dts
diff --git
a/target/linux/ramips/dts/mt7620n_comfast_cf-wr800n.dts
b/target/linux/ramips/dts/mt7620n_comfast_cf-wr800n.dts
index b87e5a3530e522b35ddb6143ff57e5b0577a68c7..bc35b82033b789ccb41ce90decc0685f2154c53d 100644
(file)
--- a/
target/linux/ramips/dts/mt7620n_comfast_cf-wr800n.dts
+++ b/
target/linux/ramips/dts/mt7620n_comfast_cf-wr800n.dts
@@
-2,6
+2,7
@@
#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 <dt-bindings/leds/common.h>
/ {
compatible = "comfast,cf-wr800n", "ralink,mt7620n-soc";
/ {
compatible = "comfast,cf-wr800n", "ralink,mt7620n-soc";
@@
-32,7
+33,8
@@
};
led_wps: wps {
};
led_wps: wps {
- label = "white:wps";
+ function = LED_FUNCTION_WPS;
+ color = <LED_COLOR_ID_WHITE>;
gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;
};
};
gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;
};
};
@@
-85,10
+87,24
@@
read-only;
};
read-only;
};
-
factory:
partition@40000 {
+ partition@40000 {
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 {
@@
-106,7
+122,8
@@
};
&wmac {
};
&wmac {
- ralink,mtd-eeprom = <&factory 0x0>;
+ nvmem-cells = <&eeprom_factory_0>;
+ nvmem-cell-names = "eeprom";
};
&state_default {
};
&state_default {
@@
-115,13
+132,3
@@
function = "gpio";
};
};
function = "gpio";
};
};
-
-&factory {
- compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
-
- macaddr_factory_4: macaddr@4 {
- reg = <0x4 0x6>;
- };
-};