243d19fb033da8dafeec3d3697cbf75dfdb7be71
[openwrt/staging/stintel.git] / target / linux / ipq40xx / files-6.1 / arch / arm / boot / dts / qcom-ipq4019-e2600ac-c1.dts
1 /* SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2 *
3 * Copyright (c) 2018 Peng Zhang <sd20@qxwlan.com>
4 *
5 */
6
7 #include "qcom-ipq4019-e2600ac.dtsi"
8 #include <dt-bindings/gpio/gpio.h>
9 #include <dt-bindings/input/input.h>
10
11 / {
12 model = "Qxwlan E2600AC c1";
13 compatible = "qxwlan,e2600ac-c1";
14 };
15
16 &blsp1_spi1 {
17 pinctrl-0 = <&spi_0_pins>;
18 pinctrl-names = "default";
19 status = "okay";
20 cs-gpios = <&tlmm 12 GPIO_ACTIVE_LOW>;
21
22 flash@0 {
23 reg = <0>;
24 compatible = "jedec,spi-nor";
25 spi-max-frequency = <24000000>;
26
27 partitions {
28 compatible = "fixed-partitions";
29 #address-cells = <1>;
30 #size-cells = <1>;
31
32 partition@0 {
33 label = "0:SBL1";
34 reg = <0x0 0x40000>;
35 read-only;
36 };
37 partition@40000 {
38 label = "0:MIBIB";
39 reg = <0x40000 0x20000>;
40 read-only;
41 };
42 partition@60000 {
43 label = "0:QSEE";
44 reg = <0x60000 0x60000>;
45 read-only;
46 };
47 partition@c0000 {
48 label = "0:CDT";
49 reg = <0xc0000 0x10000>;
50 read-only;
51 };
52 partition@d0000 {
53 label = "0:DDRPARAMS";
54 reg = <0xd0000 0x10000>;
55 read-only;
56 };
57 partition@e0000 {
58 label = "0:APPSBLENV";
59 reg = <0xe0000 0x10000>;
60 read-only;
61 };
62 partition@f0000 {
63 label = "0:APPSBL";
64 reg = <0xf0000 0x80000>;
65 read-only;
66 };
67 partition@170000 {
68 label = "0:ART";
69 reg = <0x170000 0x10000>;
70 read-only;
71
72 nvmem-layout {
73 compatible = "fixed-layout";
74 #address-cells = <1>;
75 #size-cells = <1>;
76
77 macaddr_gmac0: macaddr@0 {
78 reg = <0x0 0x6>;
79 };
80
81 macaddr_gmac1: macaddr@6 {
82 reg = <0x6 0x6>;
83 };
84
85 precal_art_1000: precal@1000 {
86 reg = <0x1000 0x2f20>;
87 };
88
89 precal_art_5000: precal@5000 {
90 reg = <0x5000 0x2f20>;
91 };
92 };
93 };
94 partition@180000 {
95 compatible = "denx,fit";
96 label = "firmware";
97 reg = <0x180000 0x1e80000>;
98 };
99 };
100 };
101 };
102
103 &wifi0 {
104 status = "okay";
105 nvmem-cell-names = "pre-calibration";
106 nvmem-cells = <&precal_art_1000>;
107 qcom,ath10k-calibration-variant = "Qxwlan-E2600AC-C1";
108 };
109
110 &wifi1 {
111 status = "okay";
112 nvmem-cell-names = "pre-calibration";
113 nvmem-cells = <&precal_art_5000>;
114 qcom,ath10k-calibration-variant = "Qxwlan-E2600AC-C1";
115 };
116
117 &gmac {
118 status = "okay";
119 };
120
121 &switch {
122 status = "okay";
123 };
124
125 &swport4 {
126 status = "okay";
127 label = "sw-eth1";
128
129 nvmem-cell-names = "mac-address";
130 nvmem-cells = <&macaddr_gmac0>;
131 };
132
133 &swport5 {
134 status = "okay";
135
136 label = "sw-eth2";
137 nvmem-cell-names = "mac-address";
138 nvmem-cells = <&macaddr_gmac1>;
139 };