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