lede/target/linux/ramips/dts/mt7621_mikrotik_routerboard-m11g.dts

159 lines
2.5 KiB
Plaintext
Raw Normal View History

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