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