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