mirror of
https://github.com/coolsnowwolf/lede.git
synced 2025-04-16 04:13:31 +00:00
85 lines
2.1 KiB
Diff
85 lines
2.1 KiB
Diff
From df848f06020c609950107f87c39f41e7eee92b5e Mon Sep 17 00:00:00 2001
|
|
From: Robert Marko <robimarko@gmail.com>
|
|
Date: Thu, 13 May 2021 11:54:35 +0200
|
|
Subject: [PATCH] arm64: dts: ipq8074: add SPMI PMIC regulators
|
|
|
|
PMD9655 is used in IPQ8074 and provides S3 for cores,
|
|
S4 for UBI core and LDO11 for SDIO/eMMC.
|
|
|
|
So, lets add the nodes in preparation for DVFS later.
|
|
|
|
Signed-off-by: Robert Marko <robimarko@gmail.com>
|
|
---
|
|
arch/arm64/boot/dts/qcom/ipq8074.dtsi | 46 +++++++++++++++++++++++++++
|
|
1 file changed, 46 insertions(+)
|
|
|
|
--- a/arch/arm64/boot/dts/qcom/ipq8074.dtsi
|
|
+++ b/arch/arm64/boot/dts/qcom/ipq8074.dtsi
|
|
@@ -5,6 +5,7 @@
|
|
|
|
#include <dt-bindings/interrupt-controller/arm-gic.h>
|
|
#include <dt-bindings/clock/qcom,gcc-ipq8074.h>
|
|
+#include <dt-bindings/spmi/spmi.h>
|
|
|
|
/ {
|
|
model = "Qualcomm Technologies, Inc. IPQ8074";
|
|
@@ -136,6 +137,15 @@
|
|
};
|
|
};
|
|
|
|
+ e_smps1_reg: fixed-regulator@0 {
|
|
+ compatible = "regulator-fixed";
|
|
+ regulator-name = "e-smps1-reg";
|
|
+ regulator-min-microvolt = <3300000>;
|
|
+ regulator-max-microvolt = <3300000>;
|
|
+ regulator-always-on;
|
|
+ regulator-boot-on;
|
|
+ };
|
|
+
|
|
soc: soc {
|
|
#address-cells = <0x1>;
|
|
#size-cells = <0x1>;
|
|
@@ -407,6 +417,42 @@
|
|
interrupt-controller;
|
|
#interrupt-cells = <4>;
|
|
cell-index = <0>;
|
|
+
|
|
+ pmic@1 {
|
|
+ compatible ="qcom,spmi-pmic";
|
|
+ reg = <0x1 SPMI_USID>;
|
|
+ #address-cells = <1>;
|
|
+ #size-cells = <0>;
|
|
+
|
|
+ regulators {
|
|
+ compatible = "qcom,pmd9655-regulators";
|
|
+ vdd_s3-supply = <&e_smps1_reg>;
|
|
+ vdd_s4-supply = <&e_smps1_reg>;
|
|
+ vdd_ldo11-supply = <&e_smps1_reg>;
|
|
+
|
|
+ s3: s3 {
|
|
+ regulator-name = "pmd9655_s3";
|
|
+ regulator-min-microvolt = <592000>;
|
|
+ regulator-max-microvolt = <1064000>;
|
|
+ regulator-always-on;
|
|
+ regulator-boot-on;
|
|
+ };
|
|
+
|
|
+ s4: s4 {
|
|
+ regulator-name = "pmd9655_s4";
|
|
+ regulator-min-microvolt = <712000>;
|
|
+ regulator-max-microvolt = <992000>;
|
|
+ regulator-always-on;
|
|
+ regulator-boot-on;
|
|
+ };
|
|
+
|
|
+ ldo11: ldo11 {
|
|
+ regulator-name = "pmd9655_ldo11";
|
|
+ regulator-min-microvolt = <1104000>;
|
|
+ regulator-max-microvolt = <3300000>;
|
|
+ };
|
|
+ };
|
|
+ };
|
|
};
|
|
|
|
sdhc_1: sdhci@7824900 {
|