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
/
rt3052_huawei_hg255d.dts
diff --git
a/target/linux/ramips/dts/rt3052_huawei_hg255d.dts
b/target/linux/ramips/dts/rt3052_huawei_hg255d.dts
index 909a9f85302ed303c52cedd40748cefba7f1f80f..7150a7f41af8b9816f18f1e22f899d60e6150e5c 100644
(file)
--- a/
target/linux/ramips/dts/rt3052_huawei_hg255d.dts
+++ b/
target/linux/ramips/dts/rt3052_huawei_hg255d.dts
@@
-1,9
+1,8
@@
-/dts-v1/;
-
#include "rt3050.dtsi"
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h>
#include "rt3050.dtsi"
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
/ {
compatible = "huawei,hg255d", "ralink,rt3052-soc";
/ {
compatible = "huawei,hg255d", "ralink,rt3052-soc";
@@
-39,10
+38,24
@@
read-only;
};
read-only;
};
-
factory:
partition@60000 {
+ partition@60000 {
label = "factory";
reg = <0x60000 0x20000>;
read-only;
label = "factory";
reg = <0x60000 0x20000>;
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@80000 {
};
partition@80000 {
@@
-63,34
+76,38
@@
compatible = "gpio-leds";
led_power: power {
compatible = "gpio-leds";
led_power: power {
- label = "hg255d:green:power";
+ function = LED_FUNCTION_POWER;
+ color = <LED_COLOR_ID_GREEN>;
gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
};
internet {
gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
};
internet {
- label = "
hg255d:
green:internet";
+ label = "green:internet";
gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
};
wifi {
gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
};
wifi {
- label = "hg255d:green:wlan";
+ function = LED_FUNCTION_WLAN;
+ color = <LED_COLOR_ID_GREEN>;
gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
};
usb {
gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
};
usb {
- label = "hg255d:green:usb";
+ function = LED_FUNCTION_USB;
+ color = <LED_COLOR_ID_GREEN>;
gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
trigger-sources = <&otg_port1>;
linux,default-trigger = "usbport";
};
wps {
gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
trigger-sources = <&otg_port1>;
linux,default-trigger = "usbport";
};
wps {
- label = "hg255d:green:wps";
+ function = LED_FUNCTION_WPS;
+ color = <LED_COLOR_ID_GREEN>;
gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
};
voice {
gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
};
voice {
- label = "
hg255d:
green:voice";
+ label = "green:voice";
gpios = <&gpio0 5 GPIO_ACTIVE_LOW>;
};
};
gpios = <&gpio0 5 GPIO_ACTIVE_LOW>;
};
};
@@
-127,7
+144,8
@@
};
ðernet {
};
ðernet {
- mtd-mac-address = <&factory 0x28>;
+ nvmem-cells = <&macaddr_factory_28>;
+ nvmem-cell-names = "mac-address";
};
&esw {
};
&esw {
@@
-135,7
+153,8
@@
};
&wmac {
};
&wmac {
- ralink,mtd-eeprom = <&factory 0x0>;
+ nvmem-cells = <&eeprom_factory_0>;
+ nvmem-cell-names = "eeprom";
};
&otg {
};
&otg {