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