2020-08-12 20:10:12 +02:00
|
|
|
#include "mt7621_mikrotik.dtsi"
|
2018-06-25 22:51:43 +02:00
|
|
|
|
|
|
|
/ {
|
2020-04-07 10:34:33 +02:00
|
|
|
compatible = "mikrotik,routerboard-m11g", "mediatek,mt7621-soc";
|
2018-07-29 11:07:23 +02:00
|
|
|
model = "MikroTik RouterBOARD M11G";
|
2018-06-25 22:51:43 +02:00
|
|
|
|
2018-07-16 16:27:22 +08:00
|
|
|
aliases {
|
2018-08-28 06:54:27 +02:00
|
|
|
led-boot = &led_usr;
|
|
|
|
led-failsafe = &led_usr;
|
|
|
|
led-running = &led_usr;
|
|
|
|
led-upgrade = &led_usr;
|
2018-07-16 16:27:22 +08:00
|
|
|
};
|
|
|
|
|
2018-12-30 12:42:53 +01:00
|
|
|
leds {
|
2018-06-25 22:51:43 +02:00
|
|
|
compatible = "gpio-leds";
|
|
|
|
|
2018-07-16 16:27:22 +08:00
|
|
|
led_usr: usr {
|
2020-09-27 19:40:51 +02:00
|
|
|
label = "green:usr";
|
2020-03-04 05:22:24 +08:00
|
|
|
gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
|
2018-06-25 22:51:43 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
rssi0 {
|
2020-09-27 19:40:51 +02:00
|
|
|
label = "green:rssi0";
|
2020-03-04 05:22:24 +08:00
|
|
|
gpios = <&gpio 22 GPIO_ACTIVE_LOW>;
|
2018-06-25 22:51:43 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
rssi1 {
|
2020-09-27 19:40:51 +02:00
|
|
|
label = "green:rssi1";
|
2020-03-04 05:22:24 +08:00
|
|
|
gpios = <&gpio 23 GPIO_ACTIVE_LOW>;
|
2018-06-25 22:51:43 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
rssi2 {
|
2020-09-27 19:40:51 +02:00
|
|
|
label = "green:rssi2";
|
2020-03-04 05:22:24 +08:00
|
|
|
gpios = <&gpio 24 GPIO_ACTIVE_LOW>;
|
2018-06-25 22:51:43 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
rssi3 {
|
2020-09-27 19:40:51 +02:00
|
|
|
label = "green:rssi3";
|
2020-03-04 05:22:24 +08:00
|
|
|
gpios = <&gpio 25 GPIO_ACTIVE_LOW>;
|
2018-06-25 22:51:43 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
rssi4 {
|
2020-09-27 19:40:51 +02:00
|
|
|
label = "green:rssi4";
|
2020-03-04 05:22:24 +08:00
|
|
|
gpios = <&gpio 26 GPIO_ACTIVE_LOW>;
|
2018-06-25 22:51:43 +02:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
pcie0_vcc_reg {
|
|
|
|
compatible = "regulator-fixed";
|
|
|
|
regulator-name = "pcie0_vcc";
|
|
|
|
|
|
|
|
regulator-min-microvolt = <3300000>;
|
|
|
|
regulator-max-microvolt = <3300000>;
|
2020-03-04 05:22:24 +08:00
|
|
|
gpio = <&gpio 9 GPIO_ACTIVE_HIGH>;
|
2018-06-25 22:51:43 +02:00
|
|
|
enable-active-high;
|
|
|
|
regulator-boot-on;
|
|
|
|
regulator-always-on;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2020-08-12 20:10:12 +02:00
|
|
|
&partitions {
|
|
|
|
partition@40000 {
|
|
|
|
compatible = "mikrotik,minor";
|
|
|
|
label = "firmware";
|
|
|
|
reg = <0x040000 0xfc0000>;
|
2018-06-25 22:51:43 +02:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2022-02-14 10:00:40 +03:00
|
|
|
ðernet {
|
|
|
|
pinctrl-0 = <&mdio_pins>, <&rgmii1_pins>;
|
|
|
|
};
|
|
|
|
|
2020-03-18 23:38:58 +08:00
|
|
|
&switch0 {
|
|
|
|
ports {
|
|
|
|
port@0 {
|
|
|
|
status = "okay";
|
|
|
|
label = "lan";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2019-12-22 21:26:01 +01:00
|
|
|
&state_default {
|
|
|
|
gpio {
|
2020-03-13 21:27:03 +08:00
|
|
|
groups = "uart2", "wdt", "rgmii2";
|
|
|
|
function = "gpio";
|
2018-06-25 22:51:43 +02:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
&i2c {
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
|
|
|
&pcie {
|
|
|
|
status = "okay";
|
|
|
|
};
|