From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id F1BF34AB1AF for ; Wed, 23 Sep 2026 11:56:40 +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=1790164605; cv=none; b=IJP9OO252N1FFDR35QBBWynSZaLYyXeKYoEA9uLJ58AScFmm2vrQOxk3J/6KS2lMaAtwX9uRFz9mSo9b1r5ANizC5aN0WH2KQjQgnhyYGXlSHRLf1a7WFKm63eHGgVk3a7mwdRC2SkfgcPLkpuZ8ZxT4e9Y7DtF/etzHZ4pDtjE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790164605; c=relaxed/simple; bh=rfBvROneOxvFiFGA1DJHYz02QbgdSPyyiUbedPA58/4=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=AkC79vOd9XbNH7gD5O5f4ilO+DUwOG+uDxLB3GYabFvMgzalS+W/g0Srdcn5yFLwcVkym5njEISGJbEvKologpwsGd3J1D1+byakSSk2ICa9+wA0CtINj2VPuJOAo10eWfQrPSfYcl1vl0fZD+IH1cTpC5Fk1KfKzaTuNReKE4g= 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; dkim=pass (1024-bit key) header.d=arm.com header.i=@arm.com header.b=slGCOZi+; 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=arm.com header.i=@arm.com header.b="slGCOZi+" 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 3D76E1570; Wed, 23 Sep 2026 04:56:36 -0700 (PDT) Received: from [192.168.178.24] (usa-sjc-mx-foss1.foss.arm.com [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id A689B3F86F; Wed, 23 Sep 2026 04:56:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=arm.com; s=foss; t=1790164599; bh=rfBvROneOxvFiFGA1DJHYz02QbgdSPyyiUbedPA58/4=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=slGCOZi+UwC2ItMYCDjPlR0zxyhv95lkVs3mdKzmmuKYrXFxSqxMWGh9Nvul2kL+H 8DSvwROJ46G8k67OFvAD8ZwCbkC71YumjZiPPB2wavzbHNaoMug4Obhq1AMK9nIVcQ X1J0fnGwzTXVTnu6mknf0huFgXz1U20XbPpDuiXc= Message-ID: Date: Wed, 23 Sep 2026 13:56:37 +0200 Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v3 1/2] arm64: dts: allwinner: h616: orangepi-zero2w: add 24-pin expansion overlay To: Vladimir , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland Cc: linux-sunxi@lists.linux.dev, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org References: <20260923112009.1062-1-anykey196@gmail.com> Content-Language: en-GB From: Andre Przywara In-Reply-To: <20260923112009.1062-1-anykey196@gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Hi Vladimir, thanks for your patches, but please do not send new revisions that quickly! The kernel doc says to leave *at least* 24 hours between respins, but I would wait even longer: we are all humans, mostly hobbyists, so please give all the reviewers some time to have a look! Thanks, Andre On 9/23/26 13:20, Vladimir wrote: > The optional 24-pin expansion board carries two buttons on LRADC channel 0 > and an IR receiver. Keep them out of the base board .dts: with the board > detached the LRADC input and the IR receiver pin are not driven and float, > which can produce phantom key presses and interrupt storms. > > Provide them as a devicetree overlay instead, following the existing > sun8i-orangepi-zero-interface-board.dtso approach. > > Tested on: OrangePi Zero 2W (Allwinner H618) with the 24-pin expansion board. > > Signed-off-by: Vladimir > --- > arch/arm64/boot/dts/allwinner/Makefile | 2 + > .../sun50i-h618-orangepi-zero2w-24pin.dtso | 42 +++++++++++++++++++ > 2 files changed, 44 insertions(+) > create mode 100644 arch/arm64/boot/dts/allwinner/sun50i-h618-orangepi-zero2w-24pin.dtso > > diff --git a/arch/arm64/boot/dts/allwinner/Makefile b/arch/arm64/boot/dts/allwinner/Makefile > index d1f768dd646..e4576030276 100644 > --- a/arch/arm64/boot/dts/allwinner/Makefile > +++ b/arch/arm64/boot/dts/allwinner/Makefile > @@ -57,6 +57,8 @@ dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h616-orangepi-zero2.dtb > dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h616-x96-mate.dtb > dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h618-longanpi-3h.dtb > dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h618-orangepi-zero2w.dtb > +dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h618-orangepi-zero2w-24pin.dtb > +sun50i-h618-orangepi-zero2w-24pin-dtbs := sun50i-h618-orangepi-zero2w.dtb sun50i-h618-orangepi-zero2w-24pin.dtbo > dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h618-orangepi-zero3.dtb > dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h618-transpeed-8k618-t.dtb > dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h618-yuzukihd-chameleon.dtb > diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h618-orangepi-zero2w-24pin.dtso b/arch/arm64/boot/dts/allwinner/sun50i-h618-orangepi-zero2w-24pin.dtso > new file mode 100644 > index 00000000000..2d7e98e4b66 > --- /dev/null > +++ b/arch/arm64/boot/dts/allwinner/sun50i-h618-orangepi-zero2w-24pin.dtso > @@ -0,0 +1,42 @@ > +// SPDX-License-Identifier: (GPL-2.0-or-later OR X11) > +/* > + * Device tree overlay for the Orange Pi Zero 2W 24-pin expansion board. > + * > + * The expansion board provides two buttons wired to LRADC channel 0 and an > + * IR receiver. These are only present when the board is attached, so they > + * are deliberately kept out of the base .dts: on a bare board the LRADC > + * input and the IR receiver pin are not driven and float, which can cause > + * phantom key presses and interrupt storms. > + * > + * Apply on top of: > + * arch/arm64/boot/dts/allwinner/sun50i-h618-orangepi-zero2w.dts > + */ > + > +/dts-v1/; > +/plugin/; > + > +#include > + > +&lradc { > + vref-supply = <®_vcc3v3>; > + status = "okay"; > + wakeup-source; > + > + button-1000 { > + label = "KEY_1"; > + linux,code = ; > + channel = <0>; > + voltage = <1000000>; > + }; > + > + button-1600 { > + label = "KEY_ENTER"; > + linux,code = ; > + channel = <0>; > + voltage = <1600000>; > + }; > +}; > + > +&ir { > + status = "okay"; > +};