2022-01-22 00:44:37

by Martin Kepplinger

[permalink] [raw]
Subject: [PATCH v1 0/2] arm64: dts: imx8mq: fix mipi_csi port numbering

hi Shawn and all interested,

This is a fix for an embarrassing bug that slipped into commit
bcadd5f66c2a ("arm64: dts: imx8mq: add mipi csi phy and csi bridge descriptions")
and commit fed7603597fa ("arm64: dts: imx8mq-librem5: describe the selfie cam").

When preparing the imx8mq.dtsi description I only tested with port@1
being connected to the csi bridge, but what I sent said port@0.

I have this on my list for a while and want to sort this out now. I'm
sorry for the inconvenience. Until now imx8mq-librem5 is the only user
(maybe because of this :).

thank you,

martin


Martin Kepplinger (2):
arm64: dts: imx8mq: fix mipi_csi bidirectional port numbers
arm64: dts: imx8mq-librem5: fix mipi_csi1 port number to sensor

arch/arm64/boot/dts/freescale/imx8mq-librem5.dtsi | 4 ++--
arch/arm64/boot/dts/freescale/imx8mq.dtsi | 8 ++++----
2 files changed, 6 insertions(+), 6 deletions(-)

--
2.30.2


2022-01-22 00:44:42

by Martin Kepplinger

[permalink] [raw]
Subject: [PATCH v1 2/2] arm64: dts: imx8mq-librem5: fix mipi_csi1 port number to sensor

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 <[email protected]>
---
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 = "okay";

ports {
- port@1 {
- reg = <1>;
+ port@0 {
+ reg = <0>;

mipi1_sensor_ep: endpoint {
remote-endpoint = <&camera1_ep>;
--
2.30.2

2022-01-31 23:09:31

by Shawn Guo

[permalink] [raw]
Subject: Re: [PATCH v1 0/2] arm64: dts: imx8mq: fix mipi_csi port numbering

On Fri, Jan 21, 2022 at 10:33:24AM +0100, Martin Kepplinger wrote:
> hi Shawn and all interested,
>
> This is a fix for an embarrassing bug that slipped into commit
> bcadd5f66c2a ("arm64: dts: imx8mq: add mipi csi phy and csi bridge descriptions")
> and commit fed7603597fa ("arm64: dts: imx8mq-librem5: describe the selfie cam").
>
> When preparing the imx8mq.dtsi description I only tested with port@1
> being connected to the csi bridge, but what I sent said port@0.
>
> I have this on my list for a while and want to sort this out now. I'm
> sorry for the inconvenience. Until now imx8mq-librem5 is the only user
> (maybe because of this :).
>
> thank you,
>
> martin
>
>
> Martin Kepplinger (2):
> arm64: dts: imx8mq: fix mipi_csi bidirectional port numbers
> arm64: dts: imx8mq-librem5: fix mipi_csi1 port number to sensor

Applied both, thanks!