5 #include <dt-bindings/input/input.h>
6 #include <dt-bindings/gpio/gpio.h>
9 compatible = "mikrotik,rbm11g", "mediatek,mt7621-soc";
10 model = "MikroTik RouterBOARD M11G";
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 = "rbm11g:green:usr";
28 gpios = <&gpio0 0 GPIO_ACTIVE_HIGH>;
32 label = "rbm11g:green:rssi0";
33 gpios = <&gpio0 22 GPIO_ACTIVE_LOW>;
37 label = "rbm11g:green:rssi1";
38 gpios = <&gpio0 23 GPIO_ACTIVE_LOW>;
42 label = "rbm11g:green:rssi2";
43 gpios = <&gpio0 24 GPIO_ACTIVE_LOW>;
47 label = "rbm11g:green:rssi3";
48 gpios = <&gpio0 25 GPIO_ACTIVE_LOW>;
52 label = "rbm11g:green:rssi4";
53 gpios = <&gpio0 26 GPIO_ACTIVE_LOW>;
58 compatible = "gpio-keys-polled";
62 gpios = <&gpio0 18 GPIO_ACTIVE_LOW>;
63 linux,code = <KEY_RESTART>;
68 compatible = "regulator-fixed";
69 regulator-name = "pcie0_vcc";
71 regulator-min-microvolt = <3300000>;
72 regulator-max-microvolt = <3300000>;
73 gpio = <&gpio0 9 GPIO_ACTIVE_HIGH>;
85 compatible = "jedec,spi-nor";
87 // XXX empiric value to obtain actual 10MHz SCK at the chip
88 spi-max-frequency = <3125000>;
91 compatible = "fixed-partitions";
99 compatible = "fixed-partitions";
100 #address-cells = <1>;
104 label = "bootloader1";
109 hard_config: partition@f000 {
110 label = "hard_config";
111 reg = <0xf000 0x1000>;
116 label = "bootloader2";
117 reg = <0x10000 0xf000>;
122 label = "soft_config";
123 reg = <0x20000 0x1000>;
128 reg = <0x30000 0x1000>;
134 compatible = "mikrotik,minor";
136 reg = <0x040000 0xFC0000>;
143 mtd-mac-address = <&hard_config 0x0010>;
144 mtd-mac-address-increment = <1>;
149 state_default: pinctrl0 {
151 ralink,group = "uart2", "wdt", "rgmii2";
152 ralink,function = "gpio";