Add a regulator over-current (OCP) notifier device along with supply properties to map from PMIC peripherals to specific regulator devices. This provides a mechanism to notify consumers of a particular regulator when OCP occurs. Change-Id: I17ee6af65492ece062722c41f97f3ea052970a25 Signed-off-by: David Collins <quic_collinsd@quicinc.com>
111 lines
1.9 KiB
Plaintext
111 lines
1.9 KiB
Plaintext
// SPDX-License-Identifier: BSD-3-Clause
|
|
/*
|
|
* Copyright (c) 2023 Qualcomm Innovation Center, Inc. All rights reserved.
|
|
*/
|
|
|
|
#include <dt-bindings/gpio/gpio.h>
|
|
|
|
#include "pm8010.dtsi"
|
|
#include "pm8550.dtsi"
|
|
#include "pm8550ve.dtsi"
|
|
#include "pm8550vs.dtsi"
|
|
#include "pmd802x.dtsi"
|
|
#include "pmih010x.dtsi"
|
|
#include "pmk8550.dtsi"
|
|
#include "pmr735d.dtsi"
|
|
|
|
&pm8550vs_f {
|
|
status = "ok";
|
|
};
|
|
|
|
&pm8550vs_j {
|
|
status = "ok";
|
|
};
|
|
|
|
&pm8550ve_d {
|
|
status = "ok";
|
|
};
|
|
|
|
&pm8550ve_g {
|
|
status = "ok";
|
|
};
|
|
|
|
&pm8550ve_i {
|
|
status = "ok";
|
|
};
|
|
|
|
&pm8550vs_f_temp_alarm {
|
|
status = "ok";
|
|
};
|
|
|
|
&pm8550vs_j_temp_alarm {
|
|
status = "ok";
|
|
};
|
|
|
|
&pm8550ve_d_temp_alarm {
|
|
status = "ok";
|
|
};
|
|
|
|
&pm8550ve_g_temp_alarm {
|
|
status = "ok";
|
|
};
|
|
|
|
&pm8550ve_i_temp_alarm {
|
|
status = "ok";
|
|
};
|
|
|
|
&pm8550_gpios {
|
|
key_vol_up {
|
|
key_vol_up_default: key_vol_up_default {
|
|
pins = "gpio6";
|
|
function = "normal";
|
|
input-enable;
|
|
bias-pull-up;
|
|
power-source = <1>;
|
|
};
|
|
};
|
|
};
|
|
|
|
&pmk8550_gpios {
|
|
pinctrl-0 = <&alt_sleep_clk_default>;
|
|
pinctrl-names = "default";
|
|
|
|
alt_sleep_clk {
|
|
alt_sleep_clk_default: alt_sleep_clk_default {
|
|
pins = "gpio3";
|
|
function = "func1";
|
|
input-disable;
|
|
output-enable;
|
|
bias-disable;
|
|
power-source = <0>;
|
|
};
|
|
};
|
|
};
|
|
|
|
&soc {
|
|
pmic-pon-log {
|
|
compatible = "qcom,pmic-pon-log";
|
|
nvmem = <&pmk8550_sdam_5>, <&pmk8550_sdam_6>;
|
|
nvmem-names = "pon_log0", "pon_log1";
|
|
};
|
|
|
|
regulator_ocp_notifier: regulator-ocp-notifier {
|
|
compatible = "qcom,regulator-ocp-notifier";
|
|
interrupt-parent = <&spmi_bus>;
|
|
interrupts = <0x0 0x71 0x1 IRQ_TYPE_EDGE_RISING>,
|
|
<0x0 0x85 0x1 IRQ_TYPE_EDGE_RISING>;
|
|
nvmem-cells = <&ocp_log>, <&alarm_log>;
|
|
nvmem-cell-names = "ocp_log", "alarm_log";
|
|
};
|
|
|
|
DBO3: regulator-dbo3 {
|
|
compatible = "qti-regulator-fixed";
|
|
regulator-name = "dbo3";
|
|
regulator-min-microvolt = <3600000>;
|
|
regulator-max-microvolt = <3600000>;
|
|
gpio = <&pm8550_gpios 9 GPIO_ACTIVE_HIGH>;
|
|
regulator-enable-ramp-delay = <1500>;
|
|
enable-active-high;
|
|
};
|
|
};
|