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