blob: ca9d8c70a1c9b4ea82bd2b14ba58612f62c87deb [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
Tirupathi Reddy4b983082017-09-04 10:11:15 +053013#include "sdm670-pmic-overlay.dtsi"
14
Tirupathi Reddy85fa2342017-08-24 16:17:45 +053015&soc {
16 /* Delete all regulators */
17 /delete-node/ rpmh-regulator-smpa4;
18 /delete-node/ rpmh-regulator-smpa6;
19 /delete-node/ rpmh-regulator-mxlvl;
20 /delete-node/ rpmh-regulator-modemlvl;
21 /delete-node/ rpmh-regulator-cxlvl;
22 /delete-node/ rpmh-regulator-ldoa1;
23 /delete-node/ rpmh-regulator-ldoa2;
24 /delete-node/ rpmh-regulator-ldoa3;
25 /delete-node/ rpmh-regulator-ldoa5;
26 /delete-node/ rpmh-regulator-ldoa6;
27 /delete-node/ rpmh-regulator-ldoa7;
28 /delete-node/ rpmh-regulator-ldoa8;
29 /delete-node/ rpmh-regulator-ldoa9;
30 /delete-node/ rpmh-regulator-ldoa10;
31 /delete-node/ rpmh-regulator-ldoa11;
32 /delete-node/ rpmh-regulator-ldoa12;
33 /delete-node/ rpmh-regulator-ldoa13;
34 /delete-node/ rpmh-regulator-ldoa14;
35 /delete-node/ rpmh-regulator-ldoa15;
36 /delete-node/ rpmh-regulator-ldoa16;
37 /delete-node/ rpmh-regulator-ldoa17;
38 /delete-node/ rpmh-regulator-ldoa19;
39 /delete-node/ rpmh-regulator-ldob1;
40 /delete-node/ rpmh-regulator-ldob2;
41 /delete-node/ rpmh-regulator-ldob3;
42 /delete-node/ rpmh-regulator-ldob4;
43 /delete-node/ rpmh-regulator-ldob5;
44 /delete-node/ rpmh-regulator-ldob6;
45 /delete-node/ rpmh-regulator-ldob7;
46 /delete-node/ rpmh-regulator-ldob8;
47 /delete-node/ rpmh-regulator-lcxlvl;
48 /delete-node/ rpmh-regulator-lmxlvl;
49 /delete-node/ rpmh-regulator-ldoa28;
50 /delete-node/ rpmh-regulator-bobb1;
51 /delete-node/ rpmh-regulator-gfxlvl;
52};
53
54#include "sdm670-stub-regulator.dtsi"
55
Mukesh Kumar Savaliya065ca482017-06-06 14:44:45 +053056&qupv3_se9_2uart {
57 status = "disabled";
58};
59
60&qupv3_se8_spi {
61 status = "disabled";
62};
63
64&qupv3_se10_2uart {
65 status = "ok";
66};
67
68&qupv3_se3_i2c {
69 status = "disabled";
70};
71
72&qupv3_se10_i2c {
73 status = "disabled";
74};
75
76&qupv3_se6_4uart {
77 status = "disabled";
78};
Sayali Lokhande099af9c2017-06-08 10:18:29 +053079
80&ufsphy_mem {
81 compatible = "qcom,ufs-phy-qrbtc-sdm845";
82
83 vdda-phy-supply = <&pm660l_l1>; /* 0.88v */
84 vdda-pll-supply = <&pm660_l1>; /* 1.2v */
85 vdda-phy-max-microamp = <62900>;
86 vdda-pll-max-microamp = <18300>;
87
88 status = "ok";
89};
90
91&ufshc_mem {
92 limit-tx-hs-gear = <1>;
93 limit-rx-hs-gear = <1>;
94 scsi-cmd-timeout = <300000>;
95
96 vdd-hba-supply = <&ufs_phy_gdsc>;
97 vdd-hba-fixed-regulator;
98 vcc-supply = <&pm660l_l4>;
99 vccq2-supply = <&pm660_l8>;
100 vcc-max-microamp = <600000>;
101 vccq2-max-microamp = <600000>;
102
103 qcom,vddp-ref-clk-supply = <&pm660_l1>;
104 qcom,vddp-ref-clk-max-microamp = <100>;
105
106 qcom,disable-lpm;
107 rpm-level = <0>;
108 spm-level = <0>;
109 status = "ok";
110};
Vijay Viswanatheac72722017-06-05 11:01:38 +0530111
112&sdhc_1 {
113 vdd-supply = <&pm660l_l4>;
114 qcom,vdd-voltage-level = <2960000 2960000>;
115 qcom,vdd-current-level = <200 570000>;
116
117 vdd-io-supply = <&pm660_l8>;
118 qcom,vdd-io-always-on;
119 qcom,vdd-io-lpm-sup;
120 qcom,vdd-io-voltage-level = <1800000 1800000>;
121 qcom,vdd-io-current-level = <200 325000>;
122
123 pinctrl-names = "active", "sleep";
124 pinctrl-0 = <&sdc1_clk_on &sdc1_cmd_on &sdc1_data_on>;
125 pinctrl-1 = <&sdc1_clk_off &sdc1_cmd_off &sdc1_data_off>;
126
127 qcom,clk-rates = <400000 20000000 25000000 50000000>;
128 qcom,bus-speed-mode = "HS200_1p8v", "DDR_1p8v";
129
130 status = "ok";
131};
Vijay Viswanathee4340d2017-08-28 09:50:18 +0530132
133&sdhc_2 {
134 vdd-supply = <&pm660l_l5>;
135 qcom,vdd-voltage-level = <2960000 2960000>;
136 qcom,vdd-current-level = <200 800000>;
137
138 vdd-io-supply = <&pm660l_l2>;
139 qcom,vdd-io-voltage-level = <1800000 2960000>;
140 qcom,vdd-io-current-level = <200 22000>;
141
142 pinctrl-names = "active", "sleep";
143 pinctrl-0 = <&sdc2_clk_on &sdc2_cmd_on &sdc2_data_on>;
144 pinctrl-1 = <&sdc2_clk_off &sdc2_cmd_off &sdc2_data_off>;
145
146 qcom,clk-rates = <400000 20000000 25000000 50000000>;
147 qcom,bus-speed-mode = "SDR12", "SDR25", "SDR50";
148
149 status = "ok";
150};
Pratham Pratap9e420a32017-09-05 11:26:57 +0530151
152&usb0 {
153 /delete-property/ qcom,usb-dbm;
154 /delete-property/ extcon;
155 qcom,charging-disabled;
156 dwc3@a600000 {
157 maximum-speed = "high-speed";
158 usb-phy = <&qusb_phy0>, <&usb_nop_phy>;
159 };
160};
161
162&qusb_phy0 {
163 reg = <0x088e2000 0x4>,
164 <0x0a720000 0x9500>;
165 reg-names = "qusb_phy_base",
166 "emu_phy_base";
167 qcom,emulation;
168 qcom,emu-init-seq = <0x19 0x1404
169 0x20 0x1414
170 0x79 0x1410
171 0x00 0x1418
172 0x99 0x1404
173 0x04 0x1408
174 0xd9 0x1404>;
175
176 qcom,emu-dcm-reset-seq = <0x5 0x14 /* 0x1 0x14 for E1.2 */
177 0x100000 0x20
178 0x0 0x20
179 0x1a0 0x20 /* 0x220 0x20 for E1.2 */
180 0x80 0x28>;
181};
182
183&usb_qmp_dp_phy {
184 status = "disabled";
185};