From patchwork Thu Apr 14 00:23:46 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Samuel Holland X-Patchwork-Id: 12812807 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 34988C433F5 for ; Thu, 14 Apr 2022 00:25:14 +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=2qWXn/3CT4AOkp1EYwq5ACo9bb7qO9CJWL6RFGQf+yo=; b=w8774tzfdG6sgi 7mYu0GFMaPvj0qrlxTIkYsh5Q6ltoJREosWpsOol3GmeiAPcDqF4hjt+Zd+OvyppxNyVgRIHwCTk5 m/3ODZkMaR1U4UykzsW7vZv7+Wu4HLwH60LqvP93HlIgy/W1Gl0HCR6HL9eg17JxGuSbsVTasqvXS tiIIHCxKPwNjY6fWLIlg5lik6branvE1yYegsjaodMbwF4dsU55NYV5cyAblzA+was63lIpZhpCIQ KAsbAKxZUVNTAXLdq6KBSMeqSCR9iJLiH79fZn8mWoTUr0MNSmsjy2Mpbiu5EK2ft9onCT/It7sZb QJJogD0ERcIhn5ASa9tA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nenHF-003AGx-GK; Thu, 14 Apr 2022 00:24:01 +0000 Received: from out3-smtp.messagingengine.com ([66.111.4.27]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nenHB-003AEu-PB for linux-arm-kernel@lists.infradead.org; Thu, 14 Apr 2022 00:23:59 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 3210E5C024E; Wed, 13 Apr 2022 20:23:52 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute5.internal (MEProxy); Wed, 13 Apr 2022 20:23:52 -0400 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 :message-id:mime-version:reply-to:sender:subject:subject:to:to; s=fm2; t=1649895832; x=1649982232; bh=cmioWZ70r/nopRjrVq9ahyQq5 MHB3bUw7EtLQ9BSxDw=; b=PW7yyMSR4S2D4Pt1omShjLjhE9/jqPee13xqDl2iE /V8MnfIoEeK1X2tnyLEYclOZTq3xXUONCJOiaakyRZsRYsLffH9ezwIl5KNBqZRw ANbw5AkcuKbmVBEbKG7Vwi8q2t8aMad7d4xA46y68Rdh40BAqKTosHI1MCxWUqpJ TId1YSDpMqKFBzfVPdHBW5au/bzjZG5nhsbGzA28KNSbqQXqSOPXrMbH7+oafdd/ zQANGMYXLQvRGWSFERUTVf5S8F3XsL2CjtSwiybU7yupar5/lZ/epSNSYo/vJ5F8 pfPCINqhyHOvGoGcODB2EflFI/Ad5jnFHs3Oogsi7KGMQ== 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:message-id:mime-version:reply-to:sender :subject:subject:to:to:x-me-proxy:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm1; t=1649895832; x=1649982232; bh=c mioWZ70r/nopRjrVq9ahyQq5MHB3bUw7EtLQ9BSxDw=; b=awOiwnMwOlD5E8IPf 11niZhS7h7vNWK7kaIuoFd6rinND0EcRIDgWZVWOeBxMuY8BiM96BKyskgijHxSW ePzE+Fb8IHENHvMkvX8wSuqdNJD+LofGNA013sFGM7/bMB3DVIepbrFVcPPGn3zZ 8tSkvF3kHR8wKIobO61rYap3KPpN63XAubudWJeNzvchCyqATY3VHXI5JwADAFXH G6sPX3CWixhMialSbuhhmsh1NuSsGddFnldesloKedvwPAlBwYqGvLcFv0HjOnxu tG0A/CtrQplkCHpv0/8WM8yvX7D8Y9NShTq6HCPoeDXraZTnj9rwwiXPbQ7ac2EG 0hvaw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvvddrudelvddgfeehucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvufffkffoggfgsedtkeertdertddtnecuhfhrohhmpefurghmuhgvlhcu jfholhhlrghnugcuoehsrghmuhgvlhesshhhohhllhgrnhgurdhorhhgqeenucggtffrrg htthgvrhhnpeeiteekhfehuddugfeltddufeejjeefgeevheekueffhffhjeekheeiffdt vedtveenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpe hsrghmuhgvlhesshhhohhllhgrnhgurdhorhhg X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 13 Apr 2022 20:23:50 -0400 (EDT) From: Samuel Holland To: Dmitry Torokhov , Hans de Goede Cc: Samuel Holland , Maxime Ripard , Rob Herring , Chen-Yu Tsai , Jernej Skrabec , Krzysztof Kozlowski , Maxime Ripard , Rob Herring , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, linux-sunxi@lists.linux.dev Subject: [PATCH v2 1/3] dt-bindings: input: sun4i-lradc-keys: Add R329 and D1 compatibles Date: Wed, 13 Apr 2022 19:23:46 -0500 Message-Id: <20220414002349.24332-1-samuel@sholland.org> X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220413_172357_914274_C78823B9 X-CRM114-Status: UNSURE ( 8.94 ) 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: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The R329 and D1 SoCs each contain an LRADC with a programming interface compatible to earlier LRADCs. However, the LRADC now has its own clock gate and reset line, instead of being always active. To support this, add clock/reset properties to the binding, and require them for the variant in the new SoCs. Acked-by: Maxime Ripard Reviewed-by: Rob Herring Signed-off-by: Samuel Holland --- (no changes since v1) .../input/allwinner,sun4i-a10-lradc-keys.yaml | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/Documentation/devicetree/bindings/input/allwinner,sun4i-a10-lradc-keys.yaml b/Documentation/devicetree/bindings/input/allwinner,sun4i-a10-lradc-keys.yaml index d74f2002409e..3399fc288afb 100644 --- a/Documentation/devicetree/bindings/input/allwinner,sun4i-a10-lradc-keys.yaml +++ b/Documentation/devicetree/bindings/input/allwinner,sun4i-a10-lradc-keys.yaml @@ -18,10 +18,20 @@ properties: - items: - const: allwinner,sun50i-a64-lradc - const: allwinner,sun8i-a83t-r-lradc + - const: allwinner,sun50i-r329-lradc + - items: + - const: allwinner,sun20i-d1-lradc + - const: allwinner,sun50i-r329-lradc reg: maxItems: 1 + clocks: + maxItems: 1 + + resets: + maxItems: 1 + interrupts: maxItems: 1 @@ -68,6 +78,18 @@ required: - interrupts - vref-supply +if: + properties: + compatible: + contains: + enum: + - allwinner,sun50i-r329-lradc + +then: + required: + - clocks + - resets + additionalProperties: false examples: