ramips: fix whitespace and comment issues in dts
[openwrt/staging/wigyori.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 poll-interval = <20>;
16
17 reset {
18 label = "reset";
19 gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
20 linux,code = <KEY_RESTART>;
21 };
22 };
23 };
24
25 &gpio0 {
26 status = "okay";
27 };
28
29 &gpio2 {
30 status = "okay";
31 };
32
33 &gpio3 {
34 status = "okay";
35 };
36
37 &spi0 {
38 status = "okay";
39
40 m25p80@0 {
41 #address-cells = <1>;
42 #size-cells = <1>;
43 compatible = "jedec,spi-nor";
44 reg = <0>;
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
84 &pcie0 {
85 mt76@0,0 {
86 reg = <0x0000 0 0 0 0>;
87 mediatek,mtd-eeprom = <&factory 0x8000>;
88 ieee80211-freq-limit = <5000000 6000000>;
89 };
90 };
91
92 &wmac {
93 ralink,mtd-eeprom = <&factory 0>;
94 pinctrl-names = "default";
95 pinctrl-0 = <&pa_pins>;
96 };
97
98 &pinctrl {
99 state_default: pinctrl0 {
100 gpio {
101 ralink,group = "uartf", "wled", "nd_sd";
102 ralink,function = "gpio";
103 };
104 };
105 };