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 device_type = "memory";
21 reg = <0x0 0x10000000>;
25 bootargs = "console=ttyS0,115200";
29 compatible = "gpio-leds";
32 label = "rbm11g:green:usr";
33 gpios = <&gpio0 0 GPIO_ACTIVE_HIGH>;
37 label = "rbm11g:green:rssi0";
38 gpios = <&gpio0 22 GPIO_ACTIVE_LOW>;
42 label = "rbm11g:green:rssi1";
43 gpios = <&gpio0 23 GPIO_ACTIVE_LOW>;
47 label = "rbm11g:green:rssi2";
48 gpios = <&gpio0 24 GPIO_ACTIVE_LOW>;
52 label = "rbm11g:green:rssi3";
53 gpios = <&gpio0 25 GPIO_ACTIVE_LOW>;
57 label = "rbm11g:green:rssi4";
58 gpios = <&gpio0 26 GPIO_ACTIVE_LOW>;
63 compatible = "gpio-keys-polled";
67 gpios = <&gpio0 18 GPIO_ACTIVE_LOW>;
68 linux,code = <KEY_RESTART>;
73 compatible = "regulator-fixed";
74 regulator-name = "pcie0_vcc";
76 regulator-min-microvolt = <3300000>;
77 regulator-max-microvolt = <3300000>;
78 gpio = <&gpio0 9 GPIO_ACTIVE_HIGH>;
90 compatible = "jedec,spi-nor";
92 // XXX empiric value to obtain actual 10MHz SCK at the chip
93 spi-max-frequency = <3125000>;
96 compatible = "fixed-partitions";
101 label = "RouterBoot";
104 compatible = "fixed-partitions";
105 #address-cells = <1>;
109 label = "bootloader1";
114 hard_config: partition@f000 {
115 label = "hard_config";
116 reg = <0xf000 0x1000>;
121 label = "bootloader2";
122 reg = <0x10000 0xf000>;
127 label = "soft_config";
128 reg = <0x20000 0x1000>;
133 reg = <0x30000 0x1000>;
139 compatible = "mikrotik,minor";
141 reg = <0x040000 0xFC0000>;
148 mtd-mac-address = <&hard_config 0x0010>;
149 mtd-mac-address-increment = <1>;
154 state_default: pinctrl0 {
156 ralink,group = "uart2", "wdt", "rgmii2";
157 ralink,function = "gpio";