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