* [PATCH] dt-bindings: usb: Add binding for ti,tps25750
@ 2023-08-17 23:52 Abdel Alkuor
2023-08-18 9:31 ` Krzysztof Kozlowski
0 siblings, 1 reply; 5+ messages in thread
From: Abdel Alkuor @ 2023-08-17 23:52 UTC (permalink / raw)
To: devicetree
Cc: gregkh, robh+dt, krzysztof.kozlowski+dt, conor+dt, linux-usb,
linux-kernel, Abdel Alkuor
From: Abdel Alkuor <abdelalkuor@geotab.com>
TPS25750 provides power negotiation and capabilities management
for USB Type-C applications.
Signed-off-by: Abdel Alkuor <abdelalkuor@geotab.com>
---
.../devicetree/bindings/usb/ti,tps25750.yaml | 84 +++++++++++++++++++
1 file changed, 84 insertions(+)
create mode 100644 Documentation/devicetree/bindings/usb/ti,tps25750.yaml
diff --git a/Documentation/devicetree/bindings/usb/ti,tps25750.yaml b/Documentation/devicetree/bindings/usb/ti,tps25750.yaml
new file mode 100644
index 000000000000..326c9c2f766b
--- /dev/null
+++ b/Documentation/devicetree/bindings/usb/ti,tps25750.yaml
@@ -0,0 +1,84 @@
+# 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 <abdelalkuor@geotab.com>
+
+description: |
+ Texas Instruments 25750 Type-C Port Switch and Power Delivery controller
+
+properties:
+ compatible:
+ enum:
+ - ti,tps25750
+ reg:
+ maxItems: 1
+
+ interrupts:
+ description: |
+ maxItems: 1
+
+ interrupt-names:
+ items:
+ - const: irq
+
+ 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
+
+ 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>;
+
+ tps25750: 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>;
+ };
+ };
+ };
+ };
+ };
+...
--
2.24.4
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH] dt-bindings: usb: Add binding for ti,tps25750
2023-08-17 23:52 [PATCH] dt-bindings: usb: Add binding for ti,tps25750 Abdel Alkuor
@ 2023-08-18 9:31 ` Krzysztof Kozlowski
2023-08-18 15:35 ` Abdel Alkuor
0 siblings, 1 reply; 5+ messages in thread
From: Krzysztof Kozlowski @ 2023-08-18 9:31 UTC (permalink / raw)
To: Abdel Alkuor, devicetree
Cc: gregkh, robh+dt, krzysztof.kozlowski+dt, conor+dt, linux-usb,
linux-kernel, Abdel Alkuor
On 18/08/2023 01:52, Abdel Alkuor wrote:
> From: Abdel Alkuor <abdelalkuor@geotab.com>
>
> TPS25750 provides power negotiation and capabilities management
> for USB Type-C applications.
>
> Signed-off-by: Abdel Alkuor <abdelalkuor@geotab.com>
Where is any user of it? DTS, driver or 3rd party upstream open-source
project?
A nit, subject: drop second/last, redundant "binding for". The
"dt-bindings" prefix is already stating that these are bindings.
> ---
> .../devicetree/bindings/usb/ti,tps25750.yaml | 84 +++++++++++++++++++
> 1 file changed, 84 insertions(+)
> create mode 100644 Documentation/devicetree/bindings/usb/ti,tps25750.yaml
>
> diff --git a/Documentation/devicetree/bindings/usb/ti,tps25750.yaml b/Documentation/devicetree/bindings/usb/ti,tps25750.yaml
> new file mode 100644
> index 000000000000..326c9c2f766b
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/usb/ti,tps25750.yaml
> @@ -0,0 +1,84 @@
> +# 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 <abdelalkuor@geotab.com>
> +
> +description: |
> + Texas Instruments 25750 Type-C Port Switch and Power Delivery controller
> +
> +properties:
> + compatible:
> + enum:
> + - ti,tps25750
Blank line
> + reg:
> + maxItems: 1
> +
> + interrupts:
> + description: |
Drop description
> + maxItems: 1
> +
> + interrupt-names:
> + items:
> + - const: irq
Drop interrupt-names, it is useless in this form.
> +
> + 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>;
> +
> + tps25750: tps25750@21 {
Node names should be generic. See also an explanation and list of
examples (not exhaustive) in DT specification:
https://devicetree-specification.readthedocs.io/en/latest/chapter2-devicetree-basics.html#generic-names-recommendation
> + compatible = "ti,tps25750";
> + reg = <0x21>;
> +
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] dt-bindings: usb: Add binding for ti,tps25750
2023-08-18 9:31 ` Krzysztof Kozlowski
@ 2023-08-18 15:35 ` Abdel Alkuor
2023-08-19 7:09 ` Krzysztof Kozlowski
0 siblings, 1 reply; 5+ messages in thread
From: Abdel Alkuor @ 2023-08-18 15:35 UTC (permalink / raw)
To: Krzysztof Kozlowski
Cc: gregkh, robh+dt, conor+dt, linux-usb, devicetree, linux-kernel,
abdelalkuor
On Fri, Aug 18, 2023 at 11:31:35AM +0200, Krzysztof Kozlowski wrote:
> Where is any user of it? DTS, driver or 3rd party upstream open-source
> project?
>
Yes, for Geotab. We are working on bringing up a new BSP and we have tps25750
which doesn't have a driver in Linux yet. We developed the driver but I thought
I needed to get the dt-bindings accepted first before sending the patch for
the driver.
Sorry, this is my first time contributing to Linux. Maybe this question
was asked before but for some reason I couldn't find it.
What is usually the process? Should I upload the driver too?
>
> A nit, subject: drop second/last, redundant "binding for". The
> "dt-bindings" prefix is already stating that these are bindings.
>
> > + - ti,tps25750
>
> Blank line
>
> > + reg:
> > + interrupts:
> > + description: |
>
> Drop description
>
> > + interrupt-names:
> > + items:
> > + - const: irq
>
> Drop interrupt-names, it is useless in this form.
>
> > + 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
>
> > + tps25750: tps25750@21 {
>
> Node names should be generic. See also an explanation and list of
> examples (not exhaustive) in DT specification:
> https://devicetree-specification.readthedocs.io/en/latest/chapter2-devicetree-basics.html#generic-names-recommendation
>
>
> > + compatible = "ti,tps25750";
> > + reg = <0x21>;
> > +
>
>
> Best regards,
> Krzysztof
>
Thanks for the review. I've addressed your comments in v2
Best Regards,
Abdel
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] dt-bindings: usb: Add binding for ti,tps25750
2023-08-18 15:35 ` Abdel Alkuor
@ 2023-08-19 7:09 ` Krzysztof Kozlowski
2023-08-20 3:55 ` Abdel Alkuor
0 siblings, 1 reply; 5+ messages in thread
From: Krzysztof Kozlowski @ 2023-08-19 7:09 UTC (permalink / raw)
To: Abdel Alkuor
Cc: gregkh, robh+dt, conor+dt, linux-usb, devicetree, linux-kernel,
abdelalkuor
On 18/08/2023 17:35, Abdel Alkuor wrote:
> On Fri, Aug 18, 2023 at 11:31:35AM +0200, Krzysztof Kozlowski wrote:
>> Where is any user of it? DTS, driver or 3rd party upstream open-source
>> project?
>>
> Yes, for Geotab. We are working on bringing up a new BSP and we have tps25750
> which doesn't have a driver in Linux yet. We developed the driver but I thought
> I needed to get the dt-bindings accepted first before sending the patch for
> the driver.
>
> Sorry, this is my first time contributing to Linux. Maybe this question
> was asked before but for some reason I couldn't find it.
>
> What is usually the process? Should I upload the driver too?
Yes, please upload in one patchset, in following order:
1. This bindings patch
2. Driver patch
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] dt-bindings: usb: Add binding for ti,tps25750
2023-08-19 7:09 ` Krzysztof Kozlowski
@ 2023-08-20 3:55 ` Abdel Alkuor
0 siblings, 0 replies; 5+ messages in thread
From: Abdel Alkuor @ 2023-08-20 3:55 UTC (permalink / raw)
To: Krzysztof Kozlowski
Cc: gregkh, robh+dt, conor+dt, linux-usb, devicetree, linux-kernel,
abdelalkuor
On Sat, Aug 19, 2023 at 09:09:03AM +0200, Krzysztof Kozlowski wrote:
> On 18/08/2023 17:35, Abdel Alkuor wrote:
> > On Fri, Aug 18, 2023 at 11:31:35AM +0200, Krzysztof Kozlowski wrote:
> >> Where is any user of it? DTS, driver or 3rd party upstream open-source
> >> project?
> >>
> > Yes, for Geotab. We are working on bringing up a new BSP and we have tps25750
> > which doesn't have a driver in Linux yet. We developed the driver but I thought
> > I needed to get the dt-bindings accepted first before sending the patch for
> > the driver.
> >
> > Sorry, this is my first time contributing to Linux. Maybe this question
> > was asked before but for some reason I couldn't find it.
> >
> > What is usually the process? Should I upload the driver too?
>
> Yes, please upload in one patchset, in following order:
> 1. This bindings patch
> 2. Driver patch
>
Will do. Thanks.
Abdel
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2023-08-20 4:02 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-08-17 23:52 [PATCH] dt-bindings: usb: Add binding for ti,tps25750 Abdel Alkuor
2023-08-18 9:31 ` Krzysztof Kozlowski
2023-08-18 15:35 ` Abdel Alkuor
2023-08-19 7:09 ` Krzysztof Kozlowski
2023-08-20 3:55 ` Abdel Alkuor
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).