ramips: clean up useless dts partition labels
[openwrt/staging/jow.git] / target / linux / ramips / dts / mt7620a_youku_yk-l1.dtsi
1 #include "mt7620a.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 aliases {
9 led-boot = &led_power;
10 led-failsafe = &led_power;
11 led-running = &led_power;
12 led-upgrade = &led_power;
13 label-mac-device = &ethernet;
14 };
15
16 leds {
17 compatible = "gpio-leds";
18
19 led_wlan: wlan {
20 function = LED_FUNCTION_WLAN;
21 color = <LED_COLOR_ID_BLUE>;
22 gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
23 linux,default-trigger = "phy0tpt";
24 };
25
26 usb {
27 function = LED_FUNCTION_USB;
28 color = <LED_COLOR_ID_BLUE>;
29 gpios = <&gpio1 11 GPIO_ACTIVE_LOW>;
30 trigger-sources = <&ohci_port1>, <&ehci_port1>;
31 linux,default-trigger = "usbport";
32 };
33
34 led_power: power {
35 function = LED_FUNCTION_POWER;
36 color = <LED_COLOR_ID_BLUE>;
37 gpios = <&gpio1 5 GPIO_ACTIVE_LOW>;
38 };
39 };
40
41 keys {
42 compatible = "gpio-keys";
43
44 reset {
45 label = "reset";
46 gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
47 linux,code = <KEY_RESTART>;
48 };
49 };
50 };
51
52 &gpio1 {
53 status = "okay";
54 };
55
56 &gpio3 {
57 status = "okay";
58 };
59
60 &spi0 {
61 status = "okay";
62
63 flash0: flash@0 {
64 compatible = "jedec,spi-nor";
65 reg = <0>;
66 spi-max-frequency = <80000000>;
67 m25p,fast-read;
68
69 partitions {
70 compatible = "fixed-partitions";
71 #address-cells = <1>;
72 #size-cells = <1>;
73
74 partition@0 {
75 label = "u-boot";
76 reg = <0x0 0x30000>;
77 read-only;
78 };
79
80 partition@30000 {
81 label = "u-boot-env";
82 reg = <0x30000 0x10000>;
83 read-only;
84 };
85
86 partition@40000 {
87 label = "factory";
88 reg = <0x40000 0x10000>;
89 read-only;
90
91 nvmem-layout {
92 compatible = "fixed-layout";
93 #address-cells = <1>;
94 #size-cells = <1>;
95
96 eeprom_factory_0: eeprom@0 {
97 reg = <0x0 0x200>;
98 };
99
100 eeprom_factory_8000: eeprom@8000 {
101 reg = <0x8000 0x200>;
102 };
103
104 macaddr_factory_28: macaddr@28 {
105 reg = <0x28 0x6>;
106 };
107 };
108 };
109
110 firmware: partition@50000 {
111 compatible = "openwrt,uimage", "denx,uimage";
112 label = "firmware";
113 openwrt,ih-magic = <0x12291000>;
114 /* reg property is set based on flash size in DTS files */
115 };
116 };
117 };
118 };
119
120 &state_default {
121 default {
122 groups = "i2c", "rgmii1", "wled";
123 function = "gpio";
124 };
125 };
126
127 &ethernet {
128 pinctrl-names = "default";
129 pinctrl-0 = <&ephy_pins>;
130
131 nvmem-cells = <&macaddr_factory_28>;
132 nvmem-cell-names = "mac-address";
133
134 mediatek,portmap = "llllw";
135 };
136
137 &wmac {
138 nvmem-cells = <&eeprom_factory_0>;
139 nvmem-cell-names = "eeprom";
140 pinctrl-names = "default", "pa_gpio";
141 pinctrl-0 = <&pa_pins>;
142 pinctrl-1 = <&pa_gpio_pins>;
143 };
144
145 &sdhci {
146 status = "okay";
147 };
148
149 &ehci {
150 status = "okay";
151 };
152
153 &ohci {
154 status = "okay";
155 };