ramips: Change all '/include/' clauses to '#include' so preprocessing can be done...
[openwrt.git] / target / linux / ramips / dts / OY-0001.dts
1 /dts-v1/;
2
3 #include "mt7620a.dtsi"
4
5 / {
6         compatible = "ralink,mt7620a-soc";
7         model = "OY-0001";
8
9         chosen {
10                 bootargs = "console=ttyS0,115200";
11         };
12
13         palmbus@10000000 {
14                 gpio2: gpio@660 {
15                         status = "okay";
16                 };
17
18                 gpio3: gpio@688 {
19                         status = "okay";
20                 };
21
22                 spi@b00 {
23                         status = "okay";
24
25                         m25p80@0 {
26                                 #address-cells = <1>;
27                                 #size-cells = <1>;
28                                 compatible = "jedec,spi-nor";
29                                 reg = <0 0>;
30                                 linux,modalias = "m25p80", "w25q128";
31                                 spi-max-frequency = <10000000>;
32
33                                 partition@0 {
34                                         label = "u-boot";
35                                         reg = <0x0 0x30000>;
36                                         read-only;
37                                 };
38
39                                 partition@30000 {
40                                         label = "u-boot-env";
41                                         reg = <0x30000 0x10000>;
42                                         read-only;
43                                 };
44
45                                 factory: partition@40000 {
46                                         label = "factory";
47                                         reg = <0x40000 0x10000>;
48                                         read-only;
49                                 };
50
51                                 partition@50000 {
52                                         label = "firmware";
53                                         reg = <0x50000 0xfb0000>;
54                                 };
55
56                         };
57                 };
58         };
59
60         pinctrl {
61                 state_default: pinctrl0 {
62                         gpio {
63                                 ralink,group = "i2c", "uartf", "rgmii1", "rgmii2", "wled", "nd_sd";
64                                 ralink,function = "gpio";
65                         };
66                 };
67         };
68
69         ethernet@10100000 {
70                 pinctrl-names = "default";
71                 pinctrl-0 = <&ephy_pins>;
72                 mediatek,portmap = "llllw";
73         };
74
75         gsw@10110000 {
76                 mediatek,port4 = "ephy";
77         };
78
79         wmac@10180000 {
80                 ralink,mtd-eeprom = <&factory 0>;
81         };
82
83         gpio-leds {
84                 compatible = "gpio-leds";
85
86                 powerled {
87                         label = "oy-0001:green:power";
88                         gpios = <&gpio0 9 1>;
89                 };
90
91                 wifiled {
92                         label = "oy-0001:green:wifi";
93                         gpios = <&gpio3 0 1>;
94                 };
95         };
96
97         sdhci@10130000 {
98                 status = "okay";
99         };
100
101         ehci@101c0000 {
102                 status = "okay";
103         };
104
105         ohci@101c1000 {
106                 status = "okay";
107         };
108
109         pcie@10140000 {
110                 status = "okay";
111         };
112
113         gpio-keys-polled {
114                 compatible = "gpio-keys-polled";
115                 #address-cells = <1>;
116                 #size-cells = <0>;
117                 poll-interval = <20>;
118
119                 s1 {
120                         label = "reset";
121                         gpios = <&gpio0 1 1>;
122                         linux,code = <0x198>;
123                 };
124         };
125 };