ramips: add NMBM support for ipTIME AX2004M
[openwrt/openwrt.git] / target / linux / ramips / dts / mt7621_mikrotik.dtsi
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "mt7621.dtsi"
4
5 #include <dt-bindings/input/input.h>
6 #include <dt-bindings/gpio/gpio.h>
7
8 / {
9 chosen {
10 bootargs = "console=ttyS0,115200";
11 };
12
13 keys: keys {
14 compatible = "gpio-keys";
15
16 reset {
17 label = "reset";
18 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
19 linux,code = <KEY_RESTART>;
20 };
21 };
22 };
23
24 &spi0 {
25 status = "okay";
26
27 flash@0 {
28 compatible = "jedec,spi-nor";
29 reg = <0>;
30 spi-max-frequency = <33000000>;
31
32 partitions: partitions {
33 compatible = "fixed-partitions";
34 #address-cells = <1>;
35 #size-cells = <1>;
36
37 partition@0 {
38 label = "RouterBoot";
39 reg = <0x0 0x40000>;
40 compatible = "mikrotik,routerboot-partitions";
41 #address-cells = <1>;
42 #size-cells = <1>;
43
44 partition@0 {
45 label = "bootloader1";
46 reg = <0x0 0x0>;
47 read-only;
48 };
49
50 hard_config {
51 read-only;
52 };
53
54 partition@10000 {
55 label = "bootloader2";
56 reg = <0x10000 0xf000>;
57 read-only;
58 };
59
60 soft_config {
61 };
62
63 partition@30000 {
64 label = "bios";
65 reg = <0x30000 0x1000>;
66 read-only;
67 };
68 };
69 };
70 };
71 };