From patchwork Sun Mar 10 05:19:09 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Animesh Agarwal X-Patchwork-Id: 13588015 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 5836FC54791 for ; Sun, 10 Mar 2024 05:20:04 +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:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version: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:In-Reply-To:References: List-Owner; bh=iI2QozlD5UanlkzI74QYxu1ZB36Oa1uYHY+WfmCxBU4=; b=dpgm+rkyPNXKE0 tcKIQpFq60Kwt/5Df8o13qAaOycX9wU2Wkx+azy5QxHTjMJiPAJ796/GFdUW9W6iF4c8z7IR2k8fP Ef5ZyH+vLpg0dn3WPPF8ZYWNoyYFdDtLF1gzXwrCKm5uPFgag01JJcCzU3Fl8U7xrmJSDEfb0CxU9 aduxZF4K5/wVjxhDx6uKQUkOpelYrBmvrzzOapcKp79a33if5hoRN8JPd2DWZ20kCkVheEVOQvsP3 bM6dq82/LMoSMjbdSISpBb3g4/JpC83kxoo/q/VuT7NwTjtyQJseDLz3nO43EsIxGhA77v4nHGKHB iuXyZinqnghrkj5+ZrIw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rjBb4-0000000Ezv1-0zXS; Sun, 10 Mar 2024 05:19:42 +0000 Received: from mail-oo1-xc2f.google.com ([2607:f8b0:4864:20::c2f]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rjBb0-0000000EzuF-3Ivq for linux-arm-kernel@lists.infradead.org; Sun, 10 Mar 2024 05:19:40 +0000 Received: by mail-oo1-xc2f.google.com with SMTP id 006d021491bc7-5a17a739935so2019444eaf.1 for ; Sat, 09 Mar 2024 21:19:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1710047977; x=1710652777; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=uVVGE8GaEDHHmhOEunvfSVf3mdMruJPA7Ps3WM6YTI0=; b=nRDPsb73DlzAL34eY5Ft2f3KDJY3s5/Ztqngh0KjIFfOwTsCwKekP8QIJuJaa2f9AF 1XFrVz8IZAtXNuWohuLaG8hleG9P/qELpwcRFuQnnBUBk21T9yo2CuXchIvCTWvXgMxc AVwZiA1blB54e7vhANT21s4vLc8WHzpRJVqgaPVC635SfnuSX6vTfIi9TOcpGOKP4NpV GZ/mxttJXqJxJULB6PGghXynEtAlUwdp8Z5IzPPyy/ey/VY85Z+IGcy4tSnbgwx+lEX+ UX+NP/wvduWwwGjIpTTG6SosNyqYNhQT5cWGWlQEcD+BYOMtGHVifSRsQyNn3FONmvFt OEYQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710047977; x=1710652777; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=uVVGE8GaEDHHmhOEunvfSVf3mdMruJPA7Ps3WM6YTI0=; b=W79jFszwiFclvzBHeBlSReZM0cfC/HWTVB5M8YKsQgREgtD+oa32T/GH2Ilzy9xFig 66jEeqbqq51Ue5ih25faOAZIS6D+1GDGYIax3o8hxCts5prYLG6zXEBF0da3tMIyQFii CQBpFWNMqCepKrcBTq5oi7yRCU6NQ1bvqYz2VnetzoCoret5ZNrpTXVVfP3Hczi5EHkq 7irh7n9o4VjM6Zhil2i38WgimBhncwcm+luw/dsk/PwnMeJYPrUOavveYnie6UETVtj2 5k8VaJNui4OXx6Y47e+AD+CuB8uzYf4pmx058jEC9sCLcFTBCcu+mKyo18NzwR6dnHto Bwaw== X-Forwarded-Encrypted: i=1; AJvYcCWH7YVMHjOuJvP2skd8t3kkv4H/jDcg5A5Pf83SEjIJBZG/CYclKOX+6ZCO+FcqHqXL+4mcfYQZAtonCaQzMQMSICxvpSwdqyl4iiPI9/cytartC9U= X-Gm-Message-State: AOJu0YxT6z621lOgb8K4YnhGW3hX4FXIUJx/mIvG4pmM0nNnPt/ADDSB YVbTeADLSWHWEZ6Rk7eGsIUgvwfRowFSmMbgQE6FkIAEdBFhpPJ/ X-Google-Smtp-Source: AGHT+IESntEqwQzHWhQocQpY9SyZGd4m4ChjOhsqpXKrxhu1lQP7c035x40l2KEcp0OBYa/Bq+H4ig== X-Received: by 2002:a05:6808:1509:b0:3c2:2639:9792 with SMTP id u9-20020a056808150900b003c226399792mr4828392oiw.48.1710047976958; Sat, 09 Mar 2024 21:19:36 -0800 (PST) Received: from fedora.. ([2409:40f4:3a:d8ab:6980:be5b:99c3:fb12]) by smtp.gmail.com with ESMTPSA id s9-20020a639e09000000b005e17cad83absm2034243pgd.74.2024.03.09.21.19.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 09 Mar 2024 21:19:36 -0800 (PST) From: Animesh Agarwal To: Cc: animeshagarwal28@gmail.com, Damien Le Moal , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , linux-ide@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v4] dt-bindings: imx-pata: Convert to dtschema Date: Sun, 10 Mar 2024 10:49:09 +0530 Message-ID: <20240310051914.153193-1-animeshagarwal28@gmail.com> X-Mailer: git-send-email 2.44.0 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240309_211938_936551_934404B5 X-CRM114-Status: GOOD ( 15.36 ) 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: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Convert the imx-pata bindings to DT schema. Signed-off-by: Animesh Agarwal --- Changes in v4: - added fsl,imx31-pata in compatible property - imx51-pata was not defined as compatible in txt bindings, adding imx51-pata ensures this node compiles to imx31.dtsi Changes in v3: - added fsl,imx51-pata in compatible property - imx51-pata was not defined as compatible in txt bindings, adding imx51-pata ensures this node compiles to imx51.dtsi Changes in v2: - fixed style issues - compatible property now matches the examples - fixed yamllint warnings/errors --- --- .../devicetree/bindings/ata/fsl,imx-pata.yaml | 41 +++++++++++++++++++ .../devicetree/bindings/ata/imx-pata.txt | 16 -------- 2 files changed, 41 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..aa0174844eb1 --- /dev/null +++ b/Documentation/devicetree/bindings/ata/fsl,imx-pata.yaml @@ -0,0 +1,41 @@ +# 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 + +properties: + compatible: + items: + - enum: + - fsl,imx31-pata + - fsl,imx51-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>; - };