Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3887585imu; Mon, 10 Dec 2018 09:20:46 -0800 (PST) X-Google-Smtp-Source: AFSGD/W8DtTn7JE/9PS0ZvwFWwgVBK19846fvzPt82ZBr1uQ8vwudwe4vMRBoW/zytJNSXcBmy2V X-Received: by 2002:a17:902:7c82:: with SMTP id y2mr12703898pll.33.1544462446212; Mon, 10 Dec 2018 09:20:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544462446; cv=none; d=google.com; s=arc-20160816; b=YEeLxOZzNoZpHdYF0gi/37ShN3JNa8w9UldPcxcgJsjnOu+nBv+rBHt2R0dnp3Cc+M GiHwedwuBubRzTJWF/JuUcLW0Xy5diYe/kKftlh4csRqxcAGmvAwcx7u0OYRo52mTGK/ zn9PdE1zfiN/z6L78IHFNftlaOV/6RB8+1VTnaHwRGVxM9jo4ikI8GHMQ2s5U6f5p9fI Q4z0rIkZz3m6o0s0FqtuTgJrWZj02nNEl7sKV31G2bIDBjPyZi2Z2We5Ce8r90i5Tq3Z GtcQBYrxmPTYoT0DD7jTRWbte+0t1vJ9flmZa7R6CIO41WtWMfiTbDNPeG+4QOcj49sw 4mCw== 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 :spamdiagnosticmetadata:spamdiagnosticoutput:content-language :accept-language:message-id:date:thread-index:thread-topic:subject :cc:to:from:dkim-signature; bh=1XNrmeOL+ZjYS/P/wlQ3EdM9OocCB16TWniZLAaI+9M=; b=WKqPMqEFAgGTt+5Rt2VkLi9WBd+IP7hSnA6zoKXgwlTO6YwCIQucpZ4WCTuILzHx6v CROOLfjMjjJDLbCfC1Z9ioUR0+Cnr4vnHwV1vMtVt486pZeJ7SnbDemGwUc7oJrL1b9l LpzemHlKFpzZTSznUBA0qeDAadJUdi6E3OGRmDioQ+PZP2IbOf85jTr9Q1Vgq3MjfOxy XVtlIFXlfdOAEFBrWQobbwZs0vBg1BZ/qwFJL4ks7yQkeRrQUH19tfrzuJ5+WWyDRQcu 6i5r8MZ/6ULNjlTTFqaSxS+Cw1YzyFY5WMjPFVoglIPXcOtpBKRQo8q2GfsXK1oKG0JE Giww== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microchiptechnology.onmicrosoft.com header.s=selector1-microchiptechnology-onmicrosoft-com header.b=rmksHg1N; 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 128si10945123pfe.4.2018.12.10.09.20.30; Mon, 10 Dec 2018 09:20:46 -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=rmksHg1N; 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 S1728700AbeLJRPj (ORCPT + 99 others); Mon, 10 Dec 2018 12:15:39 -0500 Received: from esa1.microchip.iphmx.com ([68.232.147.91]:32847 "EHLO esa1.microchip.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727157AbeLJRPg (ORCPT ); Mon, 10 Dec 2018 12:15:36 -0500 X-IronPort-AV: E=Sophos;i="5.56,339,1539673200"; d="scan'208";a="25064723" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa1.microchip.iphmx.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 10 Dec 2018 10:15:34 -0700 Received: from NAM03-DM3-obe.outbound.protection.outlook.com (10.10.215.89) by email.microchip.com (10.10.76.106) with Microsoft SMTP Server (TLS) id 14.3.352.0; Mon, 10 Dec 2018 10:15:34 -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=1XNrmeOL+ZjYS/P/wlQ3EdM9OocCB16TWniZLAaI+9M=; b=rmksHg1NSLObVTGb056pbUmOwgwBWI5P+VG77VSEGgT4GZZkHF6eC495/rBDdKlGDaDJ+tRUuyU42Ye6WqbkGbBdgFRfrK5k1gFybHISxoDAO3DBqVNMRywYZU10Rx/Zrw1f3D9MTeqwQhcGUjayoPBoOhQIq69yhniz7olO03E= Received: from BN6PR11MB1842.namprd11.prod.outlook.com (10.175.99.146) by BN6PR11MB1282.namprd11.prod.outlook.com (10.173.32.17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1404.22; Mon, 10 Dec 2018 17:15:29 +0000 Received: from BN6PR11MB1842.namprd11.prod.outlook.com ([fe80::d88c:1d67:5fb0:12ae]) by BN6PR11MB1842.namprd11.prod.outlook.com ([fe80::d88c:1d67:5fb0:12ae%2]) with mapi id 15.20.1404.026; Mon, 10 Dec 2018 17:15:29 +0000 From: To: , , , , , CC: , , , , , , , Subject: [PATCH] ARM: dts: at91: sama5d2 Xplained: add QSPI0 + SPI NOR memory nodes Thread-Topic: [PATCH] ARM: dts: at91: sama5d2 Xplained: add QSPI0 + SPI NOR memory nodes Thread-Index: AQHUkKvzXXGQaMBmgEiVjL0m4mUE4w== Date: Mon, 10 Dec 2018 17:15:29 +0000 Message-ID: <20181210171511.21002-1-tudor.ambarus@microchip.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: VI1PR0101CA0049.eurprd01.prod.exchangelabs.com (2603:10a6:800:1f::17) To BN6PR11MB1842.namprd11.prod.outlook.com (2603:10b6:404:103::18) authentication-results: spf=none (sender IP is ) smtp.mailfrom=Tudor.Ambarus@microchip.com; x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [94.177.32.154] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;BN6PR11MB1282;6:UGrae/y90LV0en2YRmBfZBSm+e6Hgj96pB9wIerFuvPWk5MNFWcK/nZTLhIjlYbvOBEGu1/vPe4BSPwsXU1SvX6eMtJ5tVOyvcebUucH5jmc9dPmbKVYbQjNbGc8u7Xv5pchuL/Rx9/ufw1K+g3RSuE4dTTWhmUJQ9P67jOQsMQbXVHp+synzLzXS0Yat9TsnuOsTJhMwsZC+haZdyvSdtCbJvUYlQVxIwYaLfsSL9aafKnEvHslvIuoMZG/6FUc8Q+K5PtU7Sort8tn2M+DxKC+didAiYrbEbNj+iDbxW1XHGc6V6AdHyB61iV6emejwg9uvt4UWl0ntPMSteVpkUYySaR13hz49P+c74kx0ONjfJuActkQMFgAXtEQaHB3WPa5dLo/0WhciSUxtulCZMqROOuY6nnAzQUaU2wvvymfspJ4wLu5r+NAbmyqgDZ4jdEbp4uoIo/47EFwL1TKXA==;5:W9KyeZGXMYEz+Abo3iwvj7Nksh/Bb/RED/ynuald6LKDTjlErs75DoSapRk73xil32EKeCZiv5Mfuq6eIOOQYmf9eCXBQAxCPEyT2c5G0H6fuQ+ZOOD/RgLBrDvaS5w7WA8QyZQkH4i7F2EErvEessJAEhDbTYXGDCpowLKn+4g=;7:W5HT1ARSXFspC8IwT5z8dkTeIzR/0FNikReDSYn/CpQZ0u5I0NrctEHIjGW7hatojpNWGq9IY7FLmKjC31uYMWSfphTG/k7KZodRIBA2VtYxxhZFUgvOkCAM+oJDcZ/iYia4ZnOys2tRn0Bz5qGTsQ== x-ms-office365-filtering-correlation-id: ec007223-fa55-47f3-3b87-08d65ec31555 x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390098)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600074)(711020)(2017052603328)(7153060)(7193020);SRVR:BN6PR11MB1282; x-ms-traffictypediagnostic: BN6PR11MB1282: x-microsoft-antispam-prvs: x-ms-exchange-senderadcheck: 1 x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(3230017)(999002)(6040522)(2401047)(5005006)(8121501046)(10201501046)(3002001)(3231472)(944501520)(52105112)(93006095)(93001095)(148016)(149066)(150057)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123558120)(20161123564045)(20161123562045)(201708071742011)(7699051)(76991095);SRVR:BN6PR11MB1282;BCL:0;PCL:0;RULEID:;SRVR:BN6PR11MB1282; x-forefront-prvs: 08828D20BC x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(396003)(366004)(376002)(136003)(346002)(39860400002)(199004)(189003)(106356001)(25786009)(53936002)(66066001)(71200400001)(81166006)(6436002)(110136005)(6486002)(99286004)(52116002)(1076002)(256004)(14444005)(54906003)(8676002)(8936002)(81156014)(6636002)(316002)(26005)(68736007)(7416002)(305945005)(6506007)(386003)(7736002)(2906002)(6116002)(86362001)(4326008)(5660300001)(3846002)(71190400001)(6512007)(186003)(102836004)(107886003)(2616005)(2501003)(97736004)(14454004)(217873002)(36756003)(72206003)(478600001)(105586002)(486006)(476003);DIR:OUT;SFP:1101;SCL:1;SRVR:BN6PR11MB1282;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-microsoft-antispam-message-info: lyuWmiDuJ/aDtrOacE5OudXmy1a9cKez97GOo6aXJINRvA8+9U4+BtwyyxPXsWIy+LQELZhllI58HIgPfabsx+4+Uf/pDx5tgzS//P3Xmor9XmAKaQHRb2fanIBpCqiHfIOU2+WH4rSXcfhqGMZ6xZVgQxF3kAYFQ+39GyvgrIPIb1gQyOsTHyYaJLRNbHkTGHsMgGOJR6B72HMDT8S9q0l0aIUshjfell3lJmu/cKLvOWqLp6ts97MBVrb8mRrrsCFAJ7B96oyVUil0jPe3BuTGgWMULqeay3xmSDc+sJ6US/tehKpX+kLM0tVooENu spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-Network-Message-Id: ec007223-fa55-47f3-3b87-08d65ec31555 X-MS-Exchange-CrossTenant-originalarrivaltime: 10 Dec 2018 17:15:29.5039 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 3f4057f3-b418-4d4e-ba84-d55b4e897d88 X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN6PR11MB1282 X-OriginatorOrg: microchip.com Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Cyrille Pitchen This patch configures the QSPI0 controller pin muxing and declares a jedec,spi-nor memory. sama5d2 Xplained RevB and RevC use the Macronix MX25L25673G flash memory which advertises a maximum frequency of 80MHz for Quad IO Fast Read. Set the spi-max-frequency to 80MHz knowing that actually the QSPI drver will set the SPI bus clock to 166MHz / 3 =3D 55.3MHz. Signed-off-by: Cyrille Pitchen [tudor.ambarus@microchip.com: - drop partitions, - add spi-rx/tx-bus-width - change spi-max-frequency to match the 80MHz limit advertised by MX25L25673G for Quad IO Fast Read, - reword commit message and subject.] Signed-off-by: Tudor Ambarus --- arch/arm/boot/dts/at91-sama5d2_xplained.dts | 31 +++++++++++++++++++++++++= ++++ 1 file changed, 31 insertions(+) diff --git a/arch/arm/boot/dts/at91-sama5d2_xplained.dts b/arch/arm/boot/dt= s/at91-sama5d2_xplained.dts index 518e2b095ccf..171bc82cfbbf 100644 --- a/arch/arm/boot/dts/at91-sama5d2_xplained.dts +++ b/arch/arm/boot/dts/at91-sama5d2_xplained.dts @@ -108,6 +108,21 @@ }; =20 apb { + qspi0: spi@f0020000 { + pinctrl-names =3D "default"; + pinctrl-0 =3D <&pinctrl_qspi0_default>; + /* status =3D "okay"; */ /* conflict with sdmmc1 */ + + flash@0 { + compatible =3D "jedec,spi-nor"; + reg =3D <0>; + spi-max-frequency =3D <80000000>; + spi-tx-bus-width =3D <4>; + spi-rx-bus-width =3D <4>; + m25p,fast-read; + }; + }; + spi0: spi@f8000000 { pinctrl-names =3D "default"; pinctrl-0 =3D <&pinctrl_spi0_default>; @@ -485,6 +500,22 @@ bias-disable; }; =20 + pinctrl_qspi0_default: qspi0_default { + sck_cs { + pinmux =3D , + ; + bias-disable; + }; + + data { + pinmux =3D , + , + , + ; + bias-pull-up; + }; + }; + pinctrl_sdmmc0_default: sdmmc0_default { cmd_data { pinmux =3D , --=20 2.9.4