From patchwork Thu Mar 9 20:46:04 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Martin Kepplinger X-Patchwork-Id: 13168316 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 DA278C64EC4 for ; Thu, 9 Mar 2023 20:48:34 +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:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=tnFeAGT4Mt7XTkOpI5kEkjo87hcC75mEskMceMCZJBU=; b=eIEau2YnKbcUk/ PGjBaGR9r+cjVE85hll4LngckJrPdT2Hrrgyqut6jLxGktKNdNE8JY6PdNIJxPHrAKSxq8mBmZzj6 R3x45yAX6WXY8ufsGKkyPEXAlIUEHq52U7hBq6bN9Kvz00UptW7C6dZZHQL9uwNt5Ck4SSqNvxvRb Inygzfe1TxMHoXxjKQ513YxevczMkeNJHVWH8EY2ofDLCShcqmQET0gRklGFalTJyA4mio9Kbezdl aU90/Qx7x0fLsGz5sqdSyk55xaTexB9oUGpJZopiceiTniZgI0XKJl/r5z+khVy/d72D3atzu7hEV BfuET7KSBi/ZL8eABIdw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1paNAv-00Boqy-RB; Thu, 09 Mar 2023 20:47:46 +0000 Received: from comms.puri.sm ([159.203.221.185]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1paNAE-00BoV2-QI for linux-arm-kernel@lists.infradead.org; Thu, 09 Mar 2023 20:47:07 +0000 Received: from localhost (localhost [127.0.0.1]) by comms.puri.sm (Postfix) with ESMTP id 7EE07E9BDA; Thu, 9 Mar 2023 12:47:02 -0800 (PST) Received: from comms.puri.sm ([127.0.0.1]) by localhost (comms.puri.sm [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id OXiuXTj4O0Qt; Thu, 9 Mar 2023 12:47:01 -0800 (PST) From: Martin Kepplinger DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=puri.sm; s=comms; t=1678394821; bh=vHmsWeyl0kk2Tm1nDNXHTPcJ1b7xdBe80joYV/Ib/Zs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=UJ4eOZ2V9C2WmLGKozPHozgoQscGsXK7q0usQIEmlEkW+vfEegnSOaVDY+trBLeKK 113dUaudetAtjq2ofYkvSMpZQ5eVd1Cfhuyb/XKqza9JBCNnAQxN7IKqr3fSDmbGK0 UjyB0X7X9jKMvFPiQ8fOpak3g6Ae+JkryT5NVZnHZXJipkGxTzbJmP/wJqGkp4z7za tXgpBn1+3q04u2xCgflnN3GLu64BUDpVfFRrT5eO30G0ZLMiYwWO4RhoGfOgJPiLZP oQFp4TK/y+4xhKWRqu3empK/kfTao77xv5DSrNn3YuBTKvSaj2FBBwm45nh2Lfgsmu 7+2JnZ+Hy71aQ== To: robh@kernel.org, krzysztof.kozlowski@linaro.org, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com Cc: kernel@puri.sm, linux-imx@nxp.com, devicetree@vger.kernel.org, phone-devel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Sebastian Krzyszkowiak , Martin Kepplinger Subject: [PATCH v1 10/14] arm64: dts: imx8mq-librem5: Adjust proximity sensor's near levels Date: Thu, 9 Mar 2023 21:46:04 +0100 Message-Id: <20230309204608.237605-11-martin.kepplinger@puri.sm> In-Reply-To: <20230309204608.237605-1-martin.kepplinger@puri.sm> References: <20230309204608.237605-1-martin.kepplinger@puri.sm> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230309_124702_943870_44205A0E X-CRM114-Status: UNSURE ( 9.69 ) 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 From: Sebastian Krzyszkowiak Based on tests with my left ear (which appears to require lower levels than the right one), one Birch, one Dogwood and three Evergreens. It seems that the sensor reacts very weakly to hair, so let's make the thresholds rather generous to compensate. Signed-off-by: Sebastian Krzyszkowiak Signed-off-by: Martin Kepplinger --- arch/arm64/boot/dts/freescale/imx8mq-librem5-r2.dts | 2 +- arch/arm64/boot/dts/freescale/imx8mq-librem5-r3.dtsi | 2 +- arch/arm64/boot/dts/freescale/imx8mq-librem5-r4.dts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/arm64/boot/dts/freescale/imx8mq-librem5-r2.dts b/arch/arm64/boot/dts/freescale/imx8mq-librem5-r2.dts index 4f69eb32b1c90..2b3d437a642a9 100644 --- a/arch/arm64/boot/dts/freescale/imx8mq-librem5-r2.dts +++ b/arch/arm64/boot/dts/freescale/imx8mq-librem5-r2.dts @@ -23,5 +23,5 @@ &bq25895 { }; &proximity { - proximity-near-level = <120>; + proximity-near-level = <50>; }; diff --git a/arch/arm64/boot/dts/freescale/imx8mq-librem5-r3.dtsi b/arch/arm64/boot/dts/freescale/imx8mq-librem5-r3.dtsi index db81ed699de75..7fd0176e4bd30 100644 --- a/arch/arm64/boot/dts/freescale/imx8mq-librem5-r3.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8mq-librem5-r3.dtsi @@ -45,5 +45,5 @@ &magnetometer { }; &proximity { - proximity-near-level = <25>; + proximity-near-level = <10>; }; diff --git a/arch/arm64/boot/dts/freescale/imx8mq-librem5-r4.dts b/arch/arm64/boot/dts/freescale/imx8mq-librem5-r4.dts index 1056b7981bdbd..97577c0a77158 100644 --- a/arch/arm64/boot/dts/freescale/imx8mq-librem5-r4.dts +++ b/arch/arm64/boot/dts/freescale/imx8mq-librem5-r4.dts @@ -23,5 +23,5 @@ &lcd_panel { }; &proximity { - proximity-near-level = <10>; + proximity-near-level = <5>; };