ramips: fix dtc warnings
[openwrt/openwrt.git] / target / linux / ramips / dts / WRC-1167GHBK2-S.dts
1 /dts-v1/;
2
3 #include "mt7621.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 / {
9 compatible = "elecom,wrc-1167ghbk2-s", "mediatek,mt7621-soc";
10 model = "ELECOM WRC-1167GHBK2-S";
11
12 aliases {
13 led-status = &led_power_green;
14 };
15
16 memory@0 {
17 device_type = "memory";
18 reg = <0x0 0x8000000>;
19 };
20
21 chosen {
22 bootargs = "console=ttyS0,57600";
23 };
24
25 gpio-leds {
26 compatible = "gpio-leds";
27
28 wlan2g {
29 label = "wrc-1167ghbk2-s:white:wlan2g";
30 gpios = <&gpio0 3 GPIO_ACTIVE_LOW>;
31 };
32
33 wlan5g {
34 label = "wrc-1167ghbk2-s:white:wlan5g";
35 gpios = <&gpio0 4 GPIO_ACTIVE_LOW>;
36 };
37
38 led_power_green: power_green {
39 label = "wrc-1167ghbk2-s:green:power";
40 gpios = <&gpio0 7 GPIO_ACTIVE_HIGH>;
41 };
42
43 power_blue {
44 label = "wrc-1167ghbk2-s:blue:power";
45 gpios = <&gpio0 8 GPIO_ACTIVE_HIGH>;
46 };
47
48 wps {
49 label = "wrc-1167ghbk2-s:red:wps";
50 gpios = <&gpio0 15 GPIO_ACTIVE_HIGH>;
51 };
52
53 power_red {
54 label = "wrc-1167ghbk2-s:red:power";
55 gpios = <&gpio0 16 GPIO_ACTIVE_HIGH>;
56 };
57 };
58
59 gpio-keys-polled {
60 compatible = "gpio-keys-polled";
61 poll-interval = <20>;
62
63 reset {
64 label = "reset";
65 gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
66 linux,code = <KEY_RESTART>;
67 };
68
69 wps {
70 label = "wps";
71 gpios = <&gpio0 18 GPIO_ACTIVE_LOW>;
72 linux,code = <KEY_WPS_BUTTON>;
73 };
74 };
75 };
76
77 &ethernet {
78 mtd-mac-address = <&factory 0xe000>;
79 };
80
81 &spi0 {
82 status = "okay";
83
84 m25p80@0 {
85 #address-cells = <1>;
86 #size-cells = <1>;
87 compatible = "jedec,spi-nor";
88 reg = <0>;
89 spi-max-frequency = <10000000>;
90 m25p,chunked-io = <32>;
91
92 partition@0 {
93 label = "u-boot";
94 reg = <0x0 0x30000>;
95 read-only;
96 };
97
98 partition@30000 {
99 label = "u-boot-env";
100 reg = <0x30000 0x10000>;
101 read-only;
102 };
103
104 factory: partition@40000 {
105 label = "factory";
106 reg = <0x40000 0x10000>;
107 read-only;
108 };
109
110 partition@50000 {
111 label = "firmware";
112 reg = <0x50000 0xf20000>;
113 };
114
115 partition@f70000 {
116 label = "user_data";
117 reg = <0xf70000 0x80000>;
118 read-only;
119 };
120
121 partition@ff0000 {
122 label = "NVRAM";
123 reg = <0xff0000 0x10000>;
124 read-only;
125 };
126 };
127 };
128
129 &pinctrl {
130 state_default: pinctrl0 {
131 gpio {
132 ralink,group = "i2c", "uart3", "jtag", "wdt";
133 ralink,function = "gpio";
134 };
135 };
136 };
137
138 &pcie {
139 status = "okay";
140 // WRC-1167GHBK2-S has MT7615D for 2.4/5 GHz wifi,
141 // but it's not supported in OpenWrt.
142 };
143
144 &xhci {
145 status = "disabled";
146 };