ramips: add support for Z-router ZR-2662
[openwrt/staging/stintel.git] / target / linux / ramips / dts / mt7621_zrouter_zr-2662-v1.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later
2
3 #include "mt7621.dtsi"
4
5
6 / {
7 compatible = "zrouter,zr-2662-v1";
8 model = "Zrouter ZR-2662 v1.0";
9
10 chosen {
11 bootargs = "console=ttyS0,115200";
12 };
13 };
14
15 &ethernet {
16 reg = <0x1e100000 0xe000>;
17 };
18
19 &nand {
20 status = "okay";
21
22 mediatek,bbt;
23 mediatek,bmt-remap-range = <0x180000 0x5800000>;
24
25 partitions {
26 #address-cells = <0x01>;
27 #size-cells = <0x01>;
28 compatible = "fixed-partitions";
29
30 partition@0 {
31 label = "Bootloader";
32 reg = <0x0 0x80000>;
33 read-only;
34 };
35
36 partition@80000 {
37 label = "Config";
38 reg = <0x80000 0x80000>;
39 read-only;
40 };
41
42 factory: partition@100000 {
43 label = "Factory";
44 reg = <0x100000 0x80000>;
45 read-only;
46 };
47
48 partition@180000 {
49 compatible = "denx,fit";
50 label = "firmware";
51 reg = <0x180000 0x5800000>;
52 };
53
54 partition@5980000 {
55 label = "firmware_backup";
56 reg = <0x5980000 0x2000000>;
57 read-only;
58 };
59
60 partition@7b00000 {
61 label = "zrsave";
62 reg = <0x7b00000 0x100000>;
63 read-only;
64 };
65
66 partition@7c00000 {
67 label = "config2";
68 reg = <0x7c00000 0x100000>;
69 read-only;
70 };
71 };
72 };
73
74 &pcie {
75 status = "okay";
76
77 bus-range = <0x00 0xff>;
78 };
79
80 &pcie1 {
81 wifi@0,0 {
82 mediatek,mtd-eeprom = <&factory 0x0>;
83 };
84 };
85
86 &pcie2 {
87 status = "disabled";
88 };
89
90 &state_default {
91 gpio {
92 groups = "i2c";
93 function = "gpio";
94 };
95 };
96
97 &switch0 {
98 compatible = "mediatek,mt7530";
99 ports {
100 port@1 {
101 status = "okay";
102
103 label = "lan3";
104 };
105
106 port@2 {
107 status = "okay";
108
109 label = "lan2";
110 };
111
112 port@3 {
113 status = "okay";
114
115 label = "lan1";
116 };
117
118 port@4 {
119 status = "okay";
120
121 label = "wan";
122 };
123 };
124 };