From patchwork Mon Nov 27 12:40:34 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kieran Bingham X-Patchwork-Id: 170118 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:ce62:0:b0:403:3b70:6f57 with SMTP id o2csp3071846vqx; Mon, 27 Nov 2023 04:41:34 -0800 (PST) X-Google-Smtp-Source: AGHT+IEoJ9tLibdshWbAfRh3FCFQSyvFdbCJiahJCQaQl8BKLbpbMSOIIRXJz8eVcBnlJylA5ypw X-Received: by 2002:a17:903:454:b0:1ce:65e9:29bb with SMTP id iw20-20020a170903045400b001ce65e929bbmr13753334plb.54.1701088894027; Mon, 27 Nov 2023 04:41:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701088894; cv=none; d=google.com; s=arc-20160816; b=Yizhf4H7efUwZdLhyh2P5E6v2N5flIYZaT51aQLDv85WvE9NHyODGr7KiViFO7+COT 3l0tm9AoP9FNIryTE9CixerQ91IjP6KZUJmoqWWb4wNgMmlhZ7Jmtl1WlPhdYEa58CXX eP4ZVs2iiytQhlPYZ8dw3SNFjiEfEXLnYv4ydI6IzvfBlioWgDnRvDFrq/mPVQ+0aHCA 3MDc8KmF+91rxefxrBnSZndkWBQBteM7hEhssJuRcrVAbjuZSRq5Ta5xmPMgMoCqCgt0 HM5TiZhniILhbloK9Vo3SdJo0+17Xm+oEdOdsVf0ma/in8TAk+AwndhROaOdLS1m2syw SoIw== 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=GpXHI8UNTEQLgvlomHMEtuJrr2OQPYSNavWsKtjqwEQ=; fh=MmFM4aDAAEjCPNe1N6dYTrRQFo7rlpBK8wcUmCb/a9Y=; b=fZNDscBIr6a+vV5mgs63FisOT1qAHHs3BgACezl20QbpCv9D3t3eZYfvDvwxo17HNs 8lBxi/vjH/SLCSKk70scdTRODrI4Bm6Lkl9F//5hPKkBxamX+VNxS1Beg5B2d9JCrCW3 2ECHG4yz/5zrdSYD8P0v/zR1UnIWCYt8AL4Ns2Uv/IJ5hjURNHQmxzTuZECL/jk5kv2q zLe+66yA5vpzuclK57Tkct/xNbEEeRMTXa30IEpQrTwLfMIL7xQ4WLYuFQJ4Qo1ecOSk pW2hpjcLDOZR5RpOQaq7AcYq7qIZlBcoN0MCM0nMqraqEbaT1H+hXEuf4TwUbR27ryT9 CNdA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b="mF/mwgpw"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id l10-20020a170903120a00b001cc31c32e0fsi9931740plh.91.2023.11.27.04.41.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Nov 2023 04:41:34 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b="mF/mwgpw"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 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 lipwig.vger.email (Postfix) with ESMTP id 303C180784FB; Mon, 27 Nov 2023 04:41:05 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233193AbjK0Mkz (ORCPT + 99 others); Mon, 27 Nov 2023 07:40:55 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55388 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233337AbjK0Mkl (ORCPT ); Mon, 27 Nov 2023 07:40:41 -0500 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 59644135; Mon, 27 Nov 2023 04:40:47 -0800 (PST) Received: from Monstersaurus.tail69b4.ts.net (aztw-30-b2-v4wan-166917-cust845.vm26.cable.virginm.net [82.37.23.78]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id CCF5E512; Mon, 27 Nov 2023 13:40:08 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1701088809; bh=QUtBMdPlaSkAZ3NJBmC6cLmtMUhs14o2DySLPBMR408=; h=From:To:Cc:Subject:Date:From; b=mF/mwgpwXxAGcco1PY37ys6Rvt8V6EQvs95CJh00EWFsKXVM3TxwJ4Zdx9hERUDkZ MCFVfLVp+iDkj5bIwvlLiZVg+jkrj2muNqZ42Zx0YY+3S0TeSfA2qijqcLLP5YR5CQ 2rNZR4rSLP5yRqWLW7jv8kh98MDhaBs442uJaj30= 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 , Tomi Valkeinen , linux-arm-kernel@lists.infradead.org (moderated list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE), linux-kernel@vger.kernel.org (open list) Subject: [PATCH v3] arm64: dts: freescale: debix-som-a-bmb-08: Add CSI Power Regulators Date: Mon, 27 Nov 2023 12:40:34 +0000 Message-Id: <20231127124037.888597-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 lipwig.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 (lipwig.vger.email [0.0.0.0]); Mon, 27 Nov 2023 04:41:05 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1781358260941847536 X-GMAIL-MSGID: 1783720988300090424 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 --- v3: - Fix line ordering within reg_csi1_1v8 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 ee43d0fa6675..08202c364a25 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 @@ -77,6 +77,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>; + enable-active-high; + vin-supply = <®_baseboard_vdd3v3>; + }; + + 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>; @@ -454,6 +498,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