dt-bindings: usb: Add ti,tps25750
Subsystems (2)
PATCH 1/1 dt-bindings: usb: Add ti,tps25750
From: Abdel Alkuor <[email protected]>
TPS25750 provides power negotiation and capabilities management for USB Type-C applications.
---
v2:
- Remove redundant word 'binding' from Subject
- Add new line before reg property
- Remove unused description in interrupts property
- Drop interrupt-names property
- Add maxItems to firmware-name property
- Use generic node name 'typec' instead of 'tps25750'
--- .../devicetree/bindings/usb/ti,tps25750.yaml | 81 +++++++++++++++++++ 1 file changed, 81 insertions(+) create mode 100644 Documentation/devicetree/bindings/usb/ti,tps25750.yaml
Documentation/devicetree/bindings/usb/ti,tps25750.yaml new file +81 -0
@@ -0,0 +1,81 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/usb/ti,tps25750.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Texas Instruments 25750 Type-C Port Switch and Power Delivery controller + +maintainers: + - Abdel Alkuor <[email protected]> + +description: | + Texas Instruments 25750 Type-C Port Switch and Power Delivery controller + +properties: + compatible: + enum: + - ti,tps25750 + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + firmware-name: + description: | + Should contain the name of the default patch binary + file located on the firmware search path which is + used to switch the controller into APP mode + maxItems: 1 + + connector: + type: object + $ref: ../connector/usb-connector.yaml# + description: + Properties for usb c connector. + required: + - data-role + +required: + - compatible + - reg + - interrupts + - connector + +additionalProperties: true + +examples: + - | + #include <dt-bindings/interrupt-controller/irq.h> + i2c { + #address-cells = <1>; + #size-cells = <0>; + + typec: tps25750@21 { + compatible = "ti,tps25750"; + reg = <0x21>; + + interrupt-parent = <&msmgpio>; + interrupts = <107 IRQ_TYPE_LEVEL_LOW>; + interrupt-names = "irq"; + + firmware-name = "tps25750.bin"; + + pinctrl-names = "default"; + pinctrl-0 = <&typec_pins>; + + typec_con: connector { + compatible = "usb-c-connector"; + label = "USB-C"; + data-role = "dual"; + port { + typec_ep: endpoint { + remote-endpoint = <&otg_ep>; + }; + }; + }; + }; + }; +...
Signature · 1 line
2.34.1
Quoted 8 lines · Abdel Alkuor
From: Abdel Alkuor <[email protected]>
TPS25750 provides power negotiation and capabilities management for USB Type-C applications.
Signed-off-by Abdel Alkuor <[email protected]>---
v2:
git format-patch -v2 -1
Quoted 63 lines
- Remove redundant word 'binding' from Subject
- Add new line before reg property
- Remove unused description in interrupts property
- Drop interrupt-names property
- Add maxItems to firmware-name property
- Use generic node name 'typec' instead of 'tps25750'--- .../devicetree/bindings/usb/ti,tps25750.yaml | 81 +++++++++++++++++++ 1 file changed, 81 insertions(+) create mode 100644 Documentation/devicetree/bindings/usb/ti,tps25750.yamlDocumentation/devicetree/bindings/usb/ti,tps25750.yaml new file +46
-0@@ -0,0 +1,81 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/usb/ti,tps25750.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Texas Instruments 25750 Type-C Port Switch and Power Delivery controller + +maintainers: + - Abdel Alkuor <[email protected]> + +description: | + Texas Instruments 25750 Type-C Port Switch and Power Delivery controller + +properties: + compatible: + enum: + - ti,tps25750 + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + firmware-name: + description: | + Should contain the name of the default patch binary + file located on the firmware search path which is + used to switch the controller into APP mode + maxItems: 1 + + connector: + type: object + $ref: ../connector/usb-connector.yaml# + description: + Properties for usb c connector. + required: + - data-role + +required: + - compatible + - reg + - interrupts + - connector +
Documentation/devicetree/bindings/usb/ti,tps25750.yaml line 56
Quoted 10 lines
Documentation/devicetree/bindings/usb/ti,tps25750.yaml new file +10
-0+additionalProperties: true + +examples: + - | + #include <dt-bindings/interrupt-controller/irq.h> + i2c { + #address-cells = <1>; + #size-cells = <0>; + + typec: tps25750@21 {
Nothing improved in node name. Drop the label "typec", because it is not used.
I still wait for the user, as I wrote in your v1.
Best regards,
Krzysztof
Quoted 11 lines · Krzysztof Kozlowski
Quoted 8 lines · Abdel Alkuor
From: Abdel Alkuor <[email protected]>
TPS25750 provides power negotiation and capabilities management for USB Type-C applications.
Signed-off-by Abdel Alkuor <[email protected]>---
v2:git format-patch -v2 -1
Sorry about this. I realized after I sent the patch. Fixed in v3.
Quoted 78 lines
Quoted 64 lines
- Remove redundant word 'binding' from Subject
- Add new line before reg property
- Remove unused description in interrupts property
- Drop interrupt-names property
- Add maxItems to firmware-name property
- Use generic node name 'typec' instead of 'tps25750'--- .../devicetree/bindings/usb/ti,tps25750.yaml | 81 +++++++++++++++++++ 1 file changed, 81 insertions(+) create mode 100644 Documentation/devicetree/bindings/usb/ti,tps25750.yamlDocumentation/devicetree/bindings/usb/ti,tps25750.yaml new file +46
-0@@ -0,0 +1,81 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/usb/ti,tps25750.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Texas Instruments 25750 Type-C Port Switch and Power Delivery controller + +maintainers: + - Abdel Alkuor <[email protected]> + +description: | + Texas Instruments 25750 Type-C Port Switch and Power Delivery controller + +properties: + compatible: + enum: + - ti,tps25750 + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + firmware-name: + description: | + Should contain the name of the default patch binary + file located on the firmware search path which is + used to switch the controller into APP mode + maxItems: 1 + + connector: + type: object + $ref: ../connector/usb-connector.yaml# + description: + Properties for usb c connector. + required: + - data-role + +required: + - compatible + - reg + - interrupts + - connector +Documentation/devicetree/bindings/usb/ti,tps25750.yaml line 56
Quoted 10 lines
Documentation/devicetree/bindings/usb/ti,tps25750.yaml new file +10
-0+additionalProperties: true + +examples: + - | + #include <dt-bindings/interrupt-controller/irq.h> + i2c { + #address-cells = <1>; + #size-cells = <0>; + + typec: tps25750@21 {Nothing improved in node name. Drop the label "typec", because it is not used.
Quoted 1 line
I still wait for the user, as I wrote in your v1.
Dropped the label and used typec@21 as the node name in v3
Quoted 4 lines
Best regards,
Krzysztof
Thank you,
Abdel