From bb816118dc551cda046088a025248614ee3d2305 Mon Sep 17 00:00:00 2001 From: Kiran Gunda Date: Wed, 20 Nov 2019 18:49:28 +0530 Subject: [PATCH] dt-bindings: regulator: pm8008-regulator: add OCP interrupt support Add PM8008 PMIC LDO regulator over current protection (OCP) interrupt support and notify the consumers of the corresponding LDO when the OCP event occurred. Change-Id: I79f41a9beb25b6fd4b7f90b2ce60a705ef0500b0 --- bindings/regulator/qcom,pm8008-regulator.txt | 23 ++++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) diff --git a/bindings/regulator/qcom,pm8008-regulator.txt b/bindings/regulator/qcom,pm8008-regulator.txt index c945e86b..a5cf233d 100644 --- a/bindings/regulator/qcom,pm8008-regulator.txt +++ b/bindings/regulator/qcom,pm8008-regulator.txt @@ -26,6 +26,16 @@ PM8008 chip specific properties: Value type: Definition: pinctrol handle for chip enable GPIO. +- interrupts: + Usage: optional + Value type: + Definition: PM8008 LDO over current protection (OCP) summary interrupt. + +- interrupt-names + Usage: required if 'interrupts' property is specified. + Value type: + Definition: This should be "ocp" for the PM8008 LDO OCP interrupt. + - regulator sub-node: Usage: required Value type: @@ -34,8 +44,9 @@ PM8008 chip specific properties: Example: qcom,pm8008-chip@900 { compatible = "qcom,pm8008-chip"; - pinctrl-names = "default"; - pinctrl-0 = <&pincontrol handle>; // chip enable GPIO + + interrupts = <0x09 4 IRQ_TYPE_EDGE_RISING>; + interrupt-names = "ocp"; PM8008_EN: qcom,pm8008-chip-en { regulator-name = "pm8008-chip-en"; @@ -71,6 +82,13 @@ PM8008 chip regulator specific properties: Definition: Reference to PM8008 chip enable regulator, which manages chip enable functionlity of PM8008. +- qcom,enable-ocp-broadcast: + Usage: optional + Value type: + Definition: Property if present enables the LDO OCP broadcast bit. + This property is required only when the "ocp" interrupt + in the pm8008 chip module is enabled. + ============================================================================ Second Level Nodes - PM8008 regulator peripherals of PM8008 regulator device ============================================================================ @@ -109,6 +127,7 @@ Example: pm8008_en-supply = <&PM8008_EN>; vdd_l1_l2-supply = <&parent-supply>; + qcom,enable-ocp-broadcast; ... L1: qcom,pm8008-l1@4000 {