From patchwork Sat Oct 21 00:52:47 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kieran Bingham X-Patchwork-Id: 156379 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:ce89:0:b0:403:3b70:6f57 with SMTP id p9csp57886vqx; Fri, 20 Oct 2023 17:53:42 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFhfgycmCY7HLF/kOeHjdwKr2lIvr4hc+Y6kA6RtlYcFhm4oHHQ84k+MJExpbf3Sb73cIuB X-Received: by 2002:a05:6870:1315:b0:1e9:dd69:2fbf with SMTP id 21-20020a056870131500b001e9dd692fbfmr3347069oab.48.1697849622436; Fri, 20 Oct 2023 17:53:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697849622; cv=none; d=google.com; s=arc-20160816; b=XjKOGKOL91Jkq69MrSHGmotCwnbgsF+hUgn8OfA4oo9YKlcju8XLrYVbXoQm6Ig8CV fBXitzEhZUqroZVuyjsaGhY4Pel3+3VkAbcLZtnOyh9ZEEWJOQ+tmIfNjIF1RnL25PmH vyveWR/fJMwxKHYiUH2x9Abyu02yOTGfR4yvl+jT69wdD4KwyFBC2WrkVd6Z5eMzZwHE JpJnpI7xeQfJONse3xEEao7RIczjmNKOmW3zI8P+bwY9gu5tgbrvgRyZWPIzF4Rznca8 Tikxo2D/X88Hj4XNX8aYCSiyEOBJLKUrSMpQ1qttmqrX++xYn4s3CMQ+iPtKu/Y+69S4 GUjA== 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=EDvAGYBivvoZyfihBM3yBZ3J+bkHXfr+HU1LRm/RxJg=; fh=CjGHHJS7Xwta/v8XfBHl3aBiTLARQUdtL2FB9VDlKCA=; b=q3eCKgNRPsbm/Syz4QJSGK/fPWz1TUJM9IRWJjiTP5W++DcBri+p2aXa+EzS+iSUnY 1odyzihvWw5FYs2rgxiyQSiBCDnqbPVEK/HFY3xet0y1hJvpHHnbWZxCAQ8JuEdHBwkg BT8mY9FX40+UVJ98YhAV3GlTLzzI+MzgsMUJNMy6HzcMqFiVUVGUsWMKnojaYq2ctWaJ VUGeZooZlZjw0an9mYOLdrC4urPURrH3Bv/cAsRRo4QkQh/41iy9xTl0S2DgFBEqgpkQ ioZB6FLu0z7X/TJtMIVUXDmb+Qpajk0jroI9+zUWzKfLkVWBAZFkIvjAGedmgzdLQbE5 zjOw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=KpVtTrBQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id b1-20020a655cc1000000b0056a36ac322fsi2655582pgt.514.2023.10.20.17.53.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 Oct 2023 17:53:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=KpVtTrBQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 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 groat.vger.email (Postfix) with ESMTP id 92A1F83383F9; Fri, 20 Oct 2023 17:53:26 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229765AbjJUAxB (ORCPT + 26 others); Fri, 20 Oct 2023 20:53:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53512 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229518AbjJUAxB (ORCPT ); Fri, 20 Oct 2023 20:53:01 -0400 Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 50D3A13E; Fri, 20 Oct 2023 17:52:56 -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 9F7AD3D9; Sat, 21 Oct 2023 02:52:45 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1697849566; bh=lryYCPXwnY6lJv+ykkheug+vJfZinI6XiTaoqh0vci4=; h=From:To:Cc:Subject:Date:From; b=KpVtTrBQyslzfU0zg8LtSb/TliuNVSn4/r11IqLgVq2ncyaCeuzdLn6MHZavVbotr NNTpHpdYvwEpnJlxoFnfPMs1okgXfPhJuQQdjC9lxxRQjcs16jz76yzoZT2md8SDsM S4yUiDamxHmLkt4ga7TP3rDtGfPKTZyF68kPTNdk= From: Kieran Bingham To: devicetree@vger.kernel.org Cc: Kieran Bingham , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , Marco Felsch , linux-arm-kernel@lists.infradead.org (moderated list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE), linux-kernel@vger.kernel.org (open list) Subject: [PATCH] arm64: dts: freescale: debix-som-a-bmb-08: Add CSI Power Regulators Date: Sat, 21 Oct 2023 01:52:47 +0100 Message-Id: <20231021005250.3498664-1-kieran.bingham@ideasonboard.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.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 (groat.vger.email [0.0.0.0]); Fri, 20 Oct 2023 17:53:26 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1780324365527967300 X-GMAIL-MSGID: 1780324365527967300 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. Signed-off-by: Kieran Bingham Reviewed-by: Marco Felsch --- .../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..e058402f1f2e 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_SW"; + 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_SW"; + 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_SW"; + 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_SW"; + 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