Skip to content

Commit

Permalink
dt-bindings: pinctrl: qcom,pmic-gpio: Allow gpio-hog nodes
Browse files Browse the repository at this point in the history
Allow specifying a GPIO hog, as already used on
qcom-msm8974-lge-nexus5-hammerhead.dts.

Signed-off-by: Luca Weiss <luca@z3ntu.xyz>
Reviewed-by: Krzysztof Kozlowski <krzk@kernel.org>
Message-ID: <20240409-qcom-pmic-gpio-hog-v2-1-5ff812d2baed@z3ntu.xyz>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
  • Loading branch information
Luca Weiss authored and Linus Walleij committed Apr 12, 2024
1 parent 2aacaed commit 50dca75
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions Documentation/devicetree/bindings/pinctrl/qcom,pmic-gpio.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -424,6 +424,10 @@ patternProperties:
$ref: "#/$defs/qcom-pmic-gpio-state"
additionalProperties: false

"-hog(-[0-9]+)?$":
required:
- gpio-hog

$defs:
qcom-pmic-gpio-state:
type: object
Expand Down Expand Up @@ -571,6 +575,7 @@ $defs:

examples:
- |
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/pinctrl/qcom,pmic-gpio.h>
pm8921_gpio: gpio@150 {
Expand All @@ -594,5 +599,12 @@ examples:
power-source = <PM8921_GPIO_S4>;
};
};
otg-hog {
gpio-hog;
gpios = <35 GPIO_ACTIVE_HIGH>;
output-high;
line-name = "otg-gpio";
};
};
...

0 comments on commit 50dca75

Please sign in to comment.