2024-04-23 16:10:45

by George Stark

[permalink] [raw]
Subject: [PATCH 1/2] dt-bindings: pwm: amlogic: Add new bindings for meson A1 pwm

The chip has 3 dual channel PWM modules AB, CD, EF.

Signed-off-by: George Stark <[email protected]>
Signed-off-by: Dmitry Rokosov <[email protected]>
---
Documentation/devicetree/bindings/pwm/pwm-amlogic.yaml | 2 ++
1 file changed, 2 insertions(+)

diff --git a/Documentation/devicetree/bindings/pwm/pwm-amlogic.yaml b/Documentation/devicetree/bindings/pwm/pwm-amlogic.yaml
index 1d71d4f8f328..ef6daf1760ff 100644
--- a/Documentation/devicetree/bindings/pwm/pwm-amlogic.yaml
+++ b/Documentation/devicetree/bindings/pwm/pwm-amlogic.yaml
@@ -37,6 +37,7 @@ properties:
- enum:
- amlogic,meson8-pwm-v2
- amlogic,meson-s4-pwm
+ - amlogic,meson-a1-pwm
- items:
- enum:
- amlogic,meson8b-pwm-v2
@@ -126,6 +127,7 @@ allOf:
contains:
enum:
- amlogic,meson-s4-pwm
+ - amlogic,meson-a1-pwm
then:
properties:
clocks:
--
2.25.1



2024-04-23 16:56:24

by Conor Dooley

[permalink] [raw]
Subject: Re: [PATCH 1/2] dt-bindings: pwm: amlogic: Add new bindings for meson A1 pwm

On Tue, Apr 23, 2024 at 07:10:05PM +0300, George Stark wrote:
> The chip has 3 dual channel PWM modules AB, CD, EF.
>
> Signed-off-by: George Stark <[email protected]>
> Signed-off-by: Dmitry Rokosov <[email protected]>

a would sort before s.

With the re-order,
Acked-by: Conor Dooley <[email protected]>

Thanks,
Conor.

> ---
> Documentation/devicetree/bindings/pwm/pwm-amlogic.yaml | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/Documentation/devicetree/bindings/pwm/pwm-amlogic.yaml b/Documentation/devicetree/bindings/pwm/pwm-amlogic.yaml
> index 1d71d4f8f328..ef6daf1760ff 100644
> --- a/Documentation/devicetree/bindings/pwm/pwm-amlogic.yaml
> +++ b/Documentation/devicetree/bindings/pwm/pwm-amlogic.yaml
> @@ -37,6 +37,7 @@ properties:
> - enum:
> - amlogic,meson8-pwm-v2
> - amlogic,meson-s4-pwm
> + - amlogic,meson-a1-pwm
> - items:
> - enum:
> - amlogic,meson8b-pwm-v2
> @@ -126,6 +127,7 @@ allOf:
> contains:
> enum:
> - amlogic,meson-s4-pwm
> + - amlogic,meson-a1-pwm
> then:
> properties:
> clocks:
> --
> 2.25.1
>


Attachments:
(No filename) (1.23 kB)
signature.asc (235.00 B)
Download all attachments

2024-04-23 17:46:30

by Jerome Brunet

[permalink] [raw]
Subject: Re: [PATCH 1/2] dt-bindings: pwm: amlogic: Add new bindings for meson A1 pwm


On Tue 23 Apr 2024 at 17:56, Conor Dooley <[email protected]> wrote:

> [[PGP Signed Part:Undecided]]
> On Tue, Apr 23, 2024 at 07:10:05PM +0300, George Stark wrote:
>> The chip has 3 dual channel PWM modules AB, CD, EF.
>>
>> Signed-off-by: George Stark <[email protected]>
>> Signed-off-by: Dmitry Rokosov <[email protected]>
>
> a would sort before s.
>
> With the re-order,
> Acked-by: Conor Dooley <[email protected]>
>
> Thanks,
> Conor.
>
>> ---
>> Documentation/devicetree/bindings/pwm/pwm-amlogic.yaml | 2 ++
>> 1 file changed, 2 insertions(+)
>>
>> diff --git a/Documentation/devicetree/bindings/pwm/pwm-amlogic.yaml b/Documentation/devicetree/bindings/pwm/pwm-amlogic.yaml
>> index 1d71d4f8f328..ef6daf1760ff 100644
>> --- a/Documentation/devicetree/bindings/pwm/pwm-amlogic.yaml
>> +++ b/Documentation/devicetree/bindings/pwm/pwm-amlogic.yaml
>> @@ -37,6 +37,7 @@ properties:
>> - enum:
>> - amlogic,meson8-pwm-v2
>> - amlogic,meson-s4-pwm
>> + - amlogic,meson-a1-pwm

AFAICT, the a1 interface is exactly as the s4 interface.
So a1 should list s4 as a fallback and the driver should match on the s4.

