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