From patchwork Mon Apr 22 16:45:09 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andre Przywara X-Patchwork-Id: 791699 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BBA30154C0E; Mon, 22 Apr 2024 16:45:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.140.110.172 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713804322; cv=none; b=W1pIowQQfOn0jeQVnfG4r4B2v9DJckAjcx9gf8JxvwWufTcPvBz7SMEIQQf+QWnNtBDPO/ZLvvd/ykaql4vBjyUA7AALcRktD8jzdcrpxVaYgKN3CF6h21vc2cknBLhzR9wQ3g/2EbZslnUl4kZd5sGqKJBZMhfj3VxVhLu/0Ck= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713804322; c=relaxed/simple; bh=bDfz8x91zE22UkKEC6UGD7/fU46MiX1k/M7h9i6afrg=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=hWPUDT51pTXJ9RNd8brFNh6Zj11Y6sfw+/1crakgI9TSy87cJNa6sSCRjAznOl1XqVp9zez25MLaFfp6BDEfG39bXmtSx3wEKNjGEy5BF4zRMMSoTY16paTzVSBVKuEYLLn1g/4COrAHypeJUn4tbKplzBPl47bA5xG0vvf2YAU= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com; spf=pass smtp.mailfrom=arm.com; arc=none smtp.client-ip=217.140.110.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arm.com Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 246FD339; Mon, 22 Apr 2024 09:45:47 -0700 (PDT) Received: from donnerap.arm.com (donnerap.manchester.arm.com [10.32.100.28]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 1DF253F7BD; Mon, 22 Apr 2024 09:45:17 -0700 (PDT) From: Andre Przywara To: Hans de Goede , Dmitry Torokhov , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland Cc: linux-input@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, James McGregor Subject: [PATCH 0/2] arm64: dts: allwinner: H616: Add LRADC Date: Mon, 22 Apr 2024 17:45:09 +0100 Message-Id: <20240422164511.2488261-1-andre.przywara@arm.com> X-Mailer: git-send-email 2.25.1 Precedence: bulk X-Mailing-List: linux-input@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 From: James McGregor 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: sum4i-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(-)