ramips: speed up spi frequency for Youku YK-L1
[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 &gpio1 {
55 status = "okay";
56 };
57
58 &gpio2 {
59 status = "okay";
60 };
61
62 &gpio3 {
63 status = "okay";
64 };
65
66 &spi0 {
67 status = "okay";
68
69 flash@0 {
70 compatible = "jedec,spi-nor";
71 reg = <0>;
72 spi-max-frequency = <80000000>;
73 m25p,fast-read;
74
75 partitions {
76 compatible = "fixed-partitions";
77 #address-cells = <1>;
78 #size-cells = <1>;
79
80 partition@0 {
81 label = "u-boot";
82 reg = <0x0 0x30000>;
83 read-only;
84 };
85
86 partition@30000 {
87 label = "u-boot-env";
88 reg = <0x30000 0x10000>;
89 read-only;
90 };
91
92 factory: partition@40000 {
93 label = "factory";
94 reg = <0x40000 0x10000>;
95 read-only;
96 };
97
98 partition@50000 {
99 compatible = "denx,uimage";
100 label = "firmware";
101 reg = <0x50000 0x1fb0000>;
102 };
103 };
104 };
105 };
106
107 &state_default {
108 default {
109 groups = "i2c", "rgmii1", "ephy", "wled";
110 function = "gpio";
111 };
112 };
113
114 &ethernet {
115 pinctrl-names = "default";
116
117 mtd-mac-address = <&factory 0x4>;
118
119 mediatek,portmap = "llllw";
120 };
121
122 &wmac {
123 ralink,mtd-eeprom = <&factory 0x0>;
124 };
125
126 &sdhci {
127 status = "okay";
128 };
129
130 &ehci {
131 status = "okay";
132 };
133
134 &ohci {
135 status = "okay";
136 };