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