Commit f637c0c6 authored by Dmitry Baryshkov's avatar Dmitry Baryshkov Committed by Greg Kroah-Hartman

dt-bindings: usb: qcom,pmic-typec: add support for the PMI632 block

The PMI632 PMIC has the same Type-C register block as the PM8150B.
However this PMIC doesn't support USB Power Delivery. As such it doesn't
have the second region used by the existing pm8150b bindings. Add if
clauses to handle the PMI632 usecase.

Tested-by: Luca Weiss <luca.weiss@fairphone.com> # sdm632-fairphone-fp3
Signed-off-by: default avatarDmitry Baryshkov <dmitry.baryshkov@linaro.org>
Reviewed-by: default avatarRob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20240130-pmi632-typec-v3-2-b05fe44f0a51@linaro.orgSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent ef6035d2
...@@ -15,6 +15,7 @@ description: ...@@ -15,6 +15,7 @@ description:
properties: properties:
compatible: compatible:
enum: enum:
- qcom,pmi632-typec
- qcom,pm8150b-typec - qcom,pm8150b-typec
connector: connector:
...@@ -24,9 +25,11 @@ properties: ...@@ -24,9 +25,11 @@ properties:
reg: reg:
description: Type-C port and pdphy SPMI register base offsets description: Type-C port and pdphy SPMI register base offsets
minItems: 1
maxItems: 2 maxItems: 2
interrupts: interrupts:
minItems: 8
items: items:
- description: Type-C CC attach notification, VBUS error, tCCDebounce done - description: Type-C CC attach notification, VBUS error, tCCDebounce done
- description: Type-C VCONN powered - description: Type-C VCONN powered
...@@ -46,6 +49,7 @@ properties: ...@@ -46,6 +49,7 @@ properties:
- description: Power Domain Fast Role Swap event - description: Power Domain Fast Role Swap event
interrupt-names: interrupt-names:
minItems: 8
items: items:
- const: or-rid-detect-change - const: or-rid-detect-change
- const: vpd-detect - const: vpd-detect
...@@ -81,6 +85,32 @@ required: ...@@ -81,6 +85,32 @@ required:
- interrupts - interrupts
- interrupt-names - interrupt-names
- vdd-vbus-supply - vdd-vbus-supply
allOf:
- if:
properties:
compatible:
contains:
enum:
- qcom,pmi632-typec
then:
properties:
reg:
maxItems: 1
interrupts:
maxItems: 8
interrupt-names:
maxItems: 8
vdd-pdphy-supply: false
else:
properties:
reg:
maxItems: 2
interrupts:
minItems: 16
interrupt-names:
maxItems: 16
required:
- vdd-pdphy-supply - vdd-pdphy-supply
additionalProperties: false additionalProperties: false
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment