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"; +};