2018-06-25 20:51:43 +00:00
|
|
|
/dts-v1/;
|
|
|
|
|
|
|
|
#include "mt7621.dtsi"
|
|
|
|
|
|
|
|
#include <dt-bindings/input/input.h>
|
|
|
|
#include <dt-bindings/gpio/gpio.h>
|
|
|
|
|
|
|
|
/ {
|
2020-04-07 08:34:33 +00:00
|
|
|
compatible = "mikrotik,routerboard-m11g", "mediatek,mt7621-soc";
|
2018-07-29 09:07:23 +00:00
|
|
|
model = "MikroTik RouterBOARD M11G";
|
2018-06-25 20:51:43 +00:00
|
|
|
|
2018-07-16 08:27:22 +00:00
|
|
|
aliases {
|
2018-08-28 04:54:27 +00:00
|
|
|
led-boot = &led_usr;
|
|
|
|
led-failsafe = &led_usr;
|
|
|
|
led-running = &led_usr;
|
|
|
|
led-upgrade = &led_usr;
|
2018-07-16 08:27:22 +00:00
|
|
|
};
|
|
|
|
|
2018-06-25 20:51:43 +00:00
|
|
|
chosen {
|
|
|
|
bootargs = "console=ttyS0,115200";
|
|
|
|
};
|
|
|
|
|
2018-12-30 11:42:53 +00:00
|
|
|
leds {
|
2018-06-25 20:51:43 +00:00
|
|
|
compatible = "gpio-leds";
|
|
|
|
|
2018-07-16 08:27:22 +00:00
|
|
|
led_usr: usr {
|
2020-04-07 08:34:33 +00:00
|
|
|
label = "routerboard-m11g:green:usr";
|
2020-03-03 21:22:24 +00:00
|
|
|
gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
|
2018-06-25 20:51:43 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
rssi0 {
|
2020-04-07 08:34:33 +00:00
|
|
|
label = "routerboard-m11g:green:rssi0";
|
2020-03-03 21:22:24 +00:00
|
|
|
gpios = <&gpio 22 GPIO_ACTIVE_LOW>;
|
2018-06-25 20:51:43 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
rssi1 {
|
2020-04-07 08:34:33 +00:00
|
|
|
label = "routerboard-m11g:green:rssi1";
|
2020-03-03 21:22:24 +00:00
|
|
|
gpios = <&gpio 23 GPIO_ACTIVE_LOW>;
|
2018-06-25 20:51:43 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
rssi2 {
|
2020-04-07 08:34:33 +00:00
|
|
|
label = "routerboard-m11g:green:rssi2";
|
2020-03-03 21:22:24 +00:00
|
|
|
gpios = <&gpio 24 GPIO_ACTIVE_LOW>;
|
2018-06-25 20:51:43 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
rssi3 {
|
2020-04-07 08:34:33 +00:00
|
|
|
label = "routerboard-m11g:green:rssi3";
|
2020-03-03 21:22:24 +00:00
|
|
|
gpios = <&gpio 25 GPIO_ACTIVE_LOW>;
|
2018-06-25 20:51:43 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
rssi4 {
|
2020-04-07 08:34:33 +00:00
|
|
|
label = "routerboard-m11g:green:rssi4";
|
2020-03-03 21:22:24 +00:00
|
|
|
gpios = <&gpio 26 GPIO_ACTIVE_LOW>;
|
2018-06-25 20:51:43 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2018-12-30 11:17:25 +00:00
|
|
|
keys {
|
2019-09-20 12:03:02 +00:00
|
|
|
compatible = "gpio-keys";
|
|
|
|
|
2018-06-25 20:51:43 +00:00
|
|
|
res {
|
|
|
|
label = "reset";
|
2020-03-03 21:22:24 +00:00
|
|
|
gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
|
2018-06-25 20:51:43 +00:00
|
|
|
linux,code = <KEY_RESTART>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
pcie0_vcc_reg {
|
|
|
|
compatible = "regulator-fixed";
|
|
|
|
regulator-name = "pcie0_vcc";
|
|
|
|
|
|
|
|
regulator-min-microvolt = <3300000>;
|
|
|
|
regulator-max-microvolt = <3300000>;
|
2020-03-03 21:22:24 +00:00
|
|
|
gpio = <&gpio 9 GPIO_ACTIVE_HIGH>;
|
2018-06-25 20:51:43 +00:00
|
|
|
enable-active-high;
|
|
|
|
regulator-boot-on;
|
|
|
|
regulator-always-on;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
&spi0 {
|
|
|
|
status = "okay";
|
|
|
|
|
2020-05-07 14:15:27 +00:00
|
|
|
flash@0 {
|
2018-06-25 20:51:43 +00:00
|
|
|
compatible = "jedec,spi-nor";
|
|
|
|
reg = <0>;
|
2020-06-03 13:10:40 +00:00
|
|
|
spi-max-frequency = <33000000>;
|
2018-06-25 20:51:43 +00:00
|
|
|
|
2018-08-01 20:32:34 +00:00
|
|
|
partitions {
|
|
|
|
compatible = "fixed-partitions";
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <1>;
|
|
|
|
|
|
|
|
partition@0 {
|
2018-08-04 13:44:26 +00:00
|
|
|
label = "RouterBoot";
|
|
|
|
reg = <0x0 0x40000>;
|
2018-08-01 20:32:34 +00:00
|
|
|
read-only;
|
2020-03-21 21:54:53 +00:00
|
|
|
compatible = "mikrotik,routerboot-partitions";
|
2018-08-04 13:44:26 +00:00
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <1>;
|
|
|
|
|
|
|
|
partition@0 {
|
|
|
|
label = "bootloader1";
|
2020-03-21 21:54:53 +00:00
|
|
|
reg = <0x0 0x0>;
|
2018-08-04 13:44:26 +00:00
|
|
|
read-only;
|
|
|
|
};
|
|
|
|
|
2020-03-21 21:54:53 +00:00
|
|
|
hard_config: hard_config {
|
2018-08-04 13:44:26 +00:00
|
|
|
read-only;
|
|
|
|
};
|
|
|
|
|
|
|
|
partition@10000 {
|
|
|
|
label = "bootloader2";
|
|
|
|
reg = <0x10000 0xf000>;
|
|
|
|
read-only;
|
|
|
|
};
|
|
|
|
|
2020-03-21 21:54:53 +00:00
|
|
|
soft_config {
|
2018-08-04 13:44:26 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
partition@30000 {
|
|
|
|
label = "bios";
|
|
|
|
reg = <0x30000 0x1000>;
|
|
|
|
read-only;
|
|
|
|
};
|
2018-08-01 20:32:34 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
partition@40000 {
|
2018-12-09 13:10:15 +00:00
|
|
|
compatible = "mikrotik,minor";
|
2018-08-01 20:32:34 +00:00
|
|
|
label = "firmware";
|
|
|
|
reg = <0x040000 0xFC0000>;
|
|
|
|
};
|
2018-06-25 20:51:43 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2020-03-18 15:38:58 +00:00
|
|
|
&switch0 {
|
|
|
|
ports {
|
|
|
|
port@0 {
|
|
|
|
status = "okay";
|
|
|
|
label = "lan";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2019-12-22 20:26:01 +00:00
|
|
|
&state_default {
|
|
|
|
gpio {
|
2020-03-13 13:27:03 +00:00
|
|
|
groups = "uart2", "wdt", "rgmii2";
|
|
|
|
function = "gpio";
|
2018-06-25 20:51:43 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
&i2c {
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
|
|
|
&pcie {
|
|
|
|
status = "okay";
|
|
|
|
};
|