From patchwork Wed Nov 1 10:46:11 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kieran Bingham X-Patchwork-Id: 160511 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:abcd:0:b0:403:3b70:6f57 with SMTP id f13csp322585vqx; Wed, 1 Nov 2023 03:47:02 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFhjeNevDbqbOnNOrG0869d3m6ooticNoepH1bAIaGjkYq1cnXT1jbuuc2NT9UMqx4AJA5b X-Received: by 2002:a17:90a:2a86:b0:27d:4b20:3604 with SMTP id j6-20020a17090a2a8600b0027d4b203604mr10599033pjd.27.1698835621824; Wed, 01 Nov 2023 03:47:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698835621; cv=none; d=google.com; s=arc-20160816; b=tBgleEEgtkHoAtQsIRYkIOQ4OC4ChXtalERaBk/7PYupf8c2MHpffyn8bFQcsDgdNi kgnsBjL8/xGs7iyxaDzqc9aTC4HmTx5IIV7ZULsodvhN+dnlE4fuyRIVdA455D5dyyDz 32g3ZVdlfeSQCtOjmMo4EoYs3FhR6mR47gp7L+DUIjub8bwCWXqaAAijVDMFG+bibb6c tUU5CyivS356SosoEkjCzhM4g6SC6S5fAk20OUUUr9mbqQ18tSMbfPHhcSXJFTmzkG7U uWSivQkShyfzB/bZiESwo7Hn57/nYZWIHsn3rESuah0IVVDHPA3Vaw7AZwvN6uw44Ow5 x5Dg== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=pbm09xhVAla3SgdPz5h+KCLo4FoC+sr06Ff6dMMFp30=; fh=OnNBaTfXQKBQBDvsUIQzn+RU7kgLz9hnLLTPvaMhE7I=; b=YPCK3/boCLeReyg+qYIxxHLG7WskpnOcepsD+hy9ey40WZU6wo1YabY5Y7u4cGU/vc HESKhSeUUd0NQJuU9BcPJPP9ZuUoUmDLmR8mcGqsN0AUcjfv4HdjUmYWpw6OCydMFDGR kdMWYz1d5492I/7n9Fa06BD4qsh5krwhQL4DVz6oTyO7II3x0Cf1ZFSJAWYXAuIAkKTl JCn/yOcTFnnvWao2eMRdm9AzlZfRdRvXANbWwxazc4gQdRGxbIjHIVcMo86ZpCT3q14F kbe6E9QoxIT+mdxDiCJd0mbknr2eSZuEXeQOU2bfWt0lee4ekWjljRUSJHN1EEQkCnWm pL/A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=dEbcSwm7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id h1-20020a17090aea8100b0027cf6bb27dfsi583566pjz.39.2023.11.01.03.47.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Nov 2023 03:47:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=dEbcSwm7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 406EC805FB91; Wed, 1 Nov 2023 03:46:56 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230337AbjKAKqa (ORCPT + 35 others); Wed, 1 Nov 2023 06:46:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39824 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229800AbjKAKq2 (ORCPT ); Wed, 1 Nov 2023 06:46:28 -0400 Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [IPv6:2001:4b98:dc2:55:216:3eff:fef7:d647]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 63945F3; Wed, 1 Nov 2023 03:46:21 -0700 (PDT) Received: from Monstersaurus.local (aztw-30-b2-v4wan-166917-cust845.vm26.cable.virginm.net [82.37.23.78]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 82AF4AE; Wed, 1 Nov 2023 11:46:02 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1698835562; bh=x8bS3rNNLOykwqAZYHNIdSHJMf/DDPOXu+i6Qmi0T0w=; h=From:To:Cc:Subject:Date:From; b=dEbcSwm77UIpNGSOh1w53lQXyqjNqNRFGNQwHcQZcpPUCuqf9eZuoBOV0+8b9c3Du uYu5n3XeM2i3do0840cAf5cYKDxNNjwnsM/QuxTCr8Lpf/vu6G72hjBpdM8Y8EAKtV UQThGmTDaGUC8xVCNuFA7BpIJBUTBoYWMmLVBwRE= From: Kieran Bingham To: devicetree@vger.kernel.org Cc: Kieran Bingham , Marco Felsch , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , linux-arm-kernel@lists.infradead.org (moderated list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE), linux-kernel@vger.kernel.org (open list) Subject: [PATCH v2] arm64: dts: freescale: debix-som-a-bmb-08: Add CSI Power Regulators Date: Wed, 1 Nov 2023 10:46:11 +0000 Message-Id: <20231101104614.2209986-1-kieran.bingham@ideasonboard.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, 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 agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Wed, 01 Nov 2023 03:46:57 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1781358260941847536 X-GMAIL-MSGID: 1781358260941847536 Provide the 1.8 and 3.3 volt regulators that are utilised on the Debix SOM BMB-08 base board. Facilitate this by also supplying the pin control used to enable the regulators on the second MIPI CSI port. Reviewed-by: Marco Felsch Signed-off-by: Kieran Bingham --- v2: - Remove _SW post fixes from regulators. .../freescale/imx8mp-debix-som-a-bmb-08.dts | 56 +++++++++++++++++++ 1 file changed, 56 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8mp-debix-som-a-bmb-08.dts b/arch/arm64/boot/dts/freescale/imx8mp-debix-som-a-bmb-08.dts index 0b0c95432bdc..386177c66c6d 100644 --- a/arch/arm64/boot/dts/freescale/imx8mp-debix-som-a-bmb-08.dts +++ b/arch/arm64/boot/dts/freescale/imx8mp-debix-som-a-bmb-08.dts @@ -63,6 +63,50 @@ regulator-som-vdd3v3 { regulator-always-on; }; + reg_csi1_1v8: regulator-csi1-vdd1v8 { + compatible = "regulator-fixed"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + regulator-name = "CSI1_VDD1V8"; + gpio = <&expander0 13 GPIO_ACTIVE_HIGH>; + vin-supply = <®_baseboard_vdd3v3>; + enable-active-high; + }; + + reg_csi1_3v3: regulator-csi1-vdd3v3 { + compatible = "regulator-fixed"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + regulator-name = "CSI1_VDD3V3"; + gpio = <&expander0 14 GPIO_ACTIVE_HIGH>; + enable-active-high; + vin-supply = <®_vdd5v0>; + }; + + reg_csi2_1v8: regulator-csi2-vdd1v8 { + compatible = "regulator-fixed"; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_reg_csi2_1v8>; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + regulator-name = "CSI2_VDD1V8"; + gpio = <&gpio3 21 GPIO_ACTIVE_HIGH>; + enable-active-high; + vin-supply = <®_baseboard_vdd3v3>; + }; + + reg_csi2_3v3: regulator-csi2-vdd3v3 { + compatible = "regulator-fixed"; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_reg_csi2_3v3>; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + regulator-name = "CSI2_VDD3V3"; + gpio = <&gpio4 25 GPIO_ACTIVE_HIGH>; + enable-active-high; + vin-supply = <®_vdd5v0>; + }; + regulator-vbus-usb20 { compatible = "regulator-fixed"; regulator-min-microvolt = <5000000>; @@ -413,6 +457,18 @@ MX8MP_IOMUXC_GPIO1_IO03__GPIO1_IO03 0x41 >; }; + pinctrl_reg_csi2_1v8: regcsi21v8grp { + fsl,pins = < + MX8MP_IOMUXC_SAI5_RXD0__GPIO3_IO21 0x19 + >; + }; + + pinctrl_reg_csi2_3v3: regcsi23v3grp { + fsl,pins = < + MX8MP_IOMUXC_SAI2_TXC__GPIO4_IO25 0x19 + >; + }; + pinctrl_uart2: uart2grp { fsl,pins = < MX8MP_IOMUXC_UART2_RXD__UART2_DCE_RX 0x14f