[PATCH v2 1/2] dt-bindings: arm: amlogic: add Khadas VIM1S binding

Nick Xie posted 2 patches 3 weeks, 4 days ago
There is a newer version of this series
[PATCH v2 1/2] dt-bindings: arm: amlogic: add Khadas VIM1S binding
Posted by Nick Xie 3 weeks, 4 days ago
Add devicetree binding for Khadas VIM1S board based on
Amlogic S4 S905Y4 SoC.

Signed-off-by: Nick Xie <nick@khadas.com>
---
 Documentation/devicetree/bindings/arm/amlogic.yaml | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/Documentation/devicetree/bindings/arm/amlogic.yaml b/Documentation/devicetree/bindings/arm/amlogic.yaml
index 08d9963fe9259..55663e0f7f915 100644
--- a/Documentation/devicetree/bindings/arm/amlogic.yaml
+++ b/Documentation/devicetree/bindings/arm/amlogic.yaml
@@ -247,6 +247,12 @@ properties:
               - amlogic,aq222
           - const: amlogic,s4
 
+      - description: Boards with the Amlogic Meson S4 S905Y4 SoC
+        items:
+          - enum:
+              - khadas,vim1s
+          - const: amlogic,s4
+
       - description: Boards with the Amlogic S6 S905X5 SoC
         items:
           - enum:
-- 
2.34.1
Re: [PATCH v2 1/2] dt-bindings: arm: amlogic: add Khadas VIM1S binding
Posted by Krzysztof Kozlowski 3 weeks, 4 days ago
On Wed, Jan 14, 2026 at 02:25:48PM +0800, Nick Xie wrote:
> Add devicetree binding for Khadas VIM1S board based on
> Amlogic S4 S905Y4 SoC.
> 
> Signed-off-by: Nick Xie <nick@khadas.com>

You still have the same From/SoB mismatch.

> ---
>  Documentation/devicetree/bindings/arm/amlogic.yaml | 6 ++++++
>  1 file changed, 6 insertions(+)
> 
> diff --git a/Documentation/devicetree/bindings/arm/amlogic.yaml b/Documentation/devicetree/bindings/arm/amlogic.yaml
> index 08d9963fe9259..55663e0f7f915 100644
> --- a/Documentation/devicetree/bindings/arm/amlogic.yaml
> +++ b/Documentation/devicetree/bindings/arm/amlogic.yaml
> @@ -247,6 +247,12 @@ properties:
>                - amlogic,aq222
>            - const: amlogic,s4
>  
> +      - description: Boards with the Amlogic Meson S4 S905Y4 SoC
> +        items:
> +          - enum:

Yopu already have exactly such enum with such description, so your
compatible goes there. Look - it is called "Boards" - plural.

> +              - khadas,vim1s
> +          - const: amlogic,s4

Best regards,
Krzysztof
Re: [PATCH v2 1/2] dt-bindings: arm: amlogic: add Khadas VIM1S binding
Posted by Nick Xie 3 weeks, 4 days ago
Krzysztof Kozlowski <krzk@kernel.org> 于2026年1月14日周三 16:51写道:
>
> On Wed, Jan 14, 2026 at 02:25:48PM +0800, Nick Xie wrote:
> > Add devicetree binding for Khadas VIM1S board based on
> > Amlogic S4 S905Y4 SoC.
> >
> > Signed-off-by: Nick Xie <nick@khadas.com>
>
> You still have the same From/SoB mismatch.

OK,  I will fix it in next version.

>
> > ---
> >  Documentation/devicetree/bindings/arm/amlogic.yaml | 6 ++++++
> >  1 file changed, 6 insertions(+)
> >
> > diff --git a/Documentation/devicetree/bindings/arm/amlogic.yaml b/Documentation/devicetree/bindings/arm/amlogic.yaml
> > index 08d9963fe9259..55663e0f7f915 100644
> > --- a/Documentation/devicetree/bindings/arm/amlogic.yaml
> > +++ b/Documentation/devicetree/bindings/arm/amlogic.yaml
> > @@ -247,6 +247,12 @@ properties:
> >                - amlogic,aq222
> >            - const: amlogic,s4
> >
> > +      - description: Boards with the Amlogic Meson S4 S905Y4 SoC
> > +        items:
> > +          - enum:
>
> Yopu already have exactly such enum with such description, so your
> compatible goes there. Look - it is called "Boards" - plural.

The exist board aq222 is based on SoC S905X2, but the new board vim1s
is baed on S905Y4,
they are different SoC, so we need to put S905Y4 under S805X2 ?

>
> > +              - khadas,vim1s
> > +          - const: amlogic,s4
>
> Best regards,
> Krzysztof
>
Re: [PATCH v2 1/2] dt-bindings: arm: amlogic: add Khadas VIM1S binding
Posted by Krzysztof Kozlowski 3 weeks, 4 days ago
On 14/01/2026 11:07, Nick Xie wrote:
> Krzysztof Kozlowski <krzk@kernel.org> 于2026年1月14日周三 16:51写道:
>>
>> On Wed, Jan 14, 2026 at 02:25:48PM +0800, Nick Xie wrote:
>>> Add devicetree binding for Khadas VIM1S board based on
>>> Amlogic S4 S905Y4 SoC.
>>>
>>> Signed-off-by: Nick Xie <nick@khadas.com>
>>
>> You still have the same From/SoB mismatch.
> 
> OK,  I will fix it in next version.
> 
>>
>>> ---
>>>  Documentation/devicetree/bindings/arm/amlogic.yaml | 6 ++++++
>>>  1 file changed, 6 insertions(+)
>>>
>>> diff --git a/Documentation/devicetree/bindings/arm/amlogic.yaml b/Documentation/devicetree/bindings/arm/amlogic.yaml
>>> index 08d9963fe9259..55663e0f7f915 100644
>>> --- a/Documentation/devicetree/bindings/arm/amlogic.yaml
>>> +++ b/Documentation/devicetree/bindings/arm/amlogic.yaml
>>> @@ -247,6 +247,12 @@ properties:
>>>                - amlogic,aq222
>>>            - const: amlogic,s4

Look here

>>>
>>> +      - description: Boards with the Amlogic Meson S4 S905Y4 SoC
>>> +        items:
>>> +          - enum:
>>
>> Yopu already have exactly such enum with such description, so your
>> compatible goes there. Look - it is called "Boards" - plural.
> 
> The exist board aq222 is based on SoC S905X2, but the new board vim1s
> is baed on S905Y4,
> they are different SoC, so we need to put S905Y4 under S805X2 ?

What is the point of having two separate lists with enums ending the
same SoC compatible?

> 
>>
>>> +              - khadas,vim1s
>>> +          - const: amlogic,s4

And here.

>>
>> Best regards,
>> Krzysztof
>>


Best regards,
Krzysztof
Re: [PATCH v2 1/2] dt-bindings: arm: amlogic: add Khadas VIM1S binding
Posted by neil.armstrong@linaro.org 3 weeks, 4 days ago
On 1/14/26 11:33, Krzysztof Kozlowski wrote:
> On 14/01/2026 11:07, Nick Xie wrote:
>> Krzysztof Kozlowski <krzk@kernel.org> 于2026年1月14日周三 16:51写道:
>>>
>>> On Wed, Jan 14, 2026 at 02:25:48PM +0800, Nick Xie wrote:
>>>> Add devicetree binding for Khadas VIM1S board based on
>>>> Amlogic S4 S905Y4 SoC.
>>>>
>>>> Signed-off-by: Nick Xie <nick@khadas.com>
>>>
>>> You still have the same From/SoB mismatch.
>>
>> OK,  I will fix it in next version.
>>
>>>
>>>> ---
>>>>   Documentation/devicetree/bindings/arm/amlogic.yaml | 6 ++++++
>>>>   1 file changed, 6 insertions(+)
>>>>
>>>> diff --git a/Documentation/devicetree/bindings/arm/amlogic.yaml b/Documentation/devicetree/bindings/arm/amlogic.yaml
>>>> index 08d9963fe9259..55663e0f7f915 100644
>>>> --- a/Documentation/devicetree/bindings/arm/amlogic.yaml
>>>> +++ b/Documentation/devicetree/bindings/arm/amlogic.yaml
>>>> @@ -247,6 +247,12 @@ properties:
>>>>                 - amlogic,aq222
>>>>             - const: amlogic,s4
> 
> Look here
> 
>>>>
>>>> +      - description: Boards with the Amlogic Meson S4 S905Y4 SoC
>>>> +        items:
>>>> +          - enum:
>>>
>>> Yopu already have exactly such enum with such description, so your
>>> compatible goes there. Look - it is called "Boards" - plural.
>>
>> The exist board aq222 is based on SoC S905X2, but the new board vim1s
>> is baed on S905Y4,
>> they are different SoC, so we need to put S905Y4 under S805X2 ?
> 
> What is the point of having two separate lists with enums ending the
> same SoC compatible?

It's very usual for SoC vendors to reuse the same SoC design (here Amlogic S4)
into multiple different packages, with some different features enabled & so on,
and even new version of the die with some bugfixes.

We did this in the past for goop reasons, and here it also applies.
In fact the currently supported SoC (S805X2) is a stripped down
version of the S4 SoC like it was done for the S805X which was aalso a stripped
down version of the S905X, with a different IO layout and different internal
characteristics even if the die logic was the same.

Neil

> 
>>
>>>
>>>> +              - khadas,vim1s
>>>> +          - const: amlogic,s4
> 
> And here.
> 
>>>
>>> Best regards,
>>> Krzysztof
>>>
> 
> 
> Best regards,
> Krzysztof

Re: [PATCH v2 1/2] dt-bindings: arm: amlogic: add Khadas VIM1S binding
Posted by Nick Xie 3 weeks, 4 days ago
Krzysztof Kozlowski <krzk@kernel.org> 于2026年1月14日周三 18:33写道:
>
> On 14/01/2026 11:07, Nick Xie wrote:
> > Krzysztof Kozlowski <krzk@kernel.org> 于2026年1月14日周三 16:51写道:
> >>
> >> On Wed, Jan 14, 2026 at 02:25:48PM +0800, Nick Xie wrote:
> >>> Add devicetree binding for Khadas VIM1S board based on
> >>> Amlogic S4 S905Y4 SoC.
> >>>
> >>> Signed-off-by: Nick Xie <nick@khadas.com>
> >>
> >> You still have the same From/SoB mismatch.
> >
> > OK,  I will fix it in next version.
> >
> >>
> >>> ---
> >>>  Documentation/devicetree/bindings/arm/amlogic.yaml | 6 ++++++
> >>>  1 file changed, 6 insertions(+)
> >>>
> >>> diff --git a/Documentation/devicetree/bindings/arm/amlogic.yaml b/Documentation/devicetree/bindings/arm/amlogic.yaml
> >>> index 08d9963fe9259..55663e0f7f915 100644
> >>> --- a/Documentation/devicetree/bindings/arm/amlogic.yaml
> >>> +++ b/Documentation/devicetree/bindings/arm/amlogic.yaml
> >>> @@ -247,6 +247,12 @@ properties:
> >>>                - amlogic,aq222
> >>>            - const: amlogic,s4
>
> Look here
>
> >>>
> >>> +      - description: Boards with the Amlogic Meson S4 S905Y4 SoC
> >>> +        items:
> >>> +          - enum:
> >>
> >> Yopu already have exactly such enum with such description, so your
> >> compatible goes there. Look - it is called "Boards" - plural.
> >
> > The exist board aq222 is based on SoC S905X2, but the new board vim1s
> > is baed on S905Y4,
> > they are different SoC, so we need to put S905Y4 under S805X2 ?
>
> What is the point of having two separate lists with enums ending the
> same SoC compatible?

Actually S805X2 and S905Y4 are different SoC. So maybe like this ?

S805X2:
- description: Boards with the Amlogic Meson S4 S805X2 SoC
  items:
    - enum:
        - amlogic,aq222
    - const: amlogic,s805x2
    - const: amlogic,s4

S905Y4:
- description: Boards with the Amlogic Meson S4 S905Y4 SoC
  items:
    - enum:
        - khadas,vim1s
    - const: amlogic,s905y4
    - const: amlogic,s4

Same as Amlogic A311D & S922X

S922X:
- const: amlogic,s922x
- const: amlogic,g12b

A311D:
- const: amlogic,a311d
- const: amlogic,g12b

