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;
21 compatible = "gpio-leds";
24 label = "green:power";
25 gpios = <&gpio 11 GPIO_ACTIVE_HIGH>;
30 label = "green:rssilow";
31 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
35 label = "green:rssimediumlow";
36 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
40 label = "green:rssimedium";
41 gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
45 label = "green:rssimediumhigh";
46 gpios = <&gpio 21 GPIO_ACTIVE_LOW>;
50 label = "green:rssihigh";
51 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
56 gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
61 compatible = "gpio-keys";
65 linux,code = <KEY_RESTART>;
66 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
67 debounce-interval = <60>;
72 compatible = "gpio-export";
75 gpio-export,name = "sxt5n:power:nand";
76 gpio-export,output = <0>;
77 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
82 compatible = "gpio-beeper";
83 gpios = <&gpio 19 GPIO_ACTIVE_HIGH>;
93 compatible = "jedec,spi-nor";
95 spi-max-frequency = <40000000>;
98 compatible = "fixed-partitions";
103 label = "RouterBoot";
106 compatible = "mikrotik,routerboot-partitions";
107 #address-cells = <1>;
111 label = "bootloader1";
116 hard_config: hard_config {
129 label = "bootloader2";
130 reg = <0x10000 0x10000>;
141 nand-ecc-mode = "soft";
146 compatible = "fixed-partitions";
147 #address-cells = <1>;
152 reg = <0x0000000 0x0040000>;
158 reg = <0x0040000 0x03c0000>;
163 reg = <0x0400000 0x7c00000>;
175 phy-handle = <&swphy0>;
179 switch-phy-swap = <1>;
186 compatible = "syscon", "simple-mfd";