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