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