treewide: dts: use keycode defines from input dt-binding
[openwrt/staging/wigyori.git] / target / linux / ramips / dts / PBR-M1.dts
1 /dts-v1/;
2
3 #include "mt7621.dtsi"
4
5 #include <dt-bindings/input/input.h>
6
7 / {
8 compatible = "mediatek,mt7621-eval-board", "mediatek,mt7621-soc";
9 model = "PBR-M1";
10
11 memory@0 {
12 device_type = "memory";
13 reg = <0x0 0x10000000>;
14 };
15
16 chosen {
17 bootargs = "console=ttyS0,115200";
18 };
19
20 palmbus: palmbus@1E000000 {
21 i2c: i2c@900 {
22 status = "okay";
23
24 pcf8563: rtc@51 {
25 status = "okay";
26 compatible = "nxp,pcf8563";
27 reg = <0x51>;
28 };
29 };
30 };
31
32 gpio-leds {
33 compatible = "gpio-leds";
34
35 power {
36 label = "pbr-m1:blue:power";
37 gpios = <&gpio0 31 1>;
38 };
39
40 sys {
41 label = "pbr-m1:blue:sys";
42 gpios = <&gpio1 0 1>;
43 };
44
45 internet {
46 label = "pbr-m1:blue:internet";
47 gpios = <&gpio0 29 1>;
48 };
49
50 wlan2g {
51 label = "pbr-m1:blue:wlan2g";
52 gpios = <&gpio1 1 1>;
53 };
54
55 wlan5g {
56 label = "pbr-m1:blue:wlan5g";
57 gpios = <&gpio0 28 1>;
58 };
59 };
60
61 gpio-keys-polled {
62 compatible = "gpio-keys-polled";
63 #address-cells = <1>;
64 #size-cells = <0>;
65 poll-interval = <20>;
66
67 reset {
68 label = "reset";
69 gpios = <&gpio0 18 1>;
70 linux,code = <KEY_RESTART>;
71 };
72 };
73
74 gpio_export {
75 compatible = "gpio-export";
76 #size-cells = <0>;
77
78 power_usb2 {
79 gpio-export,name = "power_usb2";
80 gpio-export,output = <1>;
81 gpios = <&gpio0 22 0>;
82 };
83
84 power_usb3 {
85 gpio-export,name = "power_usb3";
86 gpio-export,output = <1>;
87 gpios = <&gpio0 25 0>;
88 };
89
90 power_sata {
91 gpio-export,name = "power_sata";
92 gpio-export,output = <1>;
93 gpios = <&gpio0 27 0>;
94 };
95 };
96
97 beeper: beeper {
98 compatible = "gpio-beeper";
99 gpios = <&gpio0 26 1>;
100 };
101 };
102
103 &sdhci {
104 status = "okay";
105 pinctrl-names = "default";
106 pinctrl-0 = <&sdhci_pins>;
107 };
108
109 &xhci {
110 status = "okay";
111 };
112
113 &spi0 {
114 status = "okay";
115
116 m25p80@0 {
117 #address-cells = <1>;
118 #size-cells = <1>;
119 compatible = "jedec,spi-nor";
120 reg = <0>;
121 linux,modalias = "m25p80";
122 spi-max-frequency = <10000000>;
123
124 partition@0 {
125 label = "u-boot";
126 reg = <0x0 0x30000>;
127 read-only;
128 };
129
130 partition@30000 {
131 label = "u-boot-env";
132 reg = <0x30000 0x10000>;
133 read-only;
134 };
135
136 factory: partition@40000 {
137 label = "factory";
138 reg = <0x40000 0x10000>;
139 read-only;
140 };
141
142 partition@50000 {
143 label = "firmware";
144 reg = <0x50000 0xfb0000>;
145 };
146 };
147 };
148
149 &pcie {
150 status = "okay";
151
152 pcie0 {
153 mt76@0,0 {
154 reg = <0x0000 0 0 0 0>;
155 device_type = "pci";
156 mediatek,mtd-eeprom = <&factory 0x8000>;
157 mediatek,2ghz = <0>;
158 };
159 };
160
161 pcie1 {
162 mt76@1,0 {
163 reg = <0x0000 0 0 0 0>;
164 device_type = "pci";
165 mediatek,mtd-eeprom = <&factory 0x0000>;
166 mediatek,5ghz = <0>;
167 };
168 };
169 };
170
171 &ethernet {
172 mtd-mac-address = <&factory 0xe000>;
173 };
174
175
176
177 &pinctrl {
178 state_default: pinctrl0 {
179 gpio {
180 ralink,group = "wdt", "rgmii2", "jtag", "mdio";
181 ralink,function = "gpio";
182 };
183 };
184 };