ramips: convert to new LED color/function format where possible
[openwrt/staging/jow.git] / target / linux / ramips / dts / mt7620n_wrtnode_wrtnode.dts
1 #include "mt7620n.dtsi"
2
3 #include <dt-bindings/gpio/gpio.h>
4
5 / {
6 compatible = "wrtnode,wrtnode", "ralink,mt7620n-soc";
7 model = "WRTNODE";
8
9 aliases {
10 led-boot = &led_indicator;
11 led-failsafe = &led_indicator;
12 led-running = &led_indicator;
13 led-upgrade = &led_indicator;
14 };
15
16 leds {
17 compatible = "gpio-leds";
18
19 led_indicator: indicator {
20 function = LED_FUNCTION_INDICATOR;
21 color = <LED_COLOR_ID_BLUE>;
22 gpios = <&gpio1 14 GPIO_ACTIVE_LOW>;
23 };
24 };
25 };
26
27 &gpio1 {
28 status = "okay";
29 };
30
31 &spi0 {
32 status = "okay";
33
34 flash@0 {
35 compatible = "jedec,spi-nor";
36 reg = <0>;
37 spi-max-frequency = <10000000>;
38
39 partitions {
40 compatible = "fixed-partitions";
41 #address-cells = <1>;
42 #size-cells = <1>;
43
44 partition@0 {
45 label = "u-boot";
46 reg = <0x0 0x30000>;
47 read-only;
48 };
49
50 partition@30000 {
51 label = "u-boot-env";
52 reg = <0x30000 0x10000>;
53 read-only;
54 };
55
56 factory: partition@40000 {
57 label = "factory";
58 reg = <0x40000 0x10000>;
59 read-only;
60
61 nvmem-layout {
62 compatible = "fixed-layout";
63 #address-cells = <1>;
64 #size-cells = <1>;
65
66 eeprom_factory_0: eeprom@0 {
67 reg = <0x0 0x200>;
68 };
69
70 macaddr_factory_4: macaddr@4 {
71 reg = <0x4 0x6>;
72 };
73 };
74 };
75
76 partition@50000 {
77 compatible = "denx,uimage";
78 label = "firmware";
79 reg = <0x50000 0xfb0000>;
80 };
81 };
82 };
83 };
84
85 &ehci {
86 status = "okay";
87 };
88
89 &ohci {
90 status = "okay";
91 };
92
93 &ethernet {
94 nvmem-cells = <&macaddr_factory_4>;
95 nvmem-cell-names = "mac-address";
96
97 mediatek,portmap = "wllll";
98 };
99
100 &wmac {
101 nvmem-cells = <&eeprom_factory_0>;
102 nvmem-cell-names = "eeprom";
103 };
104
105 &state_default {
106 default {
107 groups = "ephy", "wled", "pa", "i2c", "wdt", "uartf", "spi refclk";
108 function = "gpio";
109 };
110 #include <dt-bindings/leds/common.h>
111
112 };