From patchwork Tue Aug 2 10:44:56 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Roger Quadros X-Patchwork-Id: 12934503 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 DB9F1C00140 for ; Tue, 2 Aug 2022 10:46:35 +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=VBxtFFHI41UnuNlUb3TviIc95/eYZr+pNvHI30HYMzY=; b=DGeMmjnU9WVN2c JqETRDQD/Cfqflbi9ZSTcUeKTRohVf2kQQHoPIsu9hYIrl1iFfGCZKAD/+R4wTynyOBJjR+1EeI8i LN7dlTGmCCzzRtZWV5HGK0ib4NVpLzPv9qcV3+obwSub+CZxR8zszmnCxwUoXaaUxeukMRkxR/2Oe UebjEd74EYUdF4vkPZxwrBW4KWXt9kMm4Ov6I+QmOs9s9tZuzBxSeU5Th/MBNJRhlSMFv3mH2PLUc KszR15jMn3sGFRX+Em37L745B79qlrJvoKvDX/FlnfH5JYVz6o8dKQXkmUqkigAEkM9871wBdPoeD MqXVBEPFI0TO0U+S/tPQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oIpP5-00D2Fd-S6; Tue, 02 Aug 2022 10:45:36 +0000 Received: from sin.source.kernel.org ([2604:1380:40e1:4800::1]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oIpOj-00D1xZ-Tc for linux-arm-kernel@lists.infradead.org; Tue, 02 Aug 2022 10:45:16 +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 sin.source.kernel.org (Postfix) with ESMTPS id 3F593CE1B10; Tue, 2 Aug 2022 10:45:09 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 193D1C433D7; Tue, 2 Aug 2022 10:45:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1659437107; bh=uK9I3WB5J7p9D/LzHIBJ3uwN3PHEVPmRvawF9Vh0N0g=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=gQJVTwBHg7iCUY3pWPY+NoPbvEF74gNrmUy05OFRP4NQOPkyJ+5VnshoFFdvRl9b2 nEBzwn0vHWb2idODE2dZRtTOPr+lJcodhc+ctI1rF+4hJZYLrLXgaxSq3w++2fC6Nl oVoKLMXXHUnT/pVpt81Y9sZ9nexm3YLl54OCt313LvDKa0ZSdobaY7G8hUVqnCHbzA 5Fvl2NFd/vhvHbZSB7KjerstmK5T2KzNllSRQquI4cyLlbSfsFNcmXBbJQ64OL+NP5 3DAscPjB2d3MUNeIBkt/jt14N6/MUrueIomr0SVYnl/s6ZHxhqKa8is3vq5Ce8JjF2 slq6dfnnvrSSQ== From: Roger Quadros To: nm@ti.com, vigneshr@ti.com Cc: kishon@ti.com, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Roger Quadros Subject: [PATCH v4 2/2] arm64: dts: ti: k3-am64-main: Add ELM (Error Location Module) node Date: Tue, 2 Aug 2022 13:44:56 +0300 Message-Id: <20220802104456.11069-3-rogerq@kernel.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20220802104456.11069-1-rogerq@kernel.org> References: <20220802104456.11069-1-rogerq@kernel.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220802_034514_479895_798E9463 X-CRM114-Status: GOOD ( 10.55 ) 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 0059de0aeedf..c1caa7c7c6eb 100644 --- a/arch/arm64/boot/dts/ti/k3-am64-main.dtsi +++ b/arch/arm64/boot/dts/ti/k3-am64-main.dtsi @@ -1327,4 +1327,13 @@ gpio-controller; #gpio-cells = <2>; }; + + elm0: ecc@25010000 { + compatible = "ti,am64-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 30647fc3eec2..abc0fe61b6b8 100644 --- a/arch/arm64/boot/dts/ti/k3-am642-evm.dts +++ b/arch/arm64/boot/dts/ti/k3-am642-evm.dts @@ -680,3 +680,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 bd9b36b16787..bec1edfeef37 100644 --- a/arch/arm64/boot/dts/ti/k3-am642-sk.dts +++ b/arch/arm64/boot/dts/ti/k3-am642-sk.dts @@ -597,3 +597,7 @@ &gpmc0 { status = "disabled"; }; + +&elm0 { + status = "disabled"; +};