2020-05-07 21:49:38

by Bryan O'Donoghue

[permalink] [raw]
Subject: [PATCH v2 0/2] Add TI tps6598x DT binding and probe

V2:
- Put myself down as sole schema maintainer as suggested - Andy
- Fixed whitespace typo - Andy
- Removed ifdef and of_match_ptr() - Andy

V1:
This simple series adds DT binding yaml and a DT lookup table for the
tps6598x.

Its possible to use i2c id_table to match the 'compatible = "ti,tps6598x"
and probe that way, however I think it is worthwhile adding a specific OF
way of doing it and having an accompanying yaml as an example.

Bryan O'Donoghue (2):
dt-bindings: usb: Add TI tps6598x device tree binding documentation
usb: typec: tps6598x: Add OF probe binding

.../devicetree/bindings/usb/ti,tps6598x.yaml | 64 +++++++++++++++++++
drivers/usb/typec/tps6598x.c | 7 ++
2 files changed, 71 insertions(+)
create mode 100644 Documentation/devicetree/bindings/usb/ti,tps6598x.yaml

--
2.25.1


2020-05-08 14:04:21

by Heikki Krogerus

[permalink] [raw]
Subject: Re: [PATCH v2 0/2] Add TI tps6598x DT binding and probe

Hi,

On Thu, May 07, 2020 at 10:47:31PM +0100, Bryan O'Donoghue wrote:
> V2:
> - Put myself down as sole schema maintainer as suggested - Andy
> - Fixed whitespace typo - Andy
> - Removed ifdef and of_match_ptr() - Andy
>
> V1:
> This simple series adds DT binding yaml and a DT lookup table for the
> tps6598x.
>
> Its possible to use i2c id_table to match the 'compatible = "ti,tps6598x"
> and probe that way, however I think it is worthwhile adding a specific OF
> way of doing it and having an accompanying yaml as an example.
>
> Bryan O'Donoghue (2):
> dt-bindings: usb: Add TI tps6598x device tree binding documentation
> usb: typec: tps6598x: Add OF probe binding
>
> .../devicetree/bindings/usb/ti,tps6598x.yaml | 64 +++++++++++++++++++
> drivers/usb/typec/tps6598x.c | 7 ++
> 2 files changed, 71 insertions(+)
> create mode 100644 Documentation/devicetree/bindings/usb/ti,tps6598x.yaml

There was already a series from Angus [1] for this. The bindings
looked a bit different, but I think we should use these, because in
the DT bindings from Angus there appeared to be definitions for OF
graph that was not used. Or maybe I got it wrong?

Angus, is it OK if we use these patches instead the ones from you?

[1] https://lore.kernel.org/linux-usb/[email protected]/

thanks,

--
heikki

2020-05-08 14:25:15

by Angus Ainslie

[permalink] [raw]
Subject: Re: [PATCH v2 0/2] Add TI tps6598x DT binding and probe

Hi,

On 2020-05-08 07:01, Heikki Krogerus wrote:
> Hi,
>
> On Thu, May 07, 2020 at 10:47:31PM +0100, Bryan O'Donoghue wrote:
>> V2:
>> - Put myself down as sole schema maintainer as suggested - Andy
>> - Fixed whitespace typo - Andy
>> - Removed ifdef and of_match_ptr() - Andy
>>
>> V1:
>> This simple series adds DT binding yaml and a DT lookup table for the
>> tps6598x.
>>
>> Its possible to use i2c id_table to match the 'compatible =
>> "ti,tps6598x"
>> and probe that way, however I think it is worthwhile adding a specific
>> OF
>> way of doing it and having an accompanying yaml as an example.
>>
>> Bryan O'Donoghue (2):
>> dt-bindings: usb: Add TI tps6598x device tree binding documentation
>> usb: typec: tps6598x: Add OF probe binding
>>
>> .../devicetree/bindings/usb/ti,tps6598x.yaml | 64
>> +++++++++++++++++++
>> drivers/usb/typec/tps6598x.c | 7 ++
>> 2 files changed, 71 insertions(+)
>> create mode 100644
>> Documentation/devicetree/bindings/usb/ti,tps6598x.yaml
>
> There was already a series from Angus [1] for this. The bindings
> looked a bit different, but I think we should use these, because in
> the DT bindings from Angus there appeared to be definitions for OF
> graph that was not used. Or maybe I got it wrong?
>

I was trying to include optional components but was not sure of the
syntax so that might have been wrong.

> Angus, is it OK if we use these patches instead the ones from you?
>

