From nobody Mon Jun 22 13:22:48 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 08E91C433FE for ; Wed, 23 Mar 2022 11:19:13 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243826AbiCWLUj (ORCPT ); Wed, 23 Mar 2022 07:20:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54106 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243815AbiCWLUe (ORCPT ); Wed, 23 Mar 2022 07:20:34 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8F2C5222AD; Wed, 23 Mar 2022 04:19:05 -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 3338FB81E73; Wed, 23 Mar 2022 11:19:04 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 58774C340F4; Wed, 23 Mar 2022 11:19:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1648034342; bh=+03pVkLbs0yuhRnH8RNFU31AS/8ObnDLFNLKlsjbZ2g=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=HKjUs0jB2XX/ceZA+FvvVLWF9rIo5TOsm+krntfedyTSeMryLPYfGufnka/DfODQw xPzBRNI7PSvJ7MTzcOz9XrMpC4q0v0zuMIX08L90zFBiJz+lnVXzr8zjObRC7naHxy PlbNDWEQcOKaqeiwWGSPDUOkFlhALUOBGbHzaQ1vQK5dbu9NNJ5Xa4qbQIMMq1R2G+ Koe0WS0b739fkeYnx7dyjC7C/NQWVzUijxs+9R7G4c9DLI/YYRezcluhSrsxNrJlm/ 9GtGWK7I04T3fP6Botce+vzHP5zUtwe8nu1YXZpKniw46xb5Bn6YXlIRM4F7k8SHNp vlAWeu7VNTWRg== From: Roger Quadros To: miquel.raynal@bootlin.com, robh+dt@kernel.org Cc: 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 1/3] dt-bindings: mtd: ti,elm: Convert to yaml Date: Wed, 23 Mar 2022 13:18:49 +0200 Message-Id: <20220323111851.4699-2-rogerq@kernel.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20220323111851.4699-1-rogerq@kernel.org> References: <20220323111851.4699-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. Signed-off-by: Roger Quadros --- 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 =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..24ed0fb84204 --- /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: + items: + - 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: elm@0 { + compatible =3D "ti,am3352-elm"; + reg =3D <0x0 0x2000>; + interrupts =3D <4>; + }; --=20 2.17.1 From nobody Mon Jun 22 13:22:48 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 2BA35C433FE for ; Wed, 23 Mar 2022 11:19:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243849AbiCWLUn (ORCPT ); Wed, 23 Mar 2022 07:20:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54376 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243825AbiCWLUi (ORCPT ); Wed, 23 Mar 2022 07:20:38 -0400 Received: from sin.source.kernel.org (sin.source.kernel.org [145.40.73.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D9D9D222AD; Wed, 23 Mar 2022 04:19:08 -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 4A200CE1F95; Wed, 23 Mar 2022 11:19:07 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4AD0DC340F2; Wed, 23 Mar 2022 11:19:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1648034345; bh=rG16zrXMlR5pZ2N5h0bd4xXIP29JlwrupEHA19K82bo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=jNt7fmQq7JORRVP6/1tw+bRPSDhZrK9iyI8llDrqrzJGJpdIDabtRK3P8wM6za5R1 xQSiVp2eqC8Gwv/vBTES76XDBwQ3nI5Ebx90SIllsBXStpj1QEf+x8em8FX2JaoKCH jMiqbj/5e9k34gpBWSZFnC6frDVebFeao6RzxROW0oJikp1zDjxkN/QOjPLzFop/ga bgbWBYj9mr8nTz8MBUFejke5OGK9aKNFhUpwTYR8MsShs7RRfyzNq9/wt/uLlQ732a k6dFQGju3d9+ZpoVnxfRPML2+SnhT8aekLD+bCgds2it6M++dEh3MT2c+mvVYb+cg8 AKwXqFpvGBnhg== From: Roger Quadros To: miquel.raynal@bootlin.com, robh+dt@kernel.org Cc: 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 2/3] dt-bindings: mtd: ti,elm: Add support for AM64 ELM Date: Wed, 23 Mar 2022 13:18:50 +0200 Message-Id: <20220323111851.4699-3-rogerq@kernel.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20220323111851.4699-1-rogerq@kernel.org> References: <20220323111851.4699-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 | 27 ++++++++++++++++++- 1 file changed, 26 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/mtd/ti,elm.yaml b/Documentat= ion/devicetree/bindings/mtd/ti,elm.yaml index 24ed0fb84204..bc01d35ce605 100644 --- a/Documentation/devicetree/bindings/mtd/ti,elm.yaml +++ b/Documentation/devicetree/bindings/mtd/ti,elm.yaml @@ -17,7 +17,9 @@ description: properties: compatible: items: - - const: ti,am3352-elm + - enum: + - ti,am3352-elm + - ti,am64-elm =20 reg: maxItems: 1 @@ -25,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 @@ -37,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 Mon Jun 22 13:22:48 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 DC8EAC433EF for ; Wed, 23 Mar 2022 11:20:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243830AbiCWLVw (ORCPT ); Wed, 23 Mar 2022 07:21:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54478 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243831AbiCWLUk (ORCPT ); Wed, 23 Mar 2022 07:20:40 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5AB8976666; Wed, 23 Mar 2022 04:19:11 -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 0CB0FB81E73; Wed, 23 Mar 2022 11:19:10 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3EF7BC340F3; Wed, 23 Mar 2022 11:19:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1648034348; bh=aXm+/EMiPGTBOXkMG0o+LiBNARi0puGc3dM/fhCENmI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=gSG32VvnpivgYGxEvZF3+xwuHXp9ad5Nl8jbH88EIa9I8Wnu/n4hDmKe29jPh4Rqp t/nmmDPunOPrmWU68egA9KNNakh81Z1lwt0ljkfUSy+4yDjeeqofX14GboFC2lCzkz 1qS6zcAM9woVc6Sz8QQyOYi6GGxH6locQksYKeInOkMHJyA2dRCkP4Y2ISxi539hdF 6Sw7e8JsLC3O2ud8nVq3X5qQwrQnU6aY85tcYJoXlnDqvuwuw1ivAV8xsHTpjaLqbK 5M2CNHjDVUotacsjF7bII5OtV77g4roUZclphjxopNwTyyI3qK9rJZsCdG6ZwPHkUd w7aOqeDn+BNNA== From: Roger Quadros To: miquel.raynal@bootlin.com, robh+dt@kernel.org Cc: 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 3/3] mtd: rawnand: omap_elm: Add compatible for AM64 ELM Date: Wed, 23 Mar 2022 13:18:51 +0200 Message-Id: <20220323111851.4699-4-rogerq@kernel.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20220323111851.4699-1-rogerq@kernel.org> References: <20220323111851.4699-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