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 {