mediatek: also move &slot0 from dtsi down to board dts
[openwrt/staging/dedeckeh.git] / target / linux / mediatek / dts / mt7622-reyee-ax3200-e5.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 /dts-v1/;
4 #include <dt-bindings/input/input.h>
5 #include <dt-bindings/gpio/gpio.h>
6
7 #include "mt7622-ruijie-rg-ew3200.dtsi"
8
9 / {
10 model = "reyee AX3200 E5";
11 compatible = "reyee,ax3200-e5", "mediatek,mt7622";
12 };
13
14 &nor_flash {
15 status = "okay";
16
17 pinctrl-names = "default";
18 pinctrl-0 = <&spi_nor_pins>;
19
20 flash@0 {
21 compatible = "jedec,spi-nor";
22 reg = <0>;
23 spi-max-frequency = <50000000>;
24
25 partitions {
26 compatible = "fixed-partitions";
27 #address-cells = <1>;
28 #size-cells = <1>;
29
30 partition@0 {
31 label = "Preloader";
32 reg = <0x0 0x20000>;
33 read-only;
34 };
35
36 partition@20000 {
37 label = "ATF";
38 reg = <0x20000 0x30000>;
39 read-only;
40 };
41
42 partition@30000 {
43 label = "u-boot";
44 reg = <0x30000 0x80000>;
45 read-only;
46 };
47
48 partition@80000 {
49 label = "u-boot-env";
50 reg = <0x80000 0x90000>;
51 };
52
53 factory: partition@90000 {
54 label = "Factory";
55 reg = <0x90000 0xd0000>;
56 read-only;
57 };
58
59 partition@d0000 {
60 label = "product_info";
61 reg = <0xd0000 0xe0000>;
62 read-only;
63 };
64
65 partition@e0000 {
66 label = "kdump";
67 reg = <0xe0000 0xf0000>;
68 read-only;
69 };
70
71 partition@f0000 {
72 compatible = "denx,fit";
73 label = "firmware";
74 reg = <0xf0000 0x1000000>;
75 };
76 };
77 };
78 };
79
80 &wmac {
81 status = "okay";
82
83 pinctrl-names = "default";
84 pinctrl-0 = <&epa_elna_pins>;
85 mediatek,mtd-eeprom = <&factory 0x0>;
86 };
87
88 &slot0 {
89 wifi@0,0 {
90 compatible = "mediatek,mt76";
91 reg = <0x0000 0 0 0 0>;
92 mediatek,mtd-eeprom = <&factory 0x5000>;
93 ieee80211-freq-limit = <5000000 6000000>;
94 mediatek,disable-radar-background;
95 };
96 };