ramips: remove model name from LED labels
[openwrt/staging/mkresin.git] / target / linux / ramips / dts / mt7621_youhua_wr1200js.dts
1 #include "mt7621.dtsi"
2
3 #include <dt-bindings/gpio/gpio.h>
4 #include <dt-bindings/input/input.h>
5
6 / {
7 compatible = "youhua,wr1200js", "mediatek,mt7621-soc";
8 model = "YouHua WR1200JS";
9
10 aliases {
11 led-boot = &led_wps;
12 led-failsafe = &led_wps;
13 };
14
15 chosen {
16 bootargs = "console=ttyS0,115200";
17 };
18
19 leds {
20 compatible = "gpio-leds";
21
22 internet {
23 label = "blue:internet";
24 gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
25 };
26
27 led_wps: wps {
28 label = "blue:wps";
29 gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
30 };
31
32 usb {
33 label = "blue:usb";
34 gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
35 trigger-sources = <&xhci_ehci_port1>, <&ehci_port2>;
36 linux,default-trigger = "usbport";
37 };
38 };
39
40 keys {
41 compatible = "gpio-keys";
42
43 reset {
44 label = "reset";
45 gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
46 linux,code = <KEY_RESTART>;
47 };
48
49 wps {
50 label = "wps";
51 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
52 linux,code = <KEY_WPS_BUTTON>;
53 };
54
55 wifi {
56 label = "wifi";
57 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
58 linux,code = <KEY_RFKILL>;
59 };
60 };
61 };
62
63 &spi0 {
64 status = "okay";
65
66 flash@0 {
67 compatible = "jedec,spi-nor";
68 reg = <0>;
69 spi-max-frequency = <10000000>;
70
71 partitions {
72 compatible = "fixed-partitions";
73 #address-cells = <1>;
74 #size-cells = <1>;
75
76 partition@0 {
77 label = "u-boot";
78 reg = <0x0 0x30000>;
79 read-only;
80 };
81
82 partition@30000 {
83 label = "u-boot-env";
84 reg = <0x30000 0x10000>;
85 read-only;
86 };
87
88 factory: partition@40000 {
89 label = "factory";
90 reg = <0x40000 0x10000>;
91 read-only;
92 };
93
94 partition@50000 {
95 compatible = "denx,uimage";
96 label = "firmware";
97 reg = <0x50000 0xfb0000>;
98 };
99 };
100 };
101 };
102
103 &pcie {
104 status = "okay";
105 };
106
107 &pcie0 {
108 mt76@0,0 {
109 reg = <0x0000 0 0 0 0>;
110 mediatek,mtd-eeprom = <&factory 0x0000>;
111 };
112 };
113
114 &pcie1 {
115 mt76@0,0 {
116 reg = <0x0000 0 0 0 0>;
117 mediatek,mtd-eeprom = <&factory 0x8000>;
118 ieee80211-freq-limit = <5000000 6000000>;
119
120 led {
121 led-sources = <2>;
122 led-active-low;
123 };
124 };
125 };
126
127 &gmac0 {
128 mtd-mac-address = <&factory 0xe000>;
129 };
130
131 &switch0 {
132 ports {
133 port@0 {
134 status = "okay";
135 label = "wan";
136 mtd-mac-address = <&factory 0xe006>;
137 };
138
139 port@1 {
140 status = "okay";
141 label = "lan1";
142 };
143
144 port@2 {
145 status = "okay";
146 label = "lan2";
147 };
148
149 port@3 {
150 status = "okay";
151 label = "lan3";
152 };
153
154 port@4 {
155 status = "okay";
156 label = "lan4";
157 };
158 };
159 };
160
161 &state_default {
162 gpio {
163 groups = "i2c", "uart2", "uart3", "wdt";
164 function = "gpio";
165 };
166 };