From patchwork Wed Sep 8 03:40:14 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Samuel Holland X-Patchwork-Id: 508061 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=-18.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER, INCLUDES_PATCH, MAILING_LIST_MULTI, SPF_HELO_NONE, SPF_PASS, USER_AGENT_GIT autolearn=unavailable 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 3CDADC433F5 for ; Wed, 8 Sep 2021 03:40:37 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 2685361152 for ; Wed, 8 Sep 2021 03:40:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1347302AbhIHDlh (ORCPT ); Tue, 7 Sep 2021 23:41:37 -0400 Received: from wnew1-smtp.messagingengine.com ([64.147.123.26]:54681 "EHLO wnew1-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344978AbhIHDlb (ORCPT ); Tue, 7 Sep 2021 23:41:31 -0400 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailnew.west.internal (Postfix) with ESMTP id 543D62B002A5; Tue, 7 Sep 2021 23:40:21 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute5.internal (MEProxy); Tue, 07 Sep 2021 23:40:22 -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=fm3; bh=VpSD4pDAyZBDu HDV17+T6gzsAmNEwWelCiUqUhnNWR0=; b=p4jvzYAIrsMWl7PiPH97D3BPeCDFi AqI3H1SUPA08ZlVKhjJrx/qeVGGcrsFUnM80l3ETzBeoUaqPJv285LqWcWo3Rofk nbopSMxQmnGoLx20M+l2lEeJc9DesXs4ZOP4Tt9L6SQZj2aaugzX59k8aNo5wNez /+NxoCNlZRD4c6aL/fHCLSmCL5JSayfBH//xhqTS9J7MOwXrK5mdvIJbBkwuwBA1 UC6LVZancAnRQ0uI40g0HwSngnyublcC8Ymg6KY0QHQVcu1Pl0/uisxh5/XxsJbl ZScHIA6+UdmpyciRJuh04erKiweMstzvSpm85EffeqMAhGyPE/g4o7NCQ== 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= fm3; bh=VpSD4pDAyZBDuHDV17+T6gzsAmNEwWelCiUqUhnNWR0=; b=vtssCJV3 TGV2U7WFjkDXty/Qn6trMasBaa4c5B8Kb4cW973n6D9DmoVenJsRQXgXbgZjDo9c Be+sm7xohcXzN9q9sHT2n1biP/VakBQ/4cMslLQkpUNBpChH79hEumGE4uTjWLt4 qUGf3E68ChDB/2tu71Din0UTtPq2FGDyzaumcn85ut79y1jFNlZmRCB1AlbcxcPK Gj+ebbWSpIuA9tQh8j8WvqgOkcKH4b967wIokkX2HRjYGxOYvMMbgFsGBcdoDqlU JfSCigXlgX66zm7qBTWZQm/RQSmUnn1O5GQqtgI+X/JXwRdoI7UsVJH1XGFPW0t7 etUgP5qF5d+FVA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddrudefiedgjedtucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvufffkffojghfggfgsedtkeertdertddtnecuhfhrohhmpefurghmuhgv lhcujfholhhlrghnugcuoehsrghmuhgvlhesshhhohhllhgrnhgurdhorhhgqeenucggtf frrghtthgvrhhnpeduhfejfedvhffgfeehtefghfeiiefgfeehgfdvvdevfeegjeehjedv gfejheeuieenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhroh hmpehsrghmuhgvlhesshhhohhllhgrnhgurdhorhhg X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 7 Sep 2021 23:40:20 -0400 (EDT) From: Samuel Holland To: Dmitry Torokhov , Hans de Goede , Rob Herring , Maxime Ripard , Chen-Yu Tsai , Jernej Skrabec Cc: Philipp Zabel , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-input@vger.kernel.org, linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org, Samuel Holland Subject: [PATCH 1/3] dt-bindings: input: sun4i-lradc-keys: Add R329 and D1 compatibles Date: Tue, 7 Sep 2021 22:40:14 -0500 Message-Id: <20210908034016.24119-2-samuel@sholland.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210908034016.24119-1-samuel@sholland.org> References: <20210908034016.24119-1-samuel@sholland.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.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. Signed-off-by: Samuel Holland Reviewed-by: Rob Herring --- .../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 cffd02028d02..cfb84b8a1b90 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 @@ -66,6 +76,18 @@ required: - interrupts - vref-supply +if: + properties: + compatible: + contains: + enum: + - allwinner,sun50i-r329-lradc + +then: + required: + - clocks + - resets + additionalProperties: false examples: