dt-bindings: extcon: tusb320: add SGM7220 fallback compatible
Subsystems (2)
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.
Signed-off-by Jun Yan <[email protected]>
--- .../bindings/extcon/extcon-usbc-tusb320.yaml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-)
Documentation/devicetree/bindings/extcon/extcon-usbc-tusb320.yaml +7 -3
@@ -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
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.
Signed-off-by Jun Yan <[email protected]>--- .../bindings/extcon/extcon-usbc-tusb320.yaml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-)
Best regards,
Krzysztof
Chanwoo Choi
AppliedQuoted 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.
Signed-off-by Jun Yan <[email protected]>--- .../bindings/extcon/extcon-usbc-tusb320.yaml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-)Documentation/devicetree/bindings/extcon/extcon-usbc-tusb320.yaml +0
-3@@ -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