ramips: move compatible for Ubiquiti Edgerouter X to DTS file
[openwrt/staging/wigyori.git] / target / linux / ramips / dts / mt7621_d-team_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 aliases {
13 led-boot = &led_sys;
14 led-failsafe = &led_sys;
15 led-running = &led_sys;
16 led-upgrade = &led_sys;
17 };
18
19 chosen {
20 bootargs = "console=ttyS0,115200";
21 };
22
23 palmbus: palmbus@1E000000 {
24 i2c: i2c@900 {
25 status = "okay";
26
27 pcf8563: rtc@51 {
28 status = "okay";
29 compatible = "nxp,pcf8563";
30 reg = <0x51>;
31 };
32 };
33 };
34
35 leds {
36 compatible = "gpio-leds";
37
38 power {
39 label = "pbr-m1:blue:power";
40 gpios = <&gpio0 31 GPIO_ACTIVE_LOW>;
41 default-state = "on";
42 };
43
44 led_sys: sys {
45 label = "pbr-m1:blue:sys";
46 gpios = <&gpio1 0 GPIO_ACTIVE_LOW>;
47 };
48
49 internet {
50 label = "pbr-m1:blue:internet";
51 gpios = <&gpio0 29 GPIO_ACTIVE_LOW>;
52 };
53
54 wlan2g {
55 label = "pbr-m1:blue:wlan2g";
56 gpios = <&gpio1 1 GPIO_ACTIVE_LOW>;
57 };
58
59 wlan5g {
60 label = "pbr-m1:blue:wlan5g";
61 gpios = <&gpio0 28 GPIO_ACTIVE_LOW>;
62 };
63 };
64
65 keys {
66 compatible = "gpio-keys";
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 };
107
108 &spi0 {
109 status = "okay";
110
111 m25p80@0 {
112 compatible = "jedec,spi-nor";
113 reg = <0>;
114 spi-max-frequency = <10000000>;
115
116 partitions {
117 compatible = "fixed-partitions";
118 #address-cells = <1>;
119 #size-cells = <1>;
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 compatible = "denx,uimage";
141 label = "firmware";
142 reg = <0x50000 0xfb0000>;
143 };
144 };
145 };
146 };
147
148 &pcie {
149 status = "okay";
150 };
151
152 &pcie0 {
153 mt76@0,0 {
154 reg = <0x0000 0 0 0 0>;
155 mediatek,mtd-eeprom = <&factory 0x8000>;
156 ieee80211-freq-limit = <5000000 6000000>;
157 };
158 };
159
160 &pcie1 {
161 mt76@0,0 {
162 reg = <0x0000 0 0 0 0>;
163 mediatek,mtd-eeprom = <&factory 0x0000>;
164 };
165 };
166
167 &ethernet {
168 mtd-mac-address = <&factory 0xe000>;
169 };
170
171 &state_default {
172 gpio {
173 ralink,group = "wdt", "rgmii2", "jtag", "mdio";
174 ralink,function = "gpio";
175 };
176 };