From nobody Sun Feb 8 12:19:36 2026 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3F126C001B0 for ; Mon, 17 Jul 2023 10:01:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231365AbjGQKBe (ORCPT ); Mon, 17 Jul 2023 06:01:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57028 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230509AbjGQKBZ (ORCPT ); Mon, 17 Jul 2023 06:01:25 -0400 Received: from mout02.posteo.de (mout02.posteo.de [185.67.36.66]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9D2791A5 for ; Mon, 17 Jul 2023 03:01:15 -0700 (PDT) Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 3E5DF240107 for ; Mon, 17 Jul 2023 12:01:14 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.de; s=2017; t=1689588074; bh=3F+1udF6cjNhT/0WRGByrpnsyaf45dnt9+MaMVwaEgU=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version: Content-Transfer-Encoding:From; b=EPbIRGWh8+pcM9nIU0hdQibPwJWDcnFebDji0XcHvARZcd0LAJQTIkB4O3oU+yvGp KL7JurYfBWQSZcExrK2GhAzfuDYVReF3c2m+yARXpP2OIRIQ4iALqGpwvb/eTUQKxb aFspqAD3b/QAhDu9bLAS+tg/DY+4Tgzd0sVn+/WvNBOMDXPuFWvsXMBd7re5QgDJY1 /9DMp+gu7deYGVlbScFYPC6brBXN8O1mQbk0tKdtcAKPO+0Pm+73OPFQGgfR5+lcr+ skwnSUJ+9/pN8ss1eYR7QCVvfe2fRo//WtGph+fzJxp/xcgIZi36l3xQw4OwJlMsIf RjmpmzEuY049w== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4R4HfJ43KCz6twc; Mon, 17 Jul 2023 12:01:12 +0200 (CEST) From: Martin Kepplinger To: robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, shawnguo@kernel.org, festevam@gmail.com Cc: kernel@pengutronix.de, linux-imx@nxp.com, kernel@puri.sm, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, phone-devel@vger.kernel.org, Martin Kepplinger Subject: [PATCH v1 1/4] arm64: dts: imx8mq-librem5: set audio-1v8 always-on Date: Mon, 17 Jul 2023 10:00:53 +0000 Message-Id: <20230717100056.4047292-2-martink@posteo.de> In-Reply-To: <20230717100056.4047292-1-martink@posteo.de> References: <20230717100056.4047292-1-martink@posteo.de> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" From: Martin Kepplinger Unfortunately the codec can't be switched off on it's own. It would ground the whole bus it's connected to (because of it's built-in diodes to VDD on i2c pins), making all the other devices on the same bus inaccessible: [ 0.237154] lm3692x 2-0036: Cannot read/clear faults: -11 [ 0.242628] lm3692x 2-0036: Fail writing initialization values [ 0.286462] [drm:drm_bridge_attach] *ERROR* failed to attach bridge /soc= @0/bus@30800000/mipi-dsi@30a00000 to encoder None-34: -517 Work around this hardware limitation by keeping audio-1v8 enabled. Signed-off-by: Martin Kepplinger --- arch/arm64/boot/dts/freescale/imx8mq-librem5.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/boot/dts/freescale/imx8mq-librem5.dtsi b/arch/arm64= /boot/dts/freescale/imx8mq-librem5.dtsi index 38732579d13e9..ab47bdc35cebd 100644 --- a/arch/arm64/boot/dts/freescale/imx8mq-librem5.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8mq-librem5.dtsi @@ -91,6 +91,7 @@ reg_aud_1v8: regulator-audio-1v8 { regulator-max-microvolt =3D <1800000>; gpio =3D <&gpio1 4 GPIO_ACTIVE_HIGH>; enable-active-high; + regulator-always-on; }; =20 reg_mic_2v4: regulator-mic-2v4 { --=20 2.30.2 From nobody Sun Feb 8 12:19:36 2026 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4B4D5C001B0 for ; Mon, 17 Jul 2023 10:01:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229955AbjGQKBs (ORCPT ); Mon, 17 Jul 2023 06:01:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57050 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231319AbjGQKB0 (ORCPT ); Mon, 17 Jul 2023 06:01:26 -0400 Received: from mout02.posteo.de (mout02.posteo.de [185.67.36.66]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 367D710DC for ; Mon, 17 Jul 2023 03:01:20 -0700 (PDT) Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id E01E4240106 for ; Mon, 17 Jul 2023 12:01:15 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.de; s=2017; t=1689588075; bh=12nb+rFwdgv0Wijomngor2Tznv5lsVGYBIEwRfZVf6g=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version: Content-Transfer-Encoding:From; b=kbN5NJNYKj4q3ag033VW0ZLtLzeYFBVtBlGvaDaZqyLZ6Wk+sEr04TaJwUNfZ1xhB hyFI9zj/MIUYMjZuX8VHfPWTHWexZzXiD/QgjcVhkEW4K4b7LSfVlvsTFiCyLGDRFP KOCJCNhx2eIk3x7Ffqfu12shZnAVbOAXsCpZaLN4KjpWePVNutFG+l//VYh/dCfIRZ QUspObvuJkHO653AVN58TpJYFlzgH6NBXQlbgmZowaU95HZpBDXoLgwIEWyCfjOg+h jJvoB/1SmaKl/k2QRALLM9ApmwfZaeXoOzG0gJFu3FTs01n+Ky2DP4J/UNdYbrQ43+ R+cIAmxnUS0HQ== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4R4HfK6ZRHz6tww; Mon, 17 Jul 2023 12:01:13 +0200 (CEST) From: Martin Kepplinger To: robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, shawnguo@kernel.org, festevam@gmail.com Cc: kernel@pengutronix.de, linux-imx@nxp.com, kernel@puri.sm, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, phone-devel@vger.kernel.org, Sebastian Krzyszkowiak , Martin Kepplinger Subject: [PATCH v1 2/4] arm64: dts: imx8mq-librem5-r4: Bump up proximity sensor's near level Date: Mon, 17 Jul 2023 10:00:54 +0000 Message-Id: <20230717100056.4047292-3-martink@posteo.de> In-Reply-To: <20230717100056.4047292-1-martink@posteo.de> References: <20230717100056.4047292-1-martink@posteo.de> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" From: Sebastian Krzyszkowiak There is at least one Evergreen phone out there that reports levels of 5-6 at rest: https://gitlab.gnome.org/GNOME/calls/-/issues/560 Signed-off-by: Sebastian Krzyszkowiak Signed-off-by: Martin Kepplinger --- arch/arm64/boot/dts/freescale/imx8mq-librem5-r4.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/freescale/imx8mq-librem5-r4.dts b/arch/arm= 64/boot/dts/freescale/imx8mq-librem5-r4.dts index 97577c0a77158..33f398b48119b 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 { }; =20 &proximity { - proximity-near-level =3D <5>; + proximity-near-level =3D <7>; }; --=20 2.30.2 From nobody Sun Feb 8 12:19:36 2026 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 99FB0EB64DC for ; Mon, 17 Jul 2023 10:01:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231374AbjGQKBn (ORCPT ); Mon, 17 Jul 2023 06:01:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57044 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231315AbjGQKB0 (ORCPT ); Mon, 17 Jul 2023 06:01:26 -0400 Received: from mout01.posteo.de (mout01.posteo.de [185.67.36.65]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C4FF710D3 for ; Mon, 17 Jul 2023 03:01:18 -0700 (PDT) Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 725E724002A for ; Mon, 17 Jul 2023 12:01:17 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.de; s=2017; t=1689588077; bh=vr3gsYDTkmHcdQXLBVcauJWuxFs06mWWDQ0zCFL/fb8=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version: Content-Transfer-Encoding:From; b=X/psIeoY2sKAcd0D0HavJ9jhbn0vNYmssPg8wbbZMf9ALiTIhvnLEv4PLYhfTM1Q2 kchZ3z4wcEujm1DBxhDfOohPuRJEZGls0QAZFnko5AInONWsdewhfLamQMW2hv3Uk2 TeDFsGwQyTxfZDLMC81NG02nfAIupV7dadcg0ktAa4M+kfV1PzaHkumgW8qjwDuroQ 5zXrCv4ugdZLsXCf3GGc9I3IDBrJVKHGfeMGllP1oYNpJPMeKZCLPFgGUYKqDwCVCk T5LsV8B97DjSPDehGEh4NfP2cnAhhLdbPDA6O2toEZMW2swRUoJtWlv4y9DdmQUx5F Xy6Mfcps3Kt6w== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4R4HfM2t6kz6tvw; Mon, 17 Jul 2023 12:01:15 +0200 (CEST) From: Martin Kepplinger To: robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, shawnguo@kernel.org, festevam@gmail.com Cc: kernel@pengutronix.de, linux-imx@nxp.com, kernel@puri.sm, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, phone-devel@vger.kernel.org, Sebastian Krzyszkowiak , Martin Kepplinger Subject: [PATCH v1 3/4] arm64: dts: imx8mq-librem5: Mark tps65982 as wakeup source Date: Mon, 17 Jul 2023 10:00:55 +0000 Message-Id: <20230717100056.4047292-4-martink@posteo.de> In-Reply-To: <20230717100056.4047292-1-martink@posteo.de> References: <20230717100056.4047292-1-martink@posteo.de> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" From: Sebastian Krzyszkowiak This allows to wake up from system suspend on USB-C plug/unplug. Signed-off-by: Sebastian Krzyszkowiak Signed-off-by: Martin Kepplinger --- arch/arm64/boot/dts/freescale/imx8mq-librem5.dtsi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8mq-librem5.dtsi b/arch/arm64= /boot/dts/freescale/imx8mq-librem5.dtsi index ab47bdc35cebd..3f251910b3949 100644 --- a/arch/arm64/boot/dts/freescale/imx8mq-librem5.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8mq-librem5.dtsi @@ -796,6 +796,8 @@ typec_pd: usb-pd@3f { interrupt-parent =3D <&gpio1>; interrupts =3D <10 IRQ_TYPE_LEVEL_LOW>; interrupt-names =3D "irq"; + extcon =3D <&usb3_phy0>; + wakeup-source; =20 connector { compatible =3D "usb-c-connector"; --=20 2.30.2 From nobody Sun Feb 8 12:19:36 2026 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 86F44EB64DC for ; Mon, 17 Jul 2023 10:01:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231384AbjGQKBw (ORCPT ); Mon, 17 Jul 2023 06:01:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57010 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229489AbjGQKB1 (ORCPT ); Mon, 17 Jul 2023 06:01:27 -0400 Received: from mout02.posteo.de (mout02.posteo.de [185.67.36.66]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B999B19C for ; Mon, 17 Jul 2023 03:01:22 -0700 (PDT) Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 64C4E240104 for ; Mon, 17 Jul 2023 12:01:19 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.de; s=2017; t=1689588079; bh=T9HVwP+zel2OrTfBZon8ZQ3bTW0P6nUFFyAK92/ZpSM=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version: Content-Transfer-Encoding:From; b=bKx9bU8yECOmaTFy5+usgdOCQoq0QRtIFy157sc9djgGgSim5HlmLVDFqEwbPrWc/ e99o6Esvdw0rN+s/ejw8NtTSlJNlXlr0skhnmwEY/TxkMlea9yq4JU0jamfK/QDX5d EtitHzdE0b+4LErWz9TYNCqYsH+Nuq960pLfubmxaI78PAxDWVQA5OE39N8xVBIHlp wFdQEWV692HsTtzlsO6emduhvaQyiDgbjnsYjgzzGl1G83aNdVt2fgxmm9ZoQT/5SM Jk14TqF+9KY0fByIkWANUg8DxqW48v2+CjHW3AAkGqLxiKxeBs1W3/t5MbMjUrOUBi jkM02M92o6WfQ== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4R4HfN6Hqpz6twY; Mon, 17 Jul 2023 12:01:16 +0200 (CEST) From: Martin Kepplinger To: robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, shawnguo@kernel.org, festevam@gmail.com Cc: kernel@pengutronix.de, linux-imx@nxp.com, kernel@puri.sm, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, phone-devel@vger.kernel.org, Sebastian Krzyszkowiak , Martin Kepplinger Subject: [PATCH v1 4/4] arm64: dts: imx8mq-librem5: Reduce usdhc2's post-power-on-delay-ms to 20ms Date: Mon, 17 Jul 2023 10:00:56 +0000 Message-Id: <20230717100056.4047292-5-martink@posteo.de> In-Reply-To: <20230717100056.4047292-1-martink@posteo.de> References: <20230717100056.4047292-1-martink@posteo.de> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" From: Sebastian Krzyszkowiak This appears to be enough for both Redpine and SparkLAN cards. Waiting for too long makes us waste time in resume from system suspend, so let's keep it as short as possible. Signed-off-by: Sebastian Krzyszkowiak Signed-off-by: Martin Kepplinger --- arch/arm64/boot/dts/freescale/imx8mq-librem5.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/freescale/imx8mq-librem5.dtsi b/arch/arm64= /boot/dts/freescale/imx8mq-librem5.dtsi index 3f251910b3949..e329c29f3f1c6 100644 --- a/arch/arm64/boot/dts/freescale/imx8mq-librem5.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8mq-librem5.dtsi @@ -1394,7 +1394,7 @@ &usdhc2 { bus-width =3D <4>; vmmc-supply =3D <®_wifi_3v3>; mmc-pwrseq =3D <&usdhc2_pwrseq>; - post-power-on-delay-ms =3D <1000>; + post-power-on-delay-ms =3D <20>; cd-gpios =3D <&gpio2 12 GPIO_ACTIVE_LOW>; max-frequency =3D <100000000>; disable-wp; --=20 2.30.2