>
> >
> >>
> >>> +              - khadas,vim1s
> >>> +          - const: amlogic,s4
>
> And here.
>
> >>
> >> Best regards,
> >> Krzysztof
> >>
>
>
> Best regards,
> Krzysztof
Re: [PATCH v2 1/2] dt-bindings: arm: amlogic: add Khadas VIM1S binding
Posted by neil.armstrong@linaro.org 3 weeks, 4 days ago
On 1/14/26 12:25, Nick Xie wrote:
> Krzysztof Kozlowski <krzk@kernel.org> 于2026年1月14日周三 18:33写道:
>>
>> On 14/01/2026 11:07, Nick Xie wrote:
>>> Krzysztof Kozlowski <krzk@kernel.org> 于2026年1月14日周三 16:51写道:
>>>>
>>>> On Wed, Jan 14, 2026 at 02:25:48PM +0800, Nick Xie wrote:
>>>>> Add devicetree binding for Khadas VIM1S board based on
>>>>> Amlogic S4 S905Y4 SoC.
>>>>>
>>>>> Signed-off-by: Nick Xie <nick@khadas.com>
>>>>
>>>> You still have the same From/SoB mismatch.
>>>
>>> OK,  I will fix it in next version.
>>>
>>>>
>>>>> ---
>>>>>   Documentation/devicetree/bindings/arm/amlogic.yaml | 6 ++++++
>>>>>   1 file changed, 6 insertions(+)
>>>>>
>>>>> diff --git a/Documentation/devicetree/bindings/arm/amlogic.yaml b/Documentation/devicetree/bindings/arm/amlogic.yaml
>>>>> index 08d9963fe9259..55663e0f7f915 100644
>>>>> --- a/Documentation/devicetree/bindings/arm/amlogic.yaml
>>>>> +++ b/Documentation/devicetree/bindings/arm/amlogic.yaml
>>>>> @@ -247,6 +247,12 @@ properties:
>>>>>                 - amlogic,aq222
>>>>>             - const: amlogic,s4
>>
>> Look here
>>
>>>>>
>>>>> +      - description: Boards with the Amlogic Meson S4 S905Y4 SoC
>>>>> +        items:
>>>>> +          - enum:
>>>>
>>>> Yopu already have exactly such enum with such description, so your
>>>> compatible goes there. Look - it is called "Boards" - plural.
>>>
>>> The exist board aq222 is based on SoC S905X2, but the new board vim1s
>>> is baed on S905Y4,
>>> they are different SoC, so we need to put S905Y4 under S805X2 ?
>>
>> What is the point of having two separate lists with enums ending the
>> same SoC compatible?
> 
> Actually S805X2 and S905Y4 are different SoC. So maybe like this ?
> 
> S805X2:
> - description: Boards with the Amlogic Meson S4 S805X2 SoC
>    items:
>      - enum:
>          - amlogic,aq222
>      - const: amlogic,s805x2
>      - const: amlogic,s4
> 
> S905Y4:
> - description: Boards with the Amlogic Meson S4 S905Y4 SoC
>    items:
>      - enum:
>          - khadas,vim1s
>      - const: amlogic,s905y4
>      - const: amlogic,s4

It's ok for me, but you'll need to update the aq222 DT aswell.

> 
> Same as Amlogic A311D & S922X
> 
> S922X:
> - const: amlogic,s922x
> - const: amlogic,g12b
> 
> A311D:
> - const: amlogic,a311d
> - const: amlogic,g12b
> 
>>
>>>
>>>>
>>>>> +              - khadas,vim1s
>>>>> +          - const: amlogic,s4
>>
>> And here.
>>
>>>>
>>>> Best regards,
>>>> Krzysztof
>>>>
>>
>>
>> Best regards,
>> Krzysztof

Re: [PATCH v2 1/2] dt-bindings: arm: amlogic: add Khadas VIM1S binding
Posted by neil.armstrong@linaro.org 3 weeks, 4 days ago
On 1/14/26 11:07, Nick Xie wrote:
> Krzysztof Kozlowski <krzk@kernel.org> 于2026年1月14日周三 16:51写道:
>>
>> On Wed, Jan 14, 2026 at 02:25:48PM +0800, Nick Xie wrote:
>>> Add devicetree binding for Khadas VIM1S board based on
>>> Amlogic S4 S905Y4 SoC.
>>>
>>> Signed-off-by: Nick Xie <nick@khadas.com>
>>
>> You still have the same From/SoB mismatch.
> 
> OK,  I will fix it in next version.
> 
>>
>>> ---
>>>   Documentation/devicetree/bindings/arm/amlogic.yaml | 6 ++++++
>>>   1 file changed, 6 insertions(+)
>>>
>>> diff --git a/Documentation/devicetree/bindings/arm/amlogic.yaml b/Documentation/devicetree/bindings/arm/amlogic.yaml
>>> index 08d9963fe9259..55663e0f7f915 100644
>>> --- a/Documentation/devicetree/bindings/arm/amlogic.yaml
>>> +++ b/Documentation/devicetree/bindings/arm/amlogic.yaml
>>> @@ -247,6 +247,12 @@ properties:
>>>                 - amlogic,aq222
>>>             - const: amlogic,s4
>>>
>>> +      - description: Boards with the Amlogic Meson S4 S905Y4 SoC
>>> +        items:
>>> +          - enum:
>>
>> Yopu already have exactly such enum with such description, so your
>> compatible goes there. Look - it is called "Boards" - plural.
> 
> The exist board aq222 is based on SoC S905X2, but the new board vim1s
> is baed on S905Y4,
> they are different SoC, so we need to put S905Y4 under S805X2 ?

It depends, if the S805X2 and the S905Y4 are not compatible (different dies)
and not the same die in 2 different but compatible packages, then a secondary
compatible should be added like we did for amlogic,g12b or amlogic,meson-gxl.

Neil

> 
>>
>>> +              - khadas,vim1s
>>> +          - const: amlogic,s4
>>
>> Best regards,
>> Krzysztof
>>