* [v2, 4/4] dt-bindings: mtd: Add Octal SPI support to Cadence QSPI. [not found] <1488959932-6657-1-git-send-email-jartur@cadence.com> @ 2017-03-08 8:05 ` Artur Jedrysek [not found] ` <1488960326-13858-1-git-send-email-jartur-vna1KIf7WgpBDgjK7y7TUQ@public.gmane.org> 0 siblings, 1 reply; 5+ messages in thread From: Artur Jedrysek @ 2017-03-08 8:05 UTC (permalink / raw) To: devicetree, linux-mtd Cc: Mark Rutland, Boris Brezillon, Artur Jedrysek, Richard Weinberger, linux-kernel, Marek Vasut, Rob Herring, Cyrille Pitchen, Brian Norris, David Woodhouse This patch updates Cadence QSPI Device Tree documentation to include information about new compatible used to indicate, whether or not Octal SPI transfers are supported by the device. Signed-off-by: Artur Jedrysek <jartur@cadence.com> --- Changelog: v2: Use new compatible, instead of boolean property, to indicate Octal SPI support. --- Documentation/devicetree/bindings/mtd/cadence-quadspi.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/mtd/cadence-quadspi.txt b/Documentation/devicetree/bindings/mtd/cadence-quadspi.txt index f248056..41d1e98 100644 --- a/Documentation/devicetree/bindings/mtd/cadence-quadspi.txt +++ b/Documentation/devicetree/bindings/mtd/cadence-quadspi.txt @@ -1,7 +1,9 @@ * Cadence Quad SPI controller Required properties: -- compatible : Should be "cdns,qspi-nor". +- compatible : Should be "cdns,{qspi|ospi}-nor". + Use "cdns,qspi-nor" for Quad SPI controller. + Use "cdns,ospi-nor" for Octal SPI controller. - reg : Contains two entries, each of which is a tuple consisting of a physical address and length. The first entry is the address and length of the controller register set. The second entry is the -- 2.2.2 ______________________________________________________ Linux MTD discussion mailing list http://lists.infradead.org/mailman/listinfo/linux-mtd/ ^ permalink raw reply related [flat|nested] 5+ messages in thread
[parent not found: <1488960326-13858-1-git-send-email-jartur-vna1KIf7WgpBDgjK7y7TUQ@public.gmane.org>]
* Re: [v2, 4/4] dt-bindings: mtd: Add Octal SPI support to Cadence QSPI. [not found] ` <1488960326-13858-1-git-send-email-jartur-vna1KIf7WgpBDgjK7y7TUQ@public.gmane.org> @ 2017-03-10 3:39 ` Marek Vasut 2017-03-10 12:03 ` Artur Jedrysek 0 siblings, 1 reply; 5+ messages in thread From: Marek Vasut @ 2017-03-10 3:39 UTC (permalink / raw) To: Artur Jedrysek, devicetree-u79uwXL29TY76Z2rM5mHXA, linux-mtd-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r Cc: linux-kernel-u79uwXL29TY76Z2rM5mHXA, Cyrille Pitchen, David Woodhouse, Brian Norris, Boris Brezillon, Richard Weinberger, Rob Herring, Mark Rutland On 03/08/2017 09:05 AM, Artur Jedrysek wrote: > This patch updates Cadence QSPI Device Tree documentation to include > information about new compatible used to indicate, whether or not > Octal SPI transfers are supported by the device. > > Signed-off-by: Artur Jedrysek <jartur-vna1KIf7WgpBDgjK7y7TUQ@public.gmane.org> > --- > Changelog: > v2: Use new compatible, instead of boolean property, to indicate > Octal SPI support. > --- > Documentation/devicetree/bindings/mtd/cadence-quadspi.txt | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) > > diff --git a/Documentation/devicetree/bindings/mtd/cadence-quadspi.txt b/Documentation/devicetree/bindings/mtd/cadence-quadspi.txt > index f248056..41d1e98 100644 > --- a/Documentation/devicetree/bindings/mtd/cadence-quadspi.txt > +++ b/Documentation/devicetree/bindings/mtd/cadence-quadspi.txt > @@ -1,7 +1,9 @@ > * Cadence Quad SPI controller > > Required properties: > -- compatible : Should be "cdns,qspi-nor". > +- compatible : Should be "cdns,{qspi|ospi}-nor". Please explicitly list all compatibles , ie. Should be "cdns,qspi-nor" or "cdns,ospi-nor". But I think the ospi is backward compatible with qspi, right ? So the binding for ospi should list both, ie. compatible = "cdns,ospi-nor", "cdns,qspi-nor"; > + Use "cdns,qspi-nor" for Quad SPI controller. > + Use "cdns,ospi-nor" for Octal SPI controller. > - reg : Contains two entries, each of which is a tuple consisting of a > physical address and length. The first entry is the address and > length of the controller register set. The second entry is the > -- Best regards, Marek Vasut -- 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 ^ permalink raw reply [flat|nested] 5+ messages in thread
* RE: [v2, 4/4] dt-bindings: mtd: Add Octal SPI support to Cadence QSPI. 2017-03-10 3:39 ` Marek Vasut @ 2017-03-10 12:03 ` Artur Jedrysek 2017-03-10 12:52 ` Marek Vasut 0 siblings, 1 reply; 5+ messages in thread From: Artur Jedrysek @ 2017-03-10 12:03 UTC (permalink / raw) To: Marek Vasut, devicetree@vger.kernel.org, linux-mtd@lists.infradead.org Cc: Mark Rutland, Boris Brezillon, Richard Weinberger, linux-kernel@vger.kernel.org, Rob Herring, Cyrille Pitchen, Brian Norris, David Woodhouse > From: Marek Vasut [mailto:marek.vasut@gmail.com] > Sent: 10 March 2017 04:39 > On 03/08/2017 09:05 AM, Artur Jedrysek wrote: > > This patch updates Cadence QSPI Device Tree documentation to include > > information about new compatible used to indicate, whether or not > > Octal SPI transfers are supported by the device. > > > > Signed-off-by: Artur Jedrysek <jartur@cadence.com> > > --- > > Changelog: > > v2: Use new compatible, instead of boolean property, to indicate > > Octal SPI support. > > --- > > Documentation/devicetree/bindings/mtd/cadence-quadspi.txt | 4 +++- > > 1 file changed, 3 insertions(+), 1 deletion(-) > > > > diff --git a/Documentation/devicetree/bindings/mtd/cadence-quadspi.txt > b/Documentation/devicetree/bindings/mtd/cadence-quadspi.txt > > index f248056..41d1e98 100644 > > --- a/Documentation/devicetree/bindings/mtd/cadence-quadspi.txt > > +++ b/Documentation/devicetree/bindings/mtd/cadence-quadspi.txt > > @@ -1,7 +1,9 @@ > > * Cadence Quad SPI controller > > > > Required properties: > > -- compatible : Should be "cdns,qspi-nor". > > +- compatible : Should be "cdns,{qspi|ospi}-nor". > > Please explicitly list all compatibles , ie. > Should be "cdns,qspi-nor" or "cdns,ospi-nor". > Two possible options are also explicitly listed right below. I did that in the way it was done in other driver for Cadence IP: /Documentation/devicetree/bindings/net/macb.txt Should I remove all of that and replace it with both options, separated by an "or" word? > But I think the ospi is backward compatible with qspi, right ? So the > binding for ospi should list both, ie. > compatible = "cdns,ospi-nor", "cdns,qspi-nor"; > Yes, the ospi is backwards compatible with qspi. However, the sole point of introducing new compatible was to differentiate between them (which was previously done using a boolean flag, but that was criticized). Listing both bindings for ospi would only help for kernels not containing driver update being subject of this patch series, as both ospi and qspi are handled by the same driver - just with a slight difference. I apologize if I got something wrong here. > > + Use "cdns,qspi-nor" for Quad SPI controller. > > + Use "cdns,ospi-nor" for Octal SPI controller. > > - reg : Contains two entries, each of which is a tuple consisting of a > > physical address and length. The first entry is the address and > > length of the controller register set. The second entry is the > > > > > -- > Best regards, > Marek Vasut ______________________________________________________ Linux MTD discussion mailing list http://lists.infradead.org/mailman/listinfo/linux-mtd/ ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [v2, 4/4] dt-bindings: mtd: Add Octal SPI support to Cadence QSPI. 2017-03-10 12:03 ` Artur Jedrysek @ 2017-03-10 12:52 ` Marek Vasut [not found] ` <7d303436-77cf-fb11-30b6-c59014950ae6-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 0 siblings, 1 reply; 5+ messages in thread From: Marek Vasut @ 2017-03-10 12:52 UTC (permalink / raw) To: Artur Jedrysek, devicetree@vger.kernel.org, linux-mtd@lists.infradead.org Cc: linux-kernel@vger.kernel.org, Cyrille Pitchen, David Woodhouse, Brian Norris, Boris Brezillon, Richard Weinberger, Rob Herring, Mark Rutland On 03/10/2017 01:03 PM, Artur Jedrysek wrote: > >> From: Marek Vasut [mailto:marek.vasut@gmail.com] >> Sent: 10 March 2017 04:39 >> On 03/08/2017 09:05 AM, Artur Jedrysek wrote: >>> This patch updates Cadence QSPI Device Tree documentation to include >>> information about new compatible used to indicate, whether or not >>> Octal SPI transfers are supported by the device. >>> >>> Signed-off-by: Artur Jedrysek <jartur@cadence.com> >>> --- >>> Changelog: >>> v2: Use new compatible, instead of boolean property, to indicate >>> Octal SPI support. >>> --- >>> Documentation/devicetree/bindings/mtd/cadence-quadspi.txt | 4 +++- >>> 1 file changed, 3 insertions(+), 1 deletion(-) >>> >>> diff --git a/Documentation/devicetree/bindings/mtd/cadence-quadspi.txt >> b/Documentation/devicetree/bindings/mtd/cadence-quadspi.txt >>> index f248056..41d1e98 100644 >>> --- a/Documentation/devicetree/bindings/mtd/cadence-quadspi.txt >>> +++ b/Documentation/devicetree/bindings/mtd/cadence-quadspi.txt >>> @@ -1,7 +1,9 @@ >>> * Cadence Quad SPI controller >>> >>> Required properties: >>> -- compatible : Should be "cdns,qspi-nor". >>> +- compatible : Should be "cdns,{qspi|ospi}-nor". >> >> Please explicitly list all compatibles , ie. >> Should be "cdns,qspi-nor" or "cdns,ospi-nor". >> > > Two possible options are also explicitly listed right below. I did that > in the way it was done in other driver for Cadence IP: > /Documentation/devicetree/bindings/net/macb.txt > Should I remove all of that and replace it with both options, separated > by an "or" word? Wait for Rob to confirm. >> But I think the ospi is backward compatible with qspi, right ? So the >> binding for ospi should list both, ie. >> compatible = "cdns,ospi-nor", "cdns,qspi-nor"; >> > > Yes, the ospi is backwards compatible with qspi. However, the sole point > of introducing new compatible was to differentiate between them (which > was previously done using a boolean flag, but that was criticized). > Listing both bindings for ospi would only help for kernels not > containing driver update being subject of this patch series, as both > ospi and qspi are handled by the same driver - just with a slight > difference. I apologize if I got something wrong here. You got it right, I was just curious about the compatibility. >>> + Use "cdns,qspi-nor" for Quad SPI controller. >>> + Use "cdns,ospi-nor" for Octal SPI controller. >>> - reg : Contains two entries, each of which is a tuple consisting of a >>> physical address and length. The first entry is the address and >>> length of the controller register set. The second entry is the >>> >> >> >> -- >> Best regards, >> Marek Vasut -- Best regards, Marek Vasut ^ permalink raw reply [flat|nested] 5+ messages in thread
[parent not found: <7d303436-77cf-fb11-30b6-c59014950ae6-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>]
* Re: [v2, 4/4] dt-bindings: mtd: Add Octal SPI support to Cadence QSPI. [not found] ` <7d303436-77cf-fb11-30b6-c59014950ae6-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> @ 2017-03-15 20:23 ` Rob Herring 0 siblings, 0 replies; 5+ messages in thread From: Rob Herring @ 2017-03-15 20:23 UTC (permalink / raw) To: Marek Vasut Cc: Artur Jedrysek, devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-mtd-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org, linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Cyrille Pitchen, David Woodhouse, Brian Norris, Boris Brezillon, Richard Weinberger, Mark Rutland On Fri, Mar 10, 2017 at 01:52:31PM +0100, Marek Vasut wrote: > On 03/10/2017 01:03 PM, Artur Jedrysek wrote: > > > >> From: Marek Vasut [mailto:marek.vasut-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org] > >> Sent: 10 March 2017 04:39 > >> On 03/08/2017 09:05 AM, Artur Jedrysek wrote: > >>> This patch updates Cadence QSPI Device Tree documentation to include > >>> information about new compatible used to indicate, whether or not > >>> Octal SPI transfers are supported by the device. > >>> > >>> Signed-off-by: Artur Jedrysek <jartur-vna1KIf7WgpBDgjK7y7TUQ@public.gmane.org> > >>> --- > >>> Changelog: > >>> v2: Use new compatible, instead of boolean property, to indicate > >>> Octal SPI support. > >>> --- > >>> Documentation/devicetree/bindings/mtd/cadence-quadspi.txt | 4 +++- > >>> 1 file changed, 3 insertions(+), 1 deletion(-) > >>> > >>> diff --git a/Documentation/devicetree/bindings/mtd/cadence-quadspi.txt > >> b/Documentation/devicetree/bindings/mtd/cadence-quadspi.txt > >>> index f248056..41d1e98 100644 > >>> --- a/Documentation/devicetree/bindings/mtd/cadence-quadspi.txt > >>> +++ b/Documentation/devicetree/bindings/mtd/cadence-quadspi.txt > >>> @@ -1,7 +1,9 @@ > >>> * Cadence Quad SPI controller > >>> > >>> Required properties: > >>> -- compatible : Should be "cdns,qspi-nor". > >>> +- compatible : Should be "cdns,{qspi|ospi}-nor". > >> > >> Please explicitly list all compatibles , ie. > >> Should be "cdns,qspi-nor" or "cdns,ospi-nor". > >> > > > > Two possible options are also explicitly listed right below. I did that > > in the way it was done in other driver for Cadence IP: > > /Documentation/devicetree/bindings/net/macb.txt > > Should I remove all of that and replace it with both options, separated > > by an "or" word? > > Wait for Rob to confirm. As Marek suggested, but with one valid combination per line. I don't think checkpatch.pl will work with it as is. > > >> But I think the ospi is backward compatible with qspi, right ? So the > >> binding for ospi should list both, ie. > >> compatible = "cdns,ospi-nor", "cdns,qspi-nor"; > >> > > > > Yes, the ospi is backwards compatible with qspi. However, the sole point > > of introducing new compatible was to differentiate between them (which > > was previously done using a boolean flag, but that was criticized). > > Listing both bindings for ospi would only help for kernels not > > containing driver update being subject of this patch series, as both > > ospi and qspi are handled by the same driver - just with a slight > > difference. I apologize if I got something wrong here. > > You got it right, I was just curious about the compatibility. You are assuming every OS/user everywhere is updated. It doesn't hurt to have the backwards compatibility. Rob -- 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 ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2017-03-15 20:23 UTC | newest] Thread overview: 5+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- [not found] <1488959932-6657-1-git-send-email-jartur@cadence.com> 2017-03-08 8:05 ` [v2, 4/4] dt-bindings: mtd: Add Octal SPI support to Cadence QSPI Artur Jedrysek [not found] ` <1488960326-13858-1-git-send-email-jartur-vna1KIf7WgpBDgjK7y7TUQ@public.gmane.org> 2017-03-10 3:39 ` Marek Vasut 2017-03-10 12:03 ` Artur Jedrysek 2017-03-10 12:52 ` Marek Vasut [not found] ` <7d303436-77cf-fb11-30b6-c59014950ae6-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 2017-03-15 20:23 ` Rob Herring
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).