Merge "ARM: dts: qcom: add PMIC device support for sun V8 power grid boards"

This commit is contained in:
qctecmdr
2023-12-02 14:52:01 -08:00
committed by Gerrit - the friendly Code Review server
9 changed files with 187 additions and 6 deletions

View File

@@ -36,6 +36,30 @@
};
};
pm8550ve_f: qcom,pm8550ve@5 {
compatible = "qcom,spmi-pmic";
reg = <0x5 SPMI_USID>;
#address-cells = <1>;
#size-cells = <0>;
status = "disabled";
pm8550ve_f_tz: pm8550ve-f-temp-alarm@a00 {
compatible = "qcom,spmi-temp-alarm";
reg = <0xa00>;
interrupts = <0x5 0xa 0x0 IRQ_TYPE_EDGE_BOTH>;
#thermal-sensor-cells = <0>;
};
pm8550ve_f_gpios: pinctrl@8800 {
compatible = "qcom,pm8550ve-gpio";
reg = <0x8800>;
gpio-controller;
#gpio-cells = <2>;
interrupt-controller;
#interrupt-cells = <2>;
};
};
pm8550ve_g: qcom,pm8550ve@6 {
compatible = "qcom,spmi-pmic";
reg = <0x6 SPMI_USID>;
@@ -114,6 +138,34 @@
};
};
pm8550ve_f_temp_alarm: pm8550ve_f_tz {
polling-delay-passive = <100>;
polling-delay = <0>;
thermal-governor = "step_wise";
thermal-sensors = <&pm8550ve_f_tz>;
status = "disabled";
trips {
pm8550ve_f_trip0: trip0 {
temperature = <95000>;
hysteresis = <0>;
type = "passive";
};
pm8550ve_f_trip1: trip1 {
temperature = <115000>;
hysteresis = <0>;
type = "passive";
};
pm8550ve_f_trip2: trip2 {
temperature = <145000>;
hysteresis = <0>;
type = "critical";
};
};
};
pm8550ve_g_temp_alarm: pm8550ve_g_tz {
polling-delay-passive = <100>;
polling-delay = <0>;

View File

@@ -4,3 +4,11 @@
*/
#include "sun-cdp-kiwi.dtsi"
#include "sun-pmic-overlay-v8.dtsi"
&regulator_ocp_notifier {
/delete-property/ periph-9a4-supply; /* S4J */
periph-5a7-supply = <&S5F>;
/delete-property/ periph-5aa-supply; /* S6F */
periph-5b0-supply = <&S8F_LEVEL>;
};

View File

@@ -4,3 +4,11 @@
*/
#include "sun-cdp.dtsi"
#include "sun-pmic-overlay-v8.dtsi"
&regulator_ocp_notifier {
/delete-property/ periph-9a4-supply; /* S4J */
periph-5a7-supply = <&S5F>;
/delete-property/ periph-5aa-supply; /* S6F */
periph-5b0-supply = <&S8F_LEVEL>;
};

View File

@@ -4,3 +4,11 @@
*/
#include "sun-mtp-kiwi.dtsi"
#include "sun-pmic-overlay-v8.dtsi"
&regulator_ocp_notifier {
/delete-property/ periph-9a4-supply; /* S4J */
periph-5a7-supply = <&S5F>;
/delete-property/ periph-5aa-supply; /* S6F */
periph-5b0-supply = <&S8F_LEVEL>;
};

View File

@@ -4,3 +4,11 @@
*/
#include "sun-mtp.dtsi"
#include "sun-pmic-overlay-v8.dtsi"
&regulator_ocp_notifier {
/delete-property/ periph-9a4-supply; /* S4J */
periph-5a7-supply = <&S5F>;
/delete-property/ periph-5aa-supply; /* S6F */
periph-5b0-supply = <&S8F_LEVEL>;
};

View File

@@ -0,0 +1,66 @@
// SPDX-License-Identifier: BSD-3-Clause
/*
* Copyright (c) 2023 Qualcomm Innovation Center, Inc. All rights reserved.
*/
&VRM_S4J {
status = "disabled";
};
&S4J {
status = "disabled";
};
&VRM_S5F {
status = "ok";
};
&S5F {
status = "ok";
};
&pm8550vs_f {
status = "disabled";
};
&pm8550vs_f_temp_alarm {
status = "disabled";
};
&pm8550ve_f {
status = "ok";
};
&pm8550ve_f_temp_alarm {
status = "ok";
};
&apps_rsc_drv2 {
rpmh-regulator-mxlvl {
S8F_LEVEL: pm_v8f_s8_level: regulator-vdd-mxa-level {
regulator-name = "pm_v8f_s8_level";
};
S8F_LEVEL_AO: pm_v8f_s8_level_ao: regulator-vdd-mxa-level-ao {
regulator-name = "pm_v8f_s8_level_ao";
};
};
rpmh-regulator-ldof1 {
pm_v8f_l1: regulator-pm-vxf-l1 {
regulator-name = "pm_v8f_l1";
};
};
rpmh-regulator-ldof2 {
pm_v8f_l2: regulator-pm-vxf-l2 {
regulator-name = "pm_v8f_l2";
};
};
rpmh-regulator-ldof3 {
pm_v8f_l3: regulator-pm-vxf-l3 {
regulator-name = "pm_v8f_l3";
};
};
};

View File

@@ -4,3 +4,11 @@
*/
#include "sun-qrd-sku1.dtsi"
#include "sun-pmic-overlay-v8.dtsi"
&regulator_ocp_notifier {
/delete-property/ periph-9a4-supply; /* S4J */
periph-5a7-supply = <&S5F>;
/delete-property/ periph-5aa-supply; /* S6F */
periph-5b0-supply = <&S8F_LEVEL>;
};

View File

@@ -4,3 +4,11 @@
*/
#include "sun-qrd-sku2.dtsi"
#include "sun-pmic-overlay-v8.dtsi"
&regulator_ocp_notifier {
/delete-property/ periph-9a4-supply; /* S4J */
periph-5a7-supply = <&S5F>;
/delete-property/ periph-5aa-supply; /* S6F */
periph-5b0-supply = <&S8F_LEVEL>;
};

View File

@@ -65,7 +65,7 @@
proxy-supply = <&VDD_MXA_LEVEL>;
VDD_MXA_LEVEL: VDD_MX_LEVEL: S6F_LEVEL:
pm_v6f_s6_level: regulator-pm-v6f-s6-level {
pm_v6f_s6_level: regulator-vdd-mxa-level {
regulator-name = "pm_v6f_s6_level";
qcom,set = <RPMH_REGULATOR_SET_ALL>;
regulator-min-microvolt =
@@ -81,7 +81,7 @@
};
VDD_MXA_LEVEL_AO: VDD_MX_LEVEL_AO: S6F_LEVEL_AO:
pm_v6f_s6_level_ao: regulator-pm-v6f-s6-level-ao {
pm_v6f_s6_level_ao: regulator-vdd-mxa-level-ao {
regulator-name = "pm_v6f_s6_level_ao";
qcom,set = <RPMH_REGULATOR_SET_ACTIVE>;
regulator-min-microvolt =
@@ -761,6 +761,21 @@
};
};
VRM_S5F: rpmh-regulator-smpf5 {
compatible = "qcom,rpmh-vrm-regulator";
qcom,resource-name = "smpf5";
status = "disabled";
S5F: pm_v8f_s5: regulator-pm-v8f-s5 {
regulator-name = "pm_v8f_s5";
qcom,set = <RPMH_REGULATOR_SET_ALL>;
regulator-min-microvolt = <500000>;
regulator-max-microvolt = <1000000>;
qcom,init-voltage = <852000>;
status = "disabled";
};
};
rpmh-regulator-ldof1 {
compatible = "qcom,rpmh-vrm-regulator";
qcom,resource-name = "ldof1";
@@ -770,7 +785,7 @@
RPMH_REGULATOR_MODE_HPM>;
qcom,mode-threshold-currents = <0 30000>;
L1F: pm_v6f_l1: regulator-pm-v6f-l1 {
L1F: pm_v6f_l1: regulator-pm-vxf-l1 {
regulator-name = "pm_v6f_l1";
qcom,set = <RPMH_REGULATOR_SET_ALL>;
regulator-min-microvolt = <880000>;
@@ -789,7 +804,7 @@
RPMH_REGULATOR_MODE_HPM>;
qcom,mode-threshold-currents = <0 30000>;
L2F: pm_v6f_l2: regulator-pm-v6f-l2 {
L2F: pm_v6f_l2: regulator-pm-vxf-l2 {
regulator-name = "pm_v6f_l2";
qcom,set = <RPMH_REGULATOR_SET_ALL>;
regulator-min-microvolt = <1200000>;
@@ -808,7 +823,7 @@
RPMH_REGULATOR_MODE_HPM>;
qcom,mode-threshold-currents = <0 30000>;
L3F: pm_v6f_l3: regulator-pm-v6f-l3 {
L3F: pm_v6f_l3: regulator-pm-vxf-l3 {
regulator-name = "pm_v6f_l3";
qcom,set = <RPMH_REGULATOR_SET_ALL>;
regulator-min-microvolt = <1800000>;
@@ -1029,7 +1044,7 @@
};
};
rpmh-regulator-smpj4 {
VRM_S4J: rpmh-regulator-smpj4 {
compatible = "qcom,rpmh-vrm-regulator";
qcom,resource-name = "smpj4";