ipq40xx: use patches that were sent upstream
[openwrt/staging/mkresin.git] / target / linux / ipq40xx / patches-4.14 / 900-dts-ipq4019-ap-dk01.1.patch
1 Index: linux-4.14.54/arch/arm/boot/dts/qcom-ipq4019-ap.dk01.1.dtsi
2 ===================================================================
3 --- linux-4.14.54.orig/arch/arm/boot/dts/qcom-ipq4019-ap.dk01.1.dtsi
4 +++ linux-4.14.54/arch/arm/boot/dts/qcom-ipq4019-ap.dk01.1.dtsi
5 @@ -15,12 +15,39 @@
6 */
7
8 #include "qcom-ipq4019.dtsi"
9 +#include <dt-bindings/soc/qcom,tcsr.h>
10
11 / {
12 model = "Qualcomm Technologies, Inc. IPQ4019/AP-DK01.1";
13 compatible = "qcom,ipq4019";
14
15 soc {
16 + tcsr@194b000 {
17 + /* select hostmode */
18 + compatible = "qcom,tcsr";
19 + reg = <0x194b000 0x100>;
20 + qcom,usb-hsphy-mode-select = <TCSR_USB_HSPHY_HOST_MODE>;
21 + status = "ok";
22 + };
23 +
24 + ess_tcsr@1953000 {
25 + compatible = "qcom,tcsr";
26 + reg = <0x1953000 0x1000>;
27 + qcom,ess-interface-select = <TCSR_ESS_PSGMII>;
28 + };
29 +
30 + tcsr@1949000 {
31 + compatible = "qcom,tcsr";
32 + reg = <0x1949000 0x100>;
33 + qcom,wifi_glb_cfg = <TCSR_WIFI_GLB_CFG>;
34 + };
35 +
36 + tcsr@1957000 {
37 + compatible = "qcom,tcsr";
38 + reg = <0x1957000 0x100>;
39 + qcom,wifi_noc_memtype_m0_m2 = <TCSR_WIFI_NOC_MEMTYPE_M0_M2>;
40 + };
41 +
42 rng@22000 {
43 status = "ok";
44 };
45 @@ -66,14 +93,6 @@
46 pinctrl-names = "default";
47 status = "ok";
48 cs-gpios = <&tlmm 54 0>;
49 -
50 - mx25l25635e@0 {
51 - #address-cells = <1>;
52 - #size-cells = <1>;
53 - reg = <0>;
54 - compatible = "mx25l25635e";
55 - spi-max-frequency = <24000000>;
56 - };
57 };
58
59 serial@78af000 {
60 @@ -102,6 +121,22 @@
61 status = "ok";
62 };
63
64 + mdio@90000 {
65 + status = "okay";
66 + };
67 +
68 + ess-switch@c000000 {
69 + status = "okay";
70 + };
71 +
72 + ess-psgmii@98000 {
73 + status = "okay";
74 + };
75 +
76 + edma@c080000 {
77 + status = "okay";
78 + };
79 +
80 usb3_ss_phy: ssphy@9a000 {
81 status = "ok";
82 };
83 Index: linux-4.14.54/arch/arm/boot/dts/qcom-ipq4019-ap.dk01.1-c1.dts
84 ===================================================================
85 --- linux-4.14.54.orig/arch/arm/boot/dts/qcom-ipq4019-ap.dk01.1-c1.dts
86 +++ linux-4.14.54/arch/arm/boot/dts/qcom-ipq4019-ap.dk01.1-c1.dts
87 @@ -18,5 +18,73 @@
88
89 / {
90 model = "Qualcomm Technologies, Inc. IPQ40xx/AP-DK01.1-C1";
91 + compatible = "qcom,ap-dk01.1-c1", "qcom,ap-dk01.2-c1", "qcom,ipq4019";
92
93 + memory {
94 + device_type = "memory";
95 + reg = <0x80000000 0x10000000>;
96 + };
97 +};
98 +
99 +&blsp1_spi1 {
100 + mx25l25635f@0 {
101 + compatible = "mx25l25635f", "jedec,spi-nor";
102 + #address-cells = <1>;
103 + #size-cells = <1>;
104 + reg = <0>;
105 + spi-max-frequency = <24000000>;
106 +
107 + SBL1@0 {
108 + label = "SBL1";
109 + reg = <0x0 0x40000>;
110 + read-only;
111 + };
112 + MIBIB@40000 {
113 + label = "MIBIB";
114 + reg = <0x40000 0x20000>;
115 + read-only;
116 + };
117 + QSEE@60000 {
118 + label = "QSEE";
119 + reg = <0x60000 0x60000>;
120 + read-only;
121 + };
122 + CDT@c0000 {
123 + label = "CDT";
124 + reg = <0xc0000 0x10000>;
125 + read-only;
126 + };
127 + DDRPARAMS@d0000 {
128 + label = "DDRPARAMS";
129 + reg = <0xd0000 0x10000>;
130 + read-only;
131 + };
132 + APPSBLENV@e0000 {
133 + label = "APPSBLENV";
134 + reg = <0xe0000 0x10000>;
135 + read-only;
136 + };
137 + APPSBL@f0000 {
138 + label = "APPSBL";
139 + reg = <0xf0000 0x80000>;
140 + read-only;
141 + };
142 + ART@170000 {
143 + label = "ART";
144 + reg = <0x170000 0x10000>;
145 + read-only;
146 + };
147 + kernel@180000 {
148 + label = "kernel";
149 + reg = <0x180000 0x400000>;
150 + };
151 + rootfs@580000 {
152 + label = "rootfs";
153 + reg = <0x580000 0x1600000>;
154 + };
155 + firmware@180000 {
156 + label = "firmware";
157 + reg = <0x180000 0x1a00000>;
158 + };
159 + };
160 };