Skip to contentSkip to conversation

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

PATCH Applied Jun Yan 3 participants 3 messages Oct 10 – Nov 27

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

Applied
#2 lore raw
In reply to Jun Yan
Quoted 21 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(-)
Documentation/devicetree/bindings/extcon/extcon-usbc-tusb320.yaml +0 -3
index 126107dd57b1..f88486c2fb09 100644
@@ -11,9 +11,13 @@ maintainers:
 
 properties:
   compatible:
-    enum:
-      - ti,tusb320
-      - ti,tusb320l

Documentation/devicetree/bindings/extcon/extcon-usbc-tusb320.yaml maintainers: · line 23

Quoted 10 lines
Documentation/devicetree/bindings/extcon/extcon-usbc-tusb320.yaml +7 -0
+    oneOf:
+      - enum:
+          - ti,tusb320
+          - ti,tusb320l
+      - items:
+          - const: sgmicro,sgm7220
+          - const: ti,tusb320
 
   reg:
     maxItems: 1

Applied it. Thanks.

Signature · 3 lines
Best Regards,
Chanwoo Choi
Principal Engineer, Samsung Electronics