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