Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp4177341pxb; Sat, 5 Feb 2022 05:57:55 -0800 (PST) X-Google-Smtp-Source: ABdhPJymdsUo7A/JCFBURelQhqnVdKxdqq3t5CoP9Y4Zo5xWETL0PzCzXvq3X8j/LSpCclyssIcz X-Received: by 2002:a17:90b:3003:: with SMTP id hg3mr4416953pjb.53.1644069475277; Sat, 05 Feb 2022 05:57:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644069475; cv=none; d=google.com; s=arc-20160816; b=czU/agB3v1IjojsXiD196j8JhapOO5TFEv/1yjuaGEEYcwkhGc2t8DfRBGx5vgWp7e x8wlHef7tlELCj88OuWT2jwTqbeUkbV4dlCvqBc97EQ7GTij3ArthJ8IYP/7g+MGr66j oaIMBiwqsYQSlTkQrJ6sM1gI3kXQtiWSiVbpDAW2YQIMtAxYGlT65XtJoEf9pk9eTpdm /64t4e4oK46boM+K8vK7f0cRsrnRgczKqKKafzQS+D2NOZ3gOaapWmj0EMMZ980kqbv6 Y7JnWqnjxJb4brzG1UfkUCeezuGCEjpRfWTEvfUCyrIFJAg4yLxEcsnwrbb4+8A9/f3a 0vpw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature:dkim-signature; bh=KO87UqUSigoil934L0EoAdrUFJ7VlH5xtIF2E/OB148=; b=GeNshz9BrDazP63bzEX/tSujmRDbYzYCQLCNFqAhLE2qtlVs8ZaDYMHkHVMBSy9Ukt /+vEfM1AlPhpRdKT2W6v6a1trq7Ktj0NpuQpOkL7fCwtVF9zz9+59oSSuAz1QQFTgxEx zFa7iC4xAkVcSIKEL52v/qMF986MUHuqRKeZnuspKAMjFiFS8f4+bS4tKTrqvelwm5Zp kz6CghVVMF9HXUQkM6ynE8Tq0fGdNa88kxM0yJT8SiJcjt4mjfbqk5NOADGl525A3dgT 3ltxsVy+iMJj6gvjv9RRHe8syChxiK8ye5RB3AnZFwYW88hDlg/HeQm45eYhOBc7qgJE j6JQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sholland.org header.s=fm1 header.b=MnwJmJjy; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=TbZEFaaD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id bf3si4342202plb.222.2022.02.05.05.57.41; Sat, 05 Feb 2022 05:57:55 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@sholland.org header.s=fm1 header.b=MnwJmJjy; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=TbZEFaaD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1348946AbiBCCRp (ORCPT + 99 others); Wed, 2 Feb 2022 21:17:45 -0500 Received: from wnew4-smtp.messagingengine.com ([64.147.123.18]:37141 "EHLO wnew4-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1348936AbiBCCRo (ORCPT ); Wed, 2 Feb 2022 21:17:44 -0500 Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailnew.west.internal (Postfix) with ESMTP id 126642B0019D; Wed, 2 Feb 2022 21:17:42 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute2.internal (MEProxy); Wed, 02 Feb 2022 21:17:44 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sholland.org; h= cc:cc:content-transfer-encoding:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:sender :subject:subject:to:to; s=fm1; bh=KO87UqUSigoil934L0EoAdrUFJ7VlH 5xtIF2E/OB148=; b=MnwJmJjyn47P3vu2/r/1oSKlXJXnIUQELqN/8jnPSqBurw DBQm9pS3bECeAGXEbDwN61RA19s3DiF3ropO7MdR1ue/EIfV2zUOG4T/YzsESO+D rXP7+xGIAgDjNjX1XwkYWm1nfBRnpXFX8fCP/TUP+NBT/4lvtY9Z7nxtGt47amPk dmnfpxEOfPMIwu+6iMpGMNktKkLnMnA4zVHhcoWHTQ7ZUHsQfi8BnjFx5tHvrBez fV/5PxE0aa+pxHMj19tdeW5J8XiR003vEN/ilRx4Q8xgd7K0PF3iTW2WVc9o3Jqw UucXBeWCHFtNrK9lHZxpGwwVQRuf2qocrSGBrqTw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding:date:date :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:sender:subject:subject:to:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=KO87Uq USigoil934L0EoAdrUFJ7VlH5xtIF2E/OB148=; b=TbZEFaaDKs6jY+mA44vpHI Zy6vR4dcCdAwBI1Fg7S2yGQOR4xUrM5WZQXGCWyIwwMKs+QKezjHpjWgXZx2Y9Ie zcjc+auPz1uEeuanSnEmXOJbR3sksvdhnchdNBT1eX6dkN+UwQe3VILrKiJhpz00 YkIrjNt51dORcZTSoMOpDKMTlvxdF9bCejl15AzOzMb2gv83Okpm/DiU7UHcHSNT YY0ll23F9D0kupAQS9FmtBXkX0KtwDZs2KQDx+zveNaPhCjrMBxjyICBmXhuJGUn lO7t6/yttkt9qZwbJOR0IOQmxUUSze0TEPrzu3PHGzXIUzm0KuXUEZTkVU2pCJ6A == X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvvddrgeeigdeggecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefhvffufffkofgjfhgggfestdekredtredttdenucfhrhhomhepufgrmhhuvghl ucfjohhllhgrnhguuceoshgrmhhuvghlsehshhholhhlrghnugdrohhrgheqnecuggftrf grthhtvghrnhepudfhjeefvdfhgfefheetgffhieeigfefhefgvddvveefgeejheejvdfg jeehueeinecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomh epshgrmhhuvghlsehshhholhhlrghnugdrohhrgh X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 2 Feb 2022 21:17:41 -0500 (EST) From: Samuel Holland To: Maxime Ripard , Chen-Yu Tsai , Jernej Skrabec , linux-sunxi@lists.linux.dev Cc: Alessandro Zummo , Michael Turquette , Alexandre Belloni , linux-arm-kernel@lists.infradead.org, Rob Herring , devicetree@vger.kernel.org, linux-clk@vger.kernel.org, linux-rtc@vger.kernel.org, linux-kernel@vger.kernel.org, Stephen Boyd , Samuel Holland , Rob Herring Subject: [PATCH v3 1/6] dt-bindings: rtc: sun6i: Clean up repetition Date: Wed, 2 Feb 2022 20:17:31 -0600 Message-Id: <20220203021736.13434-2-samuel@sholland.org> X-Mailer: git-send-email 2.33.1 In-Reply-To: <20220203021736.13434-1-samuel@sholland.org> References: <20220203021736.13434-1-samuel@sholland.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org - Use "enum" for compatibles instead of several "const" alternatives. - Merge the H6 clock-output-names minItems/maxItems constraint into the identical block above. Reviewed-by: Rob Herring Signed-off-by: Samuel Holland --- (no changes since v2) Changes in v2: - Combine "const"s to "enum" in the DT binding compatible property. .../bindings/rtc/allwinner,sun6i-a31-rtc.yaml | 28 ++++++------------- 1 file changed, 9 insertions(+), 19 deletions(-) diff --git a/Documentation/devicetree/bindings/rtc/allwinner,sun6i-a31-rtc.yaml b/Documentation/devicetree/bindings/rtc/allwinner,sun6i-a31-rtc.yaml index beeb90e55727..a88d46ffb457 100644 --- a/Documentation/devicetree/bindings/rtc/allwinner,sun6i-a31-rtc.yaml +++ b/Documentation/devicetree/bindings/rtc/allwinner,sun6i-a31-rtc.yaml @@ -16,16 +16,17 @@ properties: compatible: oneOf: - - const: allwinner,sun6i-a31-rtc - - const: allwinner,sun8i-a23-rtc - - const: allwinner,sun8i-h3-rtc - - const: allwinner,sun8i-r40-rtc - - const: allwinner,sun8i-v3-rtc - - const: allwinner,sun50i-h5-rtc + - enum: + - allwinner,sun6i-a31-rtc + - allwinner,sun8i-a23-rtc + - allwinner,sun8i-h3-rtc + - allwinner,sun8i-r40-rtc + - allwinner,sun8i-v3-rtc + - allwinner,sun50i-h5-rtc + - allwinner,sun50i-h6-rtc - items: - const: allwinner,sun50i-a64-rtc - const: allwinner,sun8i-h3-rtc - - const: allwinner,sun50i-h6-rtc reg: maxItems: 1 @@ -85,18 +86,7 @@ allOf: enum: - allwinner,sun8i-h3-rtc - allwinner,sun50i-h5-rtc - - then: - properties: - clock-output-names: - minItems: 3 - maxItems: 3 - - - if: - properties: - compatible: - contains: - const: allwinner,sun50i-h6-rtc + - allwinner,sun50i-h6-rtc then: properties: -- 2.33.1