Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1390534 > unrolled thread

Re: [PATCH v7 2/9] ARM: dts: am437x: Add missing compatibles to PWM binding documents

Started byRob Herring <robh@kernel.org>
First post2016-04-28 23:10 +0200
Last post2016-04-29 00:00 +0200
Articles 3 — 2 participants

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: [PATCH v7 2/9] ARM: dts: am437x: Add missing compatibles to PWM  binding documents Rob Herring <robh@kernel.org> - 2016-04-28 23:10 +0200
    Re: [PATCH v7 2/9] ARM: dts: am437x: Add missing compatibles to PWM  binding documents "Franklin S Cooper Jr." <fcooper@ti.com> - 2016-04-28 23:20 +0200
      Re: [PATCH v7 2/9] ARM: dts: am437x: Add missing compatibles to PWM  binding documents Rob Herring <robh@kernel.org> - 2016-04-29 00:00 +0200

#1390534 — Re: [PATCH v7 2/9] ARM: dts: am437x: Add missing compatibles to PWM binding documents

FromRob Herring <robh@kernel.org>
Date2016-04-28 23:10 +0200
SubjectRe: [PATCH v7 2/9] ARM: dts: am437x: Add missing compatibles to PWM binding documents
Message-ID<rt1ma-2o0-15@gated-at.bofh.it>
On Tue, Apr 26, 2016 at 05:36:42PM -0500, Franklin S Cooper Jr wrote:
> There are several SOC specific compatibles for ECAP, EHRPWM and PWMMS
> that are in use but aren't properly documented. Therefore, fix this
> by adding the compatibles to the appropriate binding documents.
> 
> While at it make minor corrections to the binding document.
> 
> Signed-off-by: Franklin S Cooper Jr <fcooper@ti.com>
> ---
>  .../devicetree/bindings/pwm/pwm-tiecap.txt          | 12 ++++++++++--
>  .../devicetree/bindings/pwm/pwm-tiehrpwm.txt        | 12 ++++++++++--
>  .../devicetree/bindings/pwm/pwm-tipwmss.txt         | 21 +++++++++++++++++++--
>  3 files changed, 39 insertions(+), 6 deletions(-)
> 
> diff --git a/Documentation/devicetree/bindings/pwm/pwm-tiecap.txt b/Documentation/devicetree/bindings/pwm/pwm-tiecap.txt
> index fb81179..788da6c 100644
> --- a/Documentation/devicetree/bindings/pwm/pwm-tiecap.txt
> +++ b/Documentation/devicetree/bindings/pwm/pwm-tiecap.txt
> @@ -2,8 +2,9 @@ TI SOC ECAP based APWM controller
>  
>  Required properties:
>  - compatible: Must be "ti,<soc>-ecap".
> -  for am33xx - compatible = "ti,am33xx-ecap";
> -  for da850  - compatible = "ti,da850-ecap", "ti,am33xx-ecap";
> +  for am33xx  - compatible = "ti,am33xx-ecap";
> +  for am4372  - compatible = "ti,am4372-ecap", "ti,am33xx-ecap";
> +  for da850   - compatible = "ti,da850-ecap", "ti,am33xx-ecap";
>  - #pwm-cells: should be 3. See pwm.txt in this directory for a description of
>    the cells format. The PWM channel index ranges from 0 to 4. The only third
>    cell flag supported by this binding is PWM_POLARITY_INVERTED.
> @@ -22,6 +23,13 @@ ecap0: ecap@0 { /* ECAP on am33xx */
>  	ti,hwmods = "ecap0";
>  };
>  
> +ecap0: ecap@0 { /* ECAP on am4372 */

The unit address is wrong.

> +	compatible = "ti,am4372-ecap", "ti,am33xx-ecap";
> +	#pwm-cells = <3>;
> +	reg = <0x48300100 0x80>;
> +	ti,hwmods = "ecap0";
> +};
> +
>  ecap0: ecap@0 { /* ECAP on da850 */
>  	compatible = "ti,da850-ecap", "ti,am33xx-ecap";
>  	#pwm-cells = <3>;
> diff --git a/Documentation/devicetree/bindings/pwm/pwm-tiehrpwm.txt b/Documentation/devicetree/bindings/pwm/pwm-tiehrpwm.txt
> index 9c100b2..99b544f 100644
> --- a/Documentation/devicetree/bindings/pwm/pwm-tiehrpwm.txt
> +++ b/Documentation/devicetree/bindings/pwm/pwm-tiehrpwm.txt
> @@ -2,8 +2,9 @@ TI SOC EHRPWM based PWM controller
>  
>  Required properties:
>  - compatible: Must be "ti,<soc>-ehrpwm".
> -  for am33xx - compatible = "ti,am33xx-ehrpwm";
> -  for da850  - compatible = "ti,da850-ehrpwm", "ti,am33xx-ehrpwm";
> +  for am33xx  - compatible = "ti,am33xx-ehrpwm";
> +  for am4372  - compatible = "ti,am4372-ehrpwm", "ti,am33xx-ehrpwm";
> +  for da850   - compatible = "ti,da850-ehrpwm", "ti,am33xx-ehrpwm";
>  - #pwm-cells: should be 3. See pwm.txt in this directory for a description of
>    the cells format. The only third cell flag supported by this binding is
>    PWM_POLARITY_INVERTED.
> @@ -22,6 +23,13 @@ ehrpwm0: ehrpwm@0 { /* EHRPWM on am33xx */
>  	ti,hwmods = "ehrpwm0";
>  };
>  
> +ehrpwm0: ehrpwm@0 { /* EHRPWM on am4372 */

ditto

Otherwise,

Acked-by: Rob Herring <robh@kernel.org>

[toc] | [next] | [standalone]


#1390544

From"Franklin S Cooper Jr." <fcooper@ti.com>
Date2016-04-28 23:20 +0200
Message-ID<rt1vR-2uF-27@gated-at.bofh.it>
In reply to#1390534
Rob,
On 04/28/2016 04:07 PM, Rob Herring wrote:
> On Tue, Apr 26, 2016 at 05:36:42PM -0500, Franklin S Cooper Jr wrote:
>> There are several SOC specific compatibles for ECAP, EHRPWM and PWMMS
>> that are in use but aren't properly documented. Therefore, fix this
>> by adding the compatibles to the appropriate binding documents.
>>
>> While at it make minor corrections to the binding document.
>>
>> Signed-off-by: Franklin S Cooper Jr <fcooper@ti.com>
>> ---
>>  .../devicetree/bindings/pwm/pwm-tiecap.txt          | 12 ++++++++++--
>>  .../devicetree/bindings/pwm/pwm-tiehrpwm.txt        | 12 ++++++++++--
>>  .../devicetree/bindings/pwm/pwm-tipwmss.txt         | 21 +++++++++++++++++++--
>>  3 files changed, 39 insertions(+), 6 deletions(-)
>>
>> diff --git a/Documentation/devicetree/bindings/pwm/pwm-tiecap.txt b/Documentation/devicetree/bindings/pwm/pwm-tiecap.txt
>> index fb81179..788da6c 100644
>> --- a/Documentation/devicetree/bindings/pwm/pwm-tiecap.txt
>> +++ b/Documentation/devicetree/bindings/pwm/pwm-tiecap.txt
>> @@ -2,8 +2,9 @@ TI SOC ECAP based APWM controller
>>  
>>  Required properties:
>>  - compatible: Must be "ti,<soc>-ecap".
>> -  for am33xx - compatible = "ti,am33xx-ecap";
>> -  for da850  - compatible = "ti,da850-ecap", "ti,am33xx-ecap";
>> +  for am33xx  - compatible = "ti,am33xx-ecap";
>> +  for am4372  - compatible = "ti,am4372-ecap", "ti,am33xx-ecap";
>> +  for da850   - compatible = "ti,da850-ecap", "ti,am33xx-ecap";
>>  - #pwm-cells: should be 3. See pwm.txt in this directory for a description of
>>    the cells format. The PWM channel index ranges from 0 to 4. The only third
>>    cell flag supported by this binding is PWM_POLARITY_INVERTED.
>> @@ -22,6 +23,13 @@ ecap0: ecap@0 { /* ECAP on am33xx */
>>  	ti,hwmods = "ecap0";
>>  };
>>  
>> +ecap0: ecap@0 { /* ECAP on am4372 */
> 
> The unit address is wrong.
> 
>> +	compatible = "ti,am4372-ecap", "ti,am33xx-ecap";
>> +	#pwm-cells = <3>;
>> +	reg = <0x48300100 0x80>;
>> +	ti,hwmods = "ecap0";
>> +};
>> +
>>  ecap0: ecap@0 { /* ECAP on da850 */
>>  	compatible = "ti,da850-ecap", "ti,am33xx-ecap";
>>  	#pwm-cells = <3>;
>> diff --git a/Documentation/devicetree/bindings/pwm/pwm-tiehrpwm.txt b/Documentation/devicetree/bindings/pwm/pwm-tiehrpwm.txt
>> index 9c100b2..99b544f 100644
>> --- a/Documentation/devicetree/bindings/pwm/pwm-tiehrpwm.txt
>> +++ b/Documentation/devicetree/bindings/pwm/pwm-tiehrpwm.txt
>> @@ -2,8 +2,9 @@ TI SOC EHRPWM based PWM controller
>>  
>>  Required properties:
>>  - compatible: Must be "ti,<soc>-ehrpwm".
>> -  for am33xx - compatible = "ti,am33xx-ehrpwm";
>> -  for da850  - compatible = "ti,da850-ehrpwm", "ti,am33xx-ehrpwm";
>> +  for am33xx  - compatible = "ti,am33xx-ehrpwm";
>> +  for am4372  - compatible = "ti,am4372-ehrpwm", "ti,am33xx-ehrpwm";
>> +  for da850   - compatible = "ti,da850-ehrpwm", "ti,am33xx-ehrpwm";
>>  - #pwm-cells: should be 3. See pwm.txt in this directory for a description of
>>    the cells format. The only third cell flag supported by this binding is
>>    PWM_POLARITY_INVERTED.
>> @@ -22,6 +23,13 @@ ehrpwm0: ehrpwm@0 { /* EHRPWM on am33xx */
>>  	ti,hwmods = "ehrpwm0";
>>  };
>>  
>> +ehrpwm0: ehrpwm@0 { /* EHRPWM on am4372 */
> 
> ditto
> 
> Otherwise,
> 
> Acked-by: Rob Herring <robh@kernel.org>
> 


Yes, the unit address is wrong but it is wrong in several places. I
added it like that to match what the other bindings are doing. However,
patches 3 and 4 fixes these unit address problems for all the bindings
all together to make things clear.

[toc] | [prev] | [next] | [standalone]


#1390577

FromRob Herring <robh@kernel.org>
Date2016-04-29 00:00 +0200
Message-ID<rt28z-2Pa-17@gated-at.bofh.it>
In reply to#1390544
On Thu, Apr 28, 2016 at 4:11 PM, Franklin S Cooper Jr. <fcooper@ti.com> wrote:
>
> Rob,
> On 04/28/2016 04:07 PM, Rob Herring wrote:
>> On Tue, Apr 26, 2016 at 05:36:42PM -0500, Franklin S Cooper Jr wrote:
>>> There are several SOC specific compatibles for ECAP, EHRPWM and PWMMS
>>> that are in use but aren't properly documented. Therefore, fix this
>>> by adding the compatibles to the appropriate binding documents.
>>>
>>> While at it make minor corrections to the binding document.
>>>
>>> Signed-off-by: Franklin S Cooper Jr <fcooper@ti.com>
>>> ---
>>>  .../devicetree/bindings/pwm/pwm-tiecap.txt          | 12 ++++++++++--
>>>  .../devicetree/bindings/pwm/pwm-tiehrpwm.txt        | 12 ++++++++++--
>>>  .../devicetree/bindings/pwm/pwm-tipwmss.txt         | 21 +++++++++++++++++++--
>>>  3 files changed, 39 insertions(+), 6 deletions(-)
>>>
>>> diff --git a/Documentation/devicetree/bindings/pwm/pwm-tiecap.txt b/Documentation/devicetree/bindings/pwm/pwm-tiecap.txt
>>> index fb81179..788da6c 100644
>>> --- a/Documentation/devicetree/bindings/pwm/pwm-tiecap.txt
>>> +++ b/Documentation/devicetree/bindings/pwm/pwm-tiecap.txt
>>> @@ -2,8 +2,9 @@ TI SOC ECAP based APWM controller
>>>
>>>  Required properties:
>>>  - compatible: Must be "ti,<soc>-ecap".
>>> -  for am33xx - compatible = "ti,am33xx-ecap";
>>> -  for da850  - compatible = "ti,da850-ecap", "ti,am33xx-ecap";
>>> +  for am33xx  - compatible = "ti,am33xx-ecap";
>>> +  for am4372  - compatible = "ti,am4372-ecap", "ti,am33xx-ecap";
>>> +  for da850   - compatible = "ti,da850-ecap", "ti,am33xx-ecap";
>>>  - #pwm-cells: should be 3. See pwm.txt in this directory for a description of
>>>    the cells format. The PWM channel index ranges from 0 to 4. The only third
>>>    cell flag supported by this binding is PWM_POLARITY_INVERTED.
>>> @@ -22,6 +23,13 @@ ecap0: ecap@0 { /* ECAP on am33xx */
>>>      ti,hwmods = "ecap0";
>>>  };
>>>
>>> +ecap0: ecap@0 { /* ECAP on am4372 */
>>
>> The unit address is wrong.
>>
>>> +    compatible = "ti,am4372-ecap", "ti,am33xx-ecap";
>>> +    #pwm-cells = <3>;
>>> +    reg = <0x48300100 0x80>;
>>> +    ti,hwmods = "ecap0";
>>> +};
>>> +
>>>  ecap0: ecap@0 { /* ECAP on da850 */
>>>      compatible = "ti,da850-ecap", "ti,am33xx-ecap";
>>>      #pwm-cells = <3>;
>>> diff --git a/Documentation/devicetree/bindings/pwm/pwm-tiehrpwm.txt b/Documentation/devicetree/bindings/pwm/pwm-tiehrpwm.txt
>>> index 9c100b2..99b544f 100644
>>> --- a/Documentation/devicetree/bindings/pwm/pwm-tiehrpwm.txt
>>> +++ b/Documentation/devicetree/bindings/pwm/pwm-tiehrpwm.txt
>>> @@ -2,8 +2,9 @@ TI SOC EHRPWM based PWM controller
>>>
>>>  Required properties:
>>>  - compatible: Must be "ti,<soc>-ehrpwm".
>>> -  for am33xx - compatible = "ti,am33xx-ehrpwm";
>>> -  for da850  - compatible = "ti,da850-ehrpwm", "ti,am33xx-ehrpwm";
>>> +  for am33xx  - compatible = "ti,am33xx-ehrpwm";
>>> +  for am4372  - compatible = "ti,am4372-ehrpwm", "ti,am33xx-ehrpwm";
>>> +  for da850   - compatible = "ti,da850-ehrpwm", "ti,am33xx-ehrpwm";
>>>  - #pwm-cells: should be 3. See pwm.txt in this directory for a description of
>>>    the cells format. The only third cell flag supported by this binding is
>>>    PWM_POLARITY_INVERTED.
>>> @@ -22,6 +23,13 @@ ehrpwm0: ehrpwm@0 { /* EHRPWM on am33xx */
>>>      ti,hwmods = "ehrpwm0";
>>>  };
>>>
>>> +ehrpwm0: ehrpwm@0 { /* EHRPWM on am4372 */
>>
>> ditto
>>
>> Otherwise,
>>
>> Acked-by: Rob Herring <robh@kernel.org>
>>
>
>
> Yes, the unit address is wrong but it is wrong in several places. I
> added it like that to match what the other bindings are doing. However,
> patches 3 and 4 fixes these unit address problems for all the bindings
> all together to make things clear.

Okay, that's fine.

Rob

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web