treewide: convert mtd-mac-address-increment* to generic implementation
[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 read-only;
41 compatible = "mikrotik,routerboot-partitions";
42 #address-cells = <1>;
43 #size-cells = <1>;
44
45 partition@0 {
46 label = "bootloader1";
47 reg = <0x0 0x0>;
48 read-only;
49 };
50
51 hard_config {
52 read-only;
53 };
54
55 partition@10000 {
56 label = "bootloader2";
57 reg = <0x10000 0xf000>;
58 read-only;
59 };
60
61 soft_config {
62 };
63
64 partition@30000 {
65 label = "bios";
66 reg = <0x30000 0x1000>;
67 read-only;
68 };
69 };
70 };
71 };
72 };