blob: fbe5ce7e15b8ef2cd96cc9ab5df8c4b669782e6c [file] [log] [blame]
Jingbiao Ludc9d8782018-01-31 16:35:04 +08001/*
2 * Copyright (c) 2018, The Linux Foundation. All rights reserved.
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License version 2 and
6 * only version 2 as published by the Free Software Foundation.
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 */
13
14#include "msm8937.dtsi"
15#include "sdm439-pm8953.dtsi"
Vaishnavi Kommaraju6e3a36d2018-03-12 11:20:20 +053016#include "sdm439-audio.dtsi"
Jingbiao Ludc9d8782018-01-31 16:35:04 +080017#include "sdm439-pmi632.dtsi"
18
Tirupathi Reddyb651b762018-03-20 10:49:34 +053019&pm8953_s5 {
20 regulator-min-microvolt = <1155000>;
21 regulator-max-microvolt = <1350000>;
22};
23
24&pm8953_s5_limit {
25 regulator-min-microvolt = <1155000>;
26 regulator-max-microvolt = <1350000>;
27};
28
Jingbiao Ludc9d8782018-01-31 16:35:04 +080029&soc {
Vijay kumar Tumati10abc9b2018-03-15 16:25:23 +053030 qcom,csid@1b30000 {
Vijay kumar Tumati6dfea302018-03-23 16:17:51 +053031 qcom,mipi-csi-vdd-supply = <&pm8953_l2>;
Vijay kumar Tumati10abc9b2018-03-15 16:25:23 +053032 };
33 qcom,csid@1b30400 {
Vijay kumar Tumati6dfea302018-03-23 16:17:51 +053034 qcom,mipi-csi-vdd-supply = <&pm8953_l2>;
Vijay kumar Tumati10abc9b2018-03-15 16:25:23 +053035 };
36 qcom,csid@1b30800 {
Vijay kumar Tumati6dfea302018-03-23 16:17:51 +053037 qcom,mipi-csi-vdd-supply = <&pm8953_l2>;
Vijay kumar Tumati10abc9b2018-03-15 16:25:23 +053038 };
39
Jingbiao Ludc9d8782018-01-31 16:35:04 +080040 mem_acc_vreg_corner: regulator@01946004 {
41 compatible = "qcom,mem-acc-regulator";
42 regulator-name = "mem_acc_corner";
43 regulator-min-microvolt = <1>;
44 regulator-max-microvolt = <3>;
45
46 qcom,acc-reg-addr-list =
47 <0x01942138 0x01942130 0x01942120
48 0x01942124 0x01946000 0x01946004>;
49
50 qcom,acc-init-reg-config = <1 0xff>, <2 0x5555>, <6 0x55>;
51
52 qcom,num-acc-corners = <3>;
53 qcom,boot-acc-corner = <2>;
54 qcom,corner1-reg-config =
55 /* SVS+ => SVS+ */
56 <(-1) (-1)>, <(-1) (-1)>, <(-1) (-1)>,
57 <(-1) (-1)>, <(-1) (-1)>, <(-1) (-1)>,
58 /* SVS+ => NOM */
59 < 3 0x1041041>, < 4 0x1041>, < 5 0x2020202>,
60 <(-1) (-1)>, <(-1) (-1)>, <(-1) (-1)>,
61 /* SVS+ => TURBO/NOM+ */
62 < 3 0x1041041>, < 4 0x1041>, < 5 0x2020202>,
63 < 3 0x0>, < 4 0x0>, < 5 0x0>;
64
65 qcom,corner2-reg-config =
66 /* NOM => SVS+ */
67 < 3 0x30c30c3>, < 4 0x30c3>, < 5 0x6060606>,
68 /* NOM => NOM */
69 <(-1) (-1)>, <(-1) (-1)>, <(-1) (-1)>,
70 /* NOM => TURBO/NOM+ */
71 < 3 0x0>, < 4 0x0>, < 5 0x0>;
72
73 qcom,corner3-reg-config =
74 /* TURBO/NOM+ => SVS+ */
75 < 3 0x1041041>, < 4 0x1041>, < 5 0x2020202>,
76 < 3 0x30c30c3>, < 4 0x30c3>, < 5 0x6060606>,
77 /* TURBO/NOM+ => NOM */
78 < 3 0x1041041>, < 4 0x1041>, < 5 0x2020202>,
79 <(-1) (-1)>, <(-1) (-1)>, <(-1) (-1)>,
80 /* TURBO/NOM+ => TURBO/NOM+ */
81 <(-1) (-1)>, <(-1) (-1)>, <(-1) (-1)>,
82 <(-1) (-1)>, <(-1) (-1)>, <(-1) (-1)>;
83 };
84
85 apc_vreg_corner: regulator@b018000 {
86 compatible = "qcom,cpr-regulator";
87 reg = <0xb018000 0x1000>, <0xb011064 4>, <0xa4000 0x1000>;
88 reg-names = "rbcpr", "rbcpr_clk", "efuse_addr";
89 interrupts = <0 15 0>;
90 regulator-name = "apc_corner";
91 regulator-min-microvolt = <1>;
92 regulator-max-microvolt = <7>;
93
94 qcom,cpr-fuse-corners = <3>;
95 qcom,cpr-voltage-ceiling = <1155000 1225000 1350000>;
96 qcom,cpr-voltage-floor = <1050000 1050000 1090000>;
97 vdd-apc-supply = <&pm8953_s5>;
98
99 mem-acc-supply = <&mem_acc_vreg_corner>;
100
101 qcom,cpr-ref-clk = <19200>;
102 qcom,cpr-timer-delay = <5000>;
103 qcom,cpr-timer-cons-up = <0>;
104 qcom,cpr-timer-cons-down = <2>;
105 qcom,cpr-irq-line = <0>;
106 qcom,cpr-step-quotient = <10>;
107 qcom,cpr-up-threshold = <2>;
108 qcom,cpr-down-threshold = <4>;
109 qcom,cpr-idle-clocks = <15>;
110 qcom,cpr-gcnt-time = <1>;
111 qcom,vdd-apc-step-up-limit = <1>;
112 qcom,vdd-apc-step-down-limit = <1>;
113 qcom,cpr-apc-volt-step = <5000>;
114
115 qcom,cpr-fuse-row = <67 0>;
116 qcom,cpr-fuse-target-quot = <42 24 6>;
117 qcom,cpr-fuse-ro-sel = <60 57 54>;
118 qcom,cpr-init-voltage-ref = <1155000 1225000 1350000>;
119 qcom,cpr-fuse-init-voltage =
120 <67 36 6 0>,
121 <67 18 6 0>,
122 <67 0 6 0>;
123 qcom,cpr-fuse-quot-offset =
124 <71 26 6 0>,
125 <71 20 6 0>,
126 <70 54 7 0>;
127 qcom,cpr-fuse-quot-offset-scale = <5 5 5>;
128 qcom,cpr-init-voltage-step = <10000>;
129 qcom,cpr-corner-map = <1 2 3 3 3 3 3>;
130 qcom,cpr-corner-frequency-map =
131 <1 960000000>,
132 <2 1094400000>,
133 <3 1209600000>,
134 <4 1248000000>,
135 <5 1344000000>,
136 <6 1401000000>,
137 <7 1497600000>;
138 qcom,speed-bin-fuse-sel = <37 34 3 0>;
139 qcom,cpr-speed-bin-max-corners =
140 <0 0 1 2 6>,
141 <1 0 1 2 7>,
142 <2 0 1 2 3>;
143 qcom,cpr-fuse-revision = <69 39 3 0>;
144 qcom,cpr-quot-adjust-scaling-factor-max = <0 1400 1400>;
145 qcom,cpr-voltage-scaling-factor-max = <0 2000 2000>;
146 qcom,cpr-scaled-init-voltage-as-ceiling;
147 qcom,cpr-fuse-version-map =
148 <0 (-1) 1 (-1) (-1) (-1)>,
149 <(-1) (-1) 2 (-1) (-1) (-1)>,
150 <(-1) (-1) 3 (-1) (-1) (-1)>,
151 <(-1) (-1) (-1) (-1) (-1) (-1)>;
152 qcom,cpr-quotient-adjustment =
153 <(-20) (-40) (-20)>,
154 <0 (-40) (20)>,
155 <0 0 (20)>,
156 <0 0 0>;
157 qcom,cpr-init-voltage-adjustment =
158 <0 0 0>,
159 <(10000) (15000) (20000)>,
160 <0 0 0>,
161 <0 0 0>;
162 qcom,cpr-enable;
163 };
Shefali Jain15f58d12018-03-02 11:18:17 +0530164
165 qcom,cpu-clock-8939@b111050 {
166 vdd-c0-supply = <&apc_vreg_corner>;
167 vdd-c1-supply = <&apc_vreg_corner>;
168 vdd-cci-supply = <&apc_vreg_corner>;
169 };
Jingbiao Ludc9d8782018-01-31 16:35:04 +0800170};