ramips: fix RBM33G name
[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 #address-cells = <1>;
38 #size-cells = <0>;
39 poll-interval = <20>;
40
41 res {
42 label = "res";
43 gpios = <&gpio0 18 GPIO_ACTIVE_LOW>;
44 linux,code = <KEY_RESTART>;
45 };
46 };
47
48 pcie0_vcc_reg {
49 compatible = "regulator-fixed";
50 regulator-name = "pcie0_vcc";
51
52 regulator-min-microvolt = <3300000>;
53 regulator-max-microvolt = <3300000>;
54 gpio = <&gpio0 9 GPIO_ACTIVE_HIGH>;
55 enable-active-high;
56 regulator-boot-on;
57 regulator-always-on;
58 };
59
60 pcie1_vcc_reg {
61 compatible = "regulator-fixed";
62 regulator-name = "pcie1_vcc";
63
64 regulator-min-microvolt = <3300000>;
65 regulator-max-microvolt = <3300000>;
66 gpio = <&gpio0 10 GPIO_ACTIVE_HIGH>;
67 enable-active-high;
68 regulator-boot-on;
69 regulator-always-on;
70 };
71
72 pcie2_vcc_reg {
73 compatible = "regulator-fixed";
74 regulator-name = "pcie2_vcc";
75
76 regulator-min-microvolt = <3300000>;
77 regulator-max-microvolt = <3300000>;
78 gpio = <&gpio0 11 GPIO_ACTIVE_HIGH>;
79 enable-active-high;
80 regulator-boot-on;
81 regulator-always-on;
82 };
83
84 usb_vcc_reg {
85 compatible = "regulator-fixed";
86 regulator-name = "usb_vcc";
87
88 regulator-min-microvolt = <5000000>;
89 regulator-max-microvolt = <5000000>;
90 gpio = <&gpio0 12 GPIO_ACTIVE_HIGH>;
91 enable-active-high;
92 regulator-always-on;
93 };
94 };
95
96
97 &spi0 {
98 status = "okay";
99
100 w25q40@0 {
101 #address-cells = <1>;
102 #size-cells = <1>;
103 compatible = "jedec,spi-nor";
104 reg = <0>;
105 spi-max-frequency = <3125000>;
106
107 partition@0 {
108 label = "routerboot";
109 reg = <0x0 0xf000>;
110 read-only;
111 };
112
113 factory: partition@f000 {
114 label = "factory";
115 reg = <0xf000 0x71000>;
116 read-only;
117 };
118
119 };
120
121 w25q128@0 {
122 #address-cells = <1>;
123 #size-cells = <1>;
124 compatible = "jedec,spi-nor";
125 reg = <1>;
126 spi-max-frequency = <3125000>;
127
128 partition@40000 {
129 label = "firmware";
130 reg = <0x040000 0xFC0000>;
131 };
132 };
133 };
134
135 &ethernet {
136 mtd-mac-address = <&factory 0x0010>;
137 mtd-mac-address-increment = <1>;
138 };
139
140
141 &pinctrl {
142 state_default: pinctrl0 {
143 gpio {
144 ralink,group = "uart2", "wdt";
145 ralink,function = "gpio";
146 };
147 };
148 };
149
150 &sdhci {
151 status = "okay";
152 };
153
154 &i2c {
155 status = "okay";
156 };
157
158 &pcie {
159 status = "okay";
160 };