From mboxrd@z Thu Jan 1 00:00:00 1970 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 1D8B1C54E67 for ; Wed, 20 Mar 2024 09:08:27 +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=OiR3kZ3ewz1XPFvk21s9KJltnrUYNFeKAAclRWN4Nds=; b=qsJDgrsHna6Uec vJJwHlYpQalzOlGOCSyoCQ/vTnywy4uYzxB/kl5JEzsmRSpfskZBkTAMH10ZxsAuUYkOEobaEJRxU /pCfauqpVMpD81VQjCpRdxlMayj+/C3HG/cXjdVL4R2/gVp607hsiLPVbzItbyjklW85CE17StwMP pYYWrjuro51el0+UgaksOALq8R+UVTFsAT56bm2EdOS8KpxNqJT1Z+C8XrX23O3OLppWa+FeQEbTZ saAAQCuqsIxMotNn0xCTdHAPlQRbMwBQj77O4ZpvV6gPnLhrHZ5F8ZkS5EkhFhgpcoPHYDf3sLF+1 ZMbZY/MyCPlrogNqpfUA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rmrvY-0000000GORi-3aye; Wed, 20 Mar 2024 09:08:11 +0000 Received: from mail-oa1-x34.google.com ([2001:4860:4864:20::34]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rmrvT-0000000GOQc-0pra for linux-arm-kernel@lists.infradead.org; Wed, 20 Mar 2024 09:08:01 +0000 Received: by mail-oa1-x34.google.com with SMTP id 586e51a60fabf-222c0572eedso1464081fac.3 for ; Wed, 20 Mar 2024 02:07:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1710925677; x=1711530477; 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=6LYzgeSraIQWph2DLzGUmFCxbm6oNIHNvAA92fmfgfw=; b=B2zNehLWtZG5FGZcN/TnpO07nBzfAmb9EOxA7Bhq0zr8VTWk/Jc8DLGuQXdw6nibRN izIEaPPLU37fc97h1FSEWDcqrmHIEfh4B24vio5lE7/fghPpGMMAVSQC3vl+RhDI22vQ JM5q70hQf6zNNuHDTe9SsDflbRsfGI0W0vIiW8s+sPOKaww5SBjsTxoG/GrUO3gNsNgh 7dOWjXIaoVNH6j9PmfHrdCuk54FsAp2kNP58dUC0JqmwqXcd5MN9Kmi9tyoaZAZablKW ydB5E9w2eqWJREh22bfckByTH8dXDEpskek3tHin3Ue5auuLtmAShLm9cWNMT7lgDWVj rq9Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710925677; x=1711530477; 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=6LYzgeSraIQWph2DLzGUmFCxbm6oNIHNvAA92fmfgfw=; b=IG6IzCwo1u9pedTsdVwezVdO13Bad+fZO4OeR1hqdZ73IKpNFqSwJ48hTO1ABh/JNw ziK8X+cR8Ki9va5PQEQVzqiEuopjFyMLM7gmKHsIh/oVmNfQkI+RLW6y0etdNLxqYnA1 DAi3kE+UKx7inCwGSJaPCV0DdSrBOvTCChhTaWyg737B1bKRre1RPP/+G6Cm/idBlhbO XYNxR4lSVmG5mITM/2X8OJvn+4EkLM6W+ldcG+9V8zWw5h6u91OlYZS8AveFXLD4ZtfM Yt2Iz9rDBujq3FwAp1zZ10OfkKoIpFkswSp4wiVcRAklCSwOZ7Lns4e/QMJZhVxaxEFd r8xg== X-Forwarded-Encrypted: i=1; AJvYcCVWBOWpt5HPbZbBZ/0JHx7kmZjqcRqhaA37/IS6fszBDusROw0RX3GIpFK+xYtodHJOe05a4qhIjtVCeJnvVT9GpCGUE0gH/Qt1CErZYl7ssA/HGW0= X-Gm-Message-State: AOJu0YyHYrB2WHtmC5YZkCn50gkK66nlKJQQ7lYCHSaHsv0dMkn2C1rW roF9zt82kbawv7Jf9bkG6cyi99hb0B2fcNnMyimVL0lU7qStV9Rgjz3TLCcmGZFB0P5G X-Google-Smtp-Source: AGHT+IE2HShA9tzq7LK/MZr8vowvV1oJMzrwKIWizneyhfLiYWfkofVYT92Zz2xWszZIjg8lo9tqOw== X-Received: by 2002:a05:6871:a58d:b0:222:69b4:fccd with SMTP id wd13-20020a056871a58d00b0022269b4fccdmr5292748oab.24.1710925677036; Wed, 20 Mar 2024 02:07:57 -0700 (PDT) Received: from localhost.localdomain ([2409:40f4:a4:a590:2a15:ea77:7177:18e3]) by smtp.gmail.com with ESMTPSA id k1-20020aa79981000000b006e6f96ecc30sm9021369pfh.2.2024.03.20.02.07.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Mar 2024 02:07:56 -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 v8] dt-bindings: ata: imx-pata: Convert to dtschema Date: Wed, 20 Mar 2024 14:37:30 +0530 Message-ID: <20240320090733.96828-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-20240320_020759_531958_2913FC37 X-CRM114-Status: GOOD ( 16.22 ) 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: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit 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. Add missing fsl,imx31-pata and fsl,imx51-pata compatibles during conversion, because they are already being used in existing DTS. Signed-off-by: Animesh Agarwal --- Changes in v8: - added missing space after comma in examples' compatible property Changes in v7: - removed blank space at the end of file. 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. Changes in v3: - added fsl,imx51-pata in compatible property as enum - 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 | 42 +++++++++++++++++++ .../devicetree/bindings/ata/imx-pata.txt | 16 ------- 2 files changed, 42 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..324e2413bba8 --- /dev/null +++ b/Documentation/devicetree/bindings/ata/fsl,imx-pata.yaml @@ -0,0 +1,42 @@ +# 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>; - }; -- 2.44.0 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel