ath79: Add support for Ubiquiti Nanostation AC
[openwrt/staging/lynxis.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-status = &led_power;
14 };
15
16 gpio-leds {
17 compatible = "gpio-leds";
18 wan {
19 label = "youku-yk1:blue:wan";
20 gpios = <&gpio2 4 GPIO_ACTIVE_LOW>;
21 };
22 air {
23 label = "youku-yk1:blue:air";
24 gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
25 };
26 usb {
27 label = "youku-yk1:blue:usb";
28 gpios = <&gpio1 11 GPIO_ACTIVE_LOW>;
29 };
30 led_power: power {
31 label = "youku-yk1:blue:power";
32 gpios = <&gpio1 5 GPIO_ACTIVE_LOW>;
33 };
34 };
35
36 gpio-keys-polled {
37 compatible = "gpio-keys-polled";
38 poll-interval = <20>;
39 reset {
40 label = "reset";
41 gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
42 linux,code = <KEY_RESTART>;
43 };
44 };
45 };
46
47 &gpio0 {
48 status = "okay";
49 };
50
51 &gpio1 {
52 status = "okay";
53 };
54
55 &gpio2 {
56 status = "okay";
57 };
58
59 &gpio3 {
60 status = "okay";
61 };
62
63 &spi0 {
64 status = "okay";
65
66 m25p80@0 {
67 compatible = "jedec,spi-nor";
68 reg = <0>;
69 spi-max-frequency = <10000000>;
70
71 partitions {
72 compatible = "fixed-partitions";
73 #address-cells = <1>;
74 #size-cells = <1>;
75
76 partition@0 {
77 label = "u-boot";
78 reg = <0x0 0x30000>;
79 read-only;
80 };
81
82 partition@30000 {
83 label = "u-boot-env";
84 reg = <0x30000 0x10000>;
85 read-only;
86 };
87
88 factory: partition@40000 {
89 label = "factory";
90 reg = <0x40000 0x10000>;
91 read-only;
92 };
93
94 partition@50000 {
95 label = "firmware";
96 reg = <0x50000 0x1fb0000>;
97 };
98 };
99 };
100 };
101
102 &pinctrl {
103 state_default: pinctrl0 {
104 default {
105 ralink,group = "i2c", "rgmii1", "ephy", "wled";
106 ralink,function = "gpio";
107 };
108 };
109 };
110
111 &ethernet {
112 pinctrl-names = "default";
113 mtd-mac-address = <&factory 0x4>;
114 mediatek,portmap = "llllw";
115 };
116
117 &wmac {
118 ralink,mtd-eeprom = <&factory 0>;
119 };
120
121 &sdhci {
122 status = "okay";
123 };
124
125 &ehci {
126 status = "okay";
127 };
128
129 &ohci {
130 status = "okay";
131 };