From patchwork Wed Jan 31 15:38:26 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Raghavendra, Vignesh" X-Patchwork-Id: 867994 X-Patchwork-Delegate: trini@ti.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=ti.com header.i=@ti.com header.b="lR8SSd8I"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 3zWnSr6MYYz9ryv for ; Thu, 1 Feb 2018 02:38:04 +1100 (AEDT) Received: by lists.denx.de (Postfix, from userid 105) id 66A31C21E16; Wed, 31 Jan 2018 15:38:01 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=RCVD_IN_DNSWL_BLOCKED, T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id 56811C21C3F; Wed, 31 Jan 2018 15:37:58 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 1EF4DC21C2F; Wed, 31 Jan 2018 15:37:57 +0000 (UTC) Received: from lelnx194.ext.ti.com (lelnx194.ext.ti.com [198.47.27.80]) by lists.denx.de (Postfix) with ESMTPS id 7FB4AC21C29 for ; Wed, 31 Jan 2018 15:37:56 +0000 (UTC) Received: from dflxv15.itg.ti.com ([128.247.5.124]) by lelnx194.ext.ti.com (8.15.1/8.15.1) with ESMTP id w0VFbs0U002293; Wed, 31 Jan 2018 09:37:54 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ti.com; s=ti-com-17Q1; t=1517413074; bh=hPDQfovdM7GiZBeGkkbm2wLmAZrUfhkmGiqUdM5q0Ik=; h=From:To:CC:Subject:Date; b=lR8SSd8Ih+loU51ghP0pgMzd6sxsWHK+PphiYm6sZ/z+NVYeF3b3Wo3tczWL+24Ie wPvajPRfrk7JykwLG254Mj3oxPCObhWw3ISR7jasChjnLV/fq72oiWcUXIscRgJMuD PRM4uwgAN89gIT35lXqgan0nIx6NUrnVOWlx7wvg= Received: from DLEE115.ent.ti.com (dlee115.ent.ti.com [157.170.170.26]) by dflxv15.itg.ti.com (8.14.3/8.13.8) with ESMTP id w0VFbsl6017792; Wed, 31 Jan 2018 09:37:54 -0600 Received: from DLEE108.ent.ti.com (157.170.170.38) by DLEE115.ent.ti.com (157.170.170.26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1261.35; Wed, 31 Jan 2018 09:37:54 -0600 Received: from dflp33.itg.ti.com (10.64.6.16) by DLEE108.ent.ti.com (157.170.170.38) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1261.35 via Frontend Transport; Wed, 31 Jan 2018 09:37:54 -0600 Received: from a0132425.india.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by dflp33.itg.ti.com (8.14.3/8.13.8) with ESMTP id w0VFbqiV027864; Wed, 31 Jan 2018 09:37:53 -0600 From: Vignesh R To: Tom Rini Date: Wed, 31 Jan 2018 21:08:26 +0530 Message-ID: <20180131153827.1011-1-vigneshr@ti.com> X-Mailer: git-send-email 2.16.1 MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Cc: u-boot@lists.denx.de Subject: [U-Boot] [PATCH 1/2] ARM: k2g: Add pinmux data for QSPI on K2G ICE X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 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" Add pinmux for QSPI pins on K2G ICE board. Signed-off-by: Vignesh R --- board/ti/ks2_evm/mux-k2g.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/board/ti/ks2_evm/mux-k2g.h b/board/ti/ks2_evm/mux-k2g.h index 9e3fa1100331..f7d36d132ec8 100644 --- a/board/ti/ks2_evm/mux-k2g.h +++ b/board/ti/ks2_evm/mux-k2g.h @@ -338,6 +338,15 @@ struct pin_cfg k2g_ice_evm_pin_cfg[] = { /* I2C 0 */ { 223, MODE(0) }, /* SOC_I2C0_SCL */ { 224, MODE(0) }, /* SOC_I2C0_SDA */ + + /* QSPI */ + { 129, MODE(0) }, /* SOC_QSPI_CLK */ + { 130, MODE(0) }, /* SOC_QSPI_RTCLK */ + { 131, MODE(0) }, /* SOC_QSPI_D0 */ + { 132, MODE(0) }, /* SOC_QSPI_D1 */ + { 133, MODE(0) }, /* SOC_QSPI_D2 */ + { 134, MODE(0) }, /* SOC_QSPI_D3 */ + { 135, MODE(0) }, /* SOC_QSPI_CSN0 */ { MAX_PIN_N, } }; From patchwork Wed Jan 31 15:38:27 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Raghavendra, Vignesh" X-Patchwork-Id: 867995 X-Patchwork-Delegate: trini@ti.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=ti.com header.i=@ti.com header.b="PnjZV5pc"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 3zWnTh0HxKz9ryv for ; Thu, 1 Feb 2018 02:38:47 +1100 (AEDT) Received: by lists.denx.de (Postfix, from userid 105) id AFB14C21E28; Wed, 31 Jan 2018 15:38:19 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=RCVD_IN_DNSWL_BLOCKED, T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id 65FB2C21E31; Wed, 31 Jan 2018 15:38:00 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 6005EC21C50; Wed, 31 Jan 2018 15:37:58 +0000 (UTC) Received: from lelnx193.ext.ti.com (lelnx193.ext.ti.com [198.47.27.77]) by lists.denx.de (Postfix) with ESMTPS id B6192C21C29 for ; Wed, 31 Jan 2018 15:37:57 +0000 (UTC) Received: from dlelxv90.itg.ti.com ([172.17.2.17]) by lelnx193.ext.ti.com (8.15.1/8.15.1) with ESMTP id w0VFbtj4016536; Wed, 31 Jan 2018 09:37:55 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ti.com; s=ti-com-17Q1; t=1517413075; bh=UDEN3FPX2zB6h3abAwAAh02hWddwCSfU7gEI9EQ7LVE=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=PnjZV5pckd3+r5r9OvxsD+LOqctxNNTnoreV0Cw0nrqKvjhFODkJpqqBqnSXaXBi5 aIlizBnpBCD87iRp/6szauMD4YhY1vVLUFrJHgrBNF/OcVV4HROocJvbITp4oVMrfG M95mUmgmI+E1Of1NyCQLb7zh+HCZnJsdSygFushg= Received: from DFLE115.ent.ti.com (dfle115.ent.ti.com [10.64.6.36]) by dlelxv90.itg.ti.com (8.14.3/8.13.8) with ESMTP id w0VFbtMv006843; Wed, 31 Jan 2018 09:37:55 -0600 Received: from DFLE109.ent.ti.com (10.64.6.30) by DFLE115.ent.ti.com (10.64.6.36) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1261.35; Wed, 31 Jan 2018 09:37:55 -0600 Received: from dflp33.itg.ti.com (10.64.6.16) by DFLE109.ent.ti.com (10.64.6.30) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1261.35 via Frontend Transport; Wed, 31 Jan 2018 09:37:55 -0600 Received: from a0132425.india.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by dflp33.itg.ti.com (8.14.3/8.13.8) with ESMTP id w0VFbqiW027864; Wed, 31 Jan 2018 09:37:54 -0600 From: Vignesh R To: Tom Rini Date: Wed, 31 Jan 2018 21:08:27 +0530 Message-ID: <20180131153827.1011-2-vigneshr@ti.com> X-Mailer: git-send-email 2.16.1 In-Reply-To: <20180131153827.1011-1-vigneshr@ti.com> References: <20180131153827.1011-1-vigneshr@ti.com> MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Cc: u-boot@lists.denx.de Subject: [U-Boot] [PATCH 2/2] ARM: dts: keystone-k2g-ice: Add support for QSPI X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 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" K2G ICE has a s25fl256s1 QSPI NOR flash connected to QSPI at CS0. Add DT entries for the same. Signed-off-by: Vignesh R --- Ported from linux-next. arch/arm/dts/keystone-k2g-ice.dts | 48 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) diff --git a/arch/arm/dts/keystone-k2g-ice.dts b/arch/arm/dts/keystone-k2g-ice.dts index be63782c97d9..610baf83fa49 100644 --- a/arch/arm/dts/keystone-k2g-ice.dts +++ b/arch/arm/dts/keystone-k2g-ice.dts @@ -34,3 +34,51 @@ &i2c1 { status = "okay"; }; + +&qspi { + status = "okay"; + + flash0: m25p80@0 { + compatible = "s25fl256s1", "spi-flash"; + reg = <0>; + spi-tx-bus-width = <1>; + spi-rx-bus-width = <4>; + spi-max-frequency = <96000000>; + #address-cells = <1>; + #size-cells = <1>; + cdns,read-delay = <5>; + cdns,tshsl-ns = <500>; + cdns,tsd2d-ns = <500>; + cdns,tchsh-ns = <119>; + cdns,tslch-ns = <119>; + + partition@0 { + label = "QSPI.u-boot"; + reg = <0x00000000 0x00100000>; + }; + partition@1 { + label = "QSPI.u-boot-env"; + reg = <0x00100000 0x00040000>; + }; + partition@2 { + label = "QSPI.skern"; + reg = <0x00140000 0x0040000>; + }; + partition@3 { + label = "QSPI.pmmc-firmware"; + reg = <0x00180000 0x0040000>; + }; + partition@4 { + label = "QSPI.kernel"; + reg = <0x001c0000 0x0800000>; + }; + partition@5 { + label = "QSPI.u-boot-spl-os"; + reg = <0x009c0000 0x0040000>; + }; + partition@6 { + label = "QSPI.file-system"; + reg = <0x00a00000 0x1600000>; + }; + }; +};