From: Animesh Agarwal <animeshagarwal28@gmail.com> Cc: animeshagarwal28@gmail.com, Damien Le Moal <dlemoal@kernel.org>, Rob Herring <robh+dt@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, Conor Dooley <conor+dt@kernel.org>, Shawn Guo <shawnguo@kernel.org>, Sascha Hauer <s.hauer@pengutronix.de>, Pengutronix Kernel Team <kernel@pengutronix.de>, Fabio Estevam <festevam@gmail.com>, NXP Linux Team <linux-imx@nxp.com>, linux-ide@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v6] dt-bindings: imx-pata: Convert to dtschema Date: Sun, 10 Mar 2024 23:22:13 +0530 [thread overview] Message-ID: <20240310175217.20981-1-animeshagarwal28@gmail.com> (raw) This patchset converts imx-pata bindings to DT schema. file name is changed to fsl,imx-pata to follow vendor,device scheme imx31-pata and imx51-pata are added in compatible to ensure this node compiles to imx31-pata.dtsi or imx51-pata.dtsi oneOf is also added to allow the usage of imx27 alone. Cleanups are done in patch 6 Signed-off-by: Animesh Agarwal <animeshagarwal28@gmail.com> --- Changes in v6: - removed items before const due to single element. Changes in v5: - added oneOf in compatible property to allow the usage of imx27 alone. Changes in v4: - added fsl,imx31-pata in compatible property as enum - imx31-pata was not listed in compatible in original txt binding - adding imx31-pata in enum ensures the node compiles to imx31.dtsi Changes in v3: - added fsl,imx51-pata in compatible property as enum - imx51-pata was not listed in compatible in original txt binding - adding imx51-pata in enum ensures the node compiles to imx31.dtsi - fsl,imx27-pata is added as a const to ensure it is present always Changes in v2: - fixed style issues - compatible property now matches the examples - fixed yamllint warnings/errors --- .../devicetree/bindings/ata/fsl,imx-pata.yaml | 43 +++++++++++++++++++ .../devicetree/bindings/ata/imx-pata.txt | 16 ------- 2 files changed, 43 insertions(+), 16 deletions(-) create mode 100644 Documentation/devicetree/bindings/ata/fsl,imx-pata.yaml delete mode 100644 Documentation/devicetree/bindings/ata/imx-pata.txt diff --git a/Documentation/devicetree/bindings/ata/fsl,imx-pata.yaml b/Documentation/devicetree/bindings/ata/fsl,imx-pata.yaml new file mode 100644 index 000000000000..c108a4b6636a --- /dev/null +++ b/Documentation/devicetree/bindings/ata/fsl,imx-pata.yaml @@ -0,0 +1,43 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/ata/fsl,imx-pata.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Freescale i.MX PATA Controller + +maintainers: + - Animesh Agarwal <animeshagarwal28@gmail.com> + +properties: + compatible: + oneOf: + - items: + - enum: + - fsl,imx31-pata + - fsl,imx51-pata + - const: fsl,imx27-pata + - const: fsl,imx27-pata + + reg: + maxItems: 1 + + interrupts: + items: + - description: PATA Controller interrupts + + clocks: + items: + - description: PATA Controller clocks + +additionalProperties: false + +examples: + - | + pata: pata@83fe0000 { + compatible = "fsl,imx51-pata","fsl,imx27-pata"; + reg = <0x83fe0000 0x4000>; + interrupts = <70>; + clocks = <&clks 161>; + }; + diff --git a/Documentation/devicetree/bindings/ata/imx-pata.txt b/Documentation/devicetree/bindings/ata/imx-pata.txt deleted file mode 100644 index f1172f00188a..000000000000 --- a/Documentation/devicetree/bindings/ata/imx-pata.txt +++ /dev/null @@ -1,16 +0,0 @@ -* Freescale i.MX PATA Controller - -Required properties: -- compatible: "fsl,imx27-pata" -- reg: Address range of the PATA Controller -- interrupts: The interrupt of the PATA Controller -- clocks: the clocks for the PATA Controller - -Example: - - pata: pata@83fe0000 { - compatible = "fsl,imx51-pata", "fsl,imx27-pata"; - reg = <0x83fe0000 0x4000>; - interrupts = <70>; - clocks = <&clks 161>; - }; -- 2.44.0
WARNING: multiple messages have this Message-ID (diff)
From: Animesh Agarwal <animeshagarwal28@gmail.com> Cc: animeshagarwal28@gmail.com, Damien Le Moal <dlemoal@kernel.org>, Rob Herring <robh+dt@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, Conor Dooley <conor+dt@kernel.org>, Shawn Guo <shawnguo@kernel.org>, Sascha Hauer <s.hauer@pengutronix.de>, Pengutronix Kernel Team <kernel@pengutronix.de>, Fabio Estevam <festevam@gmail.com>, NXP Linux Team <linux-imx@nxp.com>, linux-ide@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v6] dt-bindings: imx-pata: Convert to dtschema Date: Sun, 10 Mar 2024 23:22:13 +0530 [thread overview] Message-ID: <20240310175217.20981-1-animeshagarwal28@gmail.com> (raw) This patchset converts imx-pata bindings to DT schema. file name is changed to fsl,imx-pata to follow vendor,device scheme imx31-pata and imx51-pata are added in compatible to ensure this node compiles to imx31-pata.dtsi or imx51-pata.dtsi oneOf is also added to allow the usage of imx27 alone. Cleanups are done in patch 6 Signed-off-by: Animesh Agarwal <animeshagarwal28@gmail.com> --- Changes in v6: - removed items before const due to single element. Changes in v5: - added oneOf in compatible property to allow the usage of imx27 alone. Changes in v4: - added fsl,imx31-pata in compatible property as enum - imx31-pata was not listed in compatible in original txt binding - adding imx31-pata in enum ensures the node compiles to imx31.dtsi Changes in v3: - added fsl,imx51-pata in compatible property as enum - imx51-pata was not listed in compatible in original txt binding - adding imx51-pata in enum ensures the node compiles to imx31.dtsi - fsl,imx27-pata is added as a const to ensure it is present always Changes in v2: - fixed style issues - compatible property now matches the examples - fixed yamllint warnings/errors --- .../devicetree/bindings/ata/fsl,imx-pata.yaml | 43 +++++++++++++++++++ .../devicetree/bindings/ata/imx-pata.txt | 16 ------- 2 files changed, 43 insertions(+), 16 deletions(-) create mode 100644 Documentation/devicetree/bindings/ata/fsl,imx-pata.yaml delete mode 100644 Documentation/devicetree/bindings/ata/imx-pata.txt diff --git a/Documentation/devicetree/bindings/ata/fsl,imx-pata.yaml b/Documentation/devicetree/bindings/ata/fsl,imx-pata.yaml new file mode 100644 index 000000000000..c108a4b6636a --- /dev/null +++ b/Documentation/devicetree/bindings/ata/fsl,imx-pata.yaml @@ -0,0 +1,43 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/ata/fsl,imx-pata.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Freescale i.MX PATA Controller + +maintainers: + - Animesh Agarwal <animeshagarwal28@gmail.com> + +properties: + compatible: + oneOf: + - items: + - enum: + - fsl,imx31-pata + - fsl,imx51-pata + - const: fsl,imx27-pata + - const: fsl,imx27-pata + + reg: + maxItems: 1 + + interrupts: + items: + - description: PATA Controller interrupts + + clocks: + items: + - description: PATA Controller clocks + +additionalProperties: false + +examples: + - | + pata: pata@83fe0000 { + compatible = "fsl,imx51-pata","fsl,imx27-pata"; + reg = <0x83fe0000 0x4000>; + interrupts = <70>; + clocks = <&clks 161>; + }; + diff --git a/Documentation/devicetree/bindings/ata/imx-pata.txt b/Documentation/devicetree/bindings/ata/imx-pata.txt deleted file mode 100644 index f1172f00188a..000000000000 --- a/Documentation/devicetree/bindings/ata/imx-pata.txt +++ /dev/null @@ -1,16 +0,0 @@ -* Freescale i.MX PATA Controller - -Required properties: -- compatible: "fsl,imx27-pata" -- reg: Address range of the PATA Controller -- interrupts: The interrupt of the PATA Controller -- clocks: the clocks for the PATA Controller - -Example: - - pata: pata@83fe0000 { - compatible = "fsl,imx51-pata", "fsl,imx27-pata"; - reg = <0x83fe0000 0x4000>; - interrupts = <70>; - clocks = <&clks 161>; - }; -- 2.44.0 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
next reply other threads:[~2024-03-10 17:53 UTC|newest] Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top 2024-03-10 17:52 Animesh Agarwal [this message] 2024-03-10 17:52 ` [PATCH v6] dt-bindings: imx-pata: Convert to dtschema Animesh Agarwal 2024-03-10 20:30 ` Krzysztof Kozlowski 2024-03-10 20:30 ` Krzysztof Kozlowski 2024-03-10 20:33 ` Krzysztof Kozlowski 2024-03-10 20:33 ` Krzysztof Kozlowski 2024-03-11 3:33 ` Animesh Agarwal 2024-03-11 3:33 ` Animesh Agarwal 2024-03-11 4:09 ` Damien Le Moal 2024-03-11 4:09 ` Damien Le Moal 2024-03-11 11:07 ` Animesh Agarwal 2024-03-11 11:07 ` Animesh Agarwal 2024-03-11 3:26 ` Animesh Agarwal 2024-03-11 3:26 ` Animesh Agarwal
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20240310175217.20981-1-animeshagarwal28@gmail.com \ --to=animeshagarwal28@gmail.com \ --cc=conor+dt@kernel.org \ --cc=devicetree@vger.kernel.org \ --cc=dlemoal@kernel.org \ --cc=festevam@gmail.com \ --cc=kernel@pengutronix.de \ --cc=krzysztof.kozlowski+dt@linaro.org \ --cc=linux-arm-kernel@lists.infradead.org \ --cc=linux-ide@vger.kernel.org \ --cc=linux-imx@nxp.com \ --cc=linux-kernel@vger.kernel.org \ --cc=robh+dt@kernel.org \ --cc=s.hauer@pengutronix.de \ --cc=shawnguo@kernel.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.