ramips: fix whitespace and comment issues in dts
[openwrt/staging/wigyori.git] / target / linux / ramips / dts / RBM33G.dts
1 /dts-v1/;
2
3 #include "mt7621.dtsi"
4
5 #include <dt-bindings/input/input.h>
6 #include <dt-bindings/gpio/gpio.h>
7
8 / {
9 compatible = "mikrotik,rbm33g", "mediatek,mt7621-soc";
10 model = "MikroTik RouterBOARD M33G";
11
12 aliases {
13 led-status = &led_usr;
14 };
15
16 memory@0 {
17 device_type = "memory";
18 reg = <0x0 0x10000000>;
19 };
20
21 chosen {
22 bootargs = "console=ttyS0,115200";
23 };
24
25 gpio-leds {
26 compatible = "gpio-leds";
27
28 led_usr: usr {
29 label = "rbm33g:green:usr";
30 gpios = <&gpio0 0 GPIO_ACTIVE_HIGH>;
31 };
32
33 };
34
35 gpio-keys-polled {
36 compatible = "gpio-keys-polled";
37 poll-interval = <20>;
38
39 res {
40 label = "res";
41 gpios = <&gpio0 18 GPIO_ACTIVE_LOW>;
42 linux,code = <KEY_RESTART>;
43 };
44 };
45
46 pcie0_vcc_reg {
47 compatible = "regulator-fixed";
48 regulator-name = "pcie0_vcc";
49
50 regulator-min-microvolt = <3300000>;
51 regulator-max-microvolt = <3300000>;
52 gpio = <&gpio0 9 GPIO_ACTIVE_HIGH>;
53 enable-active-high;
54 regulator-boot-on;
55 regulator-always-on;
56 };
57
58 pcie1_vcc_reg {
59 compatible = "regulator-fixed";
60 regulator-name = "pcie1_vcc";
61
62 regulator-min-microvolt = <3300000>;
63 regulator-max-microvolt = <3300000>;
64 gpio = <&gpio0 10 GPIO_ACTIVE_HIGH>;
65 enable-active-high;
66 regulator-boot-on;
67 regulator-always-on;
68 };
69
70 pcie2_vcc_reg {
71 compatible = "regulator-fixed";
72 regulator-name = "pcie2_vcc";
73
74 regulator-min-microvolt = <3300000>;
75 regulator-max-microvolt = <3300000>;
76 gpio = <&gpio0 11 GPIO_ACTIVE_HIGH>;
77 enable-active-high;
78 regulator-boot-on;
79 regulator-always-on;
80 };
81
82 usb_vcc_reg {
83 compatible = "regulator-fixed";
84 regulator-name = "usb_vcc";
85
86 regulator-min-microvolt = <5000000>;
87 regulator-max-microvolt = <5000000>;
88 gpio = <&gpio0 12 GPIO_ACTIVE_HIGH>;
89 enable-active-high;
90 regulator-always-on;
91 };
92 };
93
94
95 &spi0 {
96 status = "okay";
97
98 w25q40@0 {
99 #address-cells = <1>;
100 #size-cells = <1>;
101 compatible = "jedec,spi-nor";
102 reg = <0>;
103 spi-max-frequency = <3125000>;
104
105 partition@0 {
106 label = "routerboot";
107 reg = <0x0 0xf000>;
108 read-only;
109 };
110
111 factory: partition@f000 {
112 label = "factory";
113 reg = <0xf000 0x71000>;
114 read-only;
115 };
116 };
117
118 w25q128@1 {
119 #address-cells = <1>;
120 #size-cells = <1>;
121 compatible = "jedec,spi-nor";
122 reg = <1>;
123 spi-max-frequency = <3125000>;
124
125 partition@40000 {
126 label = "firmware";
127 reg = <0x040000 0xFC0000>;
128 };
129 };
130 };
131
132 &ethernet {
133 mtd-mac-address = <&factory 0x0010>;
134 mtd-mac-address-increment = <1>;
135 };
136
137
138 &pinctrl {
139 state_default: pinctrl0 {
140 gpio {
141 ralink,group = "uart2", "wdt";
142 ralink,function = "gpio";
143 };
144 };
145 };
146
147 &sdhci {
148 status = "okay";
149 };
150
151 &i2c {
152 status = "okay";
153 };
154
155 &pcie {
156 status = "okay";
157 };