#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
/ {
compatible = "zyxel,lte5398-m904", "mediatek,mt7621-soc";
compatible = "gpio-leds";
led_power_green: power_green {
- label = "green:power";
+ function = LED_FUNCTION_POWER;
+ color = <LED_COLOR_ID_GREEN>;
gpios = <&gpio 16 GPIO_ACTIVE_HIGH>;
};
power_blue {
- label = "blue:power";
+ function = LED_FUNCTION_POWER;
+ color = <LED_COLOR_ID_BLUE>;
gpios = <&gpio 22 GPIO_ACTIVE_HIGH>;
linux,default-trigger = "usbport";
trigger-sources = <&ehci_port2>;
reg = <0x80000 0x80000>;
};
- factory: partition@100000 {
- compatible = "nvmem-cells";
+ partition@100000 {
label = "Factory";
reg = <0x100000 0x40000>;
- #address-cells = <1>;
- #size-cells = <1>;
read-only;
- eeprom_factory_0: eeprom@0 {
- reg = <0x0 0x400>;
- };
+ nvmem-layout {
+ compatible = "fixed-layout";
+ #address-cells = <1>;
+ #size-cells = <1>;
- eeprom_factory_8000: eeprom@8000 {
- reg = <0x8000 0x4da8>;
- };
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0x400>;
+ };
+
+ eeprom_factory_8000: eeprom@8000 {
+ reg = <0x8000 0x4da8>;
+ };
- macaddr_factory_fe6e: macaddr@fe6e {
- reg = <0xfe6e 0x6>;
+ macaddr_factory_fe6e: macaddr@fe6e {
+ reg = <0xfe6e 0x6>;
+ };
};
};