From mboxrd@z Thu Jan 1 00:00:00 1970 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=-16.6 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT 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 2FD4DC4338F for ; Tue, 17 Aug 2021 10:29:53 +0000 (UTC) Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 1E53560F14 for ; Tue, 17 Aug 2021 10:29:51 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 1E53560F14 Authentication-Results: mail.kernel.org; dmarc=fail (p=quarantine dis=none) header.from=microchip.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 884348023C; Tue, 17 Aug 2021 12:29:49 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=fail (p=quarantine dis=none) header.from=microchip.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=microchip.com header.i=@microchip.com header.b="INiAtisa"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id D5AB080C87; Tue, 17 Aug 2021 12:29:47 +0200 (CEST) Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.154.123]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 720488023C for ; Tue, 17 Aug 2021 12:29:42 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=quarantine dis=none) header.from=microchip.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=Eugen.Hristev@microchip.com DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1629196182; x=1660732182; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=g5HO+b2+6dWh0smDy1elXGGPgOBkggxTaNtqy4gbbIQ=; b=INiAtisaE/HB6EGSwfPhWYa7fX8G0onPmOki7XpAEZlSx8PnlCjbtBSf UoGk08bdfgkUuuhUgoRjEZvpxoJyHTUB/mVnjP1AikhNOJBJ3hKQAC7lN 4b/The3wvdfRliXmfydqRQIyiorV05TwqCdan8Cgc9THMvNbSvUv9l3H9 SlSgnHHdSAePahlvu0ToKhsUJ7gHgGszlo61WbzCX6LwwK9+KpJix4FH/ loZP9CPJ3e02MBNnrfQJHBKbx36vcWhWJlLATocFJfRrGxwRFxt7SvEtD w7oJtCxghxt3zi9TkMEzxBwW5uVP+0CE/05UkoB5L/1BPagyY4ROiw/I4 w==; IronPort-SDR: 2YqOooUjRqW5Iyr850rVAHovgJ5ZZbNLCrdvB0fyjMunTfjFjL5jtXxqLKltG4mntg0p9i6J6W hLJtk8c0wASZVd5Np5tloVxMAC8WM3C1SuAaPwiyvJK/VWFRSlXxMrGyMzLD8aiXb8RZIDpmKi VH+yw/7+TShWrYD/ajOWaCGRWbnnlmJe3/3cO75nNcngc0LE2pmmpkcWHffSf+XIUH0Ehdb4cN VfQsggri+rU39aJPCYrnPy7MPgMidqM4mrZxkCOfCPHkDwjBZl1Vg92ZblsHuqvPR3KBalmduH 9st0aSLDOypT5HR9KqB3NCVK X-IronPort-AV: E=Sophos;i="5.84,328,1620716400"; d="scan'208";a="128557563" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa2.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 17 Aug 2021 03:29:40 -0700 Received: from chn-vm-ex04.mchp-main.com (10.10.85.152) by chn-vm-ex01.mchp-main.com (10.10.85.143) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.14; Tue, 17 Aug 2021 03:29:39 -0700 Received: from ROB-ULT-M18282.microchip.com (10.10.115.15) by chn-vm-ex04.mchp-main.com (10.10.85.152) with Microsoft SMTP Server id 15.1.2176.14 via Frontend Transport; Tue, 17 Aug 2021 03:29:33 -0700 From: Eugen Hristev To: CC: , Subject: [PATCH 1/4] ARM: dts: at91: sama5d2_icp: add QSPI1 device Date: Tue, 17 Aug 2021 13:29:22 +0300 Message-ID: <20210817102925.62787-1-eugen.hristev@microchip.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.2 at phobos.denx.de X-Virus-Status: Clean From: Mihai Sain Add support for sst26vf064b 64Mbit qspi-flash that is present on sama5d2_icp board. Signed-off-by: Mihai Sain [eugen.hristev@microchip.com: move u-boot properties to sama5d2_icp-u-boot.dtsi] Signed-off-by: Eugen Hristev --- arch/arm/dts/at91-sama5d2_icp-u-boot.dtsi | 16 +++++++++++++ arch/arm/dts/at91-sama5d2_icp.dts | 29 +++++++++++++++++++++++ 2 files changed, 45 insertions(+) diff --git a/arch/arm/dts/at91-sama5d2_icp-u-boot.dtsi b/arch/arm/dts/at91-sama5d2_icp-u-boot.dtsi index 347fa813e9..68c27f229f 100644 --- a/arch/arm/dts/at91-sama5d2_icp-u-boot.dtsi +++ b/arch/arm/dts/at91-sama5d2_icp-u-boot.dtsi @@ -28,3 +28,19 @@ &pinctrl_mikrobus1_uart { u-boot,dm-pre-reloc; }; + +&pinctrl_qspi1_sck_cs_default { + u-boot,dm-pre-reloc; +}; + +&pinctrl_qspi1_dat_default { + u-boot,dm-pre-reloc; +}; + +&qspi1 { + u-boot,dm-pre-reloc; + + flash@0 { + u-boot,dm-pre-reloc; + }; +}; diff --git a/arch/arm/dts/at91-sama5d2_icp.dts b/arch/arm/dts/at91-sama5d2_icp.dts index f81fa60171..2c6e91c1c7 100644 --- a/arch/arm/dts/at91-sama5d2_icp.dts +++ b/arch/arm/dts/at91-sama5d2_icp.dts @@ -33,6 +33,21 @@ }; apb { + + qspi1: spi@f0024000 { + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_qspi1_sck_cs_default &pinctrl_qspi1_dat_default>; + status = "okay"; + + flash@0 { + compatible = "jedec,spi-nor"; + reg = <0>; + spi-max-frequency = <83000000>; + spi-rx-bus-width = <4>; + spi-tx-bus-width = <4>; + }; + }; + uart0: serial@f801c000 { /* mikrobus1 uart */ pinctrl-names = "default"; pinctrl-0 = <&pinctrl_mikrobus1_uart>; @@ -109,6 +124,20 @@ bias-pull-up; }; + pinctrl_qspi1_sck_cs_default: qspi1_sck_cs_default { + pinmux = , + ; + bias-disable; + }; + + pinctrl_qspi1_dat_default: qspi1_dat_default { + pinmux = , + , + , + ; + bias-pull-up; + }; + pinctrl_sdmmc0_default: sdmmc0_default { pinmux = , , -- 2.25.1