2020-08-12 18:10:12 +00:00
|
|
|
#include "mt7621_mikrotik.dtsi"
|
2018-06-25 20:51:43 +00:00
|
|
|
|
|
|
|
/ {
|
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-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-09-27 17:40:51 +00:00
|
|
|
label = "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-09-27 17:40:51 +00:00
|
|
|
label = "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-09-27 17:40:51 +00:00
|
|
|
label = "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-09-27 17:40:51 +00:00
|
|
|
label = "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-09-27 17:40:51 +00:00
|
|
|
label = "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-09-27 17:40:51 +00:00
|
|
|
label = "green:rssi4";
|
2020-03-03 21:22:24 +00:00
|
|
|
gpios = <&gpio 26 GPIO_ACTIVE_LOW>;
|
2018-06-25 20:51:43 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2020-08-12 18:10:12 +00:00
|
|
|
&partitions {
|
|
|
|
partition@40000 {
|
|
|
|
compatible = "mikrotik,minor";
|
|
|
|
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";
|
|
|
|
};
|