From patchwork Wed Dec 8 13:15:35 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Roger Quadros X-Patchwork-Id: 12695346 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 7CE62C433EF for ; Wed, 8 Dec 2021 13:17:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:List-Subscribe:List-Help: List-Post:List-Archive:List-Unsubscribe:List-Id:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=6/zwoyKqe6NwCfCh4OdAm5Qia2nBbMgdiNCevZ3solw=; b=NYoMnOSwLnXcbK H2bQntHKdLDwoFlfGTEa6MJ0H5Jhg5yMCsFv1pc6Q/JEyuNnpXZ2jVmavcfrmkiWVoZZcNVzRqMeC 4LEFvsoERix6AFc+khPP3jmydmfHeSsZyoyU52omvKfJlAcrXfpbOFxXDVOdcxltzg9SPZW9GxRrz 6xFxSjp4vNoKBev/mP9x4mK9YQ6uUeEWl8v8p1AwmkOi7dEPvoRdP/pjbVjTMGB+uLN0JwsSdzhgN KJrFC3UnP6bOic964abcrewVuC4uhLD3/t1sR7xld5X5MG8lA/Go7RymjciAVREnwh1K0GQ7+G9zn NtJKiwLG9AmcaB9NmPhw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1muwng-00CheQ-Dx; Wed, 08 Dec 2021 13:16:00 +0000 Received: from ams.source.kernel.org ([145.40.68.75]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1muwnT-00ChaX-Mv for linux-arm-kernel@lists.infradead.org; Wed, 08 Dec 2021 13:15:49 +0000 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 6F903B82102; Wed, 8 Dec 2021 13:15:46 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5D65DC341C7; Wed, 8 Dec 2021 13:15:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1638969345; bh=hjducVqW50CuU5bubaiTZGflO0pLSH4F4fUmaSzQXNk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=gSRhPDs29aFk1jYrnXr4CF01zwOC8rws3Kw0enwvS5AsucuDJRr9r50jffNMK+q+n 18lOUDbPt6YpkdQOZujUXS675f4dMG5rYWstMlYASnt5gkpPQ1YtSj9I8ILJK+p8o0 78lvZSoiCMyniNGEK1SfDaR9XagGA5eCx/YKIjoIZanMFa82YHsIeelQK6ObAgQ85k JgZwIUDYFCsfqonsdyza493VQczmrShD21ed518m/FWtbbCOFZLD0L/0LP0d7iFBc4 Taijgp5ql+Tk5vt27NTD+BX5KAksEArBqT4/ifJ0+DGiVqHp56uXztNSCExSgOMymg e81N0yo6shTxA== From: Roger Quadros To: nm@ti.com Cc: kishon@ti.com, vigneshr@ti.com, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Roger Quadros Subject: [PATCH v2 1/2] arm64: dts: ti: k3-am64-main: Add GPMC memory controller node Date: Wed, 8 Dec 2021 15:15:35 +0200 Message-Id: <20211208131536.23667-2-rogerq@kernel.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20211208131536.23667-1-rogerq@kernel.org> References: <20211208131536.23667-1-rogerq@kernel.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211208_051547_935377_FEE4FFCC X-CRM114-Status: GOOD ( 10.18 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The GPMC is a unified memory controller dedicated for interfacing with external memory devices like - Asynchronous SRAM-like memories and ASICs - Asynchronous, synchronous, and page mode burst NOR flash - NAND flash - Pseudo-SRAM devices Signed-off-by: Roger Quadros --- arch/arm64/boot/dts/ti/k3-am64-main.dtsi | 19 +++++++++++++++++++ arch/arm64/boot/dts/ti/k3-am642-evm.dts | 4 ++++ arch/arm64/boot/dts/ti/k3-am642-sk.dts | 4 ++++ 3 files changed, 27 insertions(+) diff --git a/arch/arm64/boot/dts/ti/k3-am64-main.dtsi b/arch/arm64/boot/dts/ti/k3-am64-main.dtsi index 5ad638b95ffc..830bfc0929b9 100644 --- a/arch/arm64/boot/dts/ti/k3-am64-main.dtsi +++ b/arch/arm64/boot/dts/ti/k3-am64-main.dtsi @@ -1253,4 +1253,23 @@ bus_freq = <1000000>; }; }; + + gpmc0: memory-controller@3b000000 { + compatible = "ti,am64-gpmc"; + power-domains = <&k3_pds 80 TI_SCI_PD_EXCLUSIVE>; + clocks = <&k3_clks 80 0>; + clock-names = "fck"; + reg = <0x00 0x03b000000 0x00 0x400>, + <0x00 0x050000000 0x00 0x8000000>; + reg-names = "cfg", "data"; + interrupts = ; + gpmc,num-cs = <3>; + gpmc,num-waitpins = <2>; + #address-cells = <2>; + #size-cells = <1>; + interrupt-controller; + #interrupt-cells = <2>; + gpio-controller; + #gpio-cells = <2>; + }; }; diff --git a/arch/arm64/boot/dts/ti/k3-am642-evm.dts b/arch/arm64/boot/dts/ti/k3-am642-evm.dts index 6726c4c7c28c..e13866a6e131 100644 --- a/arch/arm64/boot/dts/ti/k3-am642-evm.dts +++ b/arch/arm64/boot/dts/ti/k3-am642-evm.dts @@ -638,3 +638,7 @@ &icssg1_mdio { status = "disabled"; }; + +&gpmc0 { + status = "disabled"; +}; diff --git a/arch/arm64/boot/dts/ti/k3-am642-sk.dts b/arch/arm64/boot/dts/ti/k3-am642-sk.dts index 6b04745147be..e2793202af38 100644 --- a/arch/arm64/boot/dts/ti/k3-am642-sk.dts +++ b/arch/arm64/boot/dts/ti/k3-am642-sk.dts @@ -525,3 +525,7 @@ &icssg1_mdio { status = "disabled"; }; + +&gpmc0 { + status = "disabled"; +}; From patchwork Wed Dec 8 13:15:36 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Roger Quadros X-Patchwork-Id: 12695347 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 63059C433F5 for ; Wed, 8 Dec 2021 13:17:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:List-Subscribe:List-Help: List-Post:List-Archive:List-Unsubscribe:List-Id:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=k6PsE6XlW+JKKIpXWP3ZxKFszUtJwnKrOxke9WbOKqY=; b=M2hJcRTXYQEqCm /cXnjgY4xdkhX8y4EmXUSS0hdg4fK9AiBuo/bsxdHOO65v9wNLNE/HgNrEp70sCCjuJAMiBG9/2uG dPuFGKwr5cBarAK3ul9ym24e39/p/bYqB//5uDw4zmwdB8Gk96YhHDNvQzWrmZ3Z4aOYA3tbOfEo2 XDo0nbiB59H5OpYpwByRPc+YjnCzaaY2tHD5HJQd8q6iXZ4nYynxHlTSPhGqsCnRSpwR9uukZvkSe /HSLx71BKD3U8wCHCrFGsVK6X4z3lkmFQSwObFHLLVokvSco6XUaq1d54jJRy835Sk5o9+EB3sx2T Et+Dozrh7WIVYw1gCjaQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1muwnq-00ChfN-CD; Wed, 08 Dec 2021 13:16:10 +0000 Received: from ams.source.kernel.org ([145.40.68.75]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1muwnV-00ChbS-V2 for linux-arm-kernel@lists.infradead.org; Wed, 08 Dec 2021 13:15:51 +0000 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id A9BC3B82101; Wed, 8 Dec 2021 13:15:48 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id AA0E6C341CA; Wed, 8 Dec 2021 13:15:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1638969347; bh=sP1X52euc3a3IC3rrT+6kJqmIt9xXd3lURVpwfwOqyo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=jghHbfX7ORnQUeGwArie1uIWyYaZ9lfJ3pYM38FcQomdWeXHvVRPLgXK93XQDiVfi h+eZqukg2EKSdmXOtQH9E6g0FzRziGwIMNi5mK8ggWI/mFpEltzJv4c90gecGtZfjJ 7iCUeg/sljQCf6/zFo0WdJ/h2Cpa9/ERdBX8QIxqpkiyrD9TFIDu6pYCboQtf97F+j FS96/sGrLYy2sSh9DpWvKuTULPG/eDueEcuVIXTUsQqRwYltCO/jrOCtMELfjsQPtW iet9pDMQJO4buB0YyUFt5ztns/fCnqIA/cFGaAhjr2FyxqYT6gjRx9Jm1Cj5B1Z6GL sINARbKfxBFwg== From: Roger Quadros To: nm@ti.com Cc: kishon@ti.com, vigneshr@ti.com, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Roger Quadros Subject: [PATCH v2 2/2] arm64: dts: ti: k3-am64-main: Add ELM (Error Location Module) node Date: Wed, 8 Dec 2021 15:15:36 +0200 Message-Id: <20211208131536.23667-3-rogerq@kernel.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20211208131536.23667-1-rogerq@kernel.org> References: <20211208131536.23667-1-rogerq@kernel.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211208_051550_194549_43FB7C33 X-CRM114-Status: GOOD ( 10.25 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The ELM module is used for GPMC NAND accesses for detecting and correcting errors during reads due to NAND bitflips errors. 4-, 8-, and 16-bit error-correction levels are supported using the BCH (Bose-ChaudhurI-Hocquenghem) algorithm. Signed-off-by: Roger Quadros --- arch/arm64/boot/dts/ti/k3-am64-main.dtsi | 9 +++++++++ arch/arm64/boot/dts/ti/k3-am642-evm.dts | 4 ++++ arch/arm64/boot/dts/ti/k3-am642-sk.dts | 4 ++++ 3 files changed, 17 insertions(+) diff --git a/arch/arm64/boot/dts/ti/k3-am64-main.dtsi b/arch/arm64/boot/dts/ti/k3-am64-main.dtsi index 830bfc0929b9..179b3a6706c9 100644 --- a/arch/arm64/boot/dts/ti/k3-am64-main.dtsi +++ b/arch/arm64/boot/dts/ti/k3-am64-main.dtsi @@ -1272,4 +1272,13 @@ gpio-controller; #gpio-cells = <2>; }; + + elm0: ecc@25010000 { + compatible = "ti,am3352-elm"; + reg = <0x00 0x25010000 0x00 0x2000>; + interrupts = ; + power-domains = <&k3_pds 54 TI_SCI_PD_EXCLUSIVE>; + clocks = <&k3_clks 54 0>; + clock-names = "fck"; + }; }; diff --git a/arch/arm64/boot/dts/ti/k3-am642-evm.dts b/arch/arm64/boot/dts/ti/k3-am642-evm.dts index e13866a6e131..d6037dc664ec 100644 --- a/arch/arm64/boot/dts/ti/k3-am642-evm.dts +++ b/arch/arm64/boot/dts/ti/k3-am642-evm.dts @@ -642,3 +642,7 @@ &gpmc0 { status = "disabled"; }; + +&elm0 { + status = "disabled"; +}; diff --git a/arch/arm64/boot/dts/ti/k3-am642-sk.dts b/arch/arm64/boot/dts/ti/k3-am642-sk.dts index e2793202af38..788813ab294f 100644 --- a/arch/arm64/boot/dts/ti/k3-am642-sk.dts +++ b/arch/arm64/boot/dts/ti/k3-am642-sk.dts @@ -529,3 +529,7 @@ &gpmc0 { status = "disabled"; }; + +&elm0 { + status = "disabled"; +};