2022-09-07 07:06:36

by Sandipan Patra

[permalink] [raw]
Subject: [PATCH 1/3] dt-bindings: pwm: tegra: Add compatible string for Tegra234

Tegra234 has 8 different PWM controllers and each controller has only
one output. Add a device tree compatible string for Tegra234.

Signed-off-by: Sandipan Patra <[email protected]>
---
Documentation/devicetree/bindings/pwm/nvidia,tegra20-pwm.txt | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Documentation/devicetree/bindings/pwm/nvidia,tegra20-pwm.txt b/Documentation/devicetree/bindings/pwm/nvidia,tegra20-pwm.txt
index 74c41e34c3b6..331c1e66e8fa 100644
--- a/Documentation/devicetree/bindings/pwm/nvidia,tegra20-pwm.txt
+++ b/Documentation/devicetree/bindings/pwm/nvidia,tegra20-pwm.txt
@@ -9,7 +9,7 @@ Required properties:
- "nvidia,tegra132-pwm", "nvidia,tegra20-pwm": for Tegra132
- "nvidia,tegra210-pwm", "nvidia,tegra20-pwm": for Tegra210
- "nvidia,tegra186-pwm": for Tegra186
- - "nvidia,tegra194-pwm": for Tegra194
+ - "nvidia,tegra194-pwm": for Tegra194, Tegra234
- reg: physical base address and length of the controller's registers
- #pwm-cells: should be 2. See pwm.yaml in this directory for a description of
the cells format.
--
2.17.1


2022-09-08 13:04:24

by Krzysztof Kozlowski

[permalink] [raw]
Subject: Re: [PATCH 1/3] dt-bindings: pwm: tegra: Add compatible string for Tegra234

On 07/09/2022 08:25, Sandipan Patra wrote:
> Tegra234 has 8 different PWM controllers and each controller has only
> one output. Add a device tree compatible string for Tegra234.
>
> Signed-off-by: Sandipan Patra <[email protected]>
> ---
> Documentation/devicetree/bindings/pwm/nvidia,tegra20-pwm.txt | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/Documentation/devicetree/bindings/pwm/nvidia,tegra20-pwm.txt b/Documentation/devicetree/bindings/pwm/nvidia,tegra20-pwm.txt
> index 74c41e34c3b6..331c1e66e8fa 100644
> --- a/Documentation/devicetree/bindings/pwm/nvidia,tegra20-pwm.txt
> +++ b/Documentation/devicetree/bindings/pwm/nvidia,tegra20-pwm.txt
> @@ -9,7 +9,7 @@ Required properties:
> - "nvidia,tegra132-pwm", "nvidia,tegra20-pwm": for Tegra132
> - "nvidia,tegra210-pwm", "nvidia,tegra20-pwm": for Tegra210
> - "nvidia,tegra186-pwm": for Tegra186
> - - "nvidia,tegra194-pwm": for Tegra194
> + - "nvidia,tegra194-pwm": for Tegra194, Tegra234

The commit msg suggest it is different. Are you sure they are exactly
the same? If not the same, but compatible, you should use fallback.

Best regards,
Krzysztof

2022-09-09 11:25:46

by Sandipan Patra

[permalink] [raw]
Subject: RE: [PATCH 1/3] dt-bindings: pwm: tegra: Add compatible string for Tegra234


> -----Original Message-----
> From: Krzysztof Kozlowski <[email protected]>
> Sent: Thursday, September 8, 2022 5:44 PM
> To: Sandipan Patra <[email protected]>; [email protected];
> Jonathan Hunter <[email protected]>; [email protected];
> [email protected]; [email protected]; linux-
> [email protected]; [email protected]
> Cc: Bibek Basu <[email protected]>; Krishna Yarlagadda
> <[email protected]>
> Subject: Re: [PATCH 1/3] dt-bindings: pwm: tegra: Add compatible string for
> Tegra234
>
> External email: Use caution opening links or attachments
>
>
> On 07/09/2022 08:25, Sandipan Patra wrote:
> > Tegra234 has 8 different PWM controllers and each controller has only
> > one output. Add a device tree compatible string for Tegra234.
> >
> > Signed-off-by: Sandipan Patra <[email protected]>
> > ---
> > Documentation/devicetree/bindings/pwm/nvidia,tegra20-pwm.txt | 2 +-
> > 1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > diff --git
> > a/Documentation/devicetree/bindings/pwm/nvidia,tegra20-pwm.txt
> > b/Documentation/devicetree/bindings/pwm/nvidia,tegra20-pwm.txt
> > index 74c41e34c3b6..331c1e66e8fa 100644
> > --- a/Documentation/devicetree/bindings/pwm/nvidia,tegra20-pwm.txt
> > +++ b/Documentation/devicetree/bindings/pwm/nvidia,tegra20-pwm.txt
> > @@ -9,7 +9,7 @@ Required properties:
> > - "nvidia,tegra132-pwm", "nvidia,tegra20-pwm": for Tegra132
> > - "nvidia,tegra210-pwm", "nvidia,tegra20-pwm": for Tegra210
> > - "nvidia,tegra186-pwm": for Tegra186
> > - - "nvidia,tegra194-pwm": for Tegra194
> > + - "nvidia,tegra194-pwm": for Tegra194, Tegra234
>
> The commit msg suggest it is different. Are you sure they are exactly the
> same? If not the same, but compatible, you should use fallback.

Tegra194 and Tegra234 are 2 different chips using exactly same pwm module and dt node.
This change is to convey that same compatible is used for Tegra234 as well.

Thanks & Regards,
Sandipan
>
> Best regards,
> Krzysztof

2022-09-09 13:04:27

by Krzysztof Kozlowski

[permalink] [raw]
Subject: Re: [PATCH 1/3] dt-bindings: pwm: tegra: Add compatible string for Tegra234

On 09/09/2022 13:17, Sandipan Patra wrote:
>
>> -----Original Message-----
>> From: Krzysztof Kozlowski <[email protected]>
>> Sent: Thursday, September 8, 2022 5:44 PM
>> To: Sandipan Patra <[email protected]>; [email protected];
>> Jonathan Hunter <[email protected]>; [email protected];
>> [email protected]; [email protected]; linux-
>> [email protected]; [email protected]
>> Cc: Bibek Basu <[email protected]>; Krishna Yarlagadda
>> <[email protected]>
>> Subject: Re: [PATCH 1/3] dt-bindings: pwm: tegra: Add compatible string for
>> Tegra234
>>
>> External email: Use caution opening links or attachments
>>
>>
>> On 07/09/2022 08:25, Sandipan Patra wrote:
>>> Tegra234 has 8 different PWM controllers and each controller has only
>>> one output. Add a device tree compatible string for Tegra234.
>>>
>>> Signed-off-by: Sandipan Patra <[email protected]>
>>> ---
>>> Documentation/devicetree/bindings/pwm/nvidia,tegra20-pwm.txt | 2 +-
>>> 1 file changed, 1 insertion(+), 1 deletion(-)
>>>
>>> diff --git
>>> a/Documentation/devicetree/bindings/pwm/nvidia,tegra20-pwm.txt
>>> b/Documentation/devicetree/bindings/pwm/nvidia,tegra20-pwm.txt
>>> index 74c41e34c3b6..331c1e66e8fa 100644
>>> --- a/Documentation/devicetree/bindings/pwm/nvidia,tegra20-pwm.txt
>>> +++ b/Documentation/devicetree/bindings/pwm/nvidia,tegra20-pwm.txt
>>> @@ -9,7 +9,7 @@ Required properties:
>>> - "nvidia,tegra132-pwm", "nvidia,tegra20-pwm": for Tegra132
>>> - "nvidia,tegra210-pwm", "nvidia,tegra20-pwm": for Tegra210
>>> - "nvidia,tegra186-pwm": for Tegra186
>>> - - "nvidia,tegra194-pwm": for Tegra194
>>> + - "nvidia,tegra194-pwm": for Tegra194, Tegra234
>>
>> The commit msg suggest it is different. Are you sure they are exactly the
>> same? If not the same, but compatible, you should use fallback.
>
> Tegra194 and Tegra234 are 2 different chips using exactly same pwm module and dt node.
> This change is to convey that same compatible is used for Tegra234 as well.

Then recommended is to have Tegra234 specific compatible with fallback
to 194.


Best regards,
Krzysztof