]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
dt-bindings: pinctrl: qcom-pmic-gpio: Add pm8150 support
authorVinod Koul <vkoul@kernel.org>
Wed, 14 Aug 2019 12:35:10 +0000 (18:05 +0530)
committerLinus Walleij <linus.walleij@linaro.org>
Fri, 23 Aug 2019 07:57:50 +0000 (09:57 +0200)
Add support for the PM8150 GPIO support to the Qualcomm PMIC GPIO
binding.

Signed-off-by: Vinod Koul <vkoul@kernel.org>
Link: https://lore.kernel.org/r/20190814123512.6017-1-vkoul@kernel.org
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Documentation/devicetree/bindings/pinctrl/qcom,pmic-gpio.txt
drivers/pinctrl/qcom/pinctrl-spmi-gpio.c

index 7f64a7e92c288c54f7a0616e937b954b04a16af8..56553c06f129f001d157622659c4bcaca0fcf415 100644 (file)
@@ -21,6 +21,7 @@ PMIC's from Qualcomm.
                    "qcom,pmi8994-gpio"
                    "qcom,pmi8998-gpio"
                    "qcom,pms405-gpio"
+                   "qcom,pm8150-gpio"
 
                    And must contain either "qcom,spmi-gpio" or "qcom,ssbi-gpio"
                    if the device is on an spmi bus or an ssbi bus respectively
@@ -94,6 +95,8 @@ to specify in a pin configuration subnode:
                    gpio1-gpio22 for pma8084
                    gpio1-gpio10 for pmi8994
                    gpio1-gpio12 for pms405 (holes on gpio1, gpio9 and gpio10)
+                   gpio1-gpio10 for pm8150 (holes on gpio2, gpio5, gpio7
+                                            and gpio8)
 
 - function:
        Usage: required
index ebf33f65c1bced1dd72b3c94eb9c5bff5ecf275d..0e474802380ba203f3211d69cb423e50d3a52ad7 100644 (file)
@@ -1157,6 +1157,8 @@ static const struct of_device_id pmic_gpio_of_match[] = {
        { .compatible = "qcom,pma8084-gpio", .data = (void *) 22 },
        /* pms405 has 12 GPIOs with holes on 1, 9, and 10 */
        { .compatible = "qcom,pms405-gpio", .data = (void *) 12 },
+       /* pm8150 has 10 GPIOs with holes on 2, 5, 7 and 8 */
+       { .compatible = "qcom,pm8150-gpio", .data = (void *) 10 },
        { },
 };