From patchwork Tue Nov 7 15:50:40 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hugo Villeneuve X-Patchwork-Id: 13449074 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 5AF73C4332F for ; Tue, 7 Nov 2023 15:51:17 +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:Subject:MIME-Version:Message-Id:Date:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=Ht1z1xTfNjYRb57MjlAdCuSk3vQP28YY8pzMj8ej3/k=; b=BxNfxGVPfNpWCc Q/5Dhs8XXfvnqO04j9rpAtvI9ivqYvJEFM92xf6HVJhSlPoyuBYrgnfwHwLqKOWphuat0S8Ea3aID EsDUjzvy0XxKLNRqw0GoXujl4Vw860tPVr6irEgNXBc071iPkS1lPhmFc1M8DSyQFa8yr5bttD3Az houwz+pzNftLqqYT5TlnsSWWbV0H8A61aT85Grj+dDO1wIqbLE+XPJAY42WnzxJox925JL760+hW9 WCz67K8VufSvDH6xOeN2K6lvr5KcOXfRxu6hOMfhI4PM1zz0PShNypyivrSC3cYZTFZTVkLLqq1fS uZBTZBhphQu8nLWMiPAA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1r0OLt-001tzw-33; Tue, 07 Nov 2023 15:50:53 +0000 Received: from mail.hugovil.com ([162.243.120.170]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1r0OLq-001tyD-2W for linux-arm-kernel@lists.infradead.org; Tue, 07 Nov 2023 15:50:52 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=hugovil.com ; s=x; h=Subject:Content-Transfer-Encoding:MIME-Version:Message-Id:Date:Cc:To :From:subject:date:message-id:reply-to; bh=r0TYUpnREGJ0KanYJfwzlHomepGsTlvaq5o9zs4sWSs=; b=vdwCz6yQyVDp/gzLzzMkGyqrBP FXNkjbLi1mhe3jlBKl24nPernItP1XoDYFZIIwicL1eL5IBUF/nkDS2YFX9OxzFnHa5HO5Q8m/Mf7 j8Wdf9LV24O7zAtE0zWgNCPsoUZWfjCXfsQdSE5v3TzCRql+QZHtUTFoMhcvEaqBmJMs=; Received: from modemcable168.174-80-70.mc.videotron.ca ([70.80.174.168]:41044 helo=pettiford.lan) by mail.hugovil.com with esmtpa (Exim 4.92) (envelope-from ) id 1r0OLi-0007bH-VP; Tue, 07 Nov 2023 10:50:43 -0500 From: Hugo Villeneuve To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team Cc: hugo@hugovil.com, Hugo Villeneuve , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Date: Tue, 7 Nov 2023 10:50:40 -0500 Message-Id: <20231107155040.1644169-1-hugo@hugovil.com> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 X-SA-Exim-Connect-IP: 70.80.174.168 X-SA-Exim-Mail-From: hugo@hugovil.com Subject: [PATCH v2] arm64: dts: imx8mn-var-som-symphony: add vcc supply for PCA9534 X-SA-Exim-Version: 4.2.1 (built Wed, 08 May 2019 21:11:16 +0000) X-SA-Exim-Scanned: Yes (on mail.hugovil.com) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231107_075050_906065_72136F98 X-CRM114-Status: GOOD ( 11.97 ) 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: Hugo Villeneuve The following warning is shown when probing device: pca953x 1-0020: supply vcc not found, using dummy regulator Define a new fixed 3.3v regulator for carrier board peripherals, enabled by mosfet switch Q2 after the SOM_3V3 supply rises (no software control). Add this new regulator as vcc supply to the PCA9534 to silence the warning. Signed-off-by: Hugo Villeneuve --- Changes for V2: - add peripherals regulator and update commit message for Q2 mosfet. .../boot/dts/freescale/imx8mn-var-som-symphony.dts | 10 ++++++++++ 1 file changed, 10 insertions(+) base-commit: be3ca57cfb777ad820c6659d52e60bbdd36bf5ff diff --git a/arch/arm64/boot/dts/freescale/imx8mn-var-som-symphony.dts b/arch/arm64/boot/dts/freescale/imx8mn-var-som-symphony.dts index a7a57442cb81..a6b94d1957c9 100644 --- a/arch/arm64/boot/dts/freescale/imx8mn-var-som-symphony.dts +++ b/arch/arm64/boot/dts/freescale/imx8mn-var-som-symphony.dts @@ -57,6 +57,15 @@ led { linux,default-trigger = "heartbeat"; }; }; + + /* Peripherals supply, enabled by Q2 after SOM_3V3 rises. */ + reg_per_3v3: regulator-peripheral-3v3 { + compatible = "regulator-fixed"; + regulator-name = "per_3v3"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + regulator-always-on; + }; }; ðphy { @@ -79,6 +88,7 @@ pca9534: gpio@20 { interrupts = <7 IRQ_TYPE_EDGE_FALLING>; #gpio-cells = <2>; wakeup-source; + vcc-supply = <®_per_3v3>; /* USB 3.0 OTG (usbotg1) / SATA port switch, set to USB 3.0 */ usb3-sata-sel-hog {