Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

dt-bindings: soc: qcom: qcom,pmic-glink: add a gpio used to determine the Type-C port plug orientation

On SM8450 and SM8550 based platforms, the Type-C plug orientation is given on a
GPIO line for each connector which are set by the PMIC(s).

Document this optional Type-C connector property, and take the
assumption an active level represents an inverted/flipped orientation.

Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
Link: https://lore.kernel.org/r/20231002-topic-sm8550-upstream-type-c-orientation-v2-1-125410d3ff95@linaro.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Neil Armstrong and committed by
Greg Kroah-Hartman
65682407 e24bc293

+19
+19
Documentation/devicetree/bindings/soc/qcom/qcom,pmic-glink.yaml
··· 35 35 '#size-cells': 36 36 const: 0 37 37 38 + orientation-gpios: 39 + description: Array of input gpios for the Type-C connector orientation indication. 40 + The GPIO indication is used to detect the orientation of the Type-C connector. 41 + The array should contain a gpio entry for each PMIC Glink connector, in reg order. 42 + It is defined that GPIO active level means "CC2" or Reversed/Flipped orientation. 43 + 38 44 patternProperties: 39 45 '^connector@\d$': 40 46 $ref: /schemas/connector/usb-connector.yaml# ··· 49 43 50 44 required: 51 45 - compatible 46 + 47 + allOf: 48 + - if: 49 + not: 50 + properties: 51 + compatible: 52 + contains: 53 + enum: 54 + - qcom,sm8450-pmic-glink 55 + - qcom,sm8550-pmic-glink 56 + then: 57 + properties: 58 + orientation-gpios: false 52 59 53 60 additionalProperties: false 54 61