ramips: clean up useless dts partition labels
[openwrt/staging/jow.git] / target / linux / ramips / dts / mt7628an_d-team_pbr-d1.dts
1 #include "mt7628an.dtsi"
2
3 #include <dt-bindings/gpio/gpio.h>
4 #include <dt-bindings/input/input.h>
5 #include <dt-bindings/leds/common.h>
6
7 / {
8 compatible = "d-team,pbr-d1", "mediatek,mt7628an-soc";
9 model = "PBR-D1";
10
11 aliases {
12 led-boot = &led_power;
13 led-failsafe = &led_power;
14 led-running = &led_power;
15 led-upgrade = &led_power;
16 };
17
18 chosen {
19 bootargs = "console=ttyS0,115200";
20 };
21
22 aliases {
23 serial0 = &uart2;
24 };
25
26 leds {
27 compatible = "gpio-leds";
28
29 usb {
30 function = LED_FUNCTION_USB;
31 color = <LED_COLOR_ID_ORANGE>;
32 gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
33 trigger-sources = <&ohci_port1>, <&ehci_port1>;
34 linux,default-trigger = "usbport";
35 };
36
37 led_power: power {
38 function = LED_FUNCTION_POWER;
39 color = <LED_COLOR_ID_ORANGE>;
40 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
41 default-state = "on";
42 };
43 };
44
45 keys {
46 compatible = "gpio-keys";
47
48 reset {
49 label = "reset";
50 gpios = <&gpio 70 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 &state_default {
65 gpio {
66 groups = "gpio";
67 function = "gpio";
68 };
69
70 i2c {
71 groups = "i2c";
72 function = "gpio";
73 };
74
75 i2s {
76 groups = "i2s";
77 function = "gpio";
78 };
79
80 spis {
81 groups = "spis";
82 function = "gpio";
83 };
84
85 wdt {
86 groups = "wdt";
87 function = "gpio";
88 };
89 };
90
91 &spi0 {
92 status = "okay";
93
94 pinctrl-names = "default";
95 pinctrl-0 = <&spi_pins>, <&spi_cs1_pins>;
96
97 flash@0 {
98 compatible = "jedec,spi-nor";
99 reg = <0>;
100 spi-max-frequency = <40000000>;
101
102 partitions {
103 compatible = "fixed-partitions";
104 #address-cells = <1>;
105 #size-cells = <1>;
106
107 partition@0 {
108 label = "u-boot";
109 reg = <0x0 0x30000>;
110 read-only;
111 };
112
113 partition@30000 {
114 label = "u-boot-env";
115 reg = <0x30000 0x10000>;
116 };
117
118 partition@40000 {
119 label = "factory";
120 reg = <0x40000 0x10000>;
121 read-only;
122
123 nvmem-layout {
124 compatible = "fixed-layout";
125 #address-cells = <1>;
126 #size-cells = <1>;
127
128 macaddr_factory_28: macaddr@28 {
129 reg = <0x28 0x6>;
130 };
131 };
132 };
133
134 partition@50000 {
135 compatible = "denx,uimage";
136 label = "firmware";
137 reg = <0x50000 0x0fb0000>;
138 };
139 };
140 };
141
142 spidev@1 {
143 #address-cells = <1>;
144 #size-cells = <1>;
145 compatible = "linux,spidev";
146 reg = <1>;
147 spi-max-frequency = <40000000>;
148 };
149 };
150
151 &i2c {
152 status = "okay";
153 };
154
155 &uart1 {
156 status = "okay";
157 };
158
159 &uart2 {
160 status = "okay";
161 };
162
163 &pwm {
164 status = "okay";
165 };
166
167 &ethernet {
168 nvmem-cells = <&macaddr_factory_28>;
169 nvmem-cell-names = "mac-address";
170 };
171
172 &sdhci {
173 status = "okay";
174 mediatek,cd-high;
175 };