>> - items:
>> - enum:
>> - amlogic,meson8b-pwm-v2
>> @@ -126,6 +127,7 @@ allOf:
>> contains:
>> enum:
>> - amlogic,meson-s4-pwm
>> + - amlogic,meson-a1-pwm
>> then:
>> properties:
>> clocks:
>> --
>> 2.25.1
>>
>
> [[End of PGP Signed Part]]


--
Jerome

2024-04-24 06:03:31

by Kelvin Zhang

[permalink] [raw]
Subject: Re: [PATCH 1/2] dt-bindings: pwm: amlogic: Add new bindings for meson A1 pwm



On 2024/4/24 01:44, Jerome Brunet wrote:
>
> On Tue 23 Apr 2024 at 17:56, Conor Dooley <[email protected]> wrote:
>
>> [[PGP Signed Part:Undecided]]
>> On Tue, Apr 23, 2024 at 07:10:05PM +0300, George Stark wrote:
>>> The chip has 3 dual channel PWM modules AB, CD, EF.
>>>
>>> Signed-off-by: George Stark <[email protected]>
>>> Signed-off-by: Dmitry Rokosov <[email protected]>
>>
>> a would sort before s.
>>
>> With the re-order,
>> Acked-by: Conor Dooley <[email protected]>
>>
>> Thanks,
>> Conor.
>>
>>> ---
>>> Documentation/devicetree/bindings/pwm/pwm-amlogic.yaml | 2 ++
>>> 1 file changed, 2 insertions(+)
>>>
>>> diff --git a/Documentation/devicetree/bindings/pwm/pwm-amlogic.yaml b/Documentation/devicetree/bindings/pwm/pwm-amlogic.yaml
>>> index 1d71d4f8f328..ef6daf1760ff 100644
>>> --- a/Documentation/devicetree/bindings/pwm/pwm-amlogic.yaml
>>> +++ b/Documentation/devicetree/bindings/pwm/pwm-amlogic.yaml
>>> @@ -37,6 +37,7 @@ properties:
>>> - enum:
>>> - amlogic,meson8-pwm-v2
>>> - amlogic,meson-s4-pwm
>>> + - amlogic,meson-a1-pwm
>
> AFAICT, the a1 interface is exactly as the s4 interface.
> So a1 should list s4 as a fallback and the driver should match on the s4.

Hi George,
For your information, we are preparing S4 submission.
Thanks!

>
>>> - items:
>>> - enum:
>>> - amlogic,meson8b-pwm-v2
>>> @@ -126,6 +127,7 @@ allOf:
>>> contains:
>>> enum:
>>> - amlogic,meson-s4-pwm
>>> + - amlogic,meson-a1-pwm
>>> then:
>>> properties:
>>> clocks:
>>> --
>>> 2.25.1
>>>
>>
>> [[End of PGP Signed Part]]
>
>
> --
> Jerome
>
> _______________________________________________
> linux-amlogic mailing list
> [email protected]
> http://lists.infradead.org/mailman/listinfo/linux-amlogic

2024-04-24 12:08:23

by Conor Dooley

[permalink] [raw]
Subject: Re: [PATCH 1/2] dt-bindings: pwm: amlogic: Add new bindings for meson A1 pwm

On Tue, Apr 23, 2024 at 07:44:35PM +0200, Jerome Brunet wrote:
>
> On Tue 23 Apr 2024 at 17:56, Conor Dooley <[email protected]> wrote:
>
> > [[PGP Signed Part:Undecided]]
> > On Tue, Apr 23, 2024 at 07:10:05PM +0300, George Stark wrote:
> >> The chip has 3 dual channel PWM modules AB, CD, EF.
> >>
> >> Signed-off-by: George Stark <[email protected]>
> >> Signed-off-by: Dmitry Rokosov <[email protected]>
> >
> > a would sort before s.
> >
> > With the re-order,
> > Acked-by: Conor Dooley <[email protected]>
> >
> > Thanks,
> > Conor.
> >
> >> ---
> >> Documentation/devicetree/bindings/pwm/pwm-amlogic.yaml | 2 ++
> >> 1 file changed, 2 insertions(+)
> >>
> >> diff --git a/Documentation/devicetree/bindings/pwm/pwm-amlogic.yaml b/Documentation/devicetree/bindings/pwm/pwm-amlogic.yaml
> >> index 1d71d4f8f328..ef6daf1760ff 100644
> >> --- a/Documentation/devicetree/bindings/pwm/pwm-amlogic.yaml
> >> +++ b/Documentation/devicetree/bindings/pwm/pwm-amlogic.yaml
> >> @@ -37,6 +37,7 @@ properties:
> >> - enum:
> >> - amlogic,meson8-pwm-v2
> >> - amlogic,meson-s4-pwm
> >> + - amlogic,meson-a1-pwm
>
> AFAICT, the a1 interface is exactly as the s4 interface.
> So a1 should list s4 as a fallback and the driver should match on the s4.

Crap, I should have checked. Please make use of the fallback :)


Attachments:
(No filename) (1.38 kB)
signature.asc (235.00 B)
Download all attachments