ath79: update WA/XC devices UBNT_VERSION to 8.7.4
[openwrt/staging/wigyori.git] / target / linux / ath79 / dts / ar9344_mikrotik_routerboard-sxt-5nd-r2.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include <dt-bindings/leds/common.h>
4
5 #include "ar9344_mikrotik_routerboard.dtsi"
6
7 / {
8 compatible = "mikrotik,routerboard-sxt-5nd-r2", "qca,ar9344";
9 model = "MikroTik RouterBOARD SXT 5nD r2 (SXT Lite5)";
10
11 gpio-export {
12 compatible = "gpio-export";
13
14 gpio_nand_power {
15 gpio-export,name = "sxt5n:power:nand";
16 gpio-export,output = <0>;
17 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
18 };
19 };
20
21 beeper {
22 compatible = "gpio-beeper";
23 gpios = <&gpio 19 GPIO_ACTIVE_HIGH>;
24 };
25 };
26
27 &leds {
28 power {
29 function = LED_FUNCTION_POWER;
30 color = <LED_COLOR_ID_GREEN>;
31 gpios = <&gpio 11 GPIO_ACTIVE_HIGH>;
32 default-state = "on";
33 };
34
35 led_user: user {
36 label = "green:user";
37 gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
38 };
39 };
40
41 &spi {
42 status = "okay";
43
44 flash@0 {
45 compatible = "jedec,spi-nor";
46 reg = <0>;
47 spi-max-frequency = <40000000>;
48
49 partitions {
50 compatible = "fixed-partitions";
51 #address-cells = <1>;
52 #size-cells = <1>;
53
54 partition@0 {
55 label = "RouterBoot";
56 reg = <0x0 0x20000>;
57 compatible = "mikrotik,routerboot-partitions";
58 #address-cells = <1>;
59 #size-cells = <1>;
60
61 partition@0 {
62 label = "bootloader1";
63 reg = <0x0 0x0>;
64 read-only;
65 };
66
67 hard_config {
68 read-only;
69 };
70
71 bios {
72 size = <0x1000>;
73 read-only;
74 };
75
76 soft_config {
77 };
78
79 partition@10000 {
80 label = "bootloader2";
81 reg = <0x10000 0x10000>;
82 read-only;
83 };
84 };
85 };
86 };
87 };
88
89 &nand {
90 status = "okay";
91
92 nand-ecc-mode = "soft";
93 nand-ecc-step-size = <2048>;
94 qca,nand-swap-dma;
95 qca,nand-scan-fixup;
96
97 partitions {
98 compatible = "fixed-partitions";
99 #address-cells = <1>;
100 #size-cells = <1>;
101
102 partition@0 {
103 label = "booter";
104 reg = <0x0000000 0x0040000>;
105 read-only;
106 };
107
108 partition@40000 {
109 label = "kernel";
110 reg = <0x0040000 0x03c0000>;
111 };
112
113 partition@400000 {
114 label = "ubi";
115 reg = <0x0400000 0x7c00000>;
116 };
117 };
118 };