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


Groups > linux.kernel > #1700988 > unrolled thread

Re: [PATCH] dt-bindings: mtd: add new compatible strings for mtk nor controller

Started byMatthias Brugger <matthias.bgg@gmail.com>
First post2017-08-01 14:40 +0200
Last post2017-08-04 05:50 +0200
Articles 7 — 5 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] dt-bindings: mtd: add new compatible strings for mtk nor  controller Matthias Brugger <matthias.bgg@gmail.com> - 2017-08-01 14:40 +0200
    Re: [PATCH] dt-bindings: mtd: add new compatible strings for mtk  nor controller Boris Brezillon <boris.brezillon@free-electrons.com> - 2017-08-02 10:40 +0200
      Re: [PATCH] dt-bindings: mtd: add new compatible strings for mtk nor  controller Cyrille Pitchen <cyrille.pitchen@wedev4u.fr> - 2017-08-02 17:40 +0200
        Re: [PATCH] dt-bindings: mtd: add new compatible strings for mtk  nor controller Guochun Mao <guochun.mao@mediatek.com> - 2017-08-03 04:20 +0200
          Re: [PATCH] dt-bindings: mtd: add new compatible strings for mtk nor  controller Matthias Brugger <matthias.bgg@gmail.com> - 2017-08-03 12:20 +0200
          Re: [PATCH] dt-bindings: mtd: add new compatible strings for mtk nor  controller Rob Herring <robh@kernel.org> - 2017-08-03 19:50 +0200
            Re: [PATCH] dt-bindings: mtd: add new compatible strings for mtk  nor controller Guochun Mao <guochun.mao@mediatek.com> - 2017-08-04 05:50 +0200

#1700988 — Re: [PATCH] dt-bindings: mtd: add new compatible strings for mtk nor controller

FromMatthias Brugger <matthias.bgg@gmail.com>
Date2017-08-01 14:40 +0200
SubjectRe: [PATCH] dt-bindings: mtd: add new compatible strings for mtk nor controller
Message-ID<u9ECS-40W-29@gated-at.bofh.it>

On 07/25/2017 04:10 AM, Guochun Mao wrote:
> Add "mediatek,mt2712-nor" and "mediatek,mt7622-nor"
> for nor flash node's compatible strings.
> 
> Reviewed-by: Matthias Brugger <matthias.bgg@gmail.com>
> Signed-off-by: Guochun Mao <guochun.mao@mediatek.com>
> ---
>   .../devicetree/bindings/mtd/mtk-quadspi.txt        |    2 ++
>   1 file changed, 2 insertions(+)
> 
> diff --git a/Documentation/devicetree/bindings/mtd/mtk-quadspi.txt b/Documentation/devicetree/bindings/mtd/mtk-quadspi.txt
> index 5ded66a..9845ff4 100644
> --- a/Documentation/devicetree/bindings/mtd/mtk-quadspi.txt
> +++ b/Documentation/devicetree/bindings/mtd/mtk-quadspi.txt
> @@ -3,6 +3,8 @@
>   Required properties:
>   - compatible: 	  The possible values are:
>   		  "mediatek,mt2701-nor"
> +		  "mediatek,mt2712-nor"
> +		  "mediatek,mt7622-nor"
>   		  "mediatek,mt7623-nor"
>   		  "mediatek,mt8173-nor"
>   		  For mt8173, compatible should be "mediatek,mt8173-nor".
> 

Boris, will you take this through your tree, or do you prefer that I take it?

Regards,
Matthias

[toc] | [next] | [standalone]


#1701888 — Re: [PATCH] dt-bindings: mtd: add new compatible strings for mtk nor controller

FromBoris Brezillon <boris.brezillon@free-electrons.com>
Date2017-08-02 10:40 +0200
SubjectRe: [PATCH] dt-bindings: mtd: add new compatible strings for mtk nor controller
Message-ID<u9Xmb-7tc-45@gated-at.bofh.it>
In reply to#1700988
Hi Matthias,

On Tue, 1 Aug 2017 14:33:22 +0200
Matthias Brugger <matthias.bgg@gmail.com> wrote:

