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