From patchwork Fri Apr 3 06:12:24 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tudor Ambarus X-Patchwork-Id: 202479 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY, SPF_HELO_NONE, SPF_PASS, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 22403C43331 for ; Fri, 3 Apr 2020 06:12:29 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id DEAA220787 for ; Fri, 3 Apr 2020 06:12:28 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=microchip.com header.i=@microchip.com header.b="eROz3OEJ"; dkim=pass (1024-bit key) header.d=microchiptechnology.onmicrosoft.com header.i=@microchiptechnology.onmicrosoft.com header.b="Vs2WYatC" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732862AbgDCGM2 (ORCPT ); Fri, 3 Apr 2020 02:12:28 -0400 Received: from esa4.microchip.iphmx.com ([68.232.154.123]:43931 "EHLO esa4.microchip.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730550AbgDCGM2 (ORCPT ); Fri, 3 Apr 2020 02:12:28 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1585894347; x=1617430347; h=from:to:cc:subject:date:message-id: content-transfer-encoding:mime-version; bh=Nxf9ou59CVrUjihCB/PyPCcOUFYz+n94wClGPJdgy0Q=; b=eROz3OEJ+dOGIGou6AJS9pLkZZ5s+YgudQjcJJ9o5dFx7eOzO3Ok8wjv Ab3OXq50ZoJyotgqDRaomLORWyIFpjpYk70Bo3+l8VwkEK3bGwj3w77ba n+GE7ZTFT9KdflmZ6Xtf5G4Al7+ypEn+15gR60zE2vyJ4T5II8lzRucl0 uFfM4gR9hzR+83k2Qc/WVKXKAU/JtEdYooqt8u24JV31jxYidnBFYK1KD CHv0u5WCbz+WQADFWa9GP61tZ8Z53qyv/+dJ96DM08IyliO2/R9dpqeF5 Hf/6Xl2T3XEWIJ3UNipwMQj4PIcMBaTD9GbvJIf1NJN5lmtkp4lQlaK8W A==; IronPort-SDR: HOI3pVWNoy8kZjS5jLDkjCbH5c2a4XdI/+h/qlaNckaOPEIRYxxAkyoePyPjvdqtdp8p/hGLPQ CG02H2x8aKleBJsbF62RPDtJbgB7fzLfAdJU1uWDMN3+SiOSo40izE6itSMP1oSk/Vp0pXeLOF rbsrX/AYCR5zH3wSAIcnBEQEo3sRrUVoTuhkdPEt2VG8qPcpO10kZwuEMgi2swCuRjYrBbiiCg Ej3w4fZX1xAAQa+N7o5fcJiXCn/DKmuL67deCC3RA59fQqfxUYYyIUACTczogrBQJJXADbQwXR bFg= X-IronPort-AV: E=Sophos;i="5.72,338,1580799600"; d="scan'208";a="69286922" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa4.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 02 Apr 2020 23:12:27 -0700 Received: from chn-vm-ex04.mchp-main.com (10.10.85.152) by chn-vm-ex02.mchp-main.com (10.10.85.144) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Thu, 2 Apr 2020 23:12:26 -0700 Received: from NAM10-DM6-obe.outbound.protection.outlook.com (10.10.215.89) by email.microchip.com (10.10.87.151) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5 via Frontend Transport; Thu, 2 Apr 2020 23:12:26 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=hMNiBisvRmF4HrRrypawLPxwiOai8jPbrWSoICKj7WtMQelqE67RsK4tcsZ1CrCU82kCkqT3wA9pF+jFbwkGZaOMAw5bZH6htXSj9Ds4j8j0b+cxxBYyvWRucI/9B8q3pvG8SH4sDXS/c45oY9oWuDFB7IhyB+IoAHWlGAQqdB6K+0LbJ8ezVTL4PdJndzTIqKlyZixvC6iihVtOFG2DBalOv+K+ibTqtgVUzTWjIePYeNjH9o60nCNN9Fm4qyFgriAHyCJ/e9j5M+IJ57Qwt/QhrCmLJt/qgTe7GcI6riJdNlVFlrTTDDBwvWeOXbbnwPU+FrTxjQwcSWCYBohTFQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=kWdTC6PymwkyS1Qb5cvOVoxNnkN6b9LG1Mfkg4mvVF4=; b=Z23RQ3E274EZj6Dd7Z1ES739Yzj2g2SmeFGZ8GK9fNVrJeC0Y7DiENZagL/ojJwgu/bYlS3VZLQlhOlXChaxE393Ocm2m2NAcqusGx+0/XA+cK1xbewUfZXyzqqxqKDs4+S5HqOjeOcpU3W6Z5jzCJaDAJzPwRA95QB0gSPP1bS63zGDm4qDaIAX7uZDXZcxiBZjZq+ZoTV+6JcxHOGidcn+kiZqu+OfciSF6nE48l5he5/P0XKJjQ4m4PtLnmDEl3xhwswde2ylr5Z8buxr9vtpRToKflI4lFRl9eRXNZKAbM0zfdLWd7G5nE++QN505VLcqaQrPMLQFVuZNulbbw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=microchip.com; dmarc=pass action=none header.from=microchip.com; dkim=pass header.d=microchip.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=microchiptechnology.onmicrosoft.com; s=selector2-microchiptechnology-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=kWdTC6PymwkyS1Qb5cvOVoxNnkN6b9LG1Mfkg4mvVF4=; b=Vs2WYatCEMe0uddSOWl/gMtJGgNBjXmfrOFWSaVzhpoX/rdfkoHUofQUNdlU+KM8rD89X2Vzo1j7NdikILGdnUw1KWafYMeCcUGRpSo7CuOCOnZarbzbEDMyFoaqA0tsg+Ch1lRAEnkF1doMC98Vb94K9bOJnJ+dU66EW42FO3A= Received: from BY5PR11MB4419.namprd11.prod.outlook.com (2603:10b6:a03:1c8::13) by BY5PR11MB4183.namprd11.prod.outlook.com (2603:10b6:a03:18e::33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2878.16; Fri, 3 Apr 2020 06:12:25 +0000 Received: from BY5PR11MB4419.namprd11.prod.outlook.com ([fe80::e918:9196:b47e:9692]) by BY5PR11MB4419.namprd11.prod.outlook.com ([fe80::e918:9196:b47e:9692%3]) with mapi id 15.20.2856.019; Fri, 3 Apr 2020 06:12:24 +0000 From: To: , , CC: , , , , Subject: [PATCH 1/5] ARM: dts: at91: sam9x60ek: Use quad mode in the spi-nor flash Thread-Topic: [PATCH 1/5] ARM: dts: at91: sam9x60ek: Use quad mode in the spi-nor flash Thread-Index: AQHWCX7XRQickBY2QEaJIS548D2E2Q== Date: Fri, 3 Apr 2020 06:12:24 +0000 Message-ID: <20200403061222.1277147-1-tudor.ambarus@microchip.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=Tudor.Ambarus@microchip.com; x-originating-ip: [94.177.32.156] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 21ecccee-91bd-44b6-e871-08d7d795fa71 x-ms-traffictypediagnostic: BY5PR11MB4183: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-bypassexternaltag: True x-ms-oob-tlc-oobclassifiers: OLM:862; x-forefront-prvs: 0362BF9FDB x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:BY5PR11MB4419.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFTY:; SFS:(10009020)(39860400002)(396003)(136003)(376002)(346002)(366004)(6512007)(6506007)(478600001)(2906002)(6636002)(2616005)(186003)(6486002)(71200400001)(1076003)(26005)(36756003)(316002)(66946007)(8936002)(4744005)(86362001)(54906003)(110136005)(66556008)(64756008)(66446008)(8676002)(81166006)(81156014)(4326008)(107886003)(5660300002)(91956017)(76116006)(66476007); DIR:OUT; SFP:1101; received-spf: None (protection.outlook.com: microchip.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: 0buRVzxXZO4yWqjvW0NJCBlZvXoF7pj+Oq5tsZFKmoVvxK1kVR+cU9afXjs55DkC5xBUWMUyZTehboOaIDGqCmHSoevBwJPvv+67WlPPmPC1m/g+T+/CPAEuKBg6eh1w8T7kPajnIlVTHUYWFZ+75/UfREikjzMqro8GIQTNd5g+odZ73JlqhU89qHdIBMQcR83ZJZp/ViPazcQT24tt5MUHksayvsJvLmeVlrSwVrho3Scwi5UlBP1Zllza9bG1n8qfuJNKG3wXwK/X0Yyf382Zq8/0OslF3tLaWM6ZdVhAOUkQh5NT+Muo0NooG4GplZDDvgiFV8mXdAEmIFfIQtHedjHEg+61heTJP9VsorvBP3A/k3+iHjp+H5/yDqKkFgvtGyOtM875pgKDPjlJovr1zYPRT5CBX1q8WdxmJp2ND6+kNnHYKY/KDVXTjsLT x-ms-exchange-antispam-messagedata: quiwcC2uyRGgMjaeCKEFwWt54h7SGlpvtugNIVNt6l/QLI3kN5WipxgCftaKBDkTE7VlmFu8nCVYSrUmgSuNF/X/AvVLkEwTvALsz8/6WisnENfCPtGrBXdkCy3nQ+lDkB5djb+6I3VK5L/6i4kVDA== MIME-Version: 1.0 X-MS-Exchange-CrossTenant-Network-Message-Id: 21ecccee-91bd-44b6-e871-08d7d795fa71 X-MS-Exchange-CrossTenant-originalarrivaltime: 03 Apr 2020 06:12:24.5673 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 3f4057f3-b418-4d4e-ba84-d55b4e897d88 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: HCKXyTxCz2PNsyXeXrbadgpJjgh6EsTg84ZD2BdspXbba/IdnBAtMMZDi2F1OYVP22bgk9wzxGTBdErMLiddwRw6oPu33XiQl+fd3Ab04jQ= X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY5PR11MB4183 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org From: Tudor Ambarus Both the QSPI controller and the sst26vf064b flash support quad mode, enable it. Signed-off-by: Tudor Ambarus --- arch/arm/boot/dts/at91-sam9x60ek.dts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/boot/dts/at91-sam9x60ek.dts b/arch/arm/boot/dts/at91-sam9x60ek.dts index b484745bf2d4..8c3f621efc4b 100644 --- a/arch/arm/boot/dts/at91-sam9x60ek.dts +++ b/arch/arm/boot/dts/at91-sam9x60ek.dts @@ -579,6 +579,8 @@ compatible = "jedec,spi-nor"; reg = <0>; spi-max-frequency = <80000000>; + spi-tx-bus-width = <4>; + spi-rx-bus-width = <4>; m25p,fast-read; at91bootstrap@0 { From patchwork Fri Apr 3 06:12:26 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tudor Ambarus X-Patchwork-Id: 202478 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY, SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id C4E56C2BA15 for ; Fri, 3 Apr 2020 06:12:30 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 89414208E4 for ; Fri, 3 Apr 2020 06:12:30 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=microchip.com header.i=@microchip.com header.b="rNgMXT8U"; dkim=pass (1024-bit key) header.d=microchiptechnology.onmicrosoft.com header.i=@microchiptechnology.onmicrosoft.com header.b="EvVpRUmi" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387833AbgDCGMa (ORCPT ); Fri, 3 Apr 2020 02:12:30 -0400 Received: from esa3.microchip.iphmx.com ([68.232.153.233]:55093 "EHLO esa3.microchip.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731040AbgDCGM3 (ORCPT ); Fri, 3 Apr 2020 02:12:29 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1585894349; x=1617430349; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=SfQ9YesmicZNOeYKGPEZI8U4s+yp/yb+G05QhDU5kH4=; b=rNgMXT8UqDZYosvVns0wyx0+kFMsDMIAbfOPCaMtbkQP6lLr2SrYhNnP dL14rkrrehuT9RR7pvgGsYy/8xO9HFvWIZFU0uvYVhuZuE180ZzaMlclr 1pWZYf7BiDLIl1clrwM4as5+FGXdf/ag6Z94IZ7VIDYSSs99NKrHi3EAi 2SgP32FK36OUUQyDOFBOIpgGLD0sBfnfJrEHym/rRUpZ3AAMSYVT4Usbl ydzeIJ6gpWfEimvZn0qDyGoS3UPTkUvgqKeY/MDpnzfoUUGhf8ND0VQ7i ltnu7VHtggR99vlkQrqEDqu8+Kah7/Fo5C7/1XJbZa5baIfnwnP/XPiAn w==; IronPort-SDR: 4OLut00bgXT+baw2B8lKSDxqYeSsXxRRDTRjcxoOVUSY2oYmxyZ2YMZilJGIjrRhj0I69alYjc lFA/ERfutKpnABRjZBMjTwPIJbz0GTGSKuITsdZbRxaa3WH3SOV77nfd978H7VW7JgtxSE53Jl 9pXcYfsXIuX/waxZWlJ+62eAoYaCzLApqnVWF+3GVGDPQ/46EcH4P8KDth2wBMYz6HJT66r+g8 EcCNtskVWk+OsuSklM0GJAf6FxPz51kBqzghxKPzJqSWwrgrbB9ddsWZxJq02R3wqfWmU1tQWP Kl8= X-IronPort-AV: E=Sophos;i="5.72,338,1580799600"; d="scan'208";a="72178030" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa3.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 02 Apr 2020 23:12:28 -0700 Received: from chn-vm-ex04.mchp-main.com (10.10.85.152) by chn-vm-ex04.mchp-main.com (10.10.85.152) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Thu, 2 Apr 2020 23:12:28 -0700 Received: from NAM10-DM6-obe.outbound.protection.outlook.com (10.10.215.89) by email.microchip.com (10.10.87.151) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5 via Frontend Transport; Thu, 2 Apr 2020 23:12:28 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=mjaMOW4T4VSh0PjaqXcCw3gU2QgE2CpP3w+hgwWgSIvRAZdnlVWsmlJ8tKQEfOPjMlpCJHOtZTa9I1yuZ1JzZeuYHr3NeXpO6vJ9DiA+vAg6nY+la5mWQe9T5hxgggeAlPHB1vjDjLTNlf6xULDnYmNXxGLjnoGNkpr9sBDu7we1vJkerdV6RTkoWDJx8pg+/hrHtgWuV93YsUc8IRTC1ZAuEmP9Fyo1cmjBwA0qpUpi0U2+TS69/fr7nT9J6egm1NSBYix8yepTMwEup2J7f+bf/Swwa84tYZzkm7+SwIamo0xUZHC3eE8ZDnk5gZKJGSjADTofCmmBjT9tneRmEg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=z9ehwDFekAFmVp7g0RGtwsrLczGO4tcsUFy/TNHzdDg=; b=U9vW3FU/aFad5SksjhWx87R593/eKfcTSMM3vIhY2ac4VDCO6XPCQAHA7+CzPfyz2Txah7XEJtigsDAZ/WyeVHEGbaK+P7FiiDooa29dacK+QZBrjazFBU7eAZ5TlzlgZ13//mD9niyXHvQECL8JVXMzT3rDSoKZaYg9Mc+d+k3cZRyQOqBsAMmRiKbl8BlUlTEjS3Y5YiL1bpliXFTsmYnng2fx7/Jf9wNFfGK6eeGbqsuQJYFLFzWvgPN4XDNm1C+FPYV/3Jg4j+nKnR6mBEWaCrZqyDLEnkWSjhfLB+jYY+9s7m2uMcogyeczyUMflb4I4A7U9BXdUUSmwFGYgg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=microchip.com; dmarc=pass action=none header.from=microchip.com; dkim=pass header.d=microchip.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=microchiptechnology.onmicrosoft.com; s=selector2-microchiptechnology-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=z9ehwDFekAFmVp7g0RGtwsrLczGO4tcsUFy/TNHzdDg=; b=EvVpRUmibQwM8HCNlz0n7xVaQfFHSB+jdxuiC9qRRKBHC6Of5cssUfZgpHdJIanACy81crnEA6yMSneq6ytl1/UDvYz4uVfTHD3af5GLPXAPlbyvdiMF9tW6Uav4jHXbdl89+0jN3dAnc0ErTXSacaMHklVJqwVD0MKKdfQ9ur4= Received: from BY5PR11MB4419.namprd11.prod.outlook.com (2603:10b6:a03:1c8::13) by BY5PR11MB4183.namprd11.prod.outlook.com (2603:10b6:a03:18e::33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2878.16; Fri, 3 Apr 2020 06:12:26 +0000 Received: from BY5PR11MB4419.namprd11.prod.outlook.com ([fe80::e918:9196:b47e:9692]) by BY5PR11MB4419.namprd11.prod.outlook.com ([fe80::e918:9196:b47e:9692%3]) with mapi id 15.20.2856.019; Fri, 3 Apr 2020 06:12:26 +0000 From: To: , , CC: , , , , , Subject: [PATCH 3/5] ARM: dts: at91: sama5d2_xplained: Add QSPI0 + SPI NOR memory nodes Thread-Topic: [PATCH 3/5] ARM: dts: at91: sama5d2_xplained: Add QSPI0 + SPI NOR memory nodes Thread-Index: AQHWCX7Y4zwUIV8V60yUq/Xkexo5pg== Date: Fri, 3 Apr 2020 06:12:26 +0000 Message-ID: <20200403061222.1277147-3-tudor.ambarus@microchip.com> References: <20200403061222.1277147-1-tudor.ambarus@microchip.com> In-Reply-To: <20200403061222.1277147-1-tudor.ambarus@microchip.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=Tudor.Ambarus@microchip.com; x-originating-ip: [94.177.32.156] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 4c20a8b4-778c-4d18-b706-08d7d795fb7b x-ms-traffictypediagnostic: BY5PR11MB4183: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-bypassexternaltag: True x-ms-oob-tlc-oobclassifiers: OLM:4941; x-forefront-prvs: 0362BF9FDB x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:BY5PR11MB4419.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFTY:; SFS:(10009020)(39860400002)(396003)(136003)(376002)(346002)(366004)(6512007)(6506007)(478600001)(2906002)(6636002)(2616005)(186003)(6486002)(71200400001)(1076003)(26005)(36756003)(316002)(66946007)(8936002)(86362001)(54906003)(110136005)(66556008)(64756008)(66446008)(8676002)(81166006)(81156014)(4326008)(107886003)(5660300002)(91956017)(76116006)(66476007); DIR:OUT; SFP:1101; received-spf: None (protection.outlook.com: microchip.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: tlzQk8c5gZGOAiCI2bOsNw5wZ0TMS/Ztdb+naxKLQyoTrLogF3xNAkLU0SOBgCo8I/FnGw3NLdhsr9VypEaeaIuqzCsUZNdKb7ewsQOmfU2Y/7V5/zHTXtCBCdnboi4IB6gCCFF0L60vQ/ATMDbRP8p95B16SAJbofWOr0i8ZeYLj3c1DJDGbZHUGURHMYwFqn8UHZiN5J2S0iy6C9S+hU/QET+3Y3UpQ/DfABEfkOVi6MQU0Eiph71s6IVjanduJYBZo6GJdtvSby+l7PMiuwP8oMJOj0FiYd8sG6qbYzx1CwNMSM+f6IFzvZbjYHiYO6AR1kV+21MQZax4Vp7P6RX9IWosyXrM3gSh9rZ1QfGchbybDtrBV95JVv3eTAqjVTbInzrpl4Jj+Tquh/OW8sEQruVo0GWxQTJhvPSJQZkyQUC92RCUWnAa/xk5rqnP x-ms-exchange-antispam-messagedata: zNfX3eiANRlQD+niqIH/3frgejILM75OsgZcuVJFR37cCf/gYArFadL8/E004djR5K3QhC+f9feXma/9Fzj8+EgAoSXdPyN5JRAOP96BcuMvFyL+X+515OlBZfXP/lehZVXSdKKru8ZzGX0UedHcEA== MIME-Version: 1.0 X-MS-Exchange-CrossTenant-Network-Message-Id: 4c20a8b4-778c-4d18-b706-08d7d795fb7b X-MS-Exchange-CrossTenant-originalarrivaltime: 03 Apr 2020 06:12:26.3583 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 3f4057f3-b418-4d4e-ba84-d55b4e897d88 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: +nxWvCaePNKQUOgZEHyI1o7N/BnyVqe4aP1gsstXLAJAMU9+H2N2J27FSpDQP2HURsGvbVg37YGS3+artDAzNEUa3d3w9AOqZ4MAmemwwZU= X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY5PR11MB4183 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org From: Cyrille Pitchen This patch enables the QSPI0 controller, configures its 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 = 55.3MHz. Signed-off-by: Cyrille Pitchen Tested-by: Tudor Ambarus Signed-off-by: Tudor Ambarus --- arch/arm/boot/dts/at91-sama5d2_xplained.dts | 68 +++++++++++++++++++++ 1 file changed, 68 insertions(+) diff --git a/arch/arm/boot/dts/at91-sama5d2_xplained.dts b/arch/arm/boot/dts/at91-sama5d2_xplained.dts index 055ee53e4773..e0c6cff1a312 100644 --- a/arch/arm/boot/dts/at91-sama5d2_xplained.dts +++ b/arch/arm/boot/dts/at91-sama5d2_xplained.dts @@ -72,6 +72,58 @@ }; apb { + qspi0: spi@f0020000 { + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_qspi0_default>; + status = "disabled"; /* conflict with sdmmc1 */ + + flash@0 { + #address-cells = <1>; + #size-cells = <1>; + compatible = "jedec,spi-nor"; + reg = <0>; + spi-max-frequency = <80000000>; + spi-tx-bus-width = <4>; + spi-rx-bus-width = <4>; + m25p,fast-read; + + at91bootstrap@00000000 { + label = "at91bootstrap"; + reg = <0x00000000 0x00040000>; + }; + + bootloader@00040000 { + label = "bootloader"; + reg = <0x00040000 0x000c0000>; + }; + + bootloaderenvred@00100000 { + label = "bootloader env redundant"; + reg = <0x00100000 0x00040000>; + }; + + bootloaderenv@00140000 { + label = "bootloader env"; + reg = <0x00140000 0x00040000>; + }; + + dtb@00180000 { + label = "device tree"; + reg = <0x00180000 0x00080000>; + }; + + kernel@00200000 { + label = "kernel"; + reg = <0x00200000 0x00600000>; + }; + + misc@00800000 { + label = "misc"; + reg = <0x00800000 0x00000000>; + }; + }; + }; + spi0: spi@f8000000 { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_spi0_default>; @@ -535,6 +587,22 @@ bias-disable; }; + pinctrl_qspi0_default: qspi0_default { + sck_cs { + pinmux = , + ; + bias-disable; + }; + + data { + pinmux = , + , + , + ; + bias-pull-up; + }; + }; + pinctrl_sdmmc0_default: sdmmc0_default { cmd_data { pinmux = , From patchwork Fri Apr 3 06:12:27 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tudor Ambarus X-Patchwork-Id: 202477 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY, SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id BF839C2BA18 for ; Fri, 3 Apr 2020 06:12:31 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 88DD020737 for ; Fri, 3 Apr 2020 06:12:31 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=microchip.com header.i=@microchip.com header.b="FrWjlBnd"; dkim=pass (1024-bit key) header.d=microchiptechnology.onmicrosoft.com header.i=@microchiptechnology.onmicrosoft.com header.b="Cs05agOm" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387784AbgDCGMb (ORCPT ); Fri, 3 Apr 2020 02:12:31 -0400 Received: from esa5.microchip.iphmx.com ([216.71.150.166]:35385 "EHLO esa5.microchip.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731040AbgDCGMa (ORCPT ); Fri, 3 Apr 2020 02:12:30 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1585894351; x=1617430351; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=fNnQvjyw1TE1h8Lsg4ys6eq8cOcNnmmkGQuk25MT1Xk=; b=FrWjlBndmk8CrGByJHk0sAaarQbf2bxV5+jxM1OYgdt7ikhOxm9jAyDA 82X0sLh+sFGPztTJq019rpBICo+14HznpKknjYoa1RGXkRiiEjKzVuzQe a5lik+HNzAvwfUBEbyNjPGGi/50KqFCItnRcI79d7YLsmb9g/4grdtzo/ am5soyfAGkpWgYM4pRUNPoCSxolx5ss5B9KLDHijGXKA5HPXeRnnu94ZV m4bdpRhitEGvatp4rehlrABvzYGOnykBiu/+r+YVYNDeEexsJCJNDMGFK biZ25+MiS0hYVtXTz3WFPZkfF0GFysHOY1jsccIkOCHa303Waa2EEEoTZ Q==; IronPort-SDR: qFfHUNChj6kl6JlzGb7RrRD8mbIPAdzErcIuCCI4WuLvMFw3TRiCpwt+hp4JQv+wTaT3IH+7sy u2HmGQ8QgpuSZURrHxrN7Q/6V7K9FPeR8CYOKkv40FEu5swB6x2k2Aiqc3H2fn5Zq55/fjwgXR meM5pxBugLR5Lm86gL3SrhwV1B5Dj8YJynsIaO4PR4LVOteVC1hturwxyG1P7vgOzxJNAux6Af bXRW2JnlzVcXgurkhWhZKL5rBbkmbHRn4DcRqnuhZPvEgQaBW55wI1+dNqemqisSKormVf46Ox ikQ= X-IronPort-AV: E=Sophos;i="5.72,338,1580799600"; d="scan'208";a="71316160" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa5.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 02 Apr 2020 23:12:30 -0700 Received: from chn-vm-ex04.mchp-main.com (10.10.85.152) by chn-vm-ex03.mchp-main.com (10.10.85.151) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Thu, 2 Apr 2020 23:12:29 -0700 Received: from NAM10-DM6-obe.outbound.protection.outlook.com (10.10.215.89) by email.microchip.com (10.10.87.151) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5 via Frontend Transport; Thu, 2 Apr 2020 23:12:29 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=k/XjjRDbprXkd7l5QRg09VgdGFCYi8sBiDC0rri8w7dJl/Gg/mKMYyusdHbEB+D/TFS4nT/5mwBOWv3LSZK6IteoH7feDM6m72/KwFKJ3CTfWHoYHy/qf9x6HRK1QyfllT+STN+LUWh5ugkJUbv7ltbQtg2Qfn3XF7NUfxTiMfvLtU9j0wui0otaLz94TsGLGgcDpeEJFs/vSsL5PnUo0EHFISlIrU9Ic5AeXLyfVQj9dEUGds/9KSGhwtLCViGDLB7yABZxZADOUmSqt3oVXQQubzTpniOhtCWsA/GLTw1MGjMcCEBEkKgLROnc3iq4fyFX2V+i0altSt7SyDCZhw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=erPspkDGNUBAlW8s3Mn+FTmXPWYPkAZq8tR7QgIssII=; b=inuzxaMxopUg8FMelTvNgwD+2yaj5Xj3PtAz31YUwtaNbGz4wSD3VbeVIp/4bP6jKQ0rnAk7516HkAmN9vlao++u7e8QoadC6ziSNXPJLU/rIA84yY4Jam2vZajINWuqTl5Dl3OkSmBTRf0kqand8X4t0/st58g4YUhz7KknhKoXeN3n8CzsLYeF7NdoiYCwty5FB/+3tn1GIWQWC1Ay6JEMvVeKFlPTWvYXDKY1EQuEW2YQvEIDLhaCAnrXiKeAjvE/evOgEmoUaqaAOduRYdF8NPF0c/xbZwp2noe2srT6AYU5CvtF2CF9PBS4LxC+wJNinChUAlOfo++rMyIuSg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=microchip.com; dmarc=pass action=none header.from=microchip.com; dkim=pass header.d=microchip.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=microchiptechnology.onmicrosoft.com; s=selector2-microchiptechnology-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=erPspkDGNUBAlW8s3Mn+FTmXPWYPkAZq8tR7QgIssII=; b=Cs05agOmohnLh6b4gD3adbKM3AaDuITY/lUzp6DPkrevxUDyLh/oSlmFli9YD5qz5GUhJ7M0e1Kpn9l7QLZ0yMWbSsDUle+faRAspgcruJDGBo+sGhvbnEM94oY/94j7mLtOShMOTTC4paxLFRulY7wornDbV9RE+DT3tImnSX0= Received: from BY5PR11MB4419.namprd11.prod.outlook.com (2603:10b6:a03:1c8::13) by BY5PR11MB4183.namprd11.prod.outlook.com (2603:10b6:a03:18e::33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2878.16; Fri, 3 Apr 2020 06:12:28 +0000 Received: from BY5PR11MB4419.namprd11.prod.outlook.com ([fe80::e918:9196:b47e:9692]) by BY5PR11MB4419.namprd11.prod.outlook.com ([fe80::e918:9196:b47e:9692%3]) with mapi id 15.20.2856.019; Fri, 3 Apr 2020 06:12:28 +0000 From: To: , , CC: , , , , Subject: [PATCH 5/5] ARM: dts: at91: at91-sama5d27_som1: Enable eeprom device Thread-Topic: [PATCH 5/5] ARM: dts: at91: at91-sama5d27_som1: Enable eeprom device Thread-Index: AQHWCX7ZEkLCBK86+EmFjdsQPC+j9w== Date: Fri, 3 Apr 2020 06:12:27 +0000 Message-ID: <20200403061222.1277147-5-tudor.ambarus@microchip.com> References: <20200403061222.1277147-1-tudor.ambarus@microchip.com> In-Reply-To: <20200403061222.1277147-1-tudor.ambarus@microchip.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=Tudor.Ambarus@microchip.com; x-originating-ip: [94.177.32.156] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: c65513a2-78fa-4cb6-b63f-08d7d795fc78 x-ms-traffictypediagnostic: BY5PR11MB4183: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-bypassexternaltag: True x-ms-oob-tlc-oobclassifiers: OLM:6108; x-forefront-prvs: 0362BF9FDB x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:BY5PR11MB4419.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFTY:; SFS:(10009020)(39860400002)(396003)(136003)(376002)(346002)(366004)(6512007)(6506007)(478600001)(2906002)(6636002)(2616005)(186003)(6486002)(71200400001)(1076003)(26005)(36756003)(316002)(66946007)(8936002)(86362001)(54906003)(110136005)(66556008)(64756008)(66446008)(8676002)(81166006)(81156014)(4326008)(107886003)(5660300002)(91956017)(76116006)(66476007); DIR:OUT; SFP:1101; received-spf: None (protection.outlook.com: microchip.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: 2nS1i3Ce2cyjtiTAONomtjQrQKv0TOgOhiNhD+UEU05GJM4JtttkOm27TtjJZgwiRD2FhCrHQC4G4gBRYCk6hUdmIu7E+sLLC8IzZjksDHEPnfiij0aNtS7E1mkWSm7KZOEUneFRs6ixuczFHdJ8+4yQViW9sQTVw9RFE4YaIrlLI1HL1NLZXG628LxpWhjnD5v5K0CE3M52r891F/gKq7AyoduNkTcxuJfL/dLd7o2ywhz2X4BptWEQv+6VnnWl/CWF2ptgBKFby0XWnipu/zBIz3krcg8f6f8kkCcWMSLkvw/Bjxsom5oqpZ+ki9JgJ5L+wex8zyWitPVN3Zc5Mtq+WVCJF1ggo+MR+0MVNmosPvGccC3GTMcJXTt/ySFbaX2f4voOg4hIsaUEFUGnCbPeO1Z2HF7lRZsnE7ZgWPdXimi1u4owACjiVKgqMe3G x-ms-exchange-antispam-messagedata: mR8HssJwAWf33jCi/CL1IVzuh5fTH26mWSz4/y3VU4Ss6nhQQJ74KkYxcXwOl5S4ryQLMhtEl1HNXRPLZWvBoLsDothXfMnWrDxFiAXxKqxUACbAZ8V5YkvvPTzXENoPVse97tVx8uWv5p6K7fQLRg== MIME-Version: 1.0 X-MS-Exchange-CrossTenant-Network-Message-Id: c65513a2-78fa-4cb6-b63f-08d7d795fc78 X-MS-Exchange-CrossTenant-originalarrivaltime: 03 Apr 2020 06:12:27.4487 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 3f4057f3-b418-4d4e-ba84-d55b4e897d88 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: SvEnQbKXYuqa6pXVdPW+QBF1ZZSA+dBHObN3qdOjZGuxyF5GY/o8HI4rrNQ75udOg4vd/f/r56dwJHE3syO2y6zWViOTpsnTuqaLuAXfHEY= X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY5PR11MB4183 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org From: Ludovic Desroches There is an EEPROM on at91-sama5d27_som1 connected to i2c0. i2c0 node has to be moved from at91-sama5d27_som1_ek to at91-sama5d27_som1. Enable the i2c EEPROM found on at91-sama5d27_som1. Add an alias for the i2c node. Signed-off-by: Ludovic Desroches Tested-by: Tudor Ambarus Signed-off-by: Tudor Ambarus --- arch/arm/boot/dts/at91-sama5d27_som1.dtsi | 22 +++++++++++++++++++++ arch/arm/boot/dts/at91-sama5d27_som1_ek.dts | 14 ------------- 2 files changed, 22 insertions(+), 14 deletions(-) diff --git a/arch/arm/boot/dts/at91-sama5d27_som1.dtsi b/arch/arm/boot/dts/at91-sama5d27_som1.dtsi index 919000f467e6..b1f994c0ae79 100644 --- a/arch/arm/boot/dts/at91-sama5d27_som1.dtsi +++ b/arch/arm/boot/dts/at91-sama5d27_som1.dtsi @@ -13,6 +13,10 @@ model = "Atmel SAMA5D27 SoM1"; compatible = "atmel,sama5d27-som1", "atmel,sama5d27", "atmel,sama5d2", "atmel,sama5"; + aliases { + i2c0 = &i2c0; + }; + clocks { slow_xtal { clock-frequency = <32768>; @@ -89,7 +93,25 @@ }; }; + i2c0: i2c@f8028000 { + dmas = <0>, <0>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_i2c0_default>; + status = "okay"; + + at24@50 { + compatible = "24c02"; + reg = <0x50>; + pagesize = <8>; + }; + }; + pinctrl@fc038000 { + pinctrl_i2c0_default: i2c0_default { + pinmux = , + ; + bias-disable; + }; pinctrl_qspi1_default: qspi1_default { sck_cs { diff --git a/arch/arm/boot/dts/at91-sama5d27_som1_ek.dts b/arch/arm/boot/dts/at91-sama5d27_som1_ek.dts index 535627c6045b..b0853bf7901c 100644 --- a/arch/arm/boot/dts/at91-sama5d27_som1_ek.dts +++ b/arch/arm/boot/dts/at91-sama5d27_som1_ek.dts @@ -20,7 +20,6 @@ serial0 = &uart1; /* DBGU */ serial1 = &uart4; /* mikro BUS 1 */ serial2 = &uart2; /* mikro BUS 2 */ - i2c0 = &i2c0; i2c1 = &i2c1; i2c2 = &i2c2; }; @@ -116,13 +115,6 @@ status = "okay"; }; - i2c0: i2c@f8028000 { - dmas = <0>, <0>; - pinctrl-names = "default"; - pinctrl-0 = <&pinctrl_i2c0_default>; - status = "okay"; - }; - pwm0: pwm@f802c000 { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_mikrobus1_pwm &pinctrl_mikrobus2_pwm>; @@ -289,12 +281,6 @@ bias-disable; }; - pinctrl_i2c0_default: i2c0_default { - pinmux = , - ; - bias-disable; - }; - pinctrl_i2c1_default: i2c1_default { pinmux = , ;