aboutsummaryrefslogtreecommitdiff
path: root/Bindings/soc/qcom/qcom,pmic-glink.yaml
diff options
context:
space:
mode:
authorEmmanuel Vadot <manu@FreeBSD.org>2024-04-19 16:03:26 +0000
committerEmmanuel Vadot <manu@FreeBSD.org>2024-04-19 16:03:26 +0000
commit1fcc28bca1057f051708a8fc59129ea42c574693 (patch)
treec56b72a227b6a1abcdd3c30a11439a8a595c4b9c /Bindings/soc/qcom/qcom,pmic-glink.yaml
parentdbacf41c97755475589f64dd45ffa90febddf368 (diff)
downloadsrc-1fcc28bca1057f051708a8fc59129ea42c574693.tar.gz
src-1fcc28bca1057f051708a8fc59129ea42c574693.zip
Import device-tree files from Linux 6.7vendor/device-tree/6.7
Diffstat (limited to 'Bindings/soc/qcom/qcom,pmic-glink.yaml')
-rw-r--r--Bindings/soc/qcom/qcom,pmic-glink.yaml19
1 files changed, 19 insertions, 0 deletions
diff --git a/Bindings/soc/qcom/qcom,pmic-glink.yaml b/Bindings/soc/qcom/qcom,pmic-glink.yaml
index bceb479f74c5..422921cf1f82 100644
--- a/Bindings/soc/qcom/qcom,pmic-glink.yaml
+++ b/Bindings/soc/qcom/qcom,pmic-glink.yaml
@@ -35,6 +35,12 @@ properties:
'#size-cells':
const: 0
+ orientation-gpios:
+ description: Array of input gpios for the Type-C connector orientation indication.
+ The GPIO indication is used to detect the orientation of the Type-C connector.
+ The array should contain a gpio entry for each PMIC Glink connector, in reg order.
+ It is defined that GPIO active level means "CC2" or Reversed/Flipped orientation.
+
patternProperties:
'^connector@\d$':
$ref: /schemas/connector/usb-connector.yaml#
@@ -44,6 +50,19 @@ patternProperties:
required:
- compatible
+allOf:
+ - if:
+ not:
+ properties:
+ compatible:
+ contains:
+ enum:
+ - qcom,sm8450-pmic-glink
+ - qcom,sm8550-pmic-glink
+ then:
+ properties:
+ orientation-gpios: false
+
additionalProperties: false
examples: