ramips: fix whitespace issues in DTS files
[oweals/openwrt.git] / target / linux / ramips / dts / mt7621_gnubee_gb-pc2.dts
1 /dts-v1/;
2
3 #include "mt7621.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 / {
9         compatible = "gnubee,gb-pc2", "mediatek,mt7621-soc";
10         model = "GB-PC2";
11
12         aliases {
13                 led-boot = &led_status;
14                 led-failsafe = &led_status;
15                 led-running = &led_status;
16                 led-upgrade = &led_status;
17         };
18
19         chosen {
20                 bootargs = "console=ttyS0,57600";
21         };
22
23         keys {
24                 compatible = "gpio-keys-polled";
25                 poll-interval = <20>;
26
27                 reset {
28                         label = "reset";
29                         gpios = <&gpio0 18 GPIO_ACTIVE_HIGH>;
30                         linux,code = <KEY_RESTART>;
31                 };
32         };
33
34         leds {
35                 compatible = "gpio-leds";
36
37                 system {
38                         label = "gb-pc2:green:system";
39                         gpios = <&gpio0 6 GPIO_ACTIVE_LOW>;
40                 };
41
42                 led_status: status {
43                         label = "gb-pc2:green:status";
44                         gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
45                 };
46
47                 lan1 {
48                         label = "gb-pc2:green:lan1";
49                         gpios = <&gpio0 24 GPIO_ACTIVE_LOW>;
50                 };
51
52                 lan2 {
53                         label = "gb-pc2:green:lan2";
54                         gpios = <&gpio0 25 GPIO_ACTIVE_LOW>;
55                 };
56
57                 lan3-yellow {
58                         label = "gb-pc2:yellow:lan3";
59                         gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
60                 };
61
62                 lan3-green {
63                         label = "gb-pc2:green:lan3";
64                         gpios = <&gpio0 15 GPIO_ACTIVE_LOW>;
65                 };
66         };
67 };
68
69 &sdhci {
70         status = "okay";
71 };
72
73 &spi0 {
74         status = "okay";
75
76         m25p80@0 {
77                 compatible = "jedec,spi-nor";
78                 reg = <0>;
79                 spi-max-frequency = <80000000>;
80                 m25p,fast-read;
81
82                 partitions {
83                         compatible = "fixed-partitions";
84                         #address-cells = <1>;
85                         #size-cells = <1>;
86
87                         partition@0 {
88                                 label = "u-boot";
89                                 reg = <0x0 0x30000>;
90                                 read-only;
91                         };
92
93                         partition@30000 {
94                                 label = "u-boot-env";
95                                 reg = <0x30000 0x10000>;
96                                 read-only;
97                         };
98
99                         factory: partition@40000 {
100                                 label = "factory";
101                                 reg = <0x40000 0x10000>;
102                                 read-only;
103                         };
104
105                         partition@50000 {
106                                 compatible = "denx,uimage";
107                                 label = "firmware";
108                                 reg = <0x50000 0x1fb0000>;
109                         };
110                 };
111         };
112 };
113
114 &pcie {
115         status = "okay";
116 };
117
118 &ethernet {
119         mtd-mac-address = <&factory 0xe000>;
120 };
121
122 &pinctrl {
123         state_default: pinctrl0 {
124                 gpio {
125                         ralink,group = "jtag", "rgmii2", "uart3", "wdt";
126                         ralink,function = "gpio";
127                 };
128         };
129 };