From nobody Tue Jun 30 12:35:14 2026 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id D481CC433FE for ; Fri, 21 Jan 2022 09:34:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1379762AbiAUJeo (ORCPT ); Fri, 21 Jan 2022 04:34:44 -0500 Received: from comms.puri.sm ([159.203.221.185]:56224 "EHLO comms.puri.sm" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1379757AbiAUJem (ORCPT ); Fri, 21 Jan 2022 04:34:42 -0500 Received: from localhost (localhost [127.0.0.1]) by comms.puri.sm (Postfix) with ESMTP id 992BCE007A; Fri, 21 Jan 2022 01:34:11 -0800 (PST) Received: from comms.puri.sm ([127.0.0.1]) by localhost (comms.puri.sm [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id wYRX_LIbK8PC; Fri, 21 Jan 2022 01:34:11 -0800 (PST) From: Martin Kepplinger To: robh@kernel.org, shawnguo@kernel.org Cc: kernel@pengutronix.de, linux-imx@nxp.com, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, phone-devel@vger.kernel.org, linux-kernel@vger.kernel.org, Martin Kepplinger Subject: [PATCH v1 1/2] arm64: dts: imx8mq: fix mipi_csi bidirectional port numbers Date: Fri, 21 Jan 2022 10:33:25 +0100 Message-Id: <20220121093326.2388251-2-martin.kepplinger@puri.sm> In-Reply-To: <20220121093326.2388251-1-martin.kepplinger@puri.sm> References: <20220121093326.2388251-1-martin.kepplinger@puri.sm> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" The port numbers for the imx8mq mipi csi controller are wrong and the mipi driver can't find any media devices as port@1 is connected to the CSI bridge, not port@0. And port@0 is connected to the source - the sensor. Fix this. Fixes: bcadd5f66c2a ("arm64: dts: imx8mq: add mipi csi phy and csi bridge d= escriptions") Signed-off-by: Martin Kepplinger --- arch/arm64/boot/dts/freescale/imx8mq.dtsi | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/arm64/boot/dts/freescale/imx8mq.dtsi b/arch/arm64/boot/dt= s/freescale/imx8mq.dtsi index 2df2510d0118..bb68c94c2fc9 100644 --- a/arch/arm64/boot/dts/freescale/imx8mq.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8mq.dtsi @@ -1151,8 +1151,8 @@ ports { #address-cells =3D <1>; #size-cells =3D <0>; =20 - port@0 { - reg =3D <0>; + port@1 { + reg =3D <1>; =20 csi1_mipi_ep: endpoint { remote-endpoint =3D <&csi1_ep>; @@ -1203,8 +1203,8 @@ ports { #address-cells =3D <1>; #size-cells =3D <0>; =20 - port@0 { - reg =3D <0>; + port@1 { + reg =3D <1>; =20 csi2_mipi_ep: endpoint { remote-endpoint =3D <&csi2_ep>; --=20 2.30.2 From nobody Tue Jun 30 12:35:14 2026 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 26D5CC4332F for ; Fri, 21 Jan 2022 09:34:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1379777AbiAUJeq (ORCPT ); Fri, 21 Jan 2022 04:34:46 -0500 Received: from comms.puri.sm ([159.203.221.185]:56234 "EHLO comms.puri.sm" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1379766AbiAUJeo (ORCPT ); Fri, 21 Jan 2022 04:34:44 -0500 Received: from localhost (localhost [127.0.0.1]) by comms.puri.sm (Postfix) with ESMTP id C8F4BE0098; Fri, 21 Jan 2022 01:34:14 -0800 (PST) Received: from comms.puri.sm ([127.0.0.1]) by localhost (comms.puri.sm [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 9fyX1SIeGlv0; Fri, 21 Jan 2022 01:34:14 -0800 (PST) From: Martin Kepplinger To: robh@kernel.org, shawnguo@kernel.org Cc: kernel@pengutronix.de, linux-imx@nxp.com, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, phone-devel@vger.kernel.org, linux-kernel@vger.kernel.org, Martin Kepplinger Subject: [PATCH v1 2/2] arm64: dts: imx8mq-librem5: fix mipi_csi1 port number to sensor Date: Fri, 21 Jan 2022 10:33:26 +0100 Message-Id: <20220121093326.2388251-3-martin.kepplinger@puri.sm> In-Reply-To: <20220121093326.2388251-1-martin.kepplinger@puri.sm> References: <20220121093326.2388251-1-martin.kepplinger@puri.sm> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" Since the previous commit fixed a hardware description bug for imx8mq, we need to fix up all DT users like this. The mipi_csi port@0 is connected to the sensor, not port@1. Fixes: fed7603597fa ("arm64: dts: imx8mq-librem5: describe the selfie cam") Signed-off-by: Martin Kepplinger --- arch/arm64/boot/dts/freescale/imx8mq-librem5.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm64/boot/dts/freescale/imx8mq-librem5.dtsi b/arch/arm64= /boot/dts/freescale/imx8mq-librem5.dtsi index f3e3418f7edc..2d4a472af6a9 100644 --- a/arch/arm64/boot/dts/freescale/imx8mq-librem5.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8mq-librem5.dtsi @@ -1115,8 +1115,8 @@ &mipi_csi1 { status =3D "okay"; =20 ports { - port@1 { - reg =3D <1>; + port@0 { + reg =3D <0>; =20 mipi1_sensor_ep: endpoint { remote-endpoint =3D <&camera1_ep>; --=20 2.30.2