Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp3008002rdh; Mon, 27 Nov 2023 04:41:38 -0800 (PST) X-Google-Smtp-Source: AGHT+IFtiwViYIA8lyPLcEZo2x520+y0R184gTmSRlEG5qvBBKRwVoKoJILtVOH4599TVJsXPKTe X-Received: by 2002:a05:6a20:d48e:b0:18a:db41:bd0a with SMTP id im14-20020a056a20d48e00b0018adb41bd0amr16349823pzb.39.1701088898464; Mon, 27 Nov 2023 04:41:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701088898; cv=none; d=google.com; s=arc-20160816; b=LY/yhK+IjZSAgqSJ1oEm7zDu6ABrzPQaNQhQlt3h+AKg0uCM00gBcu6XYz3YBm2f0r VjoOZgDOFHvhsnEYUdWvW4Di5RM8alMjMAOUzMCObjGaIT9P7oDBZ+doV9YVOb8o8QT5 UhoipY/vqIo2d9cBhieiZf848mrLQ1qi60Gz2s2P8FpvvyDi5cX9i5lPfULhhJahYCiz NoSjzLywg4O3nCh9J8YcxgUboYqvnITJyIHdPy/fo+gStk+WPAlqUo/uqCLiIUe/C1bI 1n2aZmy5Es9DSd+5r/HmOX1w2uc9vjgZxqa2WIve9U+mLWDhxv+2wU/iJiec7x05Wl4B x9Xw== 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 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id mn1-20020a17090b188100b00274d6373fe1si9843941pjb.120.2023.11.27.04.41.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Nov 2023 04:41:38 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; 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 23.128.96.33 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 6BCF180784D5; Mon, 27 Nov 2023 04:41:16 -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 Content-Transfer-Encoding: 8bit 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:16 -0800 (PST) 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 -- 2.34.1