From patchwork Fri Apr 26 09:29:37 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: James McGregor X-Patchwork-Id: 13644447 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 B9F68C4345F for ; Fri, 26 Apr 2024 09:30:09 +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:Subject:Cc:From :To:Date: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=A+XWxWfBAGtwiQ4Q3j7EYByj4Jw6r7VBg3QoPXiX66Y=; b=rqoOSI6iBqS1hk agYmz9+EI0OsjDQlsMXT/xuh1EMIA57kl+Eg6VIcU8lw8OxqrgELRtcZOTp2Q0y4AiOZymHHY1r75 05aB/YCJBHxWGs1JXOoSFKJK+E/YxKS7KJVPmzuNEa7nM5u09DAHYJ1YG1ltn8L2RWzh5LY4igh8N EQdY5L4rPJZ5SdpYHZ09f+MqK3cL4y48fU/iP112TcEii3YeBIf+q4sp0pAfif1eeBtlGUXZag06D FJScD31KoDBFa4owdxuuNNAkGIIWMAKnNTl2he6UXSpDUMcy/rn9MP3Ka7z4f6LokptvtUsmRgPXF wDxWNBQDGmL1rgiC3fjw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1s0Htw-0000000Bv37-1th7; Fri, 26 Apr 2024 09:29:52 +0000 Received: from mail-40133.protonmail.ch ([185.70.40.133]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1s0Hts-0000000Bv0G-2n4Q for linux-arm-kernel@lists.infradead.org; Fri, 26 Apr 2024 09:29:50 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1714123782; x=1714382982; bh=GoXvkl2agTiWSX6jA4XFU4wprNl2DE0VQkVFPmYL2qk=; h=Date:To:From:Cc:Subject:Message-ID:Feedback-ID:From:To:Cc:Date: Subject:Reply-To:Feedback-ID:Message-ID:BIMI-Selector; b=Lejg8FGizAWCV2U9FFtlck8B5Ty6U0utO5x7Lb5JnDHwwFKOMXdsB1+yozgiSIcdF Ubk+DFi2BZ5E4m9vUums8ePOT7jlytuLFonmFNbiQP2U0mFPS/ldnh/k5Iw/MkJWUS GQLG58j477/ImUyVujjZoa+pnd4EKlV0c+LE4CY8lKEdEE+vc5+L3D9dN+n2y45Fjd M1m6PJi9Nhpx1ocE9We4+jiaq5/s+uTspoifmGN5CYYqk0LOcU4OKXW0VYE1WY84Ea gMSwgum48PGD4jU2tqd5SEWIOZm3lcZzXiQ6TZakPw55OEbVNeEY/ZdzCWrEI0/T1M fW2zYARj4s4Pg== Date: Fri, 26 Apr 2024 09:29:37 +0000 To: Hans de Goede , Dmitry Torokhov , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , Andre Przywara From: James McGregor Cc: linux-input@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev Subject: [PATCH v2 0/2] arm64: dts: allwinner: H616: Add LRADC Message-ID: <20240426092924.15489-1-jamcgregor@protonmail.com> Feedback-ID: 83670259:user:proton X-Pm-Message-ID: 06a1c2158f7c5eab9994d2a7991a6038f3e8a336 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240426_022948_913577_5CDEFB34 X-CRM114-Status: UNSURE ( 9.44 ) 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 Version 2 moves the LRADC DT node to the right place. It was out of order before. The Allwinner H616 series of SoCs have a low-rate ADC (LRADC) with 6-bit resolution and one input channel. They're compatible with the existing drivers, so it only needs to be enabled in the DT. Add an LRADC node to the H616 .dtsi, so board DTs can use them by adding 'status = "okay";'. This was tested on an OrangePi Zero 2W by attaching an expansion board with two key buttons connected to the LRADC, and adding them to the DT. /dev/input/event0 then properly reported the button presses. The patches are based off sunxi/for-next. James McGregor (2): dt-bindings: input: sun4i-lradc-keys: Add H616 compatible ARM: dts: sun50i: Add LRADC node .../bindings/input/allwinner,sun4i-a10-lradc-keys.yaml | 4 +++- arch/arm64/boot/dts/allwinner/sun50i-h616.dtsi | 10 ++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-)