projects
/
openwrt
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ramips: convert to new LED color/function format where possible
[openwrt/openwrt.git]
/
target
/
linux
/
ramips
/
dts
/
mt7620a_sanlinking_d240.dts
diff --git
a/target/linux/ramips/dts/mt7620a_sanlinking_d240.dts
b/target/linux/ramips/dts/mt7620a_sanlinking_d240.dts
index a9c75e187fbcec83ca9c4b6ca740737c6ec51301..ad0747cb740dec9e755d0883164355c978760b74 100644
(file)
--- a/
target/linux/ramips/dts/mt7620a_sanlinking_d240.dts
+++ b/
target/linux/ramips/dts/mt7620a_sanlinking_d240.dts
@@
-8,6
+8,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 = "sanlinking,d240", "ralink,mt7620a-soc";
/ {
compatible = "sanlinking,d240", "ralink,mt7620a-soc";
@@
-45,12
+46,14
@@
compatible = "gpio-leds";
led_power: power {
compatible = "gpio-leds";
led_power: power {
- label = "blue:power";
+ function = LED_FUNCTION_POWER;
+ color = <LED_COLOR_ID_BLUE>;
gpios = <&gpio1 14 GPIO_ACTIVE_HIGH>;
};
usb {
gpios = <&gpio1 14 GPIO_ACTIVE_HIGH>;
};
usb {
- label = "blue:usb";
+ function = LED_FUNCTION_USB;
+ color = <LED_COLOR_ID_BLUE>;
gpios = <&gpio1 15 GPIO_ACTIVE_HIGH>;
trigger-sources = <&ohci_port1>, <&ehci_port1>;
linux,default-trigger = "usbport";
gpios = <&gpio1 15 GPIO_ACTIVE_HIGH>;
trigger-sources = <&ohci_port1>, <&ehci_port1>;
linux,default-trigger = "usbport";
@@
-111,19
+114,22
@@
};
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>;
- };
+ 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>;
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
};
};
};
};