From nobody Sat Jun 20 00:52:27 2026 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 0AA90C433EF for ; Fri, 25 Mar 2022 12:37:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1359135AbiCYMi5 (ORCPT ); Fri, 25 Mar 2022 08:38:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51500 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232552AbiCYMiz (ORCPT ); Fri, 25 Mar 2022 08:38:55 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 560F484EFF; Fri, 25 Mar 2022 05:37:17 -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 707AC619F7; Fri, 25 Mar 2022 12:37:17 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 39018C340F3; Fri, 25 Mar 2022 12:37:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1648211836; bh=OHmFKewARZKJ1dIeeWMfSBVkRhMpf0/mziLxeR6DTV8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=uIWGdGHLMI3I1tljkx2O9161q8AhbtsaBvGbeNZNiCa4k98iVQ/ElOrBogPbBjCCd QHmiPcNslHTB+2MqbWfrxlBudx66YP9Whz/cKHXXitVUYO6l3AjRB7UfcztBENHz0o Jw6h9HXIwOZQQ5lUTQfe0Y5mf3pCr19zw0sbwtiHr9yW1X7cJ7D+Fw44TSjd8OphyI 9l98MmLo098XNtbeKBfMBNWfO2psBqOIGs/lBbDpDupwdJAOp52EhLitLwGOg8xJoJ UJgpzNJUMj1ICMU/wiLlv5L8ZqHpnQPvsa60Uu4Dy9/Pmy4kuKz0H3GsrsG59j1HUz Kiv+iy5zZqN3g== From: Roger Quadros To: miquel.raynal@bootlin.com, robh+dt@kernel.org Cc: richard@nod.at, krzk@kernel.org, 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 v2 1/3] dt-bindings: mtd: ti,elm: Convert to yaml Date: Fri, 25 Mar 2022 14:37:05 +0200 Message-Id: <20220325123707.22020-2-rogerq@kernel.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20220325123707.22020-1-rogerq@kernel.org> References: <20220325123707.22020-1-rogerq@kernel.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Convert elm.txt to ti,elm.yaml. hwmod framework use is deprecated for new platforms so mark it so. Signed-off-by: Roger Quadros Acked-by: Rob Herring Reviewed-by: Krzysztof Kozlowski --- Documentation/devicetree/bindings/mtd/elm.txt | 16 ------- .../devicetree/bindings/mtd/ti,elm.yaml | 47 +++++++++++++++++++ 2 files changed, 47 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 =3D "ti,am3352-elm"; - reg =3D <0x48080000 0x2000>; - interrupts =3D <4>; -}; diff --git a/Documentation/devicetree/bindings/mtd/ti,elm.yaml b/Documentat= ion/devicetree/bindings/mtd/ti,elm.yaml new file mode 100644 index 000000000000..e36452b742c0 --- /dev/null +++ b/Documentation/devicetree/bindings/mtd/ti,elm.yaml @@ -0,0 +1,47 @@ +# 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: + const: 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 =3D "ti,am3352-elm"; + reg =3D <0x0 0x2000>; + interrupts =3D <4>; + }; --=20 2.17.1 From nobody Sat Jun 20 00:52:27 2026 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 15BC2C4332F for ; Fri, 25 Mar 2022 12:37:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1356582AbiCYMjD (ORCPT ); Fri, 25 Mar 2022 08:39:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51616 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1359139AbiCYMi7 (ORCPT ); Fri, 25 Mar 2022 08:38:59 -0400 Received: from sin.source.kernel.org (sin.source.kernel.org [IPv6:2604:1380:40e1:4800::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6C3B921804; Fri, 25 Mar 2022 05:37:23 -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 sin.source.kernel.org (Postfix) with ESMTPS id A8961CE2900; Fri, 25 Mar 2022 12:37:21 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 593C8C340F5; Fri, 25 Mar 2022 12:37:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1648211840; bh=h5t3lHDxilF2die7J3nsNMpIGBfRLhFJI3qeoIHgotE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=evxYEBywQrDAhv8dH2eKjnt+4aJ9yPhhyn0uoGeuhEFc6AP5nIb39GG+PdeyOAlBt AbH1Un3lfQbh6FAhzMWYqXteTLEADvkidMG59m8VFI21tEV0LVv2qvPiohFbSAAgAr LFzVw6nO6xZBxsdiA14ZgP2xDHjWm9hyj4SnCE+6pdgYrhhLrFyBNrwMChmPN2nBo3 osQ1i92+61CmDkybjnWJmQyH+rMz21cE1LL5D36JvIkvz1GJ/ocIhrUVQ5JX1W8AEJ v+3UA7wOOidY4kHy73hPBD3rplAT8RmzXB8R72YM7C/P7Orv90MW4ZRQXNcls4bBkv MC9nBLoxg/wWA== From: Roger Quadros To: miquel.raynal@bootlin.com, robh+dt@kernel.org Cc: richard@nod.at, krzk@kernel.org, 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 v2 2/3] dt-bindings: mtd: ti,elm: Add support for AM64 ELM Date: Fri, 25 Mar 2022 14:37:06 +0200 Message-Id: <20220325123707.22020-3-rogerq@kernel.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20220325123707.22020-1-rogerq@kernel.org> References: <20220325123707.22020-1-rogerq@kernel.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" 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 | 28 ++++++++++++++++++- 1 file changed, 27 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/mtd/ti,elm.yaml b/Documentat= ion/devicetree/bindings/mtd/ti,elm.yaml index e36452b742c0..967c87f32c71 100644 --- a/Documentation/devicetree/bindings/mtd/ti,elm.yaml +++ b/Documentation/devicetree/bindings/mtd/ti,elm.yaml @@ -16,7 +16,10 @@ description: =20 properties: compatible: - const: ti,am3352-elm + items: + - enum: + - ti,am3352-elm + - ti,am64-elm =20 reg: maxItems: 1 @@ -24,6 +27,17 @@ properties: interrupts: maxItems: 1 =20 + 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 @@ -36,6 +50,18 @@ required: - reg - interrupts =20 +allOf: + - if: + properties: + compatible: + contains: + const: ti,am64-elm + then: + required: + - clocks + - clock-names + - power-domains + additionalProperties: false =20 examples: --=20 2.17.1 From nobody Sat Jun 20 00:52:27 2026 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 0035BC433FE for ; Fri, 25 Mar 2022 12:37:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1354878AbiCYMjH (ORCPT ); Fri, 25 Mar 2022 08:39:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51620 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1359136AbiCYMi7 (ORCPT ); Fri, 25 Mar 2022 08:38:59 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 01C69D0A89; Fri, 25 Mar 2022 05:37:26 -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 99614B8282E; Fri, 25 Mar 2022 12:37:24 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7AE87C340E9; Fri, 25 Mar 2022 12:37:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1648211843; bh=aXm+/EMiPGTBOXkMG0o+LiBNARi0puGc3dM/fhCENmI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=digXl3nsnjDGSqWj6NnS6B8sWVQiVorkAFfMwLaFKXPKcBs19SILZwcL0i0h7NyXq dCunTb1FW5T2O+CUmcu8k9FQV7MB3XRrBR70oZL7jh85KVGSzgoEpKpDeQdPZ10R25 HRoMUyyVY1kHTOjllhdaQNwOuBbSxnZLzsAz7QcMN/X5zC8vXqx76Y3RZ39eWKgLUh Y6swYLzPaIAPRCor7Gt67B9WgOpo3X9ypIvpw3mqSZdCcDa4WIGR73OSWzBgQThFx4 cJP8gVwYdQw6Myso0T1AJn7VFak2kTUqXM7kllG77CxMgMpRtQP5g78Hus+OdJQTY2 pjtEwI4jbDjGA== From: Roger Quadros To: miquel.raynal@bootlin.com, robh+dt@kernel.org Cc: richard@nod.at, krzk@kernel.org, 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 v2 3/3] mtd: rawnand: omap_elm: Add compatible for AM64 ELM Date: Fri, 25 Mar 2022 14:37:07 +0200 Message-Id: <20220325123707.22020-4-rogerq@kernel.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20220325123707.22020-1-rogerq@kernel.org> References: <20220325123707.22020-1-rogerq@kernel.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" 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_el= m.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_r= esume); #ifdef CONFIG_OF static const struct of_device_id elm_of_match[] =3D { { .compatible =3D "ti,am3352-elm" }, + { .compatible =3D "ti,am64-elm" }, {}, }; MODULE_DEVICE_TABLE(of, elm_of_match); --=20 2.17.1