5 #include <dt-bindings/input/input.h>
6 #include <dt-bindings/gpio/gpio.h>
9 compatible = "mikrotik,routerboard-m33g", "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 = "routerboard-m33g:green:usr";
28 gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
33 compatible = "gpio-keys";
37 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
38 linux,code = <KEY_RESTART>;
43 compatible = "regulator-fixed";
44 regulator-name = "pcie0_vcc";
46 regulator-min-microvolt = <3300000>;
47 regulator-max-microvolt = <3300000>;
48 gpio = <&gpio 9 GPIO_ACTIVE_HIGH>;
55 compatible = "regulator-fixed";
56 regulator-name = "pcie1_vcc";
58 regulator-min-microvolt = <3300000>;
59 regulator-max-microvolt = <3300000>;
60 gpio = <&gpio 10 GPIO_ACTIVE_HIGH>;
67 compatible = "regulator-fixed";
68 regulator-name = "pcie2_vcc";
70 regulator-min-microvolt = <3300000>;
71 regulator-max-microvolt = <3300000>;
72 gpio = <&gpio 11 GPIO_ACTIVE_HIGH>;
79 compatible = "regulator-fixed";
80 regulator-name = "usb_vcc";
82 regulator-min-microvolt = <5000000>;
83 regulator-max-microvolt = <5000000>;
84 gpio = <&gpio 12 GPIO_ACTIVE_HIGH>;
94 compatible = "jedec,spi-nor";
96 spi-max-frequency = <3125000>;
99 compatible = "fixed-partitions";
100 #address-cells = <1>;
104 label = "RouterBoot";
107 compatible = "mikrotik,routerboot-partitions";
108 #address-cells = <1>;
112 label = "bootloader1";
117 hard_config: hard_config {
122 label = "bootloader2";
123 reg = <0x10000 0xf000>;
132 reg = <0x30000 0x1000>;
140 compatible = "jedec,spi-nor";
142 // XXX empiric value to obtain actual 10MHz SCK at the chip
143 spi-max-frequency = <3125000>;
146 compatible = "fixed-partitions";
147 #address-cells = <1>;
150 // Region <0x0 0x40000> seems reserved by OEM
153 compatible = "mikrotik,minor";
155 reg = <0x040000 0xFC0000>;
182 groups = "uart2", "wdt";