dbba722caafb06c727ee18883e84415aa9f84e27
[openwrt/staging/stintel.git] /
1 From 5c47a46d5e942ea6b041c8b7727b201817c1ff76 Mon Sep 17 00:00:00 2001
2 From: Christian Marangi <ansuelsmth@gmail.com>
3 Date: Thu, 7 Jul 2022 03:09:37 +0200
4 Subject: [PATCH 3/8] ARM: dts: qcom: ipq8064: add specific dtsi with smb208
5 rpm regulators
6
7 Add specific ipq8064 dtsi with smb208 rpm regulators.
8
9 Qcom advise to use this configuration but it's not mandatory and OEM
10 can decide to implement their own regulators.
11 smb208 regulators are used to scale CPU voltage, L2 cache voltage and
12 Ubi32 cores.
13
14 There regulators are controlled by rpm and to correctly works gsbi4-i2c
15 require to be NEVER disabled or rpm will reject any regulator change
16 request.
17
18 Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
19 Tested-by: Jonathan McDowell <noodles@earth.li>
20 Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
21 Link: https://lore.kernel.org/r/20220707010943.20857-4-ansuelsmth@gmail.com
22 ---
23 arch/arm/boot/dts/qcom-ipq8064-smb208.dtsi | 37 ++++++++++++++++++++++
24 1 file changed, 37 insertions(+)
25 create mode 100644 arch/arm/boot/dts/qcom-ipq8064-smb208.dtsi
26
27 --- /dev/null
28 +++ b/arch/arm/boot/dts/qcom-ipq8064-smb208.dtsi
29 @@ -0,0 +1,37 @@
30 +// SPDX-License-Identifier: GPL-2.0
31 +
32 +#include "qcom-ipq8064.dtsi"
33 +
34 +&rpm {
35 + smb208_regulators: regulators {
36 + compatible = "qcom,rpm-smb208-regulators";
37 +
38 + smb208_s1a: s1a {
39 + regulator-min-microvolt = <1050000>;
40 + regulator-max-microvolt = <1150000>;
41 +
42 + qcom,switch-mode-frequency = <1200000>;
43 + };
44 +
45 + smb208_s1b: s1b {
46 + regulator-min-microvolt = <1050000>;
47 + regulator-max-microvolt = <1150000>;
48 +
49 + qcom,switch-mode-frequency = <1200000>;
50 + };
51 +
52 + smb208_s2a: s2a {
53 + regulator-min-microvolt = < 800000>;
54 + regulator-max-microvolt = <1250000>;
55 +
56 + qcom,switch-mode-frequency = <1200000>;
57 + };
58 +
59 + smb208_s2b: s2b {
60 + regulator-min-microvolt = < 800000>;
61 + regulator-max-microvolt = <1250000>;
62 +
63 + qcom,switch-mode-frequency = <1200000>;
64 + };
65 + };
66 +};