From patchwork Sun Jan 29 17:01:36 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laurent Pinchart X-Patchwork-Id: 13120190 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 43A8FC61D97 for ; Sun, 29 Jan 2023 17:02:55 +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:MIME-Version:Message-Id:Date:Subject: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=tYFatps3lpxIXAHYBIfFBmn4fYso8TpFKu4mLQ93uHA=; b=kTn1ckSNyhDOb7 KtW+g86J77we8bM6JOvlNS2lzLLYhZmOCYkN8kbx5uh5Q1TUOvHCpI5gM//CA2XynjW9LaJ3YvdMn tSt/81x2dvHvLPXnvMRvxZua66bUQWybzzYYXHPVYS0CHXX7KGkddnP656AoHdLyPsiCSPndCg+jy xSe/Vx9RHGXgJ76Rsyo4TlRnKqnoch9YJqtgqEbY5QwVMBl6xN+TInqHYghz6p9qACb059EsRh2ny Vd+rcIiwWXaDTwmK+KYz8/67mUosppG65/e00jx/lgilrwzznJqV2TU0L7MsVx9s5VBqGq7G+9xlR RLLWbVvq9EAqQHB6mQOg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pMB3t-001kNo-8h; Sun, 29 Jan 2023 17:01:49 +0000 Received: from perceval.ideasonboard.com ([213.167.242.64]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pMB3q-001kNN-Ay for linux-arm-kernel@lists.infradead.org; Sun, 29 Jan 2023 17:01:47 +0000 Received: from pendragon.ideasonboard.com (213-243-189-158.bb.dnainternet.fi [213.243.189.158]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 6E0A7327; Sun, 29 Jan 2023 18:01:39 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1675011699; bh=Nr7wHX8nkfFO/cHU7o4Unq5fd3RGLbVdlBjyzJZIqFQ=; h=From:To:Cc:Subject:Date:From; b=VW8+2GFQ7OCi0EJbysSk6lnVg+520z6qE/q7PLlgZV6S2gmmuCVVP8JCxJqS7Kje5 RTtpAKEFvjOMxj5zsoQCnAvOJ1Mw8HDbYnmbzCgoiqJAloynd88XEPbtnSPTfy8QDg DEYS0MBUhjVmVsJFBUlKBKnqGIPV4Xx6hizRvXDg= From: Laurent Pinchart To: linux-arm-kernel@lists.infradead.org Cc: devicetree@vger.kernel.org, linux-imx@nxp.com, kernel@pengutronix.de, Teresa Remmet , Shawn Guo , Rob Herring , Krzysztof Kozlowski Subject: [PATCH] arm64: dts: freescale: imx8mm-phyboard: Add I2C4 pinmuxing Date: Sun, 29 Jan 2023 19:01:36 +0200 Message-Id: <20230129170136.14506-1-laurent.pinchart@ideasonboard.com> X-Mailer: git-send-email 2.39.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230129_090146_542435_128A0639 X-CRM114-Status: GOOD ( 10.46 ) 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 The I2C4 bus is exposed on the camera connector. Add and select the corresponding pinmux entries and set the default frequency. The device is left disabled, to be enabled from camera overlays. Signed-off-by: Laurent Pinchart --- .../dts/freescale/imx8mm-phyboard-polis-rdk.dts | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8mm-phyboard-polis-rdk.dts b/arch/arm64/boot/dts/freescale/imx8mm-phyboard-polis-rdk.dts index 4a3df2b77b0b..17521bb911c2 100644 --- a/arch/arm64/boot/dts/freescale/imx8mm-phyboard-polis-rdk.dts +++ b/arch/arm64/boot/dts/freescale/imx8mm-phyboard-polis-rdk.dts @@ -168,6 +168,12 @@ &gpio5 { "", "ECSPI1_SS0"; }; +&i2c4 { + clock-frequency = <400000>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_i2c4>; +}; + /* PCIe */ &pcie0 { assigned-clocks = <&clk IMX8MM_CLK_PCIE1_AUX>, @@ -336,6 +342,13 @@ MX8MM_IOMUXC_SAI1_RXD6_GPIO4_IO8 0x16 >; }; + pinctrl_i2c4: i2c4grp { + fsl,pins = < + MX8MM_IOMUXC_I2C4_SCL_I2C4_SCL 0x400001c3 + MX8MM_IOMUXC_I2C4_SDA_I2C4_SDA 0x400001c3 + >; + }; + pinctrl_leds: leds1grp { fsl,pins = < MX8MM_IOMUXC_GPIO1_IO01_GPIO1_IO1 0x16