From patchwork Sun Mar 10 17:52:13 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Animesh Agarwal X-Patchwork-Id: 13588155 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 3BB58C54791 for ; Sun, 10 Mar 2024 17:53:29 +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=X3ak5Cs+lTwdj/mf1x2MtkkqeCjYAgKSbQ7E2rjZOgA=; b=EBz69xxIHowM2e ksEWYc/jvjQRzlbBXn4Jo4x10NHd9kTkWRAmVat0kiZHH9f6/U+WuZF78WDchD7QWywUupgnVOGVN gLkuikbDlbmGAwOZcveECeufm9onJNcC59XUEYp5fm4cMwZcwcV4f1KQJPsoYytRQWSN5Cdvdl6XP gW/+bZz0YLBh5hhbnSGCKKcYZl88TdjVTrWlMJhHf2V9cSWtKRuvcnWCt942KXO7SvjFtTupG11yT oxEGEpeCv+R0yWBPWy0iM8LUZag7n3RJJ/ZsnlPebQnbwa7wE19nYrliHsv4vEvYVTuYIESW6A5kQ QQ6nSvSKRmWDQw+QFx1Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rjNMH-0000000GI2i-1aAP; Sun, 10 Mar 2024 17:53:13 +0000 Received: from mail-pl1-x62f.google.com ([2607:f8b0:4864:20::62f]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rjNME-0000000GI1Z-2cx5 for linux-arm-kernel@lists.infradead.org; Sun, 10 Mar 2024 17:53:12 +0000 Received: by mail-pl1-x62f.google.com with SMTP id d9443c01a7336-1dd10a37d68so30672565ad.2 for ; Sun, 10 Mar 2024 10:53:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1710093189; x=1710697989; 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=tS9N1ruJVI0BmOAihQAk3F4D+Z/MUY8XwkjThKFRoCU=; b=i1EVnBa4x75Q/iXSHM17dfJHp01rRbMh+NONQ9JX7FylF3OXFyA2hrLI3uvGvHsu/I Tto9HFCOK9CSNcHoQ18cQ6sWpXA62HQ5jasmqnsA0QCJrV1EPow797N+lTG1kZEw/DPw Sm3vxVdtUfXAYtkAW3HRMp359g8l/hfzDQ8VaTcHqhKh65uGZS0yqQjcmZ5hy+7qbgjy RA3jwwSokQ7+JILjtz/lHJ73gHuvG1mX96RH0kLhM1V1mHfQrRJudmeh+PaHst3zeYwe bR+wzNUapIY3R4yHX/WtcOgaCkOHmJMLL5KDWrPqKOXqM2rRfm6KcoJFX2HNSzZ4n2N8 DPcg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710093189; x=1710697989; 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=tS9N1ruJVI0BmOAihQAk3F4D+Z/MUY8XwkjThKFRoCU=; b=xRJkb342IvFgBGha671A1F/aRqTuewn9hv8aSpzsZt7bSG/+ahuGvO4BhYHaDQ+wdP /MAHkAsDNlBPaWRTztknqrCB9tfHVApmlm96rxLZKm8odf2nwPJDe1Rl79BvanRz4+qr ke7DnFjaWIxNYZMqHSrG8LBquj54IJ2Nsl/5bODoVIZj9O2MrP4Vq6Qy8SkmMovdqDGp 2ceWzVR44kPcPieSxhD9gN3S+qxhHjy7OogrQQkZeowjk8kPbsUao0fv/r7H+t5zMz+Y b+L5d4uPjrRLCLzCuOh1nPvFWZQLkcGamKpkYaFor6t+HeJeqsyYd1k66wgH+PC1g5h5 wAWA== X-Forwarded-Encrypted: i=1; AJvYcCUJ5qFy7wycun1q8l3sbviAxccCjrNTbzXwJ4xYdrAV/gT8sBg9I98GqXScdxIA/f08nPUzc8YqdxNA+M41/4tjn87tBTdes8+ooIjMBEElDDsEQuk= X-Gm-Message-State: AOJu0YwNX949i6d6+F7RJBmQNOASrEpoL1lDFdd37ON2Mn1iSFvEft+d vj6TzcNKCiJsVoPuZywJvZ5YxOkxpgKoyBGuJJakPYzkVhLmQsGG X-Google-Smtp-Source: AGHT+IHHarjmbSJAfp4+wX7aP9GbwqCXzb3OwiyyKq/kCEzWGSJ0ZTZGva24e7VBNgg2V0JnOm1v0w== X-Received: by 2002:a17:903:22c5:b0:1d8:f072:ec9f with SMTP id y5-20020a17090322c500b001d8f072ec9fmr5859755plg.28.1710093189412; Sun, 10 Mar 2024 10:53:09 -0700 (PDT) Received: from fedora.. ([2409:40f4:12:62d1:ef0e:a60d:25ad:394c]) by smtp.gmail.com with ESMTPSA id g22-20020a1709029f9600b001dd61965137sm2902050plq.304.2024.03.10.10.53.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 10 Mar 2024 10:53:09 -0700 (PDT) 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 v6] dt-bindings: imx-pata: Convert to dtschema Date: Sun, 10 Mar 2024 23:22:13 +0530 Message-ID: <20240310175217.20981-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-20240310_105310_693712_C3FC5917 X-CRM114-Status: GOOD ( 16.78 ) 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 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 --- 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 + +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>; - };