From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-ej1-f51.google.com (mail-ej1-f51.google.com [209.85.218.51]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id EF65744CF37 for ; Wed, 21 Jan 2026 08:07:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.51 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768982873; cv=none; b=k1YZQxgfSyJ7gwUdlAy0Rv38Eb+MNcwRN3eYCAGgOhr+EXT+6bqM+6MO1As8FB3y7POORy+0EQY7uB3k7+h3LogJ4LbLpblsqD4IAQIjstR/y13AN5cHi+tXPNxvPp4uOht9Zb/uijgt6pl7MkxPxSdXEnOtejAhnzef87fXFFg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768982873; c=relaxed/simple; bh=3QmWU1nQquntEBkGyUahuJHSNU1fH3YnYf4oeatEaHU=; h=Mime-Version:Content-Type:Date:Message-Id:Cc:Subject:From:To: References:In-Reply-To; b=dLyOuSQtDCQ6DNKLeNnpR7TahpzdJ28vn3jdL61NptOUuYsK4WuyBL70hemhe3Vj7VMrmuUAeLtc1HNykS0mGmNYcfHbRd/+wd3bw5GPpSGJLNzqX1HTa9kpWJeGTC3KSZX+byo4eOLpe0hNulrBKqmWFxLbu2h2iOs/AsSR0e4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=fairphone.com; spf=pass smtp.mailfrom=fairphone.com; dkim=pass (2048-bit key) header.d=fairphone.com header.i=@fairphone.com header.b=zRcEPuw7; arc=none smtp.client-ip=209.85.218.51 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=fairphone.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=fairphone.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=fairphone.com header.i=@fairphone.com header.b="zRcEPuw7" Received: by mail-ej1-f51.google.com with SMTP id a640c23a62f3a-b8825463733so30747666b.3 for ; Wed, 21 Jan 2026 00:07:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fairphone.com; s=fair; t=1768982866; x=1769587666; darn=vger.kernel.org; h=in-reply-to:references:to:from:subject:cc:message-id:date :content-transfer-encoding:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=DPEP1SMp69TkYfNcwIUjvNwM3iPh7BaIDcXmXmOoS+Y=; b=zRcEPuw7meIxL2jvkQJmTkd2p8t6IdmF6Ea0+305MgnOAO81WTGonj2RoEjpH0aXSb X6PbJbC5DKlS9R8RsRbpcYUGVe8T7pjsC1WBRpQXI9qe8jFAPfPy+AjW/J9w9exJ/UfR hHAIyVt0P4i/ZULvH/+H0o4rK4JmseqTmQqdyJad7YhgnTFtIMu1QCjeLp8S9KyI4l9W TR5qGc0k1DQwDt9GVnALsB/l4wc4LT4ZGny/IcvhF5pFifWXLJj91gTfnTZWoC/1yxy0 ZBZwSeGr0RN7CprK/W0Vgp9vWm33NE1u8yDtSVs4EkFHxuRQNMebcgHyOuI89ocKP+DR +Sgw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1768982866; x=1769587666; h=in-reply-to:references:to:from:subject:cc:message-id:date :content-transfer-encoding:mime-version:x-gm-gg:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=DPEP1SMp69TkYfNcwIUjvNwM3iPh7BaIDcXmXmOoS+Y=; b=evRTOou8v5yMtzCwuiS99oQeMGswwcZru9QvDXPTA8GtcPtL025JPiZXQAFPFUkmxJ 8ic9DF3Inx94USaibZ8LnwCIfZvbPE2gOKpexj+tTcsgDRq5NZ1cz0iV9/FLETGY/efU 2iGL5Y/SADH0ijrCfTnBCtU8end25GskLGE0VZkY9VW0bJ/9WrLOmsw2HyZ/grL1Wrr3 pNXd7LCs4XCd8g8sZIngcflEFz+lkSQgR3iLZiAWCWq/AJmQVEbVbdznjq/csUOvCw0U fXES6P2eMjhXiXwfLHEwNM1xbeYT/nz54hbVX9TlB/ECywWSfzp5XtotAz9DaONEQRGA ME8Q== X-Forwarded-Encrypted: i=1; AJvYcCVKP6+Tv7LwcyLcKAChwxZiumFLYJsT01wrH5WfXVO5KfQ7A8XtDfXGBs7p0yPJSbQOXivQYpGqjuhgrSo=@vger.kernel.org X-Gm-Message-State: AOJu0YztUWTfZ6yesAS5eeDHE30qj0QyaImMlZThje0z9UE1JTNc9bfl k+5SSoudM8ISMbbf2MbyoQhSzzMLks3Lv4jZKyXyYnkTU9u5vu0J9t7o712nW60cYNg= X-Gm-Gg: AZuq6aKqGVdJu4JRy36eoDH5IeoINRev8Ah692WxejaDFzFbsAVxeZyDOgcEQDVwz7m OY0HpVsiraRlHc3K4SWqfRT7IQnf1U1MpuQGXn+V92LntiikEhfjAoINUQsheeCJ0dbuzRk0nht mQoOpimfEJpscDTkceBoh/2HTmg+qlenK+dzwTzDJbzfHONyleUVR/jzRlaP5HS78J1rDSCkPCV rV2PyC9yAaydzqOvPnUPDZwskCog1ry+MgNAoftPClAdRmiqvEoDWx2pt3z/jpCPI3Ueqcpcp64 ZwQVUMZqlEvzP9Ih08b3ERMkE3Ld7EvWU5uznl7YnbwjdpGSFLIgZvFTl4HbAZaNHzOK+0K9Wax 5cFo58KPV6orV8qw0fkM53H2rmiYcY7PU7u2eGMICI/5wfBJldbpwHB3HcbkF/ot30JudccCQjY +KYCt8JDFrEp3Wf0xek7f1QIBAYvewmblSF+CJyZ00I9cvGg8mGcLuu/s9 X-Received: by 2002:a17:907:6d15:b0:b87:65c5:602f with SMTP id a640c23a62f3a-b8796afd5c2mr1453311666b.34.1768982866518; Wed, 21 Jan 2026 00:07:46 -0800 (PST) Received: from localhost (144-178-202-138.static.ef-service.nl. [144.178.202.138]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-b879513e8d1sm1587021266b.2.2026.01.21.00.07.45 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 21 Jan 2026 00:07:45 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Wed, 21 Jan 2026 09:07:44 +0100 Message-Id: Cc: "Konrad Dybcio" , "Bjorn Andersson" , "Konrad Dybcio" , "Rob Herring" , "Krzysztof Kozlowski" , "Conor Dooley" , <~postmarketos/upstreaming@lists.sr.ht>, , , , , Subject: Re: [PATCH] arm64: dts: qcom: milos-fairphone-fp6: Add Hall Effect sensor From: "Luca Weiss" To: "Dmitry Baryshkov" , "Luca Weiss" , "Dmitry Torokhov" X-Mailer: aerc 0.21.0-0-g5549850facc2 References: <20260116-fp6-hall-sensor-v1-1-69275c6bd809@fairphone.com> <3a17f2e5-0724-4d70-bd22-1e612142b3e8@oss.qualcomm.com> In-Reply-To: On Wed Jan 21, 2026 at 12:05 AM CET, Dmitry Baryshkov wrote: > On Mon, Jan 19, 2026 at 04:52:23PM +0100, Luca Weiss wrote: >> On Mon Jan 19, 2026 at 3:41 PM CET, Konrad Dybcio wrote: >> > On 1/16/26 3:22 PM, Luca Weiss wrote: >> >> Add a node for the Hall Effect sensor, used to detect whether the Fli= p >> >> Cover is closed or not. >> >>=20 >> >> The sensor is powered through vreg_l10b, so let's put a >> >> regulator-always-on on that to make sure the sensor gets power. >> > >> > Is there anything else on L10B? Can we turn it off if the hall sensor >> > is e.g. user-disabled? >>=20 >> It's the voltage source for pull-up of sensor I2C bus (so >> ADSP-managed?), DVDD for amplifiers and VDD for a most sensors like >> the gyro. >>=20 >> So realistically, it'll probably be (nearly) always on anyways. And I >> don't want to shave another yak by adding vdd support to gpio-keys... > > Why? If it is exactly what happens on the board: the device producing > GPIO events _is_ powered via a vdd. Added Input maintainer / list to cc. Yes, the hall sensor which is connected to the GPIO on the SoC, has an extra VDD input which needs to be on in order for the Hall-effect sensor to be on. See page 133 "HALL" in the center of the page https://www.fairphone.com/wp-content/uploads/2025/08/Fairphone-Gen.-6_-Info= rmation-on-how-to-repair-dispose-of-and-recycle-EN-NL-FR-DE.pdf The IC is OCH166AEV4AD where VDD is (as expected) "Power Supply Input": https://www.orient-chip.com/Public/Uploads/uploadfile/files/20231014/1OCH16= 6Adatasheet202203221.pdf Regards Luca > >>=20 >> Regards >> Luca >>=20 >> > >> > Konrad >> > >> >>=20 >> >> Signed-off-by: Luca Weiss >> >> --- >> >> arch/arm64/boot/dts/qcom/milos-fairphone-fp6.dts | 12 ++++++++++++ >> >> 1 file changed, 12 insertions(+) >> >>=20 >> >> diff --git a/arch/arm64/boot/dts/qcom/milos-fairphone-fp6.dts b/arch/= arm64/boot/dts/qcom/milos-fairphone-fp6.dts >> >> index 7629ceddde2a..98b3fc654206 100644 >> >> --- a/arch/arm64/boot/dts/qcom/milos-fairphone-fp6.dts >> >> +++ b/arch/arm64/boot/dts/qcom/milos-fairphone-fp6.dts >> >> @@ -32,6 +32,16 @@ gpio-keys { >> >> pinctrl-0 =3D <&volume_up_default>; >> >> pinctrl-names =3D "default"; >> >> =20 >> >> + /* Powered by the always-on vreg_l10b */ >> >> + event-hall-sensor { >> >> + label =3D "Hall Effect Sensor"; >> >> + gpios =3D <&tlmm 70 GPIO_ACTIVE_LOW>; >> >> + linux,input-type =3D ; >> >> + linux,code =3D ; >> >> + linux,can-disable; >> >> + wakeup-source; >> >> + }; >> >> + >> >> key-volume-up { >> >> label =3D "Volume Up"; >> >> gpios =3D <&pm7550_gpios 6 GPIO_ACTIVE_LOW>; >> >> @@ -316,6 +326,8 @@ vreg_l10b: ldo10 { >> >> regulator-min-microvolt =3D <1800000>; >> >> regulator-max-microvolt =3D <1800000>; >> >> regulator-initial-mode =3D ; >> >> + /* Hall sensor VDD */ >> >> + regulator-always-on; >> >> }; >> >> =20 >> >> vreg_l11b: ldo11 { >> >>=20 >> >> --- >> >> base-commit: ef1c7b875741bef0ff37ae8ab8a9aaf407dc141c >> >> change-id: 20260116-fp6-hall-sensor-1049f2f872ac >> >>=20 >> >> Best regards, >>=20