Yeah these ones will work great for what we need.

Sorry Bryan I didn't realize there was a patch already in progress.

@Bryan, I'm going to send up some extcon patches for the tps6598x soon
but maybe I should check and make sure you don't already have anything
planned there.

It still needs to be retested after cleaning up but it's the top 9
patches here:

https://source.puri.sm/angus.ainslie/linux-next/-/commits/next/extcon

Thanks
Angus

> [1]
> https://lore.kernel.org/linux-usb/[email protected]/
>
> thanks,

2020-05-08 14:51:08

by Bryan O'Donoghue

[permalink] [raw]
Subject: Re: [PATCH v2 0/2] Add TI tps6598x DT binding and probe

On 08/05/2020 15:22, Angus Ainslie wrote:
> Hi,
>
> On 2020-05-08 07:01, Heikki Krogerus wrote:
>> Hi,
>>
>> On Thu, May 07, 2020 at 10:47:31PM +0100, Bryan O'Donoghue wrote:
>>> V2:
>>> - Put myself down as sole schema maintainer as suggested - Andy
>>> - Fixed whitespace typo - Andy
>>> - Removed ifdef and of_match_ptr() - Andy
>>>
>>> V1:
>>> This simple series adds DT binding yaml and a DT lookup table for the
>>> tps6598x.
>>>
>>> Its possible to use i2c id_table to match the 'compatible =
>>> "ti,tps6598x"
>>> and probe that way, however I think it is worthwhile adding a
>>> specific OF
>>> way of doing it and having an accompanying yaml as an example.
>>>
>>> Bryan O'Donoghue (2):
>>>   dt-bindings: usb: Add TI tps6598x device tree binding documentation
>>>   usb: typec: tps6598x: Add OF probe binding
>>>
>>>  .../devicetree/bindings/usb/ti,tps6598x.yaml  | 64 +++++++++++++++++++
>>>  drivers/usb/typec/tps6598x.c                  |  7 ++
>>>  2 files changed, 71 insertions(+)
>>>  create mode 100644
>>> Documentation/devicetree/bindings/usb/ti,tps6598x.yaml
>>
>> There was already a series from Angus [1] for this. The bindings
>> looked a bit different, but I think we should use these, because in
>> the DT bindings from Angus there appeared to be definitions for OF
>> graph that was not used. Or maybe I got it wrong?
>>
>
> I was trying to include optional components but was not sure of the
> syntax so that might have been wrong.
>
>> Angus, is it OK if we use these patches instead the ones from you?
>>
>
> Yeah these ones will work great for what we need.
>
> Sorry Bryan I didn't realize there was a patch already in progress.
>
> @Bryan, I'm going to send up some extcon patches for the tps6598x soon
> but maybe I should check and make sure you don't already have anything
> planned there.
>
> It still needs to be retested after cleaning up but it's the top 9
> patches here:
>
> https://source.puri.sm/angus.ainslie/linux-next/-/commits/next/extcon

Makes me glad I didn't try to touch the PDO stuff :)

That series looks fine to me.

The only other modification I have is here.

https://lore.kernel.org/linux-usb/[email protected]/T/#u

which is about data-role switching.

---
bod

2020-05-08 16:23:44

by Angus Ainslie

[permalink] [raw]
Subject: Re: [PATCH v2 0/2] Add TI tps6598x DT binding and probe

On 2020-05-08 07:47, Bryan O'Donoghue wrote:
> On 08/05/2020 15:22, Angus Ainslie wrote:
>> Hi,
>>
>> On 2020-05-08 07:01, Heikki Krogerus wrote:
>>
>>> Angus, is it OK if we use these patches instead the ones from you?
>>>
>>
>> Yeah these ones will work great for what we need.
>>
>> Sorry Bryan I didn't realize there was a patch already in progress.
>>
>> @Bryan, I'm going to send up some extcon patches for the tps6598x soon
>> but maybe I should check and make sure you don't already have anything
>> planned there.
>>
>> It still needs to be retested after cleaning up but it's the top 9
>> patches here:
>>
>> https://source.puri.sm/angus.ainslie/linux-next/-/commits/next/extcon
>
> Makes me glad I didn't try to touch the PDO stuff :)
>
> That series looks fine to me.
>
> The only other modification I have is here.
>
> https://lore.kernel.org/linux-usb/[email protected]/T/#u
>
> which is about data-role switching.

We have something similar but that one should work for us. I'll try and
test that early next week.

Thanks
Angus

>
> ---
> bod