summaryrefslogtreecommitdiff
path: root/Documentation/devicetree/bindings/mfd/qcom,pm8008.yaml
diff options
context:
space:
mode:
authorsatya priya <skakit@codeaurora.org>2021-07-23 11:31:12 +0300
committerLee Jones <lee.jones@linaro.org>2021-08-03 10:49:27 +0300
commitab09511fb69bdd4c4767053d7766f4bb9d6e36ec (patch)
tree016eb38b93b236b252b166a01afd971bcbc70e9f /Documentation/devicetree/bindings/mfd/qcom,pm8008.yaml
parentec343111c056ec3847800302f6dbc57281f833fa (diff)
downloadlinux-ab09511fb69bdd4c4767053d7766f4bb9d6e36ec.tar.xz
dt-bindings: mfd: pm8008: Add gpio-ranges and spmi-gpio compatible
Add gpio-ranges and "qcom,spmi-gpio" compatible to match with the parent qcom,pmic-gpio.yaml binding. Signed-off-by: satya priya <skakit@codeaurora.org> Reviewed-by: Rob Herring <robh@kernel.org> Reviewed-by: Bjorn Andersson <bjorn.andersson@linaro.org> Reviewed-by: Guru Das Srinagesh <gurus@codeaurora.org> Signed-off-by: Lee Jones <lee.jones@linaro.org>
Diffstat (limited to 'Documentation/devicetree/bindings/mfd/qcom,pm8008.yaml')
-rw-r--r--Documentation/devicetree/bindings/mfd/qcom,pm8008.yaml13
1 files changed, 10 insertions, 3 deletions
diff --git a/Documentation/devicetree/bindings/mfd/qcom,pm8008.yaml b/Documentation/devicetree/bindings/mfd/qcom,pm8008.yaml
index 779936850ee0..ec3138c1bbfc 100644
--- a/Documentation/devicetree/bindings/mfd/qcom,pm8008.yaml
+++ b/Documentation/devicetree/bindings/mfd/qcom,pm8008.yaml
@@ -53,7 +53,9 @@ patternProperties:
properties:
compatible:
- const: qcom,pm8008-gpio
+ items:
+ - const: qcom,pm8008-gpio
+ - const: qcom,spmi-gpio
reg:
description: Peripheral address of one of the two GPIO peripherals.
@@ -61,6 +63,9 @@ patternProperties:
gpio-controller: true
+ gpio-ranges:
+ maxItems: 1
+
interrupt-controller: true
"#interrupt-cells":
@@ -75,6 +80,7 @@ patternProperties:
- gpio-controller
- interrupt-controller
- "#gpio-cells"
+ - gpio-ranges
- "#interrupt-cells"
additionalProperties: false
@@ -107,10 +113,11 @@ examples:
interrupt-parent = <&tlmm>;
interrupts = <32 IRQ_TYPE_EDGE_RISING>;
- gpio@c000 {
- compatible = "qcom,pm8008-gpio";
+ pm8008_gpios: gpio@c000 {
+ compatible = "qcom,pm8008-gpio", "qcom,spmi-gpio";
reg = <0xc000>;
gpio-controller;
+ gpio-ranges = <&pm8008_gpios 0 0 2>;
#gpio-cells = <2>;
interrupt-controller;
#interrupt-cells = <2>;