Skip to content

Commit 50dca75

Browse files
z3ntulinusw
authored andcommitted
dt-bindings: pinctrl: qcom,pmic-gpio: Allow gpio-hog nodes
Allow specifying a GPIO hog, as already used on qcom-msm8974-lge-nexus5-hammerhead.dts. Signed-off-by: Luca Weiss <[email protected]> Reviewed-by: Krzysztof Kozlowski <[email protected]> Message-ID: <[email protected]> Signed-off-by: Linus Walleij <[email protected]>
1 parent 2aacaed commit 50dca75

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

Documentation/devicetree/bindings/pinctrl/qcom,pmic-gpio.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -424,6 +424,10 @@ patternProperties:
424424
$ref: "#/$defs/qcom-pmic-gpio-state"
425425
additionalProperties: false
426426

427+
"-hog(-[0-9]+)?$":
428+
required:
429+
- gpio-hog
430+
427431
$defs:
428432
qcom-pmic-gpio-state:
429433
type: object
@@ -571,6 +575,7 @@ $defs:
571575

572576
examples:
573577
- |
578+
#include <dt-bindings/gpio/gpio.h>
574579
#include <dt-bindings/pinctrl/qcom,pmic-gpio.h>
575580
576581
pm8921_gpio: gpio@150 {
@@ -594,5 +599,12 @@ examples:
594599
power-source = <PM8921_GPIO_S4>;
595600
};
596601
};
602+
603+
otg-hog {
604+
gpio-hog;
605+
gpios = <35 GPIO_ACTIVE_HIGH>;
606+
output-high;
607+
line-name = "otg-gpio";
608+
};
597609
};
598610
...

0 commit comments

Comments
 (0)