Commit 94992004 authored by AngeloGioacchino Del Regno's avatar AngeloGioacchino Del Regno Committed by Mark Brown

regulator: qcom-labibb: Document SCP/OCP interrupts

Short-Circuit Protection (SCP) and Over-Current Protection (OCP) are
now implemented in the driver: document the interrupts.
This also fixes wrong documentation about the SCP interrupt for LAB.
Signed-off-by: default avatarAngeloGioacchino Del Regno <angelogioacchino.delregno@somainline.org>
Reviewed-by: default avatarBjorn Andersson <bjorn.andersson@linaro.org>
Link: https://lore.kernel.org/r/20210119174421.226541-7-angelogioacchino.delregno@somainline.orgSigned-off-by: default avatarMark Brown <broonie@kernel.org>
parent 55813040
...@@ -29,9 +29,10 @@ properties: ...@@ -29,9 +29,10 @@ properties:
default: 200 default: 200
interrupts: interrupts:
maxItems: 1 minItems: 1
maxItems: 2
description: description:
Short-circuit interrupt for lab. Short-circuit and over-current interrupts for lab.
required: required:
- interrupts - interrupts
...@@ -47,9 +48,10 @@ properties: ...@@ -47,9 +48,10 @@ properties:
default: 300 default: 300
interrupts: interrupts:
maxItems: 1 minItems: 1
maxItems: 2
description: description:
Short-circuit interrupt for lab. Short-circuit and over-current interrupts for ibb.
required: required:
- interrupts - interrupts
...@@ -67,13 +69,15 @@ examples: ...@@ -67,13 +69,15 @@ examples:
compatible = "qcom,pmi8998-lab-ibb"; compatible = "qcom,pmi8998-lab-ibb";
lab { lab {
interrupts = <0x3 0x0 IRQ_TYPE_EDGE_RISING>; interrupts = <0x3 0xde 0x1 IRQ_TYPE_EDGE_RISING>,
interrupt-names = "sc-err"; <0x3 0xde 0x0 IRQ_TYPE_LEVEL_LOW>;
interrupt-names = "sc-err", "ocp";
}; };
ibb { ibb {
interrupts = <0x3 0x2 IRQ_TYPE_EDGE_RISING>; interrupts = <0x3 0xdc 0x2 IRQ_TYPE_EDGE_RISING>,
interrupt-names = "sc-err"; <0x3 0xdc 0x0 IRQ_TYPE_LEVEL_LOW>;
interrupt-names = "sc-err", "ocp";
}; };
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment