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 bootargs = "console=ttyS0,115200";
24 compatible = "gpio-leds";
27 label = "rbm33g:green:usr";
28 gpios = <&gpio0 0 GPIO_ACTIVE_HIGH>;
33 compatible = "gpio-keys-polled";
38 gpios = <&gpio0 18 GPIO_ACTIVE_LOW>;
39 linux,code = <KEY_RESTART>;
44 compatible = "regulator-fixed";
45 regulator-name = "pcie0_vcc";
47 regulator-min-microvolt = <3300000>;
48 regulator-max-microvolt = <3300000>;
49 gpio = <&gpio0 9 GPIO_ACTIVE_HIGH>;
56 compatible = "regulator-fixed";
57 regulator-name = "pcie1_vcc";
59 regulator-min-microvolt = <3300000>;
60 regulator-max-microvolt = <3300000>;
61 gpio = <&gpio0 10 GPIO_ACTIVE_HIGH>;
68 compatible = "regulator-fixed";
69 regulator-name = "pcie2_vcc";
71 regulator-min-microvolt = <3300000>;
72 regulator-max-microvolt = <3300000>;
73 gpio = <&gpio0 11 GPIO_ACTIVE_HIGH>;
80 compatible = "regulator-fixed";
81 regulator-name = "usb_vcc";
83 regulator-min-microvolt = <5000000>;
84 regulator-max-microvolt = <5000000>;
85 gpio = <&gpio0 12 GPIO_ACTIVE_HIGH>;
96 compatible = "jedec,spi-nor";
98 spi-max-frequency = <3125000>;
101 compatible = "fixed-partitions";
102 #address-cells = <1>;
106 label = "RouterBoot";
109 compatible = "fixed-partitions";
110 #address-cells = <1>;
114 label = "bootloader1";
119 hard_config: partition@f000 {
120 label = "hard_config";
121 reg = <0xf000 0x1000>;
126 label = "bootloader2";
127 reg = <0x10000 0xf000>;
132 label = "soft_config";
133 reg = <0x20000 0x1000>;
138 reg = <0x30000 0x1000>;
146 compatible = "jedec,spi-nor";
148 // XXX empiric value to obtain actual 10MHz SCK at the chip
149 spi-max-frequency = <3125000>;
152 compatible = "fixed-partitions";
153 #address-cells = <1>;
156 // Region <0x0 0x40000> seems reserved by OEM
159 compatible = "mikrotik,minor";
161 reg = <0x040000 0xFC0000>;
168 mtd-mac-address = <&hard_config 0x0010>;
169 mtd-mac-address-increment = <1>;
174 state_default: pinctrl0 {
176 ralink,group = "uart2", "wdt";
177 ralink,function = "gpio";