From patchwork Fri Feb 4 11:15:32 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Roger Quadros X-Patchwork-Id: 12734972 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 6E9D1C433EF for ; Fri, 4 Feb 2022 11:17:13 +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=yo4Lk2wgiaN1ANtVQUbgIHHml+2bgHTP981LVsEPGmI=; b=2KA+mzujbx7Oet AeCXVDaM5LuLwPjD7l4V69genJo9avGkTbfO7qNpK9jagdS+r3RAHyEVvIpc44hNkaNPufKQ0VO26 b/D/9aEwqHz1CFPafxg9m6FK95jI68TF7zPsOTT4aiN93VxKcDkYNtd+LJSSFGd8G/72WxL2mWz5t rKwo5aXNPMpQ50yU2GzHvW71KDKWupZyaPta//+6Xi6RaTIRi9xfPNR1GBmdTAEjjwSvkx9Kv75TQ wkr5LXB5ipQDHButqnVCzTcCfOsH/UCEP6oJTApCqeTUa25fjamHH9LtrFgPjTzVxpHCw7zmIYWrf G6F7MwCRMJK0T1nJLQ3Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nFwZI-0045Nu-Pg; Fri, 04 Feb 2022 11:15:56 +0000 Received: from dfw.source.kernel.org ([139.178.84.217]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nFwZ5-0045JI-RC for linux-arm-kernel@lists.infradead.org; Fri, 04 Feb 2022 11:15:46 +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 2769461A91; Fri, 4 Feb 2022 11:15:43 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id BFA90C340EF; Fri, 4 Feb 2022 11:15:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1643973342; bh=pyBLRuJJ06eYguE/khXqSQCbVLT0wJ76+vNTWivwPNQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=D1A2sh045XTKOyzJLmpNqJSVVIfrUO/TuoAXGndhHj/aHioGz9/O3X8l9OVXalHAQ g3HXsGrCXkrrqrAShWNQ+v50uZpW7nEDCSol1E7DejR+x3IoDjBmiphdBa9xJ9TMJp RLkDIJ8Fgwzfaxd315Dtd3tSXIUZFWh/i/TQgE+FLzrNUD0271DU+4o0ZQIDAY3bCP 4cPOr3mbC+PnMzAZs/vaEioLTPI765FubHFq8Td2qFcfhRv1kjbBhdZB0ZL81SnuAI 4P9lplHE2aRkpbx3DTzoxwiCFHyQUEBSZ/ZxHak0/gjBaibRJHVgBVseaIpBJwryKI 8+wk1swfyMJ5w== 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 1/2] arm64: dts: ti: k3-am64-main: Add GPMC memory controller node Date: Fri, 4 Feb 2022 13:15:32 +0200 Message-Id: <20220204111533.10787-2-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_031543_941765_0C7D8A52 X-CRM114-Status: GOOD ( 10.06 ) 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 Reviewed-by: Vignesh Raghavendra --- 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 012011dc619a..94ea5c304d73 100644 --- a/arch/arm64/boot/dts/ti/k3-am64-main.dtsi +++ b/arch/arm64/boot/dts/ti/k3-am64-main.dtsi @@ -1289,4 +1289,23 @@ interrupt-names = "int0", "int1"; bosch,mram-cfg = <0x0 128 64 64 64 64 32 32>; }; + + 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 e94ae178b1ae..6bd0c0876865 100644 --- a/arch/arm64/boot/dts/ti/k3-am642-evm.dts +++ b/arch/arm64/boot/dts/ti/k3-am642-evm.dts @@ -678,3 +678,7 @@ pinctrl-0 = <&main_mcan1_pins_default>; phys = <&transceiver2>; }; + +&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 a9785bec12df..40706aa61514 100644 --- a/arch/arm64/boot/dts/ti/k3-am642-sk.dts +++ b/arch/arm64/boot/dts/ti/k3-am642-sk.dts @@ -533,3 +533,7 @@ &main_mcan1 { status = "disabled"; }; + +&gpmc0 { + status = "disabled"; +}; 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"; +};