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