From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752050AbdHDDoS (ORCPT ); Thu, 3 Aug 2017 23:44:18 -0400 Received: from mailgw02.mediatek.com ([218.249.47.111]:34858 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1751887AbdHDDoQ (ORCPT ); Thu, 3 Aug 2017 23:44:16 -0400 Message-ID: <1501818250.4381.26.camel@mhfsdcap03> Subject: Re: [PATCH] dt-bindings: mtd: add new compatible strings for mtk nor controller From: Guochun Mao To: Rob Herring CC: Cyrille Pitchen , Boris Brezillon , Matthias Brugger , Marek Vasut , "Cyrille Pitchen" , Mark Rutland , , Richard Weinberger , "Russell King" , , , , "David Woodhouse" , Date: Fri, 4 Aug 2017 11:44:10 +0800 In-Reply-To: <20170803174750.bipdynhyyyozzjk6@rob-hp-laptop> References: <1500948617-19627-1-git-send-email-guochun.mao@mediatek.com> <1500948617-19627-2-git-send-email-guochun.mao@mediatek.com> <03016ea3-51ad-0b2d-e824-0a20913bd7c1@gmail.com> <20170802103637.16cd6548@bbrezillon> <535cc2d5-7bc9-2cb7-42cf-9d7058e64226@wedev4u.fr> <1501726602.4381.23.camel@mhfsdcap03> <20170803174750.bipdynhyyyozzjk6@rob-hp-laptop> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.2.3-0ubuntu6 Content-Transfer-Encoding: 8bit MIME-Version: 1.0 X-MTK: N Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 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 > > > >>> Signed-off-by: Guochun Mao > > > >>> --- > > > >>> .../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 > > From mboxrd@z Thu Jan 1 00:00:00 1970 From: Guochun Mao Subject: Re: [PATCH] dt-bindings: mtd: add new compatible strings for mtk nor controller Date: Fri, 4 Aug 2017 11:44:10 +0800 Message-ID: <1501818250.4381.26.camel@mhfsdcap03> References: <1500948617-19627-1-git-send-email-guochun.mao@mediatek.com> <1500948617-19627-2-git-send-email-guochun.mao@mediatek.com> <03016ea3-51ad-0b2d-e824-0a20913bd7c1@gmail.com> <20170802103637.16cd6548@bbrezillon> <535cc2d5-7bc9-2cb7-42cf-9d7058e64226@wedev4u.fr> <1501726602.4381.23.camel@mhfsdcap03> <20170803174750.bipdynhyyyozzjk6@rob-hp-laptop> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit Return-path: In-Reply-To: <20170803174750.bipdynhyyyozzjk6@rob-hp-laptop> Sender: devicetree-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Rob Herring Cc: Cyrille Pitchen , Boris Brezillon , Matthias Brugger , Marek Vasut , Cyrille Pitchen , Mark Rutland , devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Richard Weinberger , Russell King , linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-mtd-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org, linux-mediatek-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org, David Woodhouse , linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org List-Id: devicetree@vger.kernel.org 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 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 > > > >>> Signed-off-by: Guochun Mao > > > >>> --- > > > >>> .../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 > > -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html From mboxrd@z Thu Jan 1 00:00:00 1970 From: guochun.mao@mediatek.com (Guochun Mao) Date: Fri, 4 Aug 2017 11:44:10 +0800 Subject: [PATCH] dt-bindings: mtd: add new compatible strings for mtk nor controller In-Reply-To: <20170803174750.bipdynhyyyozzjk6@rob-hp-laptop> References: <1500948617-19627-1-git-send-email-guochun.mao@mediatek.com> <1500948617-19627-2-git-send-email-guochun.mao@mediatek.com> <03016ea3-51ad-0b2d-e824-0a20913bd7c1@gmail.com> <20170802103637.16cd6548@bbrezillon> <535cc2d5-7bc9-2cb7-42cf-9d7058e64226@wedev4u.fr> <1501726602.4381.23.camel@mhfsdcap03> <20170803174750.bipdynhyyyozzjk6@rob-hp-laptop> Message-ID: <1501818250.4381.26.camel@mhfsdcap03> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org 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 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 > > > >>> Signed-off-by: Guochun Mao > > > >>> --- > > > >>> .../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 > >