#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
/ {
compatible = "iptime,a8004t", "mediatek,mt7621-soc";
compatible = "gpio-leds";
led_cpu: cpu {
- label = "orange:cpu";
+ function = LED_FUNCTION_CPU;
+ color = <LED_COLOR_ID_ORANGE>;
gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
};
#address-cells = <1>;
#size-cells = <1>;
- uboot: partition@0 {
- compatible = "nvmem-cells";
+ partition@0 {
label = "u-boot";
reg = <0x0 0x20000>;
- #address-cells = <1>;
- #size-cells = <1>;
read-only;
- macaddr_uboot_1fc20: macaddr@1fc20 {
- reg = <0x1fc20 0x6>;
- };
+ nvmem-layout {
+ compatible = "fixed-layout";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_uboot_1fc20: macaddr@1fc20 {
+ reg = <0x1fc20 0x6>;
+ };
- macaddr_uboot_1fc40: macaddr@1fc40 {
- reg = <0x1fc40 0x6>;
+ macaddr_uboot_1fc40: macaddr@1fc40 {
+ reg = <0x1fc40 0x6>;
+ };
};
};
read-only;
};
- factory: partition@30000 {
- compatible = "nvmem-cells";
+ partition@30000 {
label = "factory";
reg = <0x30000 0x10000>;
- #address-cells = <1>;
- #size-cells = <1>;
read-only;
- eeprom_factory_0: eeprom@0 {
- reg = <0x0 0x4da8>;
- };
+ nvmem-layout {
+ compatible = "fixed-layout";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0x4da8>;
+ };
- eeprom_factory_8000: eeprom@8000 {
- reg = <0x8000 0x4da8>;
+ eeprom_factory_8000: eeprom@8000 {
+ reg = <0x8000 0x4da8>;
+ };
};
};