30477a0ddfe07206e2b26c333e14b5b28f1ad0e7
[openwrt/staging/wigyori.git] / target / linux / ramips / dts / PBR-D1.dts
1 /dts-v1/;
2
3 #include "mt7628an.dtsi"
4
5 / {
6 compatible = "mediatek,pbr-d1", "mediatek,mt7628an-soc";
7 model = "PBR-D1";
8
9 chosen {
10 bootargs = "console=ttyS0,115200";
11 };
12
13 aliases {
14 serial0 = &uart2;
15 };
16
17 memory@0 {
18 device_type = "memory";
19 reg = <0x0 0x8000000>;
20 };
21
22 gpio-leds {
23 compatible = "gpio-leds";
24
25 usb {
26 label = "pbr-d1:orange:usb";
27 gpios = <&gpio0 0 1>;
28 default-state = "off";
29 };
30
31 power {
32 label = "pbr-d1:orange:power";
33 gpios = <&gpio0 14 1>;
34 default-state = "on";
35 };
36 };
37
38 gpio-keys-polled {
39 compatible = "gpio-keys-polled";
40 #address-cells = <1>;
41 #size-cells = <0>;
42 poll-interval = <20>;
43
44 wps {
45 label = "reset";
46 gpios = <&gpio1 38 1>;
47 linux,code = <0x211>;
48 };
49 };
50
51 wgpio: gpio-wifi {
52 compatible = "mediatek,gpio-wifi";
53 #address-cells = <1>;
54 #size-cells = <0>;
55 gpio-controller;
56 #gpio-cells = <2>;
57 };
58 };
59
60 &pinctrl {
61 state_default: pinctrl0 {
62 gpio {
63 ralink,group = "gpio";
64 ralink,function = "gpio";
65 };
66
67 i2c {
68 ralink,group = "i2c";
69 ralink,function = "gpio";
70 };
71
72 i2s {
73 ralink,group = "i2s";
74 ralink,function = "gpio";
75 };
76
77 spis {
78 ralink,group = "spis";
79 ralink,function = "gpio";
80 };
81
82 wdt {
83 ralink,group = "wdt";
84 ralink,function = "gpio";
85 };
86 };
87 };
88
89 &spi0 {
90 status = "okay";
91
92 pinctrl-names = "default";
93 pinctrl-0 = <&spi_pins>, <&spi_cs1_pins>;
94
95 m25p80@0 {
96 #address-cells = <1>;
97 #size-cells = <1>;
98 compatible = "jedec,spi-nor";
99 reg = <0>;
100 linux,modalias = "m25p80", "w25q128";
101 spi-max-frequency = <40000000>;
102 m25p,chunked-io = <31>;
103
104 partition@0 {
105 label = "u-boot";
106 reg = <0x0 0x30000>;
107 read-only;
108 };
109
110 partition@30000 {
111 label = "u-boot-env";
112 reg = <0x30000 0x10000>;
113 };
114
115 factory: partition@40000 {
116 label = "factory";
117 reg = <0x40000 0x10000>;
118 read-only;
119 };
120
121 partition@50000 {
122 label = "firmware";
123 reg = <0x50000 0x0fb0000>;
124 };
125 };
126
127 spidev@1 {
128 #address-cells = <1>;
129 #size-cells = <1>;
130 compatible = "linux,spidev";
131 reg = <1>;
132 spi-max-frequency = <40000000>;
133 };
134 };
135
136 &i2c {
137 status = "okay";
138 };
139
140 &uart1 {
141 status = "okay";
142 };
143
144 &uart2 {
145 status = "okay";
146 };
147
148 &pwm {
149 status = "okay";
150 };
151
152 &ethernet {
153 mtd-mac-address = <&factory 0x28>;
154 };
155
156 &sdhci {
157 status = "okay";
158 mediatek,cd-high;
159 };