From patchwork Sat Mar 26 08:07:24 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Roger Quadros X-Patchwork-Id: 554463 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 52F19C433F5 for ; Sat, 26 Mar 2022 08:07:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231989AbiCZIJQ (ORCPT ); Sat, 26 Mar 2022 04:09:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47086 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231986AbiCZIJP (ORCPT ); Sat, 26 Mar 2022 04:09:15 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CBE5A2FFE1; Sat, 26 Mar 2022 01:07:39 -0700 (PDT) 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 5EDE760CA0; Sat, 26 Mar 2022 08:07:39 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 01DA1C340F3; Sat, 26 Mar 2022 08:07:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1648282058; bh=xIkV9pKDz+E3da/Z59wjdlrcGFIkQDkupE2l8OFrpzE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=jO8kdete9/EGMRe+CgL1rmDweBIbf/D2QypwoBSSstqoufSyZmLKeN8ghzOGTarsj +bqq8Vcnj72khQui6TrmpwbGpELMyq7DFbvLcumLWXL+2bDfCAMN2AMe7n8/5nn3ve oJj1F+5gFgESu0WQllYE7wgGhOb3RXjj9jPdJlhHOecgUZ5Imyazr89vNp1dKMMuM/ 0y/K9Cge59hEo4aO7GL2Me1/H2OLYgeJVlklpfvH/Ek++wHZkH4Mg703QvX5HNUPFR HR657MEUZMZ72ngG7GiIMjbvIzQ84nmXQKreOkEySWCuCIFuCNhq/Zou63JPIMp/X4 0t1oijYten2fg== From: Roger Quadros To: miquel.raynal@bootlin.com, robh+dt@kernel.org Cc: krzk@kernel.org, richard@nod.at, vigneshr@ti.com, kishon@ti.com, nm@ti.com, linux-mtd@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Roger Quadros Subject: [PATCH v3 1/3] dt-bindings: mtd: ti,elm: Convert to yaml Date: Sat, 26 Mar 2022 10:07:24 +0200 Message-Id: <20220326080726.30372-2-rogerq@kernel.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20220326080726.30372-1-rogerq@kernel.org> References: <20220326080726.30372-1-rogerq@kernel.org> Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Convert elm.txt to ti,elm.yaml. hwmod framework use is deprecated for new platforms so mark it so. Signed-off-by: Roger Quadros Reviewed-by: Krzysztof Kozlowski Acked-by: Rob Herring --- Documentation/devicetree/bindings/mtd/elm.txt | 16 ------- .../devicetree/bindings/mtd/ti,elm.yaml | 48 +++++++++++++++++++ 2 files changed, 48 insertions(+), 16 deletions(-) delete mode 100644 Documentation/devicetree/bindings/mtd/elm.txt create mode 100644 Documentation/devicetree/bindings/mtd/ti,elm.yaml diff --git a/Documentation/devicetree/bindings/mtd/elm.txt b/Documentation/devicetree/bindings/mtd/elm.txt deleted file mode 100644 index 59ddc61c1076..000000000000 --- a/Documentation/devicetree/bindings/mtd/elm.txt +++ /dev/null @@ -1,16 +0,0 @@ -Error location module - -Required properties: -- compatible: Must be "ti,am3352-elm" -- reg: physical base address and size of the registers map. -- interrupts: Interrupt number for the elm. - -Optional properties: -- ti,hwmods: Name of the hwmod associated to the elm - -Example: -elm: elm@0 { - compatible = "ti,am3352-elm"; - reg = <0x48080000 0x2000>; - interrupts = <4>; -}; diff --git a/Documentation/devicetree/bindings/mtd/ti,elm.yaml b/Documentation/devicetree/bindings/mtd/ti,elm.yaml new file mode 100644 index 000000000000..1821395bbfb6 --- /dev/null +++ b/Documentation/devicetree/bindings/mtd/ti,elm.yaml @@ -0,0 +1,48 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/mtd/ti,elm.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Texas Instruments Error Location Module (ELM). + +maintainers: + - Roger Quadros + +description: + ELM module is used together with GPMC and NAND Flash to detect + errors and the location of the error based on BCH algorithms + so they can be corrected if possible. + +properties: + compatible: + enum: + - ti,am3352-elm + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + ti,hwmods: + description: + Name of the HWMOD associated with ELM. This is for legacy + platforms only. + $ref: /schemas/types.yaml#/definitions/string + deprecated: true + +required: + - compatible + - reg + - interrupts + +additionalProperties: false + +examples: + - | + elm: ecc@0 { + compatible = "ti,am3352-elm"; + reg = <0x0 0x2000>; + interrupts = <4>; + }; From patchwork Sat Mar 26 08:07:25 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Roger Quadros X-Patchwork-Id: 554715 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1E942C433F5 for ; Sat, 26 Mar 2022 08:07:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232002AbiCZIJW (ORCPT ); Sat, 26 Mar 2022 04:09:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47674 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232017AbiCZIJV (ORCPT ); Sat, 26 Mar 2022 04:09:21 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AD72632EFE; Sat, 26 Mar 2022 01:07:44 -0700 (PDT) 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 ams.source.kernel.org (Postfix) with ESMTPS id 6F1A9B81123; Sat, 26 Mar 2022 08:07:43 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5255DC34111; Sat, 26 Mar 2022 08:07:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1648282062; bh=gr9HchemhlHv/PQFsx5RRjuRl/DHTMwiXnwOfg3j+ec=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=It5KV9kPNYm7RhNQVTe7cIzRFDFdtthuOV8V4V004ekTLCBKbgBsDHEdVzqnRRCOK a97Cs5YHsROi9+/708bNV9zzIjZC0xPuIhvrYZV2u0WRE/7b3JficOgxM8WfQtVmcs ID1y62wPWqKzlI5ur+cm5EO0L+FUFh8r42iQt+RF0Grz7nNWXLKZCCz9utTnarMl9p IPtBp+sbHXZaTKB04R1ndbJaS2C62gUD/phVtFMXTOW5PTilrpigikyqZElou1hvSF 9a+q4HtVpX/e8S1IXxbiBR3lLx154tL2Os17QY3wM1K3o1j80aQNjmE+Aku8mrLGyj eYutuvq62H2wg== From: Roger Quadros To: miquel.raynal@bootlin.com, robh+dt@kernel.org Cc: krzk@kernel.org, richard@nod.at, vigneshr@ti.com, kishon@ti.com, nm@ti.com, linux-mtd@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Roger Quadros Subject: [PATCH v3 2/3] dt-bindings: mtd: ti,elm: Add support for AM64 ELM Date: Sat, 26 Mar 2022 10:07:25 +0200 Message-Id: <20220326080726.30372-3-rogerq@kernel.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20220326080726.30372-1-rogerq@kernel.org> References: <20220326080726.30372-1-rogerq@kernel.org> Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org TI's AM64 SoC has the Error Locator Module. Add compatible and related properties to support ELM on AM64 SoC. Signed-off-by: Roger Quadros --- .../devicetree/bindings/mtd/ti,elm.yaml | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/Documentation/devicetree/bindings/mtd/ti,elm.yaml b/Documentation/devicetree/bindings/mtd/ti,elm.yaml index 1821395bbfb6..87128c004596 100644 --- a/Documentation/devicetree/bindings/mtd/ti,elm.yaml +++ b/Documentation/devicetree/bindings/mtd/ti,elm.yaml @@ -18,6 +18,7 @@ properties: compatible: enum: - ti,am3352-elm + - ti,am64-elm reg: maxItems: 1 @@ -25,6 +26,17 @@ properties: interrupts: maxItems: 1 + clocks: + maxItems: 1 + description: Functional clock. + + clock-names: + items: + - const: fck + + power-domains: + maxItems: 1 + ti,hwmods: description: Name of the HWMOD associated with ELM. This is for legacy @@ -37,6 +49,18 @@ required: - reg - interrupts +allOf: + - if: + properties: + compatible: + contains: + const: ti,am64-elm + then: + required: + - clocks + - clock-names + - power-domains + additionalProperties: false examples: From patchwork Sat Mar 26 08:07:26 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Roger Quadros X-Patchwork-Id: 554462 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 64932C433F5 for ; Sat, 26 Mar 2022 08:07:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232046AbiCZIJ2 (ORCPT ); Sat, 26 Mar 2022 04:09:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48000 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232019AbiCZIJY (ORCPT ); Sat, 26 Mar 2022 04:09:24 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 193E232EF2; Sat, 26 Mar 2022 01:07:48 -0700 (PDT) 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 ams.source.kernel.org (Postfix) with ESMTPS id BAC4DB8006F; Sat, 26 Mar 2022 08:07:46 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A69E8C34116; Sat, 26 Mar 2022 08:07:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1648282065; bh=aXm+/EMiPGTBOXkMG0o+LiBNARi0puGc3dM/fhCENmI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=d36AEMRsvicEHBnWgOclYD5tgBL4i/mWby4t9DVwnBmyBsXxBJa19rkyueP2W33n5 bvChsNzAbGWodlxH87GZhd4t/R896m4jWAVbvi+1JrgqPGwDCG6lEIzQ1R/BnlRfjW Q5zKF+o0U8BMAw5l8tXsA8QcOPkbVhfCSVl26rjtJUcGRrh1dLktHQu7XziQqfO8TT xarn8ifj5LpOen3bcVejgs5zBNdoVDdfX7O7zMybknAkpiGs3cIrCXa2x1GgZEn54O +7smnn3ICeJfdkNcXPQuvfRf82y8UL5sd+0uFWSi2eR9e5yMDOOnNtPrUJ/GenJvvD K49rIvqXucf3A== From: Roger Quadros To: miquel.raynal@bootlin.com, robh+dt@kernel.org Cc: krzk@kernel.org, richard@nod.at, vigneshr@ti.com, kishon@ti.com, nm@ti.com, linux-mtd@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Roger Quadros Subject: [PATCH v3 3/3] mtd: rawnand: omap_elm: Add compatible for AM64 ELM Date: Sat, 26 Mar 2022 10:07:26 +0200 Message-Id: <20220326080726.30372-4-rogerq@kernel.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20220326080726.30372-1-rogerq@kernel.org> References: <20220326080726.30372-1-rogerq@kernel.org> Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org The AM64 SoC has the Error Locator Module. Add compatible id for it. Signed-off-by: Roger Quadros --- drivers/mtd/nand/raw/omap_elm.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/mtd/nand/raw/omap_elm.c b/drivers/mtd/nand/raw/omap_elm.c index db105d9b560c..aa7f49c3f372 100644 --- a/drivers/mtd/nand/raw/omap_elm.c +++ b/drivers/mtd/nand/raw/omap_elm.c @@ -550,6 +550,7 @@ static SIMPLE_DEV_PM_OPS(elm_pm_ops, elm_suspend, elm_resume); #ifdef CONFIG_OF static const struct of_device_id elm_of_match[] = { { .compatible = "ti,am3352-elm" }, + { .compatible = "ti,am64-elm" }, {}, }; MODULE_DEVICE_TABLE(of, elm_of_match);