summaryrefslogtreecommitdiffstats
path: root/Documentation/devicetree/bindings/mfd/qcom-pm8xxx.yaml
diff options
context:
space:
mode:
authorNeil Armstrong <neil.armstrong@linaro.org>2022-10-21 11:06:41 +0200
committerLee Jones <lee@kernel.org>2022-12-07 14:28:09 +0100
commit6af338b0011727da68c32ba79f8dfab8524fc4ae (patch)
tree50a01aeb5cf7a17546a86c7717138d8ef1404dc6 /Documentation/devicetree/bindings/mfd/qcom-pm8xxx.yaml
parentdt-bindings: mfd: ti,j721e-system-controller: Add compatible strings for othe... (diff)
downloadlinux-6af338b0011727da68c32ba79f8dfab8524fc4ae.tar.xz
linux-6af338b0011727da68c32ba79f8dfab8524fc4ae.zip
dt-bindings: mfd: qcom-pm8xxx: Document qcom,pm8921 as fallback of qcom,pm8018
The PM8018 is used as compatible with PM8921 on the MDM9615, document this situation, and an example section to validate this change. Reviewed-by: Rob Herring <robh@kernel.org> Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org> Signed-off-by: Lee Jones <lee@kernel.org> Link: https://lore.kernel.org/r/20220928-mdm9615-dt-schema-fixes-v4-5-dac2dfaac703@linaro.org
Diffstat (limited to 'Documentation/devicetree/bindings/mfd/qcom-pm8xxx.yaml')
-rw-r--r--Documentation/devicetree/bindings/mfd/qcom-pm8xxx.yaml33
1 files changed, 28 insertions, 5 deletions
diff --git a/Documentation/devicetree/bindings/mfd/qcom-pm8xxx.yaml b/Documentation/devicetree/bindings/mfd/qcom-pm8xxx.yaml
index 61bd0b3ce02f..84b87f01e029 100644
--- a/Documentation/devicetree/bindings/mfd/qcom-pm8xxx.yaml
+++ b/Documentation/devicetree/bindings/mfd/qcom-pm8xxx.yaml
@@ -15,11 +15,15 @@ description: |
properties:
compatible:
- enum:
- - qcom,pm8018
- - qcom,pm8058
- - qcom,pm8821
- - qcom,pm8921
+ oneOf:
+ - enum:
+ - qcom,pm8058
+ - qcom,pm8821
+ - qcom,pm8921
+ - items:
+ - enum:
+ - qcom,pm8018
+ - const: qcom,pm8921
reg:
maxItems: 1
@@ -52,4 +56,23 @@ required:
- interrupt-controller
additionalProperties: false
+
+examples:
+ - |
+ #include <dt-bindings/interrupt-controller/irq.h>
+ ssbi {
+ #address-cells = <1>;
+ #size-cells = <0>;
+ pmic@0 {
+ compatible = "qcom,pm8921";
+ reg = <0>;
+ #address-cells = <1>;
+ #size-cells = <0>;
+ interrupt-controller;
+ #interrupt-cells = <2>;
+
+ interrupt-parent = <&tlmm>;
+ interrupts = <32 IRQ_TYPE_EDGE_RISING>;
+ };
+ };
...