From patchwork Tue Aug 17 07:27:03 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jacopo Mondi X-Patchwork-Id: 498353 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI, SPF_HELO_NONE, SPF_PASS, URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id D9E6EC4338F for ; Tue, 17 Aug 2021 07:26:45 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id BFF3B60F41 for ; Tue, 17 Aug 2021 07:26:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238439AbhHQH1Q (ORCPT ); Tue, 17 Aug 2021 03:27:16 -0400 Received: from relay9-d.mail.gandi.net ([217.70.183.199]:37543 "EHLO relay9-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238067AbhHQH1O (ORCPT ); Tue, 17 Aug 2021 03:27:14 -0400 Received: (Authenticated sender: jacopo@jmondi.org) by relay9-d.mail.gandi.net (Postfix) with ESMTPSA id 4CC3AFF80A; Tue, 17 Aug 2021 07:26:37 +0000 (UTC) From: Jacopo Mondi To: Mauro Carvalho Chehab , Kieran Bingham , Laurent Pinchart , =?utf-8?q?Niklas_S=C3=B6?= =?utf-8?q?derlund?= Cc: Jacopo Mondi , Hans Verkuil , Sakari Ailus , Manivannan Sadhasivam , Thomas NIZAN , linux-renesas-soc@vger.kernel.org, linux-media@vger.kernel.org Subject: [RFC 5/5] arm64: dts: GMSL: Adapt to the use max9271 driver Date: Tue, 17 Aug 2021 09:27:03 +0200 Message-Id: <20210817072703.1167-6-jacopo+renesas@jmondi.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210817072703.1167-1-jacopo+renesas@jmondi.org> References: <20210817072703.1167-1-jacopo+renesas@jmondi.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org Currently the whole RDACM20/21 camera module was handled by a single driver and a single device node entry was required in DTS to describe it. With the introduction of the max9271 subdevice driver the camera module is now described by two device nodes, one for the serializer and one for the image sensor connected to it. Signed-off-by: Jacopo Mondi --- arch/arm64/boot/dts/renesas/gmsl-cameras.dtsi | 34 ++++++++++++++++--- .../arm64/boot/dts/renesas/r8a77970-eagle.dts | 6 ++-- 2 files changed, 32 insertions(+), 8 deletions(-) diff --git a/arch/arm64/boot/dts/renesas/gmsl-cameras.dtsi b/arch/arm64/boot/dts/renesas/gmsl-cameras.dtsi index d45f072f8cdf..7d8f2e979134 100644 --- a/arch/arm64/boot/dts/renesas/gmsl-cameras.dtsi +++ b/arch/arm64/boot/dts/renesas/gmsl-cameras.dtsi @@ -131,13 +131,37 @@ i2c-mux { i2c@0 { status = "okay"; - camera@51 { - compatible = GMSL_CAMERA_MODEL; - reg = <0x51>, <0x61>; + serializer@51 { + compatible = "maxim,max9271"; + reg = <0x51>; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + fakra_con0: endpoint { + remote-endpoint = <&max9286_in0>; + }; + }; + + port@1 { + reg = <1>; + sensor_in0: endpoint { + remote-endpoint = <&sensor_out0>; + }; + }; + }; + }; + + camera@61 { + compatible = "imi,rdacm20"; + reg = <0x61>; port { - fakra_con0: endpoint { - remote-endpoint = <&max9286_in0>; + sensor_out0: endpoint { + remote-endpoint = <&sensor_in0>; }; }; }; diff --git a/arch/arm64/boot/dts/renesas/r8a77970-eagle.dts b/arch/arm64/boot/dts/renesas/r8a77970-eagle.dts index 96c807bf868c..22bb04914159 100644 --- a/arch/arm64/boot/dts/renesas/r8a77970-eagle.dts +++ b/arch/arm64/boot/dts/renesas/r8a77970-eagle.dts @@ -388,7 +388,7 @@ &scif0 { /* FAKRA Overlay */ #define GMSL_CAMERA_RDACM20 #define GMSL_CAMERA_0 -#define GMSL_CAMERA_1 -#define GMSL_CAMERA_2 -#define GMSL_CAMERA_3 +//#define GMSL_CAMERA_1 +//#define GMSL_CAMERA_2 +//#define GMSL_CAMERA_3 #include "gmsl-cameras.dtsi"