1// SPDX-License-Identifier: GPL-2.0
2// Copyright (c) 2018, Linaro Limited
3
4#include "qcs404.dtsi"
5#include "pms405.dtsi"
6
7/ {
8	aliases {
9		serial0 = &blsp1_uart2;
10	};
11
12	chosen {
13		stdout-path = "serial0";
14	};
15
16	vph_pwr: vph-pwr-regulator {
17		compatible = "regulator-fixed";
18		regulator-name = "vph_pwr";
19		regulator-always-on;
20		regulator-boot-on;
21	};
22};
23
24&remoteproc_adsp {
25	status = "ok";
26};
27
28&remoteproc_cdsp {
29	status = "ok";
30};
31
32&remoteproc_wcss {
33	status = "ok";
34};
35
36&rpm_requests {
37	pms405-regulators {
38		compatible = "qcom,rpm-pms405-regulators";
39
40		vdd-s1-supply = <&vph_pwr>;
41		vdd-s2-supply = <&vph_pwr>;
42		vdd-s3-supply = <&vph_pwr>;
43		vdd-s4-supply = <&vph_pwr>;
44		vdd-s5-supply = <&vph_pwr>;
45		vdd-l1-l2-supply = <&vreg_s5_1p35>;
46		vdd-l3-l8-supply = <&vreg_s5_1p35>;
47		vdd-l4-supply = <&vreg_s5_1p35>;
48		vdd-l5-l6-supply = <&vreg_s4_1p8>;
49		vdd-l7-supply = <&vph_pwr>;
50		vdd-l9-supply = <&vreg_s5_1p35>;
51		vdd-l10-l11-l12-l13-supply = <&vph_pwr>;
52
53		vreg_s4_1p8: s4 {
54			regulator-min-microvolt = <1728000>;
55			regulator-max-microvolt = <1920000>;
56		};
57
58		vreg_s5_1p35: s5 {
59			regulator-min-microvolt = <>;
60			regulator-max-microvolt = <>;
61		};
62
63		vreg_l1_1p3: l1 {
64			regulator-min-microvolt = <1240000>;
65			regulator-max-microvolt = <1352000>;
66		};
67
68		vreg_l2_1p275: l2 {
69			regulator-min-microvolt = <1048000>;
70			regulator-max-microvolt = <1280000>;
71		};
72
73		vreg_l3_1p05: l3 {
74			regulator-min-microvolt = <976000>;
75			regulator-max-microvolt = <1160000>;
76		};
77
78		vreg_l4_1p2: l4 {
79			regulator-min-microvolt = <1144000>;
80			regulator-max-microvolt = <1256000>;
81		};
82
83		vreg_l5_1p8: l5 {
84			regulator-min-microvolt = <1800000>;
85			regulator-max-microvolt = <1800000>;
86		};
87
88		vreg_l6_1p8: l6 {
89			regulator-min-microvolt = <1800000>;
90			regulator-max-microvolt = <1800000>;
91			regulator-always-on;
92		};
93
94		vreg_l7_1p8: l7 {
95			regulator-min-microvolt = <1616000>;
96			regulator-max-microvolt = <3000000>;
97		};
98
99		vreg_l8_1p2: l8 {
100			regulator-min-microvolt = <1136000>;
101			regulator-max-microvolt = <1352000>;
102		};
103
104		vreg_l10_3p3: l10 {
105			regulator-min-microvolt = <2936000>;
106			regulator-max-microvolt = <3088000>;
107		};
108
109		vreg_l11_sdc2: l11 {
110			regulator-min-microvolt = <2696000>;
111			regulator-max-microvolt = <3304000>;
112		};
113
114		vreg_l12_3p3: l12 {
115			regulator-min-microvolt = <2968000>;
116			regulator-max-microvolt = <3300000>;
117		};
118
119		vreg_l13_3p3: l13 {
120			regulator-min-microvolt = <3000000>;
121			regulator-max-microvolt = <3300000>;
122		};
123	};
124};
125
126&sdcc1 {
127	status = "ok";
128
129	mmc-ddr-1_8v;
130	mmc-hs400-1_8v;
131	bus-width = <8>;
132	non-removable;
133
134	pinctrl-names = "default", "sleep";
135	pinctrl-0 = <&sdc1_on>;
136	pinctrl-1 = <&sdc1_off>;
137};
138
139&tlmm {
140	sdc1_on: sdc1-on {
141		clk {
142			pins = "sdc1_clk";
143			bias-disable;
144			drive-strength = <16>;
145		};
146
147		cmd {
148			pins = "sdc1_cmd";
149			bias-pull-up;
150			drive-strength = <10>;
151		};
152
153		data {
154			pins = "sdc1_data";
155			bias-pull-up;
156			dreive-strength = <10>;
157		};
158
159		rclk {
160			pins = "sdc1_rclk";
161			bias-pull-down;
162		};
163	};
164
165	sdc1_off: sdc1-off {
166		clk {
167			pins = "sdc1_clk";
168			bias-disable;
169			drive-strength = <2>;
170		};
171
172		cmd {
173			pins = "sdc1_cmd";
174			bias-pull-up;
175			drive-strength = <2>;
176		};
177
178		data {
179			pins = "sdc1_data";
180			bias-pull-up;
181			dreive-strength = <2>;
182		};
183
184		rclk {
185			pins = "sdc1_rclk";
186			bias-pull-down;
187		};
188	};
189};
190
191&wifi {
192	status = "okay";
193};
194
195/* PINCTRL - additions to nodes defined in qcs404.dtsi */
196
197&blsp1_uart2_default {
198	rx {
199		drive-strength = <2>;
200		bias-disable;
201	};
202
203	tx {
204		drive-strength = <2>;
205		bias-disable;
206	};
207};
208