> On 07/25/2017 04:10 AM, Guochun Mao wrote:
> > Add "mediatek,mt2712-nor" and "mediatek,mt7622-nor"
> > for nor flash node's compatible strings.
> > 
> > Reviewed-by: Matthias Brugger <matthias.bgg@gmail.com>
> > Signed-off-by: Guochun Mao <guochun.mao@mediatek.com>
> > ---
> >   .../devicetree/bindings/mtd/mtk-quadspi.txt        |    2 ++
> >   1 file changed, 2 insertions(+)
> > 
> > diff --git a/Documentation/devicetree/bindings/mtd/mtk-quadspi.txt b/Documentation/devicetree/bindings/mtd/mtk-quadspi.txt
> > index 5ded66a..9845ff4 100644
> > --- a/Documentation/devicetree/bindings/mtd/mtk-quadspi.txt
> > +++ b/Documentation/devicetree/bindings/mtd/mtk-quadspi.txt
> > @@ -3,6 +3,8 @@
> >   Required properties:
> >   - compatible: 	  The possible values are:
> >   		  "mediatek,mt2701-nor"
> > +		  "mediatek,mt2712-nor"
> > +		  "mediatek,mt7622-nor"
> >   		  "mediatek,mt7623-nor"
> >   		  "mediatek,mt8173-nor"
> >   		  For mt8173, compatible should be "mediatek,mt8173-nor".
> >   
> 
> Boris, will you take this through your tree, or do you prefer that I take it?

I'm not the spi-nor maintainer, you should ask Cyrille or Marek.

Regards,

Boris

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


#1702197

FromCyrille Pitchen <cyrille.pitchen@wedev4u.fr>
Date2017-08-02 17:40 +0200
Message-ID<ua3UB-3dS-7@gated-at.bofh.it>
In reply to#1701888
Hi Guochun,

Le 02/08/2017 à 10:36, Boris Brezillon a écrit :
> Hi Matthias,
> 
> On Tue, 1 Aug 2017 14:33:22 +0200
> Matthias Brugger <matthias.bgg@gmail.com> wrote:
> 
>> On 07/25/2017 04:10 AM, Guochun Mao wrote:
>>> Add "mediatek,mt2712-nor" and "mediatek,mt7622-nor"
>>> for nor flash node's compatible strings.
>>>
>>> Reviewed-by: Matthias Brugger <matthias.bgg@gmail.com>
>>> Signed-off-by: Guochun Mao <guochun.mao@mediatek.com>
>>> ---
>>>   .../devicetree/bindings/mtd/mtk-quadspi.txt        |    2 ++
>>>   1 file changed, 2 insertions(+)
>>>
>>> diff --git a/Documentation/devicetree/bindings/mtd/mtk-quadspi.txt b/Documentation/devicetree/bindings/mtd/mtk-quadspi.txt
>>> index 5ded66a..9845ff4 100644
>>> --- a/Documentation/devicetree/bindings/mtd/mtk-quadspi.txt
>>> +++ b/Documentation/devicetree/bindings/mtd/mtk-quadspi.txt
>>> @@ -3,6 +3,8 @@
>>>   Required properties:
>>>   - compatible: 	  The possible values are:
>>>   		  "mediatek,mt2701-nor"
>>> +		  "mediatek,mt2712-nor"
>>> +		  "mediatek,mt7622-nor"
>>>   		  "mediatek,mt7623-nor"
>>>   		  "mediatek,mt8173-nor"
>>>   		  For mt8173, compatible should be "mediatek,mt8173-nor".
>>>

There should be another patch to update the mtk_nor_of_ids[] array in
the mtk-quadspi.c driver, shouldn't it?

Currently, I only see the "mediatek,mt8173-nor" compatible string at the
driver side. The driver and its documentation should be aligned and both
patches should be applied at the same time.

Best regards,

Cyrille

>>
>> Boris, will you take this through your tree, or do you prefer that I take it?
> 
> I'm not the spi-nor maintainer, you should ask Cyrille or Marek.
> 
> Regards,
> 
> Boris
> 
> ______________________________________________________
> Linux MTD discussion mailing list
> http://lists.infradead.org/mailman/listinfo/linux-mtd/
> 

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


#1702622 — Re: [PATCH] dt-bindings: mtd: add new compatible strings for mtk nor controller

FromGuochun Mao <guochun.mao@mediatek.com>
Date2017-08-03 04:20 +0200
SubjectRe: [PATCH] dt-bindings: mtd: add new compatible strings for mtk nor controller
Message-ID<uadTX-1MK-1@gated-at.bofh.it>
In reply to#1702197
Hi Cyrille,

