ramips: fix indentation and other mistakes in .dts{, i} files
[openwrt.git] / target / linux / ramips / dts / PBR-M1.dts
1 /dts-v1/;
2
3 /include/ "mt7621.dtsi"
4
5 / {
6         compatible = "mediatek,mt7621-eval-board", "mediatek,mt7621-soc";
7         model = "PBR-M1";
8
9         memory@0 {
10                 device_type = "memory";
11                 reg = <0x0 0x10000000>;
12         };
13
14         chosen {
15                 bootargs = "console=ttyS0,115200";
16         };
17
18         sdhci@10130000 {
19                 status = "okay";
20         };
21
22         palmbus@1E000000 {
23                 spi@b00 {
24                         status = "okay";
25
26                         m25p80@0 {
27                                 #address-cells = <1>;
28                                 #size-cells = <1>;
29                                 compatible = "w25q256";
30                                 reg = <0 0>;
31                                 linux,modalias = "m25p80";
32                                 spi-max-frequency = <10000000>;
33
34                                 partition@0 {
35                                         label = "u-boot";
36                                         reg = <0x0 0x30000>;
37                                         read-only;
38                                 };
39
40                                 partition@30000 {
41                                         label = "u-boot-env";
42                                         reg = <0x30000 0x10000>;
43                                         read-only;
44                                 };
45
46                                 factory: partition@40000 {
47                                         label = "factory";
48                                         reg = <0x40000 0x10000>;
49                                         read-only;
50                                 };
51
52                                 partition@50000 {
53                                         label = "firmware";
54                                         reg = <0x50000 0xfb0000>;
55                                 };
56
57                         };
58                 };
59
60                 i2c@900 {
61                         compatible = "ralink,i2c-mt7621";
62                         reg = <0x900 0x100>;
63                         #address-cells = <1>;
64                         #size-cells = <0>;
65                         pinctrl-names = "default";
66                         pinctrl-0 = <&i2c_pins>;
67                         status = "okay";
68
69                         pcf8563: rtc@51 {
70                                 status = "okay";
71                                 compatible = "nxp,pcf8563";
72                                 reg = <0x51>;
73                         };
74                 };
75         };
76
77         pcie@1e140000 {
78                 status = "okay";
79
80                 pcie0 {
81                         mt76@0,0 {
82                                 reg = <0x0000 0 0 0 0>;
83                                 device_type = "pci";
84                                 mediatek,mtd-eeprom = <&factory 0x0000>;
85                                 mediatek,2ghz = <0>;
86                         };
87                 };
88
89                 pcie1 {
90                         mt76@1,0 {
91                                 reg = <0x0000 0 0 0 0>;
92                                 device_type = "pci";
93                                 mediatek,mtd-eeprom = <&factory 0x8000>;
94                                 mediatek,5ghz = <0>;
95                         };
96                 };
97         };
98
99         ethernet@1e100000 {
100                 mtd-mac-address = <&factory 0xe000>;
101         };
102
103         gpio-leds {
104                 compatible = "gpio-leds";
105
106                 buzzer {
107                         label = "pbr-m1:buzzer";
108                         gpios = <&gpio0 27 1>;
109                 };
110
111                 power {
112                         label = "pbr-m1:green:power";
113                         gpios = <&gpio0 25 1>;
114                 };
115
116                 sys {
117                         label = "pbr-m1:green:sys";
118                         gpios = <&gpio0 24 1>;
119                 };
120
121                 internet {
122                         label = "pbr-m1:green:internet";
123                         gpios = <&gpio0 23 1>;
124                 };
125         };
126
127         gpio-keys-polled {
128                 compatible = "gpio-keys-polled";
129                 #address-cells = <1>;
130                 #size-cells = <0>;
131                 poll-interval = <20>;
132
133                 reset {
134                         label = "reset";
135                         gpios = <&gpio0 18 1>;
136                         linux,code = <0x198>;
137                 };
138         };
139
140         pinctrl {
141                 state_default: pinctrl0 {
142                         gpio {
143                                 ralink,group = "wdt", "rgmii2", "wdt rst", "jtag", "mdio";
144                                 ralink,function = "gpio";
145                         };
146                 };
147         };
148 };