ramips: remove model name from LED labels
[openwrt/staging/hauke.git] / target / linux / ramips / dts / mt7620a_youku_yk1.dts
1 #include "mt7620a.dtsi"
2
3 #include <dt-bindings/gpio/gpio.h>
4 #include <dt-bindings/input/input.h>
5
6 / {
7 compatible = "youku,yk1", "ralink,mt7620a-soc";
8 model = "YOUKU YK1";
9
10 aliases {
11 led-boot = &led_power;
12 led-failsafe = &led_power;
13 led-running = &led_power;
14 led-upgrade = &led_power;
15 };
16
17 leds {
18 compatible = "gpio-leds";
19
20 wan {
21 label = "blue:wan";
22 gpios = <&gpio2 4 GPIO_ACTIVE_LOW>;
23 };
24
25 air {
26 label = "blue:air";
27 gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
28 };
29
30 usb {
31 label = "blue:usb";
32 gpios = <&gpio1 11 GPIO_ACTIVE_LOW>;
33 trigger-sources = <&ohci_port1>, <&ehci_port1>;
34 linux,default-trigger = "usbport";
35 };
36
37 led_power: power {
38 label = "blue:power";
39 gpios = <&gpio1 5 GPIO_ACTIVE_LOW>;
40 };
41 };
42
43 keys {
44 compatible = "gpio-keys";
45
46 reset {
47 label = "reset";
48 gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
49 linux,code = <KEY_RESTART>;
50 };
51 };
52 };
53
54 &gpio0 {
55 status = "okay";
56 };
57
58 &gpio1 {
59 status = "okay";
60 };
61
62 &gpio2 {
63 status = "okay";
64 };
65
66 &gpio3 {
67 status = "okay";
68 };
69
70 &spi0 {
71 status = "okay";
72
73 flash@0 {
74 compatible = "mx25l25635f", "jedec,spi-nor";
75 reg = <0>;
76 spi-max-frequency = <25000000>;
77 m25p,fast-read;
78
79 partitions {
80 compatible = "fixed-partitions";
81 #address-cells = <1>;
82 #size-cells = <1>;
83
84 partition@0 {
85 label = "u-boot";
86 reg = <0x0 0x30000>;
87 read-only;
88 };
89
90 partition@30000 {
91 label = "u-boot-env";
92 reg = <0x30000 0x10000>;
93 read-only;
94 };
95
96 factory: partition@40000 {
97 label = "factory";
98 reg = <0x40000 0x10000>;
99 read-only;
100 };
101
102 partition@50000 {
103 compatible = "denx,uimage";
104 label = "firmware";
105 reg = <0x50000 0x1fb0000>;
106 };
107 };
108 };
109 };
110
111 &state_default {
112 default {
113 groups = "i2c", "rgmii1", "ephy", "wled";
114 function = "gpio";
115 };
116 };
117
118 &ethernet {
119 pinctrl-names = "default";
120
121 mtd-mac-address = <&factory 0x4>;
122
123 mediatek,portmap = "llllw";
124 };
125
126 &wmac {
127 ralink,mtd-eeprom = <&factory 0x0>;
128 };
129
130 &sdhci {
131 status = "okay";
132 };
133
134 &ehci {
135 status = "okay";
136 };
137
138 &ohci {
139 status = "okay";
140 };