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 X-Spam-Level: X-Spam-Status: No, score=-17.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 427BAC433DB for ; Mon, 15 Mar 2021 04:59:52 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id A08E464E31 for ; Mon, 15 Mar 2021 04:59:51 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org A08E464E31 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=sholland.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; h=Sender:Content-Transfer-Encoding :Content-Type:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: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:List-Owner; bh=l3jh/gpr1TiFJz0t82pkp/Xg4ZDGNudk9UMQIIMz34g=; b=Cf8zfP9EW6UYx0rZxqoVBhNMQ V4hbB75HZyHWggnmTQR2v0hyaenO1r1m8++GLhYpWKPOaduacgXIrTCOgzjp3+/hh2SpmLVkh2PQ5 qxPVYoQGwF9i7cnyzPI59qRoqwLIQtcCswY3pmHDKwF5zzFOsPPVToPxKVwqcDpPcXtMuHLeG8zaS XZytVrWUrh0Iz/2f+e+44zag/S5MY+8Lmk+HpWzD0N0uSZl8wrRdqpIWm2I9mU5XhHt3cw5lXPrAD pnW//nMfE/lBjPwnjvc8m4vsXXX11q5O4mWmW1N4cQrw00wK/urngnIdPuFa3+moWVWziO0LXTy+w 2I5XVff4A==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lLfIs-00EtN8-2q; Mon, 15 Mar 2021 04:58:06 +0000 Received: from casper.infradead.org ([2001:8b0:10b:1236::1]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lLeuv-00Es7w-SG for linux-arm-kernel@desiato.infradead.org; Mon, 15 Mar 2021 04:34:23 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Content-Transfer-Encoding:MIME-Version: References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To: Content-Type:Content-ID:Content-Description; bh=czi+mm/WRAlliyY3vx1O61Hzo2LcF+Emfju32DJj5MA=; b=EPI7BlDZzAk7H8c/3rVOCUJBQX oz/mKK1V5uxuxCQcuTsA21Fq4cEOgfVXvK1gNbmujLtEsg6glFxtHKggGWUyZkeLHu3QmCUPyjuOs iuJaTQ7XhRsa/XMqjUKr2+1d/zRTfSlGD0nZvjPhhDwjc723JAn6xJk+vdb/6NOAWckr2g0MC6sEy uJLfk8UroZCagMIQ3yNTA+F7bDKQy8hzoxA4g51H/RU0hNxQl6B1mkmxqp72A0MR4zoHB+e/tmoXn fA6u1RPQ5S8d0zO77DHxUXYM/0ZtBTdJlCeYnEgExmMPK/sbtB24CJU9Ym7Kr+GOnXUGbK/9CYjE0 Qbgvyx6A==; Received: from new1-smtp.messagingengine.com ([66.111.4.221]) by casper.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lLeuh-00H8XI-Ag for linux-arm-kernel@lists.infradead.org; Mon, 15 Mar 2021 04:33:15 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailnew.nyi.internal (Postfix) with ESMTP id C9AED5807FC; Mon, 15 Mar 2021 00:32:53 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute5.internal (MEProxy); Mon, 15 Mar 2021 00:32:53 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sholland.org; h= from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; s=fm2; bh=czi+mm/WRAlli yY3vx1O61Hzo2LcF+Emfju32DJj5MA=; b=JNiMNkxIId8JyOvAY6zEBR6EHtYam P3mS4NQ366vCcWNXoTRGGtcyJn9qAx0iu7auw3sWDIfB7oUnfATsXtj/1AMRqfJW F4doI6jlwbvM0MiefsgUHLdybLA7Zp21yvkuI9Uan6XdMNDKPhqDUL9w0po7NnOe snoPtjz8xnj3yRHJenvTFOE96x4+3jAvPImpAj3j67tgd18iYJ4FS8rHrBa3G4gg BeeAwisq5Tq/HOMWwoOsB0qGLgP8+sHFuBAE10QeRbNtsjPLDI8uGOqoxKYASJy0 kQwGN5YLfq/+EisYlnRzl0A+H2OHtMv7iPwe4LoR99zUGohwJFvuJEcHQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:date:from :in-reply-to:message-id:mime-version:references:subject:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm2; bh=czi+mm/WRAlliyY3vx1O61Hzo2LcF+Emfju32DJj5MA=; b=IZW3zEKy Mw0kMffsNcXyhxp1I4F5FmqrbUVB1FpXfWpwC4dy6IsMpVE0RdRlP8gzlzcIAsRo D8RtxgDvfXL7e1rUoQnYm/aOeP+HbBrv+7M5ZDATxep3bLz2UlDyEH7dVtDRX5m8 4mmEVz8psAmxSfSZ6VA0GRYYK9C0RC0/MO4Cu2dqZ1Id53itTTYI+BDGaDI0BN0Z EZ6zYnhhwEcWELBiHCdqTNdcIMfEBVuIlUOjqsVALhXNT9lLuf3F6dF3G7EBSfHM fK5IEjl3I+6AHahEA/U6CGkyILP9ytOTOmw2M7TvK55W24bq6t8+AbCmCGoA7CJk iuqg9aMeXSYaiw== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledruddvkedgjeefucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvufffkffojghfggfgsedtkeertdertddtnecuhfhrohhmpefurghmuhgv lhcujfholhhlrghnugcuoehsrghmuhgvlhesshhhohhllhgrnhgurdhorhhgqeenucggtf frrghtthgvrhhnpeduhfejfedvhffgfeehtefghfeiiefgfeehgfdvvdevfeegjeehjedv gfejheeuieenucfkphepjedtrddufeehrddugeekrdduhedunecuvehluhhsthgvrhfuih iivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepshgrmhhuvghlsehshhholhhlrghn ugdrohhrgh X-ME-Proxy: Received: from titanium.stl.sholland.net (70-135-148-151.lightspeed.stlsmo.sbcglobal.net [70.135.148.151]) by mail.messagingengine.com (Postfix) with ESMTPA id 169331080054; Mon, 15 Mar 2021 00:32:52 -0400 (EDT) From: Samuel Holland To: Daniel Lezcano , Thomas Gleixner , Rob Herring , Maxime Ripard , Chen-Yu Tsai , Jernej Skrabec , Catalin Marinas , Will Deacon Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Samuel Holland Subject: [PATCH 1/5] dt-bindings: timer: Simplify conditional expressions Date: Sun, 14 Mar 2021 23:32:46 -0500 Message-Id: <20210315043250.45095-2-samuel@sholland.org> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20210315043250.45095-1-samuel@sholland.org> References: <20210315043250.45095-1-samuel@sholland.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210315_043311_034143_9900100C X-CRM114-Status: UNSURE ( 8.77 ) X-CRM114-Notice: Please train this message. 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 The sun4i timer IP block has a variable number of interrupts based on the compatible. Use enums to combine the two sections for the existing 3-interrupt variants, and to simplify adding new compatible strings. Signed-off-by: Samuel Holland --- .../timer/allwinner,sun4i-a10-timer.yaml | 25 ++++++------------- 1 file changed, 7 insertions(+), 18 deletions(-) diff --git a/Documentation/devicetree/bindings/timer/allwinner,sun4i-a10-timer.yaml b/Documentation/devicetree/bindings/timer/allwinner,sun4i-a10-timer.yaml index 1c7cf32e7ac2..3462598e609d 100644 --- a/Documentation/devicetree/bindings/timer/allwinner,sun4i-a10-timer.yaml +++ b/Documentation/devicetree/bindings/timer/allwinner,sun4i-a10-timer.yaml @@ -34,8 +34,8 @@ allOf: - if: properties: compatible: - items: - const: allwinner,sun4i-a10-timer + enum: + - allwinner,sun4i-a10-timer then: properties: @@ -46,8 +46,8 @@ allOf: - if: properties: compatible: - items: - const: allwinner,sun8i-a23-timer + enum: + - allwinner,sun8i-a23-timer then: properties: @@ -58,20 +58,9 @@ allOf: - if: properties: compatible: - items: - const: allwinner,sun8i-v3s-timer - - then: - properties: - interrupts: - minItems: 3 - maxItems: 3 - - - if: - properties: - compatible: - items: - const: allwinner,suniv-f1c100s-timer + enum: + - allwinner,sun8i-v3s-timer + - allwinner,suniv-f1c100s-timer then: properties: -- 2.26.2 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel