From patchwork Fri Feb 4 11:15:33 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Roger Quadros X-Patchwork-Id: 12734974 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 600CDC433F5 for ; Fri, 4 Feb 2022 11:17:19 +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=HrPCXIWt5TCcKeJsqJXu63FcN/cxdeUpM2E1MmMD3eY=; b=XoAsjoHbjW3Jsb A0XwfVDTNyvRGvZLrI17IOjxsxWoASoPhdjhw/1AeePS6FZRcglqjvatscidVPTMCP5AVyKowoFPH qmRpEcAqb0dIJibrrvsq+e5m1WtQQB9twypGLI4w/MjmPyC0zfOXOu5nkOaWV01jjWW2TCM62+hzf VbdqGx6AdY83wKYbcpDzzQ5lf/ImROAIF6uuCL7GlZPAfEvKNLMJcgkdi5qHTmqRowS5DFfRRQ8lZ Um0jX5qcfJ5Gd7aMf47iyzj+BK1JNv55NFAzzCxt0JRjFCAFTu3F0CKCMMPpqkJlwq3+3zkg72ji2 dlI04scbKAhRuvwCIkKQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nFwZS-0045Pe-3x; Fri, 04 Feb 2022 11:16:06 +0000 Received: from dfw.source.kernel.org ([2604:1380:4641:c500::1]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nFwZ7-0045KR-PL for linux-arm-kernel@lists.infradead.org; Fri, 04 Feb 2022 11:15:47 +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 dfw.source.kernel.org (Postfix) with ESMTPS id 17D2C61AAF; Fri, 4 Feb 2022 11:15:45 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 191C8C340F0; Fri, 4 Feb 2022 11:15:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1643973344; bh=+lkpa6kOGh3Lq5B7G4GtRG7N4JHFU8GzcTpPpfNyE/g=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=SuJ9GlEATshafp5wt7OKx1ikd+8ibzIe3I75hOvi36A9jTEeMNv+J4+OcWGx57Kqn xovlyZQc4ODVm0idjaEuZzzC9x27eLxqDlhTYIGlZ8XoDqyz6SQgHyIP0ctKwmwsXr cF/6QZkrsFX7UJ5WPpA48AYN46k9jrOBzYU7BiasGeWi+jI7hUZk2s+O1ppIi7HyNg U3mkMworWwqtcMLybrU7MSHDjXcCG+qElrnbNU8pYwIfyW72QPRMlevwYJw9aBrBSN bAswxqv+ndiRf0mu5hX018K9McZ95UbmmIJ7+logpaXGqhPsQbpzltRb5B2FGHeVRX yTwVomAi/3MCg== 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 v3 2/2] arm64: dts: ti: k3-am64-main: Add ELM (Error Location Module) node Date: Fri, 4 Feb 2022 13:15:33 +0200 Message-Id: <20220204111533.10787-3-rogerq@kernel.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20220204111533.10787-1-rogerq@kernel.org> References: <20220204111533.10787-1-rogerq@kernel.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220204_031545_886601_3A6FE19B X-CRM114-Status: GOOD ( 10.38 ) 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 94ea5c304d73..b17620e999a5 100644 --- a/arch/arm64/boot/dts/ti/k3-am64-main.dtsi +++ b/arch/arm64/boot/dts/ti/k3-am64-main.dtsi @@ -1308,4 +1308,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 6bd0c0876865..0252218282c2 100644 --- a/arch/arm64/boot/dts/ti/k3-am642-evm.dts +++ b/arch/arm64/boot/dts/ti/k3-am642-evm.dts @@ -682,3 +682,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 40706aa61514..1d91b7ec8912 100644 --- a/arch/arm64/boot/dts/ti/k3-am642-sk.dts +++ b/arch/arm64/boot/dts/ti/k3-am642-sk.dts @@ -537,3 +537,7 @@ &gpmc0 { status = "disabled"; }; + +&elm0 { + status = "disabled"; +};