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