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