On Wed, 2017-08-02 at 17:31 +0200, Cyrille Pitchen wrote:
> Hi Guochun,
> 
> Le 02/08/2017 à 10:36, Boris Brezillon a écrit :
> > Hi Matthias,
> > 
> > On Tue, 1 Aug 2017 14:33:22 +0200
> > Matthias Brugger <matthias.bgg@gmail.com> wrote:
> > 
> >> On 07/25/2017 04:10 AM, Guochun Mao wrote:
> >>> Add "mediatek,mt2712-nor" and "mediatek,mt7622-nor"
> >>> for nor flash node's compatible strings.
> >>>
> >>> Reviewed-by: Matthias Brugger <matthias.bgg@gmail.com>
> >>> Signed-off-by: Guochun Mao <guochun.mao@mediatek.com>
> >>> ---
> >>>   .../devicetree/bindings/mtd/mtk-quadspi.txt        |    2 ++
> >>>   1 file changed, 2 insertions(+)
> >>>
> >>> diff --git a/Documentation/devicetree/bindings/mtd/mtk-quadspi.txt b/Documentation/devicetree/bindings/mtd/mtk-quadspi.txt
> >>> index 5ded66a..9845ff4 100644
> >>> --- a/Documentation/devicetree/bindings/mtd/mtk-quadspi.txt
> >>> +++ b/Documentation/devicetree/bindings/mtd/mtk-quadspi.txt
> >>> @@ -3,6 +3,8 @@
> >>>   Required properties:
> >>>   - compatible: 	  The possible values are:
> >>>   		  "mediatek,mt2701-nor"
> >>> +		  "mediatek,mt2712-nor"
> >>> +		  "mediatek,mt7622-nor"
> >>>   		  "mediatek,mt7623-nor"
> >>>   		  "mediatek,mt8173-nor"
> >>>   		  For mt8173, compatible should be "mediatek,mt8173-nor".
> >>>
> 
> There should be another patch to update the mtk_nor_of_ids[] array in
> the mtk-quadspi.c driver, shouldn't it?
> 
> Currently, I only see the "mediatek,mt8173-nor" compatible string at the
> driver side. The driver and its documentation should be aligned and both
> patches should be applied at the same time.

> Best regards,
> 
> Cyrille


From my designer's info, these IPs' nor controller could use same
driver, and I had verified it. I think there's no need to update
mtk_nor_of_ids[], unless we find difference between these IPs(exactly
compared with mt8173).
How do you think?

And, we will add dts patches for new SOCs, are these patches should
applied with this documentation?

Best regards,
Guochun

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


#1702907

FromMatthias Brugger <matthias.bgg@gmail.com>
Date2017-08-03 12:20 +0200
Message-ID<ualou-6Yh-23@gated-at.bofh.it>
In reply to#1702622

On 08/03/2017 04:16 AM, Guochun Mao wrote:
> Hi Cyrille,
> 
> On Wed, 2017-08-02 at 17:31 +0200, Cyrille Pitchen wrote:
>> Hi Guochun,
>>
>> Le 02/08/2017 à 10:36, Boris Brezillon a écrit :
>>> Hi Matthias,
>>>
>>> On Tue, 1 Aug 2017 14:33:22 +0200
>>> Matthias Brugger <matthias.bgg@gmail.com> wrote:
>>>
>>>> On 07/25/2017 04:10 AM, Guochun Mao wrote:
>>>>> Add "mediatek,mt2712-nor" and "mediatek,mt7622-nor"
>>>>> for nor flash node's compatible strings.
>>>>>
>>>>> Reviewed-by: Matthias Brugger <matthias.bgg@gmail.com>
>>>>> Signed-off-by: Guochun Mao <guochun.mao@mediatek.com>
>>>>> ---
>>>>>    .../devicetree/bindings/mtd/mtk-quadspi.txt        |    2 ++
>>>>>    1 file changed, 2 insertions(+)
>>>>>
>>>>> diff --git a/Documentation/devicetree/bindings/mtd/mtk-quadspi.txt b/Documentation/devicetree/bindings/mtd/mtk-quadspi.txt
>>>>> index 5ded66a..9845ff4 100644
>>>>> --- a/Documentation/devicetree/bindings/mtd/mtk-quadspi.txt
>>>>> +++ b/Documentation/devicetree/bindings/mtd/mtk-quadspi.txt
>>>>> @@ -3,6 +3,8 @@
>>>>>    Required properties:
>>>>>    - compatible: 	  The possible values are:
>>>>>    		  "mediatek,mt2701-nor"
>>>>> +		  "mediatek,mt2712-nor"
>>>>> +		  "mediatek,mt7622-nor"
>>>>>    		  "mediatek,mt7623-nor"
>>>>>    		  "mediatek,mt8173-nor"
>>>>>    		  For mt8173, compatible should be "mediatek,mt8173-nor".
>>>>>
>>
>> There should be another patch to update the mtk_nor_of_ids[] array in
>> the mtk-quadspi.c driver, shouldn't it?
>>
>> Currently, I only see the "mediatek,mt8173-nor" compatible string at the
>> driver side. The driver and its documentation should be aligned and both
>> patches should be applied at the same time.
> 
>> Best regards,
>>
>> Cyrille
> 
> 
>  From my designer's info, these IPs' nor controller could use same
> driver, and I had verified it. I think there's no need to update
> mtk_nor_of_ids[], unless we find difference between these IPs(exactly
> compared with mt8173).
> How do you think?
>


Right, mt8173-nor is the fallback binding which will be used by the driver. As 
the documentation states, the compatible string should be something like:
"mediatek,mt7622-nor", "mediatek,mt8173-nor"

So the mt7622-nor binding is not matched in the driver, as the driver is the 
same on all SoCs. Nonetheless if we realize in the future that mt7622 IP has 
some special feature/bug, we can use the binding to implement that in the driver.

AFAIK this is the standard way for bindings. Cyrille, is this ok for you, or do 
want all bindings to be reflected in the driver even though they don't change 
any functionality?

Regards,
Matthias

> And, we will add dts patches for new SOCs, are these patches should
> applied with this documentation?
> 
> Best regards,
> Guochun
> 

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


#1703308

FromRob Herring <robh@kernel.org>
Date2017-08-03 19:50 +0200
Message-ID<uaspY-3iy-5@gated-at.bofh.it>
In reply to#1702622
On Thu, Aug 03, 2017 at 10:16:42AM +0800, Guochun Mao wrote:
> Hi Cyrille,
> 
> On Wed, 2017-08-02 at 17:31 +0200, Cyrille Pitchen wrote:
> > Hi Guochun,
> > 
> > Le 02/08/2017 à 10:36, Boris Brezillon a écrit :
> > > Hi Matthias,
> > > 
> > > On Tue, 1 Aug 2017 14:33:22 +0200
> > > Matthias Brugger <matthias.bgg@gmail.com> wrote:
> > > 
> > >> On 07/25/2017 04:10 AM, Guochun Mao wrote:
> > >>> Add "mediatek,mt2712-nor" and "mediatek,mt7622-nor"
> > >>> for nor flash node's compatible strings.
> > >>>
> > >>> Reviewed-by: Matthias Brugger <matthias.bgg@gmail.com>
> > >>> Signed-off-by: Guochun Mao <guochun.mao@mediatek.com>
> > >>> ---
> > >>>   .../devicetree/bindings/mtd/mtk-quadspi.txt        |    2 ++
> > >>>   1 file changed, 2 insertions(+)
> > >>>
> > >>> diff --git a/Documentation/devicetree/bindings/mtd/mtk-quadspi.txt b/Documentation/devicetree/bindings/mtd/mtk-quadspi.txt
> > >>> index 5ded66a..9845ff4 100644
> > >>> --- a/Documentation/devicetree/bindings/mtd/mtk-quadspi.txt
> > >>> +++ b/Documentation/devicetree/bindings/mtd/mtk-quadspi.txt
> > >>> @@ -3,6 +3,8 @@
> > >>>   Required properties:
> > >>>   - compatible: 	  The possible values are:
> > >>>   		  "mediatek,mt2701-nor"
> > >>> +		  "mediatek,mt2712-nor"
> > >>> +		  "mediatek,mt7622-nor"
> > >>>   		  "mediatek,mt7623-nor"
> > >>>   		  "mediatek,mt8173-nor"
> > >>>   		  For mt8173, compatible should be "mediatek,mt8173-nor".
> > >>>
> > 
> > There should be another patch to update the mtk_nor_of_ids[] array in
> > the mtk-quadspi.c driver, shouldn't it?
> > 
> > Currently, I only see the "mediatek,mt8173-nor" compatible string at the
> > driver side. The driver and its documentation should be aligned and both
> > patches should be applied at the same time.
> 
> > Best regards,
> > 
> > Cyrille
> 
> 
> From my designer's info, these IPs' nor controller could use same
> driver, and I had verified it. I think there's no need to update
> mtk_nor_of_ids[], unless we find difference between these IPs(exactly
> compared with mt8173).
> How do you think?

That is perfectly fine, but then the documentation needs to be explicit 
as to what are the fallback compatibles. It's one valid combination per 
line, not 1 compatible string per line.

Rob

> 
> And, we will add dts patches for new SOCs, are these patches should
> applied with this documentation?
> 
> Best regards,
> Guochun
> 

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


#1703630 — Re: [PATCH] dt-bindings: mtd: add new compatible strings for mtk nor controller

FromGuochun Mao <guochun.mao@mediatek.com>
Date2017-08-04 05:50 +0200
SubjectRe: [PATCH] dt-bindings: mtd: add new compatible strings for mtk nor controller
Message-ID<uaBMC-1A5-11@gated-at.bofh.it>
In reply to#1703308
On Thu, 2017-08-03 at 12:47 -0500, Rob Herring wrote:
> On Thu, Aug 03, 2017 at 10:16:42AM +0800, Guochun Mao wrote:
> > Hi Cyrille,
> > 
> > On Wed, 2017-08-02 at 17:31 +0200, Cyrille Pitchen wrote:
> > > Hi Guochun,
> > > 
> > > Le 02/08/2017 à 10:36, Boris Brezillon a écrit :
> > > > Hi Matthias,
> > > > 
> > > > On Tue, 1 Aug 2017 14:33:22 +0200
> > > > Matthias Brugger <matthias.bgg@gmail.com> wrote:
> > > > 
> > > >> On 07/25/2017 04:10 AM, Guochun Mao wrote:
> > > >>> Add "mediatek,mt2712-nor" and "mediatek,mt7622-nor"
> > > >>> for nor flash node's compatible strings.
> > > >>>
> > > >>> Reviewed-by: Matthias Brugger <matthias.bgg@gmail.com>
> > > >>> Signed-off-by: Guochun Mao <guochun.mao@mediatek.com>
> > > >>> ---
> > > >>>   .../devicetree/bindings/mtd/mtk-quadspi.txt        |    2 ++
> > > >>>   1 file changed, 2 insertions(+)
> > > >>>
> > > >>> diff --git a/Documentation/devicetree/bindings/mtd/mtk-quadspi.txt b/Documentation/devicetree/bindings/mtd/mtk-quadspi.txt
> > > >>> index 5ded66a..9845ff4 100644
> > > >>> --- a/Documentation/devicetree/bindings/mtd/mtk-quadspi.txt
> > > >>> +++ b/Documentation/devicetree/bindings/mtd/mtk-quadspi.txt
> > > >>> @@ -3,6 +3,8 @@
> > > >>>   Required properties:
> > > >>>   - compatible: 	  The possible values are:
> > > >>>   		  "mediatek,mt2701-nor"
> > > >>> +		  "mediatek,mt2712-nor"
> > > >>> +		  "mediatek,mt7622-nor"
> > > >>>   		  "mediatek,mt7623-nor"
> > > >>>   		  "mediatek,mt8173-nor"
> > > >>>   		  For mt8173, compatible should be "mediatek,mt8173-nor".
> > > >>>
> > > 
> > > There should be another patch to update the mtk_nor_of_ids[] array in
> > > the mtk-quadspi.c driver, shouldn't it?
> > > 
> > > Currently, I only see the "mediatek,mt8173-nor" compatible string at the
> > > driver side. The driver and its documentation should be aligned and both
> > > patches should be applied at the same time.
> > 
> > > Best regards,
> > > 
> > > Cyrille
> > 
> > 
> > From my designer's info, these IPs' nor controller could use same
> > driver, and I had verified it. I think there's no need to update
> > mtk_nor_of_ids[], unless we find difference between these IPs(exactly
> > compared with mt8173).
> > How do you think?
> 
> That is perfectly fine, but then the documentation needs to be explicit 
> as to what are the fallback compatibles. It's one valid combination per 
> line, not 1 compatible string per line.

OK, I'll corret the description in next version.
Thanks a lot.

Guochun


> 
> Rob
> 
> > 
> > And, we will add dts patches for new SOCs, are these patches should
> > applied with this documentation?
> > 
> > Best regards,
> > Guochun
> > 

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web