ramips: clean up useless dts partition labels
[openwrt/staging/jow.git] / target / linux / ramips / dts / mt7620a_zbtlink_zbt-ape522ii.dts
1 #include "mt7620a.dtsi"
2
3 #include <dt-bindings/gpio/gpio.h>
4 #include <dt-bindings/input/input.h>
5
6 / {
7 compatible = "zbtlink,zbt-ape522ii", "ralink,mt7620a-soc";
8 model = "Zbtlink ZBT-APE522II";
9
10 chosen {
11 bootargs = "console=ttyS0,115200";
12 };
13
14 leds {
15 compatible = "gpio-leds";
16
17 sys1 {
18 label = "green:sys1";
19 gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
20 };
21
22 sys2 {
23 label = "green:sys2";
24 gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
25 };
26
27 sys3 {
28 label = "green:sys3";
29 gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
30 };
31
32 sys4 {
33 label = "green:sys4";
34 gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
35 };
36
37 wlan2g4 {
38 label = "green:wlan2g4";
39 gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
40 };
41 };
42
43 keys {
44 compatible = "gpio-keys";
45
46 reset {
47 label = "reset";
48 gpios = <&gpio0 2 GPIO_ACTIVE_HIGH>;
49 linux,code = <KEY_RESTART>;
50 };
51 };
52 };
53
54 &gpio3 {
55 status = "okay";
56 };
57
58 &spi0 {
59 status = "okay";
60
61 flash@0 {
62 compatible = "jedec,spi-nor";
63 reg = <0>;
64 spi-max-frequency = <10000000>;
65
66 partitions {
67 compatible = "fixed-partitions";
68 #address-cells = <1>;
69 #size-cells = <1>;
70
71 partition@0 {
72 label = "u-boot";
73 reg = <0x0 0x30000>;
74 };
75
76 partition@30000 {
77 label = "u-boot-env";
78 reg = <0x30000 0x10000>;
79 read-only;
80 };
81
82 partition@40000 {
83 label = "factory";
84 reg = <0x40000 0x10000>;
85 read-only;
86
87 nvmem-layout {
88 compatible = "fixed-layout";
89 #address-cells = <1>;
90 #size-cells = <1>;
91
92 eeprom_factory_0: eeprom@0 {
93 reg = <0x0 0x200>;
94 };
95
96 eeprom_factory_8000: eeprom@8000 {
97 reg = <0x8000 0x200>;
98 };
99
100 macaddr_factory_4: macaddr@4 {
101 reg = <0x4 0x6>;
102 };
103 };
104 };
105
106 partition@50000 {
107 compatible = "denx,uimage";
108 label = "firmware";
109 reg = <0x50000 0xf80000>;
110 };
111 };
112 };
113 };
114
115 &ethernet {
116 pinctrl-names = "default";
117 pinctrl-0 = <&ephy_pins>;
118
119 nvmem-cells = <&macaddr_factory_4>;
120 nvmem-cell-names = "mac-address";
121
122 mediatek,portmap = "llllw";
123 };
124
125 &wmac {
126 pinctrl-names = "default", "pa_gpio";
127 pinctrl-0 = <&pa_pins>;
128 pinctrl-1 = <&pa_gpio_pins>;
129 nvmem-cells = <&eeprom_factory_0>;
130 nvmem-cell-names = "eeprom";
131 };
132
133 &pcie {
134 status = "okay";
135 };
136
137 &pcie0 {
138 mt76@0,0 {
139 reg = <0x0000 0 0 0 0>;
140 nvmem-cells = <&eeprom_factory_8000>;
141 nvmem-cell-names = "eeprom";
142 ieee80211-freq-limit = <5000000 6000000>;
143 };
144 };
145
146 &state_default {
147 gpio {
148 groups = "wled", "i2c", "uartf", "wdt";
149 function = "gpio";
150 };
151 };