Skip to contentSkip to conversation

dt-bindings: extcon: tusb320: add SGM7220 fallback compatible

PATCH In review Jun Yan 2 participants 2 messages Oct 10 – Oct 12

Subsystems (2)
lore
Share & tools
lore

Jun Yan

author
#0 lore raw

PATCH 1/1 dt-bindings: extcon: tusb320: add SGM7220 fallback compatible

The SGM7220 is register-compatible with the TI TUSB320, even reporting the same device ID, so it can be described in a device tree using ti,tusb320 as the fallback compatible string.

---
 .../bindings/extcon/extcon-usbc-tusb320.yaml           | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)
Documentation/devicetree/bindings/extcon/extcon-usbc-tusb320.yaml +7 -3
index 126107dd57b1..f88486c2fb09 100644
@@ -11,9 +11,13 @@ maintainers:
 
 properties:
   compatible:
-    enum:
-      - ti,tusb320
-      - ti,tusb320l
+    oneOf:
+      - enum:
+          - ti,tusb320
+          - ti,tusb320l
+      - items:
+          - const: sgmicro,sgm7220
+          - const: ti,tusb320
 
   reg:
     maxItems: 1
Signature · 1 line
2.56.0
Acked-by on v1 1/1
#1 lore raw
Quoted 9 lines · Jun Yan

The SGM7220 is register-compatible with the TI TUSB320, even reporting the same device ID, so it can be described in a device tree using ti,tusb320 as the fallback compatible string.

---
 .../bindings/extcon/extcon-usbc-tusb320.yaml           | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)

Best regards,
Krzysztof