blob: fc4ef2cc099a6488c2d6570857af3a108a1e3eb1 [file] [log] [blame]
Imran Khan04f08312017-03-30 15:07:43 +05301/* Copyright (c) 2017, The Linux Foundation. All rights reserved.
Kyle Yan18b01d62016-11-08 15:26:53 -08002 *
3 * This program is free software; you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License version 2 and
5 * only version 2 as published by the Free Software Foundation.
6 *
7 * This program is distributed in the hope that it will be useful,
8 * but WITHOUT ANY WARRANTY; without even the implied warranty of
9 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10 * GNU General Public License for more details.
11 */
Mukesh Kumar Savaliya065ca482017-06-06 14:44:45 +053012
13/{
14 aliases {
15 serial0 = &qupv3_se10_2uart;
16 serial1 = &qupv3_se9_2uart;
17 spi0 = &qupv3_se8_spi;
18 i2c0 = &qupv3_se10_i2c;
19 i2c1 = &qupv3_se3_i2c;
20 hsuart0 = &qupv3_se6_4uart;
21 };
22
23};
24
Tirupathi Reddy85fa2342017-08-24 16:17:45 +053025&soc {
26 /* Delete all regulators */
27 /delete-node/ rpmh-regulator-smpa4;
28 /delete-node/ rpmh-regulator-smpa6;
29 /delete-node/ rpmh-regulator-mxlvl;
30 /delete-node/ rpmh-regulator-modemlvl;
31 /delete-node/ rpmh-regulator-cxlvl;
32 /delete-node/ rpmh-regulator-ldoa1;
33 /delete-node/ rpmh-regulator-ldoa2;
34 /delete-node/ rpmh-regulator-ldoa3;
35 /delete-node/ rpmh-regulator-ldoa5;
36 /delete-node/ rpmh-regulator-ldoa6;
37 /delete-node/ rpmh-regulator-ldoa7;
38 /delete-node/ rpmh-regulator-ldoa8;
39 /delete-node/ rpmh-regulator-ldoa9;
40 /delete-node/ rpmh-regulator-ldoa10;
41 /delete-node/ rpmh-regulator-ldoa11;
42 /delete-node/ rpmh-regulator-ldoa12;
43 /delete-node/ rpmh-regulator-ldoa13;
44 /delete-node/ rpmh-regulator-ldoa14;
45 /delete-node/ rpmh-regulator-ldoa15;
46 /delete-node/ rpmh-regulator-ldoa16;
47 /delete-node/ rpmh-regulator-ldoa17;
48 /delete-node/ rpmh-regulator-ldoa19;
49 /delete-node/ rpmh-regulator-ldob1;
50 /delete-node/ rpmh-regulator-ldob2;
51 /delete-node/ rpmh-regulator-ldob3;
52 /delete-node/ rpmh-regulator-ldob4;
53 /delete-node/ rpmh-regulator-ldob5;
54 /delete-node/ rpmh-regulator-ldob6;
55 /delete-node/ rpmh-regulator-ldob7;
56 /delete-node/ rpmh-regulator-ldob8;
57 /delete-node/ rpmh-regulator-lcxlvl;
58 /delete-node/ rpmh-regulator-lmxlvl;
59 /delete-node/ rpmh-regulator-ldoa28;
60 /delete-node/ rpmh-regulator-bobb1;
61 /delete-node/ rpmh-regulator-gfxlvl;
62};
63
64#include "sdm670-stub-regulator.dtsi"
65
Mukesh Kumar Savaliya065ca482017-06-06 14:44:45 +053066&qupv3_se9_2uart {
67 status = "disabled";
68};
69
70&qupv3_se8_spi {
71 status = "disabled";
72};
73
74&qupv3_se10_2uart {
75 status = "ok";
76};
77
78&qupv3_se3_i2c {
79 status = "disabled";
80};
81
82&qupv3_se10_i2c {
83 status = "disabled";
84};
85
86&qupv3_se6_4uart {
87 status = "disabled";
88};
Sayali Lokhande099af9c2017-06-08 10:18:29 +053089
90&ufsphy_mem {
91 compatible = "qcom,ufs-phy-qrbtc-sdm845";
92
93 vdda-phy-supply = <&pm660l_l1>; /* 0.88v */
94 vdda-pll-supply = <&pm660_l1>; /* 1.2v */
95 vdda-phy-max-microamp = <62900>;
96 vdda-pll-max-microamp = <18300>;
97
98 status = "ok";
99};
100
101&ufshc_mem {
102 limit-tx-hs-gear = <1>;
103 limit-rx-hs-gear = <1>;
104 scsi-cmd-timeout = <300000>;
105
106 vdd-hba-supply = <&ufs_phy_gdsc>;
107 vdd-hba-fixed-regulator;
108 vcc-supply = <&pm660l_l4>;
109 vccq2-supply = <&pm660_l8>;
110 vcc-max-microamp = <600000>;
111 vccq2-max-microamp = <600000>;
112
113 qcom,vddp-ref-clk-supply = <&pm660_l1>;
114 qcom,vddp-ref-clk-max-microamp = <100>;
115
116 qcom,disable-lpm;
117 rpm-level = <0>;
118 spm-level = <0>;
119 status = "ok";
120};
Vijay Viswanatheac72722017-06-05 11:01:38 +0530121
122&sdhc_1 {
123 vdd-supply = <&pm660l_l4>;
124 qcom,vdd-voltage-level = <2960000 2960000>;
125 qcom,vdd-current-level = <200 570000>;
126
127 vdd-io-supply = <&pm660_l8>;
128 qcom,vdd-io-always-on;
129 qcom,vdd-io-lpm-sup;
130 qcom,vdd-io-voltage-level = <1800000 1800000>;
131 qcom,vdd-io-current-level = <200 325000>;
132
133 pinctrl-names = "active", "sleep";
134 pinctrl-0 = <&sdc1_clk_on &sdc1_cmd_on &sdc1_data_on>;
135 pinctrl-1 = <&sdc1_clk_off &sdc1_cmd_off &sdc1_data_off>;
136
137 qcom,clk-rates = <400000 20000000 25000000 50000000>;
138 qcom,bus-speed-mode = "HS200_1p8v", "DDR_1p8v";
139
140 status = "ok";
141};
Vijay Viswanathee4340d2017-08-28 09:50:18 +0530142
143&sdhc_2 {
144 vdd-supply = <&pm660l_l5>;
145 qcom,vdd-voltage-level = <2960000 2960000>;
146 qcom,vdd-current-level = <200 800000>;
147
148 vdd-io-supply = <&pm660l_l2>;
149 qcom,vdd-io-voltage-level = <1800000 2960000>;
150 qcom,vdd-io-current-level = <200 22000>;
151
152 pinctrl-names = "active", "sleep";
153 pinctrl-0 = <&sdc2_clk_on &sdc2_cmd_on &sdc2_data_on>;
154 pinctrl-1 = <&sdc2_clk_off &sdc2_cmd_off &sdc2_data_off>;
155
156 qcom,clk-rates = <400000 20000000 25000000 50000000>;
157 qcom,bus-speed-mode = "SDR12", "SDR25", "SDR50";
158
159 status = "ok";
160};
Pratham Pratap9e420a32017-09-05 11:26:57 +0530161
162&usb0 {
163 /delete-property/ qcom,usb-dbm;
164 /delete-property/ extcon;
165 qcom,charging-disabled;
166 dwc3@a600000 {
167 maximum-speed = "high-speed";
168 usb-phy = <&qusb_phy0>, <&usb_nop_phy>;
169 };
170};
171
172&qusb_phy0 {
173 reg = <0x088e2000 0x4>,
174 <0x0a720000 0x9500>;
175 reg-names = "qusb_phy_base",
176 "emu_phy_base";
177 qcom,emulation;
178 qcom,emu-init-seq = <0x19 0x1404
179 0x20 0x1414
180 0x79 0x1410
181 0x00 0x1418
182 0x99 0x1404
183 0x04 0x1408
184 0xd9 0x1404>;
185
186 qcom,emu-dcm-reset-seq = <0x5 0x14 /* 0x1 0x14 for E1.2 */
187 0x100000 0x20
188 0x0 0x20
189 0x1a0 0x20 /* 0x220 0x20 for E1.2 */
190 0x80 0x28>;
191};
192
193&usb_qmp_dp_phy {
194 status = "disabled";
195};