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";
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>;
84 compatible = "jedec,spi-nor";
86 // XXX empiric value to obtain actual 10MHz SCK at the chip
87 spi-max-frequency = <3125000>;
90 compatible = "fixed-partitions";
98 compatible = "fixed-partitions";
103 label = "bootloader1";
108 hard_config: partition@f000 {
109 label = "hard_config";
110 reg = <0xf000 0x1000>;
115 label = "bootloader2";
116 reg = <0x10000 0xf000>;
121 label = "soft_config";
122 reg = <0x20000 0x1000>;
127 reg = <0x30000 0x1000>;
133 compatible = "mikrotik,minor";
135 reg = <0x040000 0xFC0000>;
142 mtd-mac-address = <&hard_config 0x0010>;
143 mtd-mac-address-increment = <1>;
147 state_default: pinctrl0 {
149 ralink,group = "uart2", "wdt", "rgmii2";
150 ralink,function = "gpio";