From patchwork Tue Nov 23 10:39:08 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Roger Quadros X-Patchwork-Id: 12693439 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 AD95EC433EF for ; Tue, 23 Nov 2021 10:41:59 +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=4BKK4eMhk/u1XoBDLIHcGk/KYyV1jmy57Xf7oOvRIxs=; b=Plxgy6aJCrF6KI 7lAnWJSzhz4f5E/+d85kIy1wb87hF7ifmErgrLDYcl+rqgYvzcqZh0H3NCJgUlRwwIZculcppEBJi 8+QQlTUZs7fxlbnL5B6oTbmWetO2rpRhvwutz+O3ZBbWHYoyAwqU5N6DT0HsJ1TGtDt62J10f6LrZ ZeLrj6wsqduj7SNFBwVIF8VwQJeFwn3UI0yUGBWvxrNUCnVFA/55aYd/ZRrNmjRIr4gHexZst/Xf8 abTkSEkuIKgEMWie4lmwoGSky0MrB0X2J3u8rEYFLnBmFF6VTA68PyxbpLbfmSQZmG+ckOkeb4zvT GOwrdctwT4ZlOw7tqDnw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mpTDu-001k29-VG; Tue, 23 Nov 2021 10:40:27 +0000 Received: from mail.kernel.org ([198.145.29.99]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mpTCo-001jjG-NJ for linux-arm-kernel@lists.infradead.org; Tue, 23 Nov 2021 10:39:20 +0000 Received: by mail.kernel.org (Postfix) with ESMTPSA id 8482C61053; Tue, 23 Nov 2021 10:39:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1637663958; bh=fY89zJ/guTGALBmndzOZlRqfJJPer5NjthbMCjk09Bs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=XV74LlS8qWopqrA4Q2nECenASuVVdcFaC5PYKIOgGpZNLOovEOK0Yl6+IB2O+jcqw QCr0tdAyps29anK37MiiQgf+nJ20lRKzSFXOjtwv4RABP4AB+ceXzdVzSwCOo7EGQn /A6qjxHj2RVykANHysYc5r9w9Po0V8mc8CfjwYxDvbhw8Joa02yCJ48M1EVNSqi0D6 3gIn1cKvPI2SpHqc4ZfCbL/H3/17uoyR3TCRx+7JK4WrquezmdYTDoFZb8p3tX3Rib be5UtgHoXVHPMm8Avjpy38htgOzdFLuRAHlpQYgmH6Rq9GUkN4J5MwVVjUpyObTwSU P+XFyTLusVJzQ== 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 2/2] arm64: dts: ti: k3-am64-main: Add ELM (Error Location Module) node Date: Tue, 23 Nov 2021 12:39:08 +0200 Message-Id: <20211123103908.14220-3-rogerq@kernel.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20211123103908.14220-1-rogerq@kernel.org> References: <20211123103908.14220-1-rogerq@kernel.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211123_023918_828186_30856786 X-CRM114-Status: UNSURE ( 8.01 ) X-CRM114-Notice: Please train this message. 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 +++++++++ 1 file changed, 9 insertions(+) diff --git a/arch/arm64/boot/dts/ti/k3-am64-main.dtsi b/arch/arm64/boot/dts/ti/k3-am64-main.dtsi index 7fdd1789568a..340e6b2274c3 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"; + }; };