Merge branch 'v1.4' into v1.5
[librecmc/librecmc.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                 spi-max-frequency = <10000000>;
45
46                 partition@0 {
47                         label = "u-boot";
48                         reg = <0x0 0x30000>;
49                         read-only;
50                 };
51
52                 partition@30000 {
53                         label = "u-boot-env";
54                         reg = <0x30000 0x10000>;
55                         read-only;
56                 };
57
58                 factory: partition@40000 {
59                         label = "factory";
60                         reg = <0x40000 0x10000>;
61                         read-only;
62                 };
63
64                 partition@50000 {
65                         label = "firmware";
66                         reg = <0x50000 0xfb0000>;
67                 };
68         };
69 };
70
71 &ehci {
72         status = "okay";
73 };
74
75 &ohci {
76         status = "okay";
77 };
78
79 &pcie {
80         status = "okay";
81
82         pcie-bridge {
83                 mt76@0,0 {
84                         reg = <0x0000 0 0 0 0>;
85                         device_type = "pci";
86                         mediatek,mtd-eeprom = <&factory 0x8000>;
87                         mediatek,2ghz = <0>;
88                 };
89         };
90 };
91         
92 &wmac {
93         ralink,mtd-eeprom = <&factory 0>;
94 };
95
96 &pinctrl {
97         state_default: pinctrl0 {
98                 gpio {
99                         ralink,group = "uartf", "wled", "nd_sd";
100                         ralink,function = "gpio";
101                 };
102
103                 pa {
104                         ralink,group = "pa";
105                         ralink,function = "pa";
106                 };
107         };
108 };