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";
13 led-status = &led_usr;
17 device_type = "memory";
18 reg = <0x0 0x10000000>;
22 bootargs = "console=ttyS0,115200";
26 compatible = "gpio-leds";
29 label = "rbm33g:green:usr";
30 gpios = <&gpio0 0 GPIO_ACTIVE_HIGH>;
35 compatible = "gpio-keys-polled";
40 gpios = <&gpio0 18 GPIO_ACTIVE_LOW>;
41 linux,code = <KEY_RESTART>;
46 compatible = "regulator-fixed";
47 regulator-name = "pcie0_vcc";
49 regulator-min-microvolt = <3300000>;
50 regulator-max-microvolt = <3300000>;
51 gpio = <&gpio0 9 GPIO_ACTIVE_HIGH>;
58 compatible = "regulator-fixed";
59 regulator-name = "pcie1_vcc";
61 regulator-min-microvolt = <3300000>;
62 regulator-max-microvolt = <3300000>;
63 gpio = <&gpio0 10 GPIO_ACTIVE_HIGH>;
70 compatible = "regulator-fixed";
71 regulator-name = "pcie2_vcc";
73 regulator-min-microvolt = <3300000>;
74 regulator-max-microvolt = <3300000>;
75 gpio = <&gpio0 11 GPIO_ACTIVE_HIGH>;
82 compatible = "regulator-fixed";
83 regulator-name = "usb_vcc";
85 regulator-min-microvolt = <5000000>;
86 regulator-max-microvolt = <5000000>;
87 gpio = <&gpio0 12 GPIO_ACTIVE_HIGH>;
98 compatible = "jedec,spi-nor";
100 spi-max-frequency = <3125000>;
103 compatible = "fixed-partitions";
104 #address-cells = <1>;
108 label = "RouterBoot";
111 compatible = "fixed-partitions";
112 #address-cells = <1>;
116 label = "bootloader1";
121 hard_config: partition@f000 {
122 label = "hard_config";
123 reg = <0xf000 0x1000>;
128 label = "bootloader2";
129 reg = <0x10000 0xf000>;
134 label = "soft_config";
135 reg = <0x20000 0x1000>;
140 reg = <0x30000 0x1000>;
148 compatible = "jedec,spi-nor";
150 // XXX empiric value to obtain actual 10MHz SCK at the chip
151 spi-max-frequency = <3125000>;
154 compatible = "fixed-partitions";
155 #address-cells = <1>;
158 // Region <0x0 0x40000> seems reserved by OEM
162 reg = <0x040000 0xFC0000>;
169 mtd-mac-address = <&hard_config 0x0010>;
170 mtd-mac-address-increment = <1>;
175 state_default: pinctrl0 {
177 ralink,group = "uart2", "wdt";
178 ralink,function = "gpio";