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