25086b03390229578c03defa43cc96fe9f6f7df7
[openwrt/staging/wigyori.git] / target / linux / ramips / dts / Y1.dtsi
1 #include "mt7620a.dtsi"
2
3 / {
4 chosen {
5 bootargs = "console=ttyS0,115200";
6 };
7
8 gpio-keys-polled {
9 compatible = "gpio-keys-polled";
10 #address-cells = <1>;
11 #size-cells = <0>;
12 poll-interval = <20>;
13
14 reset {
15 label = "reset";
16 gpios = <&gpio0 11 1>;
17 linux,code = <0x198>;
18 };
19 };
20 };
21
22 &gpio0 {
23 status = "okay";
24 };
25
26 &gpio2 {
27 status = "okay";
28 };
29
30 &gpio3 {
31 status = "okay";
32 };
33
34 &spi0 {
35 status = "okay";
36
37 m25p80@0 {
38 #address-cells = <1>;
39 #size-cells = <1>;
40 compatible = "jedec,spi-nor";
41 reg = <0 0>;
42 linux,modalias = "m25p80", "w25q128";
43 spi-max-frequency = <10000000>;
44
45 partition@0 {
46 label = "u-boot";
47 reg = <0x0 0x30000>;
48 read-only;
49 };
50
51 partition@30000 {
52 label = "u-boot-env";
53 reg = <0x30000 0x10000>;
54 read-only;
55 };
56
57 factory: partition@40000 {
58 label = "factory";
59 reg = <0x40000 0x10000>;
60 read-only;
61 };
62
63 partition@50000 {
64 label = "firmware";
65 reg = <0x50000 0xfb0000>;
66 };
67 };
68 };
69
70 &ehci {
71 status = "okay";
72 };
73
74 &ohci {
75 status = "okay";
76 };
77
78 &pcie {
79 status = "okay";
80
81 pcie-bridge {
82 mt76@0,0 {
83 reg = <0x0000 0 0 0 0>;
84 device_type = "pci";
85 mediatek,mtd-eeprom = <&factory 0x8000>;
86 mediatek,2ghz = <0>;
87 };
88 };
89 };
90
91 &wmac {
92 ralink,mtd-eeprom = <&factory 0>;
93 };
94
95 &pinctrl {
96 state_default {
97 gpio {
98 ralink,group = "uartf", "wled", "nd_sd";
99 ralink,function = "gpio";
100 };
101
102 pa {
103 ralink,group = "pa";
104 ralink,function = "pa";
105 };
106 };
107 };