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>;
36 compatible = "gpio-keys-polled";
41 gpios = <&gpio0 18 GPIO_ACTIVE_LOW>;
42 linux,code = <KEY_RESTART>;
47 compatible = "regulator-fixed";
48 regulator-name = "pcie0_vcc";
50 regulator-min-microvolt = <3300000>;
51 regulator-max-microvolt = <3300000>;
52 gpio = <&gpio0 9 GPIO_ACTIVE_HIGH>;
59 compatible = "regulator-fixed";
60 regulator-name = "pcie1_vcc";
62 regulator-min-microvolt = <3300000>;
63 regulator-max-microvolt = <3300000>;
64 gpio = <&gpio0 10 GPIO_ACTIVE_HIGH>;
71 compatible = "regulator-fixed";
72 regulator-name = "pcie2_vcc";
74 regulator-min-microvolt = <3300000>;
75 regulator-max-microvolt = <3300000>;
76 gpio = <&gpio0 11 GPIO_ACTIVE_HIGH>;
83 compatible = "regulator-fixed";
84 regulator-name = "usb_vcc";
86 regulator-min-microvolt = <5000000>;
87 regulator-max-microvolt = <5000000>;
88 gpio = <&gpio0 12 GPIO_ACTIVE_HIGH>;
99 compatible = "jedec,spi-nor";
101 spi-max-frequency = <3125000>;
104 compatible = "fixed-partitions";
105 #address-cells = <1>;
109 label = "RouterBoot";
112 compatible = "fixed-partitions";
113 #address-cells = <1>;
117 label = "bootloader1";
122 hard_config: partition@f000 {
123 label = "hard_config";
124 reg = <0xf000 0x1000>;
129 label = "bootloader2";
130 reg = <0x10000 0xf000>;
135 label = "soft_config";
136 reg = <0x20000 0x1000>;
141 reg = <0x30000 0x1000>;
149 compatible = "jedec,spi-nor";
151 // XXX empiric value to obtain actual 10MHz SCK at the chip
152 spi-max-frequency = <3125000>;
155 compatible = "fixed-partitions";
156 #address-cells = <1>;
159 // Region <0x0 0x40000> seems reserved by OEM
163 reg = <0x040000 0xFC0000>;
170 mtd-mac-address = <&hard_config 0x0010>;
171 mtd-mac-address-increment = <1>;
176 state_default: pinctrl0 {
178 ralink,group = "uart2", "wdt";
179 ralink,function = "gpio";