5 #include <dt-bindings/input/input.h>
6 #include <dt-bindings/gpio/gpio.h>
9 compatible = "mikrotik,rbm33g", "mediatek,mt7621-soc";
10 model = "MikroTik RouterBOARD M33G";
14 led-failsafe = &led_usr;
15 led-running = &led_usr;
16 led-upgrade = &led_usr;
20 device_type = "memory";
21 reg = <0x0 0x10000000>;
25 bootargs = "console=ttyS0,115200";
29 compatible = "gpio-leds";
32 label = "rbm33g:green:usr";
33 gpios = <&gpio0 0 GPIO_ACTIVE_HIGH>;
38 compatible = "gpio-keys-polled";
43 gpios = <&gpio0 18 GPIO_ACTIVE_LOW>;
44 linux,code = <KEY_RESTART>;
49 compatible = "regulator-fixed";
50 regulator-name = "pcie0_vcc";
52 regulator-min-microvolt = <3300000>;
53 regulator-max-microvolt = <3300000>;
54 gpio = <&gpio0 9 GPIO_ACTIVE_HIGH>;
61 compatible = "regulator-fixed";
62 regulator-name = "pcie1_vcc";
64 regulator-min-microvolt = <3300000>;
65 regulator-max-microvolt = <3300000>;
66 gpio = <&gpio0 10 GPIO_ACTIVE_HIGH>;
73 compatible = "regulator-fixed";
74 regulator-name = "pcie2_vcc";
76 regulator-min-microvolt = <3300000>;
77 regulator-max-microvolt = <3300000>;
78 gpio = <&gpio0 11 GPIO_ACTIVE_HIGH>;
85 compatible = "regulator-fixed";
86 regulator-name = "usb_vcc";
88 regulator-min-microvolt = <5000000>;
89 regulator-max-microvolt = <5000000>;
90 gpio = <&gpio0 12 GPIO_ACTIVE_HIGH>;
101 compatible = "jedec,spi-nor";
103 spi-max-frequency = <3125000>;
106 compatible = "fixed-partitions";
107 #address-cells = <1>;
111 label = "RouterBoot";
114 compatible = "fixed-partitions";
115 #address-cells = <1>;
119 label = "bootloader1";
124 hard_config: partition@f000 {
125 label = "hard_config";
126 reg = <0xf000 0x1000>;
131 label = "bootloader2";
132 reg = <0x10000 0xf000>;
137 label = "soft_config";
138 reg = <0x20000 0x1000>;
143 reg = <0x30000 0x1000>;
151 compatible = "jedec,spi-nor";
153 // XXX empiric value to obtain actual 10MHz SCK at the chip
154 spi-max-frequency = <3125000>;
157 compatible = "fixed-partitions";
158 #address-cells = <1>;
161 // Region <0x0 0x40000> seems reserved by OEM
164 compatible = "mikrotik,minor";
166 reg = <0x040000 0xFC0000>;
173 mtd-mac-address = <&hard_config 0x0010>;
174 mtd-mac-address-increment = <1>;
179 state_default: pinctrl0 {
181 ralink,group = "uart2", "wdt";
182 ralink,function = "gpio";