mbox series

[v2,0/2] Add TI tps6598x DT binding and probe

Message ID 20200507214733.1982696-1-bryan.odonoghue@linaro.org (mailing list archive)
Headers show
Series Add TI tps6598x DT binding and probe | expand

Message

Bryan O'Donoghue May 7, 2020, 9:47 p.m. UTC
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

Comments

Heikki Krogerus May 8, 2020, 2:01 p.m. UTC | #1
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/20200506191718.2144752-1-angus@akkea.ca/

thanks,
Angus Ainslie May 8, 2020, 2:22 p.m. UTC | #2
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/20200506191718.2144752-1-angus@akkea.ca/
> 
> thanks,
Bryan O'Donoghue May 8, 2020, 2:47 p.m. UTC | #3
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/20200507215938.1983363-2-bryan.odonoghue@linaro.org/T/#u

which is about data-role switching.

---
bod
Angus Ainslie May 8, 2020, 4:21 p.m. UTC | #4
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/20200507215938.1983363-2-bryan.odonoghue@linaro.org/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