53abf300cdfc4cac27ecaeba3c9d2b06034a4542
[openwrt/openwrt.git] / target / linux / mediatek / dts / mt7622-ruijie-rg-ew3200gx-pro.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 /dts-v1/;
4 #include "mt7622-ruijie-rg-ew3200.dtsi"
5
6 / {
7 model = "Ruijie RG-EW3200GX PRO";
8 compatible = "ruijie,rg-ew3200gx-pro", "mediatek,mt7622";
9 };
10
11 &nor_flash {
12 status = "okay";
13
14 pinctrl-names = "default";
15 pinctrl-0 = <&spi_nor_pins>;
16
17 flash@0 {
18 compatible = "jedec,spi-nor";
19 reg = <0>;
20 spi-max-frequency = <50000000>;
21
22 partitions {
23 compatible = "fixed-partitions";
24 #address-cells = <1>;
25 #size-cells = <1>;
26
27 partition@0 {
28 label = "Preloader";
29 reg = <0x0 0x40000>;
30 read-only;
31 };
32
33 partition@40000 {
34 label = "ATF";
35 reg = <0x40000 0x20000>;
36 read-only;
37 };
38
39 partition@60000 {
40 label = "u-boot";
41 reg = <0x60000 0x50000>;
42 read-only;
43 };
44
45 partition@B0000 {
46 label = "u-boot-env";
47 reg = <0xb0000 0x20000>;
48 };
49
50 factory: partition@D0000 {
51 label = "Factory";
52 reg = <0xd0000 0x80000>;
53 read-only;
54 };
55
56 partition@150000 {
57 label = "product_info";
58 reg = <0x150000 0x10000>;
59 read-only;
60 };
61
62 partition@160000 {
63 label = "kdump";
64 reg = <0x160000 0x10000>;
65 read-only;
66 };
67
68 partition@170000 {
69 compatible = "denx,fit";
70 label = "firmware";
71 reg = <0x170000 0xe90000>;
72 };
73 };
74 };
75 };
76
77 &wmac {
78 status = "okay";
79
80 pinctrl-names = "default";
81 pinctrl-0 = <&epa_elna_pins>;
82 mediatek,mtd-eeprom = <&factory 0x0>;
83 };