Received: by 2002:ac0:8c9a:0:0:0:0:0 with SMTP id r26csp3618872ima; Mon, 4 Feb 2019 02:12:57 -0800 (PST) X-Google-Smtp-Source: ALg8bN49CKH6MGfGUTaKR1sQoOkyPoVmrpAHW8eYiSGNbu15lOdbD+8CIPlhwRTIeY/C97N4oQtF X-Received: by 2002:a17:902:e18c:: with SMTP id cd12mr48109437plb.279.1549275177041; Mon, 04 Feb 2019 02:12:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549275177; cv=none; d=google.com; s=arc-20160816; b=0kncJXpZkNx+wVqln1QTGgibYPZYqhfrc+9i4Eu+oeNsNq2q71cwxHBkvLrCaCOEeo KJq25CSysClsF7M1pYmmJhIDp76qiC1+1IewjPhXKYHL8gZEKkOG/3wBUh6RK0NomL3X I+TUCoBSpmbe0Pnb+Wh1DlYTkVGXUERoi1+Mj8LqpDgOQqHr0fGECLL8CO73Q5YEy+W4 pAjBkdh0KTsNUt/nIHjO7CEpGkUZBfBP/utAn77lMF9St6Rgce/nYye37OnNMOpintVo Zuwf+mk0fDLJsl3nIRHKi56pqlJYoRZi8/Rjq+4NqRiuEX3EG61OaIffPRbQq/bPLZ4i 7wVw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-language:accept-language:message-id:date:thread-index :thread-topic:subject:cc:to:from:dkim-signature; bh=XxGiQjvY1tBFUNKMNTo6+eO5z1XqGbISn0vd4kY3Nlk=; b=k3urFg4myKbIVksizfl45Za/1tlCLpUVtXUzvOpxVd3Xbq3mAqV27Swpb+djk40xfX BTz1vjWFemiRZa9541j1QT37xruKhZggrS3yJvq8X4ZjpAlUDeC/Uh8yPjC2Gqx/ltjV ayf0KYp31oY8O/nFQ1CUcgCmRfahv899iZFXSKjKzJoVwqOsdBbMLAuZgmVpvxdcSLLa MXPNVVZPN1X7+nIeVEpTpD3ZTCu9Li1wLrabPa9XPIJZ33yjdorg69Xn+vqJX/1DS1z9 cEjcYBe7whE2CmZ1kwGU8nVLKGzVfJXDAqfYVRw08X/nVdKqDnWtKCXOnImjSw6AEkhj +AUg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microchiptechnology.onmicrosoft.com header.s=selector1-microchiptechnology-onmicrosoft-com header.b=jn0guIsS; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d16si2617752pll.306.2019.02.04.02.12.41; Mon, 04 Feb 2019 02:12:56 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@microchiptechnology.onmicrosoft.com header.s=selector1-microchiptechnology-onmicrosoft-com header.b=jn0guIsS; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728400AbfBDKJX (ORCPT + 99 others); Mon, 4 Feb 2019 05:09:23 -0500 Received: from esa6.microchip.iphmx.com ([216.71.154.253]:24492 "EHLO esa6.microchip.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727276AbfBDKJX (ORCPT ); Mon, 4 Feb 2019 05:09:23 -0500 X-IronPort-AV: E=Sophos;i="5.56,559,1539673200"; d="scan'208";a="23387560" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa6.microchip.iphmx.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 04 Feb 2019 03:09:22 -0700 Received: from NAM04-BN3-obe.outbound.protection.outlook.com (10.10.215.89) by email.microchip.com (10.10.76.49) with Microsoft SMTP Server (TLS) id 14.3.352.0; Mon, 4 Feb 2019 03:09:22 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=microchiptechnology.onmicrosoft.com; s=selector1-microchiptechnology-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=XxGiQjvY1tBFUNKMNTo6+eO5z1XqGbISn0vd4kY3Nlk=; b=jn0guIsSXcInGD/Df0QiMFV1s/spJqTDSJ9COEf3ca7/QxdpvNdIdOnoif/6btuYfFQLEFkDy/et072pftci665I8lYOPgwt9g2Ll7upHSBfZpirsVC1e0FCbp1eKSSyrQ9mxoNDnM/bBARRP8180RZmiIhaLEK0tJr2nK5yuPs= Received: from BN6PR11MB1842.namprd11.prod.outlook.com (10.175.98.146) by BN6PR11MB1473.namprd11.prod.outlook.com (10.172.21.16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1580.16; Mon, 4 Feb 2019 10:09:20 +0000 Received: from BN6PR11MB1842.namprd11.prod.outlook.com ([fe80::847:4296:13b9:fc9f]) by BN6PR11MB1842.namprd11.prod.outlook.com ([fe80::847:4296:13b9:fc9f%8]) with mapi id 15.20.1580.019; Mon, 4 Feb 2019 10:09:20 +0000 From: To: , , , , , , , , CC: , , , , , Subject: [PATCH v4 00/13] spi: atmel-quadspi: introduce sam9x60 qspi controller Thread-Topic: [PATCH v4 00/13] spi: atmel-quadspi: introduce sam9x60 qspi controller Thread-Index: AQHUvHGxs+YMRi1JL0yTwYRhTEiWew== Date: Mon, 4 Feb 2019 10:09:19 +0000 Message-ID: <20190204100910.26701-1-tudor.ambarus@microchip.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: VI1PR08CA0270.eurprd08.prod.outlook.com (2603:10a6:803:dc::43) To BN6PR11MB1842.namprd11.prod.outlook.com (2603:10b6:404:101::18) authentication-results: spf=none (sender IP is ) smtp.mailfrom=Tudor.Ambarus@microchip.com; x-ms-exchange-messagesentrepresentingtype: 1 x-mailer: git-send-email 2.9.5 x-originating-ip: [94.177.32.154] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;BN6PR11MB1473;6:MNb5h32zHsO0pHzrYLiUpUpx1bOMWYoo+ZsMQ5gIwt87RkhwJxWdoJrt5hzSDEs3Bfc6X6C2r8zse9A3SGVFX0iNGX4DK8I4VvZNQh3Ffvao51jI4bjHcDYvpbyB6JPZX5bCi/VlKqpTMmRJK603bp6TLoySdjLecoR2PaNXUcItjU5n6r0pKpiPK3q2Vx7Iylv3joh67J0amigSOv27G5RvvNG4q9QW+ptJDJZf+f+eLNdD9/0d3ibhIrRPm+eIUQVVt6jbys9VhdG88w53ODnKsmgHd5scFubwydq3Yl2aduzWhsFqMkXZ4vkmuC9QHlr7n7APEXQ6C4VwimywBGKlBUurd1XsD1KM/Tg9RXxfAglM9/s/Et0Bnl65mzmBek4Lusxci0AxpJxaOLVVPHXlp77pUrVxN2jUiLOXaS5kZ3HGT8Jq8RPnl0nzNalJ5SK5TjQpXWNQI5JIPyiDRQ==;5:xzgA+/ikLG1wmQCYaVG7NYXS4ckt8CIFxabP/LwjHEJ+g+cy21vtmEmTthOyYpgmS0npzh0S3ZMHFL7HHA/z8igoBbbZhdKGWLVQhDAAS4lOW6dcap4s8zAL/7Ev2iZhYgKwnmtERnSsiFnTL8uQOIsf9qFBTGc5MfDklVp8YZnlqJdmsqYE9dCoV7EepIP6VF3kxCXHOS/tSeyly/TlZA==;7:RQKCa8XADYkjwHSqiFoII7v/b0A6aucPANzuJucTyXNsrUEN4MTaN0m+/g4nVEjyuWFdK0jkblOLjVvQ0LpcQufETGx3Htz3cHkerrEvFCjkGylDJVajnA6sDohRT4+4FtOcxKh/CK6t08yeu4OwVg== x-ms-office365-filtering-correlation-id: b3534988-5634-4937-238c-08d68a88d3f4 x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600110)(711020)(4605077)(2017052603328)(7153060)(7193020);SRVR:BN6PR11MB1473; x-ms-traffictypediagnostic: BN6PR11MB1473: x-microsoft-antispam-prvs: x-forefront-prvs: 0938781D02 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(376002)(366004)(136003)(346002)(396003)(39860400002)(199004)(189003)(52116002)(8676002)(478600001)(2906002)(26005)(2501003)(186003)(50226002)(53936002)(4326008)(81156014)(316002)(66066001)(8936002)(3846002)(81166006)(6116002)(1076003)(386003)(6506007)(106356001)(68736007)(6436002)(6512007)(39060400002)(102836004)(107886003)(71200400001)(54906003)(71190400001)(105586002)(476003)(99286004)(36756003)(7736002)(14444005)(6486002)(97736004)(14454004)(2616005)(86362001)(305945005)(7416002)(256004)(72206003)(486006)(110136005)(25786009);DIR:OUT;SFP:1101;SCL:1;SRVR:BN6PR11MB1473;H:BN6PR11MB1842.namprd11.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:1;MX:1; received-spf: None (protection.outlook.com: microchip.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: qDXWe8tMnKIT6pKfEIlpDTNlgLfVOj9Ho+t9RQYPUvi+cCAPIh+7o076TC/7T1fRd08oAsh94VumloR1e59sUMKAcrOFQll+ofCnJESPi5uZ0nLusjVN+VYXUoCHsE90tXAzg9k8rKU+iJb/C8mDet7eImU/uJ1ivKTekWiPtUXqX+cvosxVKCq3kjjIOaqX8HoelwEPx7T7ycdJwBIGY99qC7cC3ePYiSFG10z48c4u8efeATsvDNTCFQaCqtYnppqqy2Jx5ppjl5Bm4EakWSj1E0dRt4QUl0VgCAAEm/HfwATtFqb5628PFjs1lSmfigRB803Zf44XIRR88Qq4U9G8mSj33vTq9TpcuNyBByPepPzoCCoELBOhXHvPnrH/DqazVsTFMUGCEKJ+N9spfL7Alw8E4y7qkmR+H4xzmis= Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-Network-Message-Id: b3534988-5634-4937-238c-08d68a88d3f4 X-MS-Exchange-CrossTenant-originalarrivaltime: 04 Feb 2019 10:09:17.3333 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-id: 3f4057f3-b418-4d4e-ba84-d55b4e897d88 X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN6PR11MB1473 X-OriginatorOrg: microchip.com Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Tudor Ambarus Patches from 1 to 11 are minor fixes or cosmetics. Patches 12 and 13 introduce the sam9x60 qspi controller. sam9x60 qspi controller tested with sst26vf064b jedec,spi-nor flash. Backward compatibility test done on sama5d2 qspi controller and mx25l25635e jedec,spi-nor flash. The patches are generated on top of for-next branch. v4: - s/smm/mr, init controller in serial memory mode by default - drop local variables that kept aq->regs and &pdev->dev, the compiler should be smart enough to store them in a register - introduce QSPI_IFR_TFRTYP_MEM - add comment saying QSPI_IFR_APBTFRTYP_READ is defined in sam9x60 - s/sama5d2_qspi_modes/atmel_qspi_modes, modes are the same both controllers - fix kernel doc header - move comment in function body - collect R-b tags v3: - update smm value when different. - treat just regular spi transfers when introducing sam9x60 qspi IP. Mem transfers will be added together with dirmap support. - reorganize the code and change ops functions pointers to avoid code duplication. - rename aq->clk to aq->pclk to indicate that it's a peripheral clock. - drop unused and NOP transfer macros. - add Suggested-by tags, reword some commits. v2: - cache MR value, - drop iomem wrappers, - make "pclk" clock-name mandatory even for sama5d2, - rework clock handling, - reorder setting of register values in set_cfg() calls, - collect R-b tags. Tudor Ambarus (13): spi: atmel-quadspi: cache MR value to avoid a write access spi: atmel-quadspi: order header files inclusion alphabetically spi: atmel-quadspi: drop wrappers for iomem accesses spi: atmel-quadspi: fix naming scheme spi: atmel-quadspi: remove unnecessary cast spi: atmel-quadspi: return appropriate error code spi: atmel-quadspi: switch to SPDX license identifiers spi: atmel-quadspi: rework transfer macros dt-bindings: spi: atmel-quadspi: update example to new clock binding dt-bindings: spi: atmel-quadspi: make "pclk" mandatory spi: atmel-quadspi: add support for named peripheral clock dt-bindings: spi: atmel-quadspi: QuadSPI driver for Microchip SAM9X60 spi: atmel-quadspi: add support for sam9x60 qspi controller .../devicetree/bindings/spi/atmel-quadspi.txt | 12 +- drivers/spi/atmel-quadspi.c | 389 +++++++++++++++--= ---- 2 files changed, 284 insertions(+), 117 deletions(-) --=20 2.9.5