1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
9 compatible = "mikrotik,routerboard-sxt-5n", "qca,ar9344";
10 model = "MikroTik SXT 5N platform";
14 led-failsafe = &led_user;
15 led-running = &led_user;
16 led-upgrade = &led_user;
20 compatible = "gpio-leds";
23 label = "green:power";
24 gpios = <&gpio 11 GPIO_ACTIVE_HIGH>;
29 label = "green:rssilow";
30 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
34 label = "green:rssimediumlow";
35 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
39 label = "green:rssimedium";
40 gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
44 label = "green:rssimediumhigh";
45 gpios = <&gpio 21 GPIO_ACTIVE_LOW>;
49 label = "green:rssihigh";
50 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
55 gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
60 compatible = "gpio-keys";
64 linux,code = <KEY_RESTART>;
65 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
66 debounce-interval = <60>;
71 compatible = "gpio-export";
74 gpio-export,name = "sxt5n:power:nand";
75 gpio-export,output = <0>;
76 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
81 compatible = "gpio-beeper";
82 gpios = <&gpio 19 GPIO_ACTIVE_HIGH>;
90 compatible = "jedec,spi-nor";
92 spi-max-frequency = <40000000>;
95 compatible = "fixed-partitions";
100 label = "RouterBoot";
102 compatible = "mikrotik,routerboot-partitions";
103 #address-cells = <1>;
107 label = "bootloader1";
112 hard_config: hard_config {
125 label = "bootloader2";
126 reg = <0x10000 0x10000>;
137 nand-ecc-mode = "soft";
142 compatible = "fixed-partitions";
143 #address-cells = <1>;
148 reg = <0x0000000 0x0040000>;
154 reg = <0x0040000 0x03c0000>;
159 reg = <0x0400000 0x7c00000>;
167 phy-handle = <&swphy0>;
171 switch-phy-swap = <1>;
178 compatible = "syscon", "simple-mfd";