Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S936033AbdCJMEJ (ORCPT ); Fri, 10 Mar 2017 07:04:09 -0500 Received: from mail-by2nam03on0075.outbound.protection.outlook.com ([104.47.42.75]:17872 "EHLO NAM03-BY2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S935940AbdCJMEE (ORCPT ); Fri, 10 Mar 2017 07:04:04 -0500 From: Artur Jedrysek To: Marek Vasut , "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 Subject: RE: [v2, 4/4] dt-bindings: mtd: Add Octal SPI support to Cadence QSPI. Thread-Topic: [v2, 4/4] dt-bindings: mtd: Add Octal SPI support to Cadence QSPI. Thread-Index: AQHSl+LaKp5j1SkgkEeF4Jbt6JllGKGNcBCAgACKOIA= Date: Fri, 10 Mar 2017 12:03:12 +0000 Message-ID: References: <1488959932-6657-1-git-send-email-jartur@cadence.com> <1488960326-13858-1-git-send-email-jartur@cadence.com> <132a4818-11d1-263f-aae4-bac4e76c14c8@gmail.com> In-Reply-To: <132a4818-11d1-263f-aae4-bac4e76c14c8@gmail.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-dg-ref: PG1ldGE+PGF0IG5tPSJib2R5LnR4dCIgcD0iYzpcdXNlcnNcamFydHVyXGFwcGRhdGFccm9hbWluZ1wwOWQ4NDliNi0zMmQzLTRhNDAtODVlZS02Yjg0YmEyOWUzNWJcbXNnc1xtc2ctODlmZmM2MmItMDU4OS0xMWU3LWEwYWQtMjhkMjQ0YjA2ODYyXGFtZS10ZXN0XDg5ZmZjNjJjLTA1ODktMTFlNy1hMGFkLTI4ZDI0NGIwNjg2MmJvZHkudHh0IiBzej0iMjY1NCIgdD0iMTMxMzM2MjA5OTUyNjEyOTA0IiBoPSIwNEo3NGRxWEppYVVmaVNXM0w3TDR0YmpUKzA9IiBpZD0iIiBibD0iMCIgYm89IjEiLz48L21ldGE+ authentication-results: gmail.com; dkim=none (message not signed) header.d=none;gmail.com; dmarc=none action=none header.from=cadence.com; x-originating-ip: [213.131.238.28] x-ms-office365-filtering-correlation-id: 99c4d616-135a-4efc-7275-08d467ad6d5a x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(22001);SRVR:DM5PR07MB2780; x-microsoft-exchange-diagnostics: 1;DM5PR07MB2780;7:L4RS1fzmPBPyS1P0UHauho8ErfTaJYGJcyPu9wrLUcECIxp/DSsaOV+0XbVnHkRqtbCd9pZlMjBI/mwOb9cB3O9yjTEbuKNR+t0MecGe/a9wgbX5hoMu/xIjbKBvycEonpzsYMVKSElWPNYeFcH91+d4M53pCPdrsWR6717haa8qxHBwo7yEsPShIB2U80Eo06QvaVaiR702zhBIkJwFjvOcgoCQY/ORvesEnnpENBH7N2djbQK1zQJW43z0Ukoy5NgSBauwfViR3yNX+CDbQGIYToOZAQK5yKn5FdtlYUdj9/rOY6yAxW0kMupkiiLB/nCSmIDACbtRuquSf0kPdw==;20:m0wX6Oa5BRZiUDhEg9RJlRJwCYl2cqAU+JtJ0pLc9PABYb0dYLDdn4jM32raIrlgBea7fGFMfTGC+TCFZQdBDQEKs4TQ67vl0g6m3D2qknAJa0BrIrf8MrGeT4dy6n1Bk4qhZnu8N6VChFJ92RP8+WTWktNxFxsDoyEbHR/7OoowKS0Rq6PxkYo3ADZ51CS7/KBj9kV6OfALngDCf49Wwcgjpv2pjjy8G3kz3n0qvht8l1QAkE9QqSG/ReZbiWZq x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(788757137089)(72806322054110); x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(6040375)(601004)(2401047)(8121501046)(5005006)(3002001)(10201501046)(6041248)(20161123558025)(20161123560025)(20161123555025)(20161123564025)(20161123562025)(6072148);SRVR:DM5PR07MB2780;BCL:0;PCL:0;RULEID:;SRVR:DM5PR07MB2780; x-forefront-prvs: 02426D11FE x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(6009001)(39450400003)(377454003)(36092001)(54534003)(24454002)(66066001)(68736007)(7696004)(86362001)(54356999)(2906002)(189998001)(50986999)(33656002)(6116002)(102836003)(5660300001)(6246003)(122556002)(76176999)(305945005)(3846002)(74316002)(2201001)(7736002)(7416002)(38730400002)(2900100001)(39060400002)(9686003)(4326008)(8676002)(53546006)(8936002)(55016002)(99286003)(77096006)(2501003)(229853002)(81166006)(54906002)(6436002)(25786008)(53936002)(6506006)(2950100002)(106116001)(3660700001)(3280700002);DIR:OUT;SFP:1101;SCL:1;SRVR:DM5PR07MB2780;H:DM5PR07MB2780.namprd07.prod.outlook.com;FPR:;SPF:None;MLV:ovrnspm;PTR:InfoNoRecords;LANG:en; spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 X-OriginatorOrg: cadence.com X-MS-Exchange-CrossTenant-originalarrivaltime: 10 Mar 2017 12:03:12.6318 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: d36035c5-6ce6-4662-a3dc-e762e61ae4c9 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR07MB2780 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by mail.home.local id v2AC4Ed2010536 Content-Length: 2491 Lines: 63 > 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 > > --- > > 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