blob: a84d1d9ecadb27851b0bb5c292e7c8a2c1c47980 [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 {
30 mem_acc_vreg_corner: regulator@01946004 {
31 compatible = "qcom,mem-acc-regulator";
32 regulator-name = "mem_acc_corner";
33 regulator-min-microvolt = <1>;
34 regulator-max-microvolt = <3>;
35
36 qcom,acc-reg-addr-list =
37 <0x01942138 0x01942130 0x01942120
38 0x01942124 0x01946000 0x01946004>;
39
40 qcom,acc-init-reg-config = <1 0xff>, <2 0x5555>, <6 0x55>;
41
42 qcom,num-acc-corners = <3>;
43 qcom,boot-acc-corner = <2>;
44 qcom,corner1-reg-config =
45 /* SVS+ => SVS+ */
46 <(-1) (-1)>, <(-1) (-1)>, <(-1) (-1)>,
47 <(-1) (-1)>, <(-1) (-1)>, <(-1) (-1)>,
48 /* SVS+ => NOM */
49 < 3 0x1041041>, < 4 0x1041>, < 5 0x2020202>,
50 <(-1) (-1)>, <(-1) (-1)>, <(-1) (-1)>,
51 /* SVS+ => TURBO/NOM+ */
52 < 3 0x1041041>, < 4 0x1041>, < 5 0x2020202>,
53 < 3 0x0>, < 4 0x0>, < 5 0x0>;
54
55 qcom,corner2-reg-config =
56 /* NOM => SVS+ */
57 < 3 0x30c30c3>, < 4 0x30c3>, < 5 0x6060606>,
58 /* NOM => NOM */
59 <(-1) (-1)>, <(-1) (-1)>, <(-1) (-1)>,
60 /* NOM => TURBO/NOM+ */
61 < 3 0x0>, < 4 0x0>, < 5 0x0>;
62
63 qcom,corner3-reg-config =
64 /* TURBO/NOM+ => SVS+ */
65 < 3 0x1041041>, < 4 0x1041>, < 5 0x2020202>,
66 < 3 0x30c30c3>, < 4 0x30c3>, < 5 0x6060606>,
67 /* TURBO/NOM+ => NOM */
68 < 3 0x1041041>, < 4 0x1041>, < 5 0x2020202>,
69 <(-1) (-1)>, <(-1) (-1)>, <(-1) (-1)>,
70 /* TURBO/NOM+ => TURBO/NOM+ */
71 <(-1) (-1)>, <(-1) (-1)>, <(-1) (-1)>,
72 <(-1) (-1)>, <(-1) (-1)>, <(-1) (-1)>;
73 };
74
75 apc_vreg_corner: regulator@b018000 {
76 compatible = "qcom,cpr-regulator";
77 reg = <0xb018000 0x1000>, <0xb011064 4>, <0xa4000 0x1000>;
78 reg-names = "rbcpr", "rbcpr_clk", "efuse_addr";
79 interrupts = <0 15 0>;
80 regulator-name = "apc_corner";
81 regulator-min-microvolt = <1>;
82 regulator-max-microvolt = <7>;
83
84 qcom,cpr-fuse-corners = <3>;
85 qcom,cpr-voltage-ceiling = <1155000 1225000 1350000>;
86 qcom,cpr-voltage-floor = <1050000 1050000 1090000>;
87 vdd-apc-supply = <&pm8953_s5>;
88
89 mem-acc-supply = <&mem_acc_vreg_corner>;
90
91 qcom,cpr-ref-clk = <19200>;
92 qcom,cpr-timer-delay = <5000>;
93 qcom,cpr-timer-cons-up = <0>;
94 qcom,cpr-timer-cons-down = <2>;
95 qcom,cpr-irq-line = <0>;
96 qcom,cpr-step-quotient = <10>;
97 qcom,cpr-up-threshold = <2>;
98 qcom,cpr-down-threshold = <4>;
99 qcom,cpr-idle-clocks = <15>;
100 qcom,cpr-gcnt-time = <1>;
101 qcom,vdd-apc-step-up-limit = <1>;
102 qcom,vdd-apc-step-down-limit = <1>;
103 qcom,cpr-apc-volt-step = <5000>;
104
105 qcom,cpr-fuse-row = <67 0>;
106 qcom,cpr-fuse-target-quot = <42 24 6>;
107 qcom,cpr-fuse-ro-sel = <60 57 54>;
108 qcom,cpr-init-voltage-ref = <1155000 1225000 1350000>;
109 qcom,cpr-fuse-init-voltage =
110 <67 36 6 0>,
111 <67 18 6 0>,
112 <67 0 6 0>;
113 qcom,cpr-fuse-quot-offset =
114 <71 26 6 0>,
115 <71 20 6 0>,
116 <70 54 7 0>;
117 qcom,cpr-fuse-quot-offset-scale = <5 5 5>;
118 qcom,cpr-init-voltage-step = <10000>;
119 qcom,cpr-corner-map = <1 2 3 3 3 3 3>;
120 qcom,cpr-corner-frequency-map =
121 <1 960000000>,
122 <2 1094400000>,
123 <3 1209600000>,
124 <4 1248000000>,
125 <5 1344000000>,
126 <6 1401000000>,
127 <7 1497600000>;
128 qcom,speed-bin-fuse-sel = <37 34 3 0>;
129 qcom,cpr-speed-bin-max-corners =
130 <0 0 1 2 6>,
131 <1 0 1 2 7>,
132 <2 0 1 2 3>;
133 qcom,cpr-fuse-revision = <69 39 3 0>;
134 qcom,cpr-quot-adjust-scaling-factor-max = <0 1400 1400>;
135 qcom,cpr-voltage-scaling-factor-max = <0 2000 2000>;
136 qcom,cpr-scaled-init-voltage-as-ceiling;
137 qcom,cpr-fuse-version-map =
138 <0 (-1) 1 (-1) (-1) (-1)>,
139 <(-1) (-1) 2 (-1) (-1) (-1)>,
140 <(-1) (-1) 3 (-1) (-1) (-1)>,
141 <(-1) (-1) (-1) (-1) (-1) (-1)>;
142 qcom,cpr-quotient-adjustment =
143 <(-20) (-40) (-20)>,
144 <0 (-40) (20)>,
145 <0 0 (20)>,
146 <0 0 0>;
147 qcom,cpr-init-voltage-adjustment =
148 <0 0 0>,
149 <(10000) (15000) (20000)>,
150 <0 0 0>,
151 <0 0 0>;
152 qcom,cpr-enable;
153 };
154};