From patchwork Mon Jul 17 10:00:53 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Martin Kepplinger X-Patchwork-Id: 121175 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:c923:0:b0:3e4:2afc:c1 with SMTP id j3csp1017157vqt; Mon, 17 Jul 2023 03:16:00 -0700 (PDT) X-Google-Smtp-Source: APBJJlHQsz+1sfl9xBMpJoM8K8DlDTrT2ACr7/Qahy8EN5FAf7F9fSvGvF5vaHrjoVGVBR8k5SXA X-Received: by 2002:a05:6a00:2451:b0:682:2fea:39f0 with SMTP id d17-20020a056a00245100b006822fea39f0mr16517874pfj.5.1689588959942; Mon, 17 Jul 2023 03:15:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689588959; cv=none; d=google.com; s=arc-20160816; b=G9YsHsQOtdXXPC0bgY/JLxmx9wuYx2M4oBnoR4gHyaI2RFnvyomv1mo7/BsfEek+f9 pwCbLLKCIMz031psLT4YxnlNH1PkyXCeoXLw3ss3wwIjVl7r1dXoAOykX2p3MwK6/3g0 n0c8xwsI8N9H7M3bzSzI7iqHwHsY3alXUpxIY92Ld/aZp7v2juur4ip7TOrC2xyMke5S m+2zww3zWM1JGavoSIZsODPEeBD31n8cz2z5dFdCNvO7tGBEEqoiePVEsiWWYl+SM7CX 74UNURex76UZ/Oue18XLtiTWU5/dmHLyJIb0ZSLTVsmH5hW8UJDsjZflxBg54kaYD83X /5lA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=4pUp8nMIIvrMjtV2xkEPJ5ju5FmbCt0DSYuzg4yQosI=; fh=In9ld3c/cYxMr0Coieq3a5AZHYpmDW/nNaOA+O8YzV8=; b=GV+Pm/5GnuNY70rn3W37UOlanqiztzjLoRN14po7l9/QlKUZEw5bFTXczqzur6JvFu X7UgQaV2lxjaUlb4KjNmRoKaS/3Qj1p8Tv+QwKIbpjTfmeueRdSPL1hFbb257hPA27jv gEy1kyYC91Y8p8tSGZPC7aEDuDKi8tbU2Zrdb64/q3DMDcVB3d1kbzg3elh0D9VTIahc 7xPexue1PxrGr7/Qo2iaYgaMUZaem2IHDWQJ/P2gOFCY1oxbgTRw+WicVlq0Tz126HOO acPFYICYyfAr2kEu2s76oMXDoEkemdQJzfTIkXxuI75iXyz/NOx0EOQrkatpfsKBqJYL QUpg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@posteo.de header.s=2017 header.b=EPbIRGWh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=posteo.de Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d3-20020a056a0024c300b006683174a49csi11436513pfv.198.2023.07.17.03.15.45; Mon, 17 Jul 2023 03:15:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@posteo.de header.s=2017 header.b=EPbIRGWh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=posteo.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229608AbjGQKBe (ORCPT + 99 others); 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 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1771662433125797098 X-GMAIL-MSGID: 1771662433125797098 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 = <1800000>; gpio = <&gpio1 4 GPIO_ACTIVE_HIGH>; enable-active-high; + regulator-always-on; }; reg_mic_2v4: regulator-mic-2v4 { From patchwork Mon Jul 17 10:00:54 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Martin Kepplinger X-Patchwork-Id: 121177 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:c923:0:b0:3e4:2afc:c1 with SMTP id j3csp1018039vqt; Mon, 17 Jul 2023 03:17:59 -0700 (PDT) X-Google-Smtp-Source: APBJJlF57iZ8rpMQ7Ct2HaDCyyxFkxRODHABC7iTZdFxKij9/P27ATtxyaNtppC6C31r1VRFyXk4 X-Received: by 2002:a05:6a20:72a4:b0:133:f5c1:57bb with SMTP id o36-20020a056a2072a400b00133f5c157bbmr9206273pzk.20.1689589079621; Mon, 17 Jul 2023 03:17:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689589079; cv=none; d=google.com; s=arc-20160816; b=kj1e3uECR93vUY4Mm6pEsuatiBxJ53+j6nzEATOZwc6CtULFWs/wYGkIfukx3S2QRB 9OTE1SHCiRFsgEzIpGBZGYypoYVHEz7dyK+lK/gageMFM56pyFXU02RnX1EIzblQVNgS IG8xZVxGMVZ0xKRGEHDa5TuHBI82C+M+uR9+wlrcyuxDMYbvMchdFazTQnr9HXnORpQU 7I3v+3M0Q72CkWKkWmam9lgSGhXZu/Dx1wQVKtv1WXqlNNgtqC9BkrAiBOE/cqbtLk/3 YkpTpOBo96fudACNF478iAm4Qx4h9FVUZWql+CsNdT9z+J/jj2b8cSaW+SYEwtm3Ujp5 SPeQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=ww/eq3XpqCiL1+u73C5C3aI+4lVmXl6r25W5HryRbZA=; fh=OktBKlo2Bs8hSlfhEWwpZvgVAZ12ByG+HH9KH7BD0kU=; b=fpP56Mr1BSlp9ReNHK+LaoF4VY+DsfDuT92yaMfLFNdq5PGvLvWL9+/Z4rruQGtZvs RzZsCWUd96aOTK+AzMjSr8POZIFT5mP9Reg7r1RPigZSroWMULF8X1eYNiiMc1x5e/hB 7mgL0hVLlffQ7s8O5vwSAe7S+Bmw0Ms+toZN8kWub8S/Y5xwR0Nvylv0hzG+6ag+hM0G jzYuJ9Fdn4+09MhEjLgUT1ohUxE2TGAqsjkWt+G/wsMsdpqfqcKFvcY+NwmBoeoPCtk4 HNlE5TS4MSoWWMouFUI3FvcDv/gOxXsA2clBfdvzu4MK+gZ6fqmJ7IjDqaVS77/COt6K pErg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@posteo.de header.s=2017 header.b=kbN5NJNY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=posteo.de Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q7-20020a170902a3c700b001b9d53d1e12si11202290plb.242.2023.07.17.03.17.45; Mon, 17 Jul 2023 03:17:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@posteo.de header.s=2017 header.b=kbN5NJNY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=posteo.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231378AbjGQKBs (ORCPT + 99 others); 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 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1771662559176874728 X-GMAIL-MSGID: 1771662559176874728 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/arm64/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 { }; &proximity { - proximity-near-level = <5>; + proximity-near-level = <7>; }; From patchwork Mon Jul 17 10:00:55 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Martin Kepplinger X-Patchwork-Id: 121176 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:c923:0:b0:3e4:2afc:c1 with SMTP id j3csp1017519vqt; Mon, 17 Jul 2023 03:16:51 -0700 (PDT) X-Google-Smtp-Source: APBJJlFLXlOGqU30+M1l0Lx4rVPfIBJVV1XwBWKfQUti70v+8zxovjuLcmSNjwX2KEZtPnw+pMja X-Received: by 2002:a05:6a20:12c8:b0:135:2b01:3737 with SMTP id v8-20020a056a2012c800b001352b013737mr377363pzg.38.1689589010940; Mon, 17 Jul 2023 03:16:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689589010; cv=none; d=google.com; s=arc-20160816; b=zTuwJPXZ+4VPSK/5xGd9mfJaTuc8rWqBUgbU7QkhU0erF4vmL9ShPNSLgo91L7OfCQ ITmyB1WMikJSULMmn4ReyVO7SJ0lLcKdSCRxIfugRhRrYJBb1YHoMBmkNjdfL+6RonJu YKlLFyv5cp6AvUqm2UoHGZey3WNlCHs3K+Ab7FW2sEJkIAxp8kxa4DkwJhn9Hf6mG2En wbELpi7elWipLlmmTdWJdtvqBaAZUDz9hqd/+fQ8YnRQ4qIYdypcpt3VQy6Mtt4AT/op dFJ0oOs8GQHn/rdroaMvhAw3JiFLDYyuqU8Z5H2SjHE+OOeTeQHcaxyAZyg9CVMxXnwS N+2Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=M2ROzPusSdh5clQpNg+CD6PZwGGhx+NdEPrE5pGDc9U=; fh=OktBKlo2Bs8hSlfhEWwpZvgVAZ12ByG+HH9KH7BD0kU=; b=xHsRkfYif5U/8rZnUNdGYjYEDH7m6bdqclMBUxKJyxlYfTXPjr1vz24VBPgaBb2h/f Xnu2sSPUZ20mjgykqHJkhZIf94pPSMo0Kcpn2N9QV3L/bC7L5H5mfHhqvc+29oAvRPHf /fDVLxRsfjbSXKRtQGMNT0Vu73q6vNrxZzNMdk/Re/s7ZA2prnOHBUvRAL3UIz9ESF5I qGNUA3EFE7toF+qNLfGXJHe/Bu92DPBz6WVbn75FP8vNhTZbhrkRPcFX6hyOnfFjcxiR +lZNdGTYNHtHkOZZfv3jBDxGqE4NLcb5OlHlER4v8yYC/D0aw/xk/xtKga8Y/5OJkhic F5qg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@posteo.de header.s=2017 header.b="X/psIeoY"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=posteo.de Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w67-20020a636246000000b0055fe651e9cesi3080748pgb.796.2023.07.17.03.16.37; Mon, 17 Jul 2023 03:16:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@posteo.de header.s=2017 header.b="X/psIeoY"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=posteo.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231318AbjGQKBm (ORCPT + 99 others); Mon, 17 Jul 2023 06:01:42 -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 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1771662486615658069 X-GMAIL-MSGID: 1771662486615658069 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 = <&gpio1>; interrupts = <10 IRQ_TYPE_LEVEL_LOW>; interrupt-names = "irq"; + extcon = <&usb3_phy0>; + wakeup-source; connector { compatible = "usb-c-connector"; From patchwork Mon Jul 17 10:00:56 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Martin Kepplinger X-Patchwork-Id: 121178 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:c923:0:b0:3e4:2afc:c1 with SMTP id j3csp1018514vqt; Mon, 17 Jul 2023 03:19:05 -0700 (PDT) X-Google-Smtp-Source: APBJJlGT44eRuCShKjr9tTVkF3QSt+cY/E/Arh3/fquiKXPz31gW0pv4EJ633Uzdq9/t0tJ2LRvi X-Received: by 2002:a05:6a00:849:b0:680:d00c:b164 with SMTP id q9-20020a056a00084900b00680d00cb164mr17007532pfk.34.1689589145420; Mon, 17 Jul 2023 03:19:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689589145; cv=none; d=google.com; s=arc-20160816; b=qaDoQGKoANosDBo2hP251ljeY/YfUIrikcQOOb4b52zRXuDP8RVPecMAXzXOmp7XHv aJLPeiev567IQOKWamYm7dP/0+9ItLNRBSqpOi+3twhw1D2InbL4McULFDyrmcymoPII sAMR/wWHJdO+GGx2UonkU/OUg1/Lyi7bb0VpJOyTEN3Y8s18OLi8haQhMxoPK8fwVo0W InPhUljGu8AaAsREJAwdphG61Xgwnu3jWTsJezCkf2ePbDQgomfEoVdPvqMNgKl70OQe IXHEtKaJHUtJeH/l/X9tSxXVShJCAqE4DRzNvl249Xje5TUW14xQz9ZAW8BKi5hjFceE SxvQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=R2C17or+6o37c2S3sapz4CXmdC0RHHCHKyaDqaccNBE=; fh=OktBKlo2Bs8hSlfhEWwpZvgVAZ12ByG+HH9KH7BD0kU=; b=hdHAUnrvE5kRx6Jd+ZFfiBXaTJRORU1Comf/Cb1H2F28HK8ODOtL828Ej8jXphQurL KtlJgKGp6lBbBOcDV0erAbxelacztWBcS7Se42wXnT11FjAaOnkPmIeGTAuNSkbPjG9y UsoGoSD30/t57owZLBLTtsECQf72yRTe1LhEX0TB/OrvAxBMhUGfsbzRAR8Xno9PcYba 4rpYr1H4fa6x2HiHhq7BQCwKzBdzSPP3qWcNObXFgwGFgLeNef1smpJwMbEhRDK1DxXL XhedIBN8LncUBSyuRZCg5cMXYvFLm4u4rzOqUXtYzg9ZTCwgsYKl6Hni1u/I8UfiWqjs oRmQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@posteo.de header.s=2017 header.b=bKx9bU8y; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=posteo.de Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w67-20020a636246000000b0055fe651e9cesi3080748pgb.796.2023.07.17.03.18.53; Mon, 17 Jul 2023 03:19:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@posteo.de header.s=2017 header.b=bKx9bU8y; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=posteo.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231382AbjGQKBv (ORCPT + 99 others); Mon, 17 Jul 2023 06:01:51 -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 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1771662627656290114 X-GMAIL-MSGID: 1771662627656290114 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 = <4>; vmmc-supply = <®_wifi_3v3>; mmc-pwrseq = <&usdhc2_pwrseq>; - post-power-on-delay-ms = <1000>; + post-power-on-delay-ms = <20>; cd-gpios = <&gpio2 12 GPIO_ACTIVE_LOW>; max-frequency = <100000000>; disable-wp;