sunxi: move KERNEL_LOADADDR into subtargets
[openwrt/openwrt.git] / target / linux / ath79 / dts / ar9344_mikrotik_routerboard-sxt-5n.dtsi
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "ar9344.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 / {
9 compatible = "mikrotik,routerboard-sxt-5n", "qca,ar9344";
10 model = "MikroTik SXT 5N platform";
11
12 aliases {
13 led-boot = &led_user;
14 led-failsafe = &led_user;
15 led-running = &led_user;
16 led-upgrade = &led_user;
17 };
18
19 leds {
20 compatible = "gpio-leds";
21
22 power {
23 label = "green:power";
24 gpios = <&gpio 11 GPIO_ACTIVE_HIGH>;
25 default-state = "on";
26 };
27
28 rssilow {
29 label = "green:rssilow";
30 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
31 };
32
33 rssimediumlow {
34 label = "green:rssimediumlow";
35 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
36 };
37
38 rssimedium {
39 label = "green:rssimedium";
40 gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
41 };
42
43 rssimediumhigh {
44 label = "green:rssimediumhigh";
45 gpios = <&gpio 21 GPIO_ACTIVE_LOW>;
46 };
47
48 rssihigh {
49 label = "green:rssihigh";
50 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
51 };
52
53 led_user: user {
54 label = "green:user";
55 gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
56 };
57 };
58
59 keys {
60 compatible = "gpio-keys";
61
62 reset {
63 label = "reset";
64 linux,code = <KEY_RESTART>;
65 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
66 debounce-interval = <60>;
67 };
68 };
69
70 gpio-export {
71 compatible = "gpio-export";
72
73 gpio_nand_power {
74 gpio-export,name = "sxt5n:power:nand";
75 gpio-export,output = <0>;
76 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
77 };
78 };
79
80 beeper {
81 compatible = "gpio-beeper";
82 gpios = <&gpio 19 GPIO_ACTIVE_HIGH>;
83 };
84 };
85
86 &spi {
87 status = "okay";
88
89 flash@0 {
90 compatible = "jedec,spi-nor";
91 reg = <0>;
92 spi-max-frequency = <40000000>;
93
94 partitions {
95 compatible = "fixed-partitions";
96 #address-cells = <1>;
97 #size-cells = <1>;
98
99 partition@0 {
100 label = "RouterBoot";
101 reg = <0x0 0x20000>;
102 read-only;
103 compatible = "mikrotik,routerboot-partitions";
104 #address-cells = <1>;
105 #size-cells = <1>;
106
107 partition@0 {
108 label = "bootloader1";
109 reg = <0x0 0x0>;
110 read-only;
111 };
112
113 hard_config: hard_config {
114 read-only;
115 };
116
117 bios {
118 size = <0x1000>;
119 read-only;
120 };
121
122 soft_config {
123 };
124
125 partition@10000 {
126 label = "bootloader2";
127 reg = <0x10000 0x10000>;
128 read-only;
129 };
130 };
131 };
132 };
133 };
134
135 &nand {
136 status = "okay";
137
138 nand-ecc-mode = "soft";
139 qca,nand-swap-dma;
140 qca,nand-scan-fixup;
141
142 partitions {
143 compatible = "fixed-partitions";
144 #address-cells = <1>;
145 #size-cells = <1>;
146
147 partition@0 {
148 label = "booter";
149 reg = <0x0000000 0x0040000>;
150 read-only;
151 };
152
153 partition@40000 {
154 label = "kernel";
155 reg = <0x0040000 0x03c0000>;
156 };
157
158 partition@400000 {
159 label = "ubi";
160 reg = <0x0400000 0x7c00000>;
161 };
162 };
163 };
164
165 &eth0 {
166 status = "okay";
167
168 phy-handle = <&swphy0>;
169
170 gmac-config {
171 device = <&gmac>;
172 switch-phy-swap = <1>;
173 };
174 };
175
176 &eth1 {
177 status = "okay";
178
179 compatible = "syscon", "simple-mfd";
180 };
181
182 &wmac {
183 status = "okay";
184
185 qca,no-eeprom;
186 };