ramips: dts: drop memory nodes
[openwrt/staging/jow.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-polled";
67 poll-interval = <20>;
68
69 reset {
70 label = "reset";
71 gpios = <&gpio0 18 GPIO_ACTIVE_LOW>;
72 linux,code = <KEY_RESTART>;
73 };
74 };
75
76 gpio_export {
77 compatible = "gpio-export";
78 #size-cells = <0>;
79
80 power_usb2 {
81 gpio-export,name = "power_usb2";
82 gpio-export,output = <1>;
83 gpios = <&gpio0 22 GPIO_ACTIVE_HIGH>;
84 };
85
86 power_usb3 {
87 gpio-export,name = "power_usb3";
88 gpio-export,output = <1>;
89 gpios = <&gpio0 25 GPIO_ACTIVE_HIGH>;
90 };
91
92 power_sata {
93 gpio-export,name = "power_sata";
94 gpio-export,output = <1>;
95 gpios = <&gpio0 27 GPIO_ACTIVE_HIGH>;
96 };
97 };
98
99 beeper: beeper {
100 compatible = "gpio-beeper";
101 gpios = <&gpio0 26 GPIO_ACTIVE_LOW>;
102 };
103 };
104
105 &sdhci {
106 status = "okay";
107 };
108
109 &spi0 {
110 status = "okay";
111
112 m25p80@0 {
113 compatible = "jedec,spi-nor";
114 reg = <0>;
115 spi-max-frequency = <10000000>;
116
117 partitions {
118 compatible = "fixed-partitions";
119 #address-cells = <1>;
120 #size-cells = <1>;
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 compatible = "denx,uimage";
142 label = "firmware";
143 reg = <0x50000 0xfb0000>;
144 };
145 };
146 };
147 };
148
149 &pcie {
150 status = "okay";
151 };
152
153 &pcie0 {
154 mt76@0,0 {
155 reg = <0x0000 0 0 0 0>;
156 mediatek,mtd-eeprom = <&factory 0x8000>;
157 ieee80211-freq-limit = <5000000 6000000>;
158 };
159 };
160
161 &pcie1 {
162 mt76@0,0 {
163 reg = <0x0000 0 0 0 0>;
164 mediatek,mtd-eeprom = <&factory 0x0000>;
165 };
166 };
167
168 &ethernet {
169 mtd-mac-address = <&factory 0xe000>;
170 };
171
172 &pinctrl {
173 state_default: pinctrl0 {
174 gpio {
175 ralink,group = "wdt", "rgmii2", "jtag", "mdio";
176 ralink,function = "gpio";
177 };
178 };
179 };