From patchwork Tue Nov 23 10:39:07 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Roger Quadros X-Patchwork-Id: 12693438 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 DD290C433EF for ; Tue, 23 Nov 2021 10:41:30 +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=W03Hr46g68ZMt+484q3XLV6qiqW9QB6DRHCO3qNVy14=; b=MlG4KrBb4+duLr IbM9Y/NOas0Tu0QUl8xn/OSzeaBAFnZyQQyEkByjpiU+abLsHdhNLgvNqEHCZSrfD+fVO+nXprCJI X8sCzduoCWAW6jm1p3WKhF31fZUAbGan5mYhA5r3ksdfIZTyUv5qkl02RYpPK0vXjR6UIExv6b1XD JWbBZEMx5DPkyeUNxwbVY7y8CEWg5S8JyivGRZ6AV69VBijClIBCz4ZsyrXN/dTn73j03hrCuCqbQ 4X6bpiU2CV9G44MN1wM7o48axqqoIRJrHQFGmr3k7eFfTuk0gosxYYKlsPXRcqrpD1gQur3EwGZds W3P/ESuuWlkLjAxq2WHw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mpTDQ-001jsE-CW; Tue, 23 Nov 2021 10:39:56 +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 1mpTCm-001jiN-Dm for linux-arm-kernel@lists.infradead.org; Tue, 23 Nov 2021 10:39:17 +0000 Received: by mail.kernel.org (Postfix) with ESMTPSA id 9DCD660F26; Tue, 23 Nov 2021 10:39:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1637663956; bh=KaeAcTq7ryoOJczj2oukkolt/mq/dGtSGMOihhOSsgA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Umg1Em8Wfwc9efuAbLpMoG2beO8b33pHWMmIKC1hYM0ej/vTnxwQZUMllzFAypXWe VV6UndPamtDgfjtqFCGVlP0brN9sBn6N390KQi76YFJbzS2UHIDlwbZBnIIxKD7V9C FxdpeKuONESMpkKYq2Okbn8vnsnx0s09pqHuOaPwNCwgTaJFhX8SltIL9TzzLJcpDe MK9NIR/QtjxwP4h02nwLp4Tz0GWdCZwkbTdTBHiRmCIFMBUAv2I9lpkAiU0K8fJ8HP NjuPXw2HEfW1AHXlnfMK5m5JZdotIWV+3jCybGc3wfm23/OtfZXGF4q7giMKqSYhJw P9kru6xYrCzJw== 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 1/2] arm64: dts: ti: k3-am64-main: Add GPMC memory controller node Date: Tue, 23 Nov 2021 12:39:07 +0200 Message-Id: <20211123103908.14220-2-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_023916_527054_5467F497 X-CRM114-Status: UNSURE ( 7.47 ) 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 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 --- arch/arm64/boot/dts/ti/k3-am64-main.dtsi | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/arch/arm64/boot/dts/ti/k3-am64-main.dtsi b/arch/arm64/boot/dts/ti/k3-am64-main.dtsi index 5ad638b95ffc..7fdd1789568a 100644 --- a/arch/arm64/boot/dts/ti/k3-am64-main.dtsi +++ b/arch/arm64/boot/dts/ti/k3-am64-main.dtsi @@ -1253,4 +1253,23 @@ bus_freq = <1000000>; }; }; + + 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 0x2000>, + <0x00 0x050000000 0x00 0x7FFFFFF>; + 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>; + }; }; 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"; + }; };