};
};
};
-
+
virtual_flash {
compatible = "mtd-concat";
devices = <&fwconcat0 &fwconcat1>;
model = "MikroTik RouterBOARD 912UAG-2HPnD";
aliases {
- led-boot = &led_power;
- led-failsafe = &led_power;
- led-running = &led_power;
- led-upgrade = &led_power;
- };
+ led-boot = &led_power;
+ led-failsafe = &led_power;
+ led-running = &led_power;
+ led-upgrade = &led_power;
+ };
gpio_key: gpio_key {
compatible = "mikrotik,gpio-rb91x-key";
led-upgrade = &led_system;
label-mac-device = &wmac;
};
-
+
keys {
compatible = "gpio-keys";
debounce-interval = <60>;
};
};
-
+
leds {
compatible = "gpio-leds";
label = "green:lan4";
gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
};
-
+
wps {
label = "green:wps";
gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
};
-
+
wlan {
label = "green:wlan";
gpios = <&gpio 21 GPIO_ACTIVE_LOW>;
&wmac {
status = "okay";
-
+
mtd-cal-data = <&art 0x1000>;
-
+
nvmem-cells = <&macaddr_uboot_1fc00>;
nvmem-cell-names = "mac-address";
};
ð0 {
status = "okay";
-
+
phy-handle = <&swphy0>;
nvmem-cells = <&macaddr_uboot_1fc00>;
nvmem-cells = <&macaddr_uboot_1fc00>;
nvmem-cell-names = "mac-address";
-
+
gmac-config {
device = <&gmac>;
switch-phy-swap = <1>;
compatible = "gpio-leds";
led-0 {
- color = <LED_COLOR_ID_BLUE>;
- function = LED_FUNCTION_WLAN;
+ color = <LED_COLOR_ID_BLUE>;
+ function = LED_FUNCTION_WLAN;
gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
};
led_power: led-1 {
label = "blue:power";
- color = <LED_COLOR_ID_BLUE>;
- function = LED_FUNCTION_POWER;
+ color = <LED_COLOR_ID_BLUE>;
+ function = LED_FUNCTION_POWER;
gpios = <&gpio 11 GPIO_ACTIVE_HIGH>;
};
led-2 {
- color = <LED_COLOR_ID_BLUE>;
- function = LED_FUNCTION_WAN;
+ color = <LED_COLOR_ID_BLUE>;
+ function = LED_FUNCTION_WAN;
gpios = <&gpio 12 GPIO_ACTIVE_HIGH>;
};
led-3 {
- color = <LED_COLOR_ID_BLUE>;
- function = LED_FUNCTION_WPS;
+ color = <LED_COLOR_ID_BLUE>;
+ function = LED_FUNCTION_WPS;
gpios = <&gpio 13 GPIO_ACTIVE_HIGH>;
};
};
* Copyright (C) 2022 Daniel González Cabanelas <dgcbueu@gmail.com>
* based on device tree from qca9558_ubnt_powerbeam-5ac-500.dts
*/
-
+
#include "qca955x_ubnt_xc.dtsi"
/ {
gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
linux,default-trigger = "phy1tpt";
};
-
+
led_power: power {
label = "green:power";
gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
keys {
compatible = "gpio-keys";
-
+
reset {
label = "Reset button";
linux,code = <KEY_RESTART>;
compatible = "fixed-partitions";
#address-cells = <1>;
#size-cells = <1>;
-
+
uboot: partition@0 {
label = "u-boot";
reg = <0x000000 0x080000>;
read-only;
};
-
+
partition@80000 {
compatible = "denx,uimage";
label = "firmware";
reg = <0x080000 0xe00000>;
};
-
+
partition@e80000 {
label = "product-info";
reg = <0xe80000 0x05000>;
reg = <0xe85000 0x16b000>;
read-only;
};
-
+
art: partition@ff0000 {
label = "art";
reg = <0xff0000 0x010000>;
phy-mode = "sgmii";
phy-handle = <&phy0>;
-
+
nvmem-cells = <&macaddr_config_8>;
nvmem-cell-names = "mac-address";
};