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