Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp375003pxv; Thu, 22 Jul 2021 02:16:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyrKOiXt/gX3/rABg6uVedkKEMFYJWiaZSk3MnJspZUGNKxGNPSlohtHgAc+3aAw8UNPJR/ X-Received: by 2002:aa7:c6d4:: with SMTP id b20mr52424453eds.204.1626945398025; Thu, 22 Jul 2021 02:16:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626945398; cv=none; d=google.com; s=arc-20160816; b=bFzMtVWY2I7BJYoY2FTXJyts7/egyj8IDMvoTTFczA3HZyZVu1T5cYgmVP2nZCp66D bwXYLFIPUAREkk1szyHG3zmBRz3Yf9UYk3bKC8CwTvJ15Mq926P+Tt4j3r0dI/VPBh93 iyT21Vpbk1FebqD8UOzFT0rWaZs770IvH3NMcb3f5JTKYwh7pxd3xhleuQB35n5SAo2N pQH4wEf/GPgJXnbQSYPAJ6bRJWurxp0Lb0rIf8DvYULmllSNJCDkP5YavFBSoDpHgVeH aLvgV61Dc0yOKpHNSKTEuuZl2w7Vk2et9xyulAfMnpbaYtTOnuUrBHqnXC9jET6Y4iVt MH1Q== 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 :references:in-reply-to:message-id:date:subject:cc:to:from; bh=J158Jxw+nCTAXstRYsHD6lyVJDde+iusuXo7xjH8s1M=; b=vxrbESqUSWtqVC6Sm7Z+1+PgMv2OtzTauicxma3OTQEibMrWPZXQT6ddw5Z4lfHqxY ZON6wQlxc6LmUROSHL+i7bNNWnL2LvpBFMa9tBpjbL8yg6+o2zeg2Pr4TfrKASV9117e 2idhkVb8sIT1u3pgmDupD8vlKwFV/EUiETmS1Iog1R3VDttI/moGAKGIYqP10OIZjFd2 1MVgRPc3HVMaE4dhfEPIMhpe3FVTHP7U7BzkUW5aGpjKrWB7UMZxngXXI6gW3dD/Dipb yIg3iAyA9LSKCJKDFGm6n1HsWed53lqW2fuNdZuuGowOTeXARBi6DQlxHB1lZS308RGU Dgpw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l12si30446738ejk.477.2021.07.22.02.16.14; Thu, 22 Jul 2021 02:16:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231522AbhGVIb6 (ORCPT + 99 others); Thu, 22 Jul 2021 04:31:58 -0400 Received: from relay12.mail.gandi.net ([217.70.178.232]:55103 "EHLO relay12.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231429AbhGVIbf (ORCPT ); Thu, 22 Jul 2021 04:31:35 -0400 Received: (Authenticated sender: jacopo@jmondi.org) by relay12.mail.gandi.net (Postfix) with ESMTPSA id 717D5200006; Thu, 22 Jul 2021 09:12:07 +0000 (UTC) From: Jacopo Mondi To: Geert Uytterhoeven , Magnus Damm , Laurent Pinchart , Kieran Bingham , =?UTF-8?q?Niklas=20S=C3=B6derlund?= , Rob Herring Cc: Jacopo Mondi , linux-renesas-soc@vger.kernel.org, linux-media@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v6 6/8] arm64: dts: renesas: eagle: Enable MAX9286 Date: Thu, 22 Jul 2021 11:12:37 +0200 Message-Id: <20210722091239.26451-7-jacopo+renesas@jmondi.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210722091239.26451-1-jacopo+renesas@jmondi.org> References: <20210722091239.26451-1-jacopo+renesas@jmondi.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Kieran Bingham Enable the MAX9286 GMSL deserializer on the Eagle-V3M board. Connected cameras should be defined in a device-tree overlay or included after these definitions. Reviewed-by: Laurent Pinchart Signed-off-by: Kieran Bingham Signed-off-by: Jacopo Mondi --- .../arm64/boot/dts/renesas/r8a77970-eagle.dts | 104 ++++++++++++++++++ 1 file changed, 104 insertions(+) diff --git a/arch/arm64/boot/dts/renesas/r8a77970-eagle.dts b/arch/arm64/boot/dts/renesas/r8a77970-eagle.dts index 874a7fc2730b..05e66467bc0a 100644 --- a/arch/arm64/boot/dts/renesas/r8a77970-eagle.dts +++ b/arch/arm64/boot/dts/renesas/r8a77970-eagle.dts @@ -6,6 +6,8 @@ * Copyright (C) 2017 Cogent Embedded, Inc. */ +#include + /dts-v1/; #include "r8a77970.dtsi" @@ -188,6 +190,11 @@ i2c0_pins: i2c0 { function = "i2c0"; }; + i2c3_pins: i2c3 { + groups = "i2c3_a"; + function = "i2c3"; + }; + qspi0_pins: qspi0 { groups = "qspi0_ctrl", "qspi0_data4"; function = "qspi0"; @@ -266,6 +273,103 @@ &rwdt { status = "okay"; }; +&csi40 { + status = "okay"; + + ports { + port@0 { + csi40_in: endpoint { + clock-lanes = <0>; + data-lanes = <1 2 3 4>; + remote-endpoint = <&max9286_out0>; + }; + }; + }; +}; + +&i2c3 { + pinctrl-0 = <&i2c3_pins>; + pinctrl-names = "default"; + + status = "okay"; + clock-frequency = <400000>; + + gmsl0: gmsl-deserializer@48 { + compatible = "maxim,max9286"; + reg = <0x48>; + + maxim,gpio-poc = <0 GPIO_ACTIVE_LOW>; + enable-gpios = <&io_expander 0 GPIO_ACTIVE_HIGH>; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + }; + + port@1 { + reg = <1>; + }; + + port@2 { + reg = <2>; + }; + + port@3 { + reg = <3>; + }; + + port@4 { + reg = <4>; + max9286_out0: endpoint { + clock-lanes = <0>; + data-lanes = <1 2 3 4>; + remote-endpoint = <&csi40_in>; + }; + }; + }; + + i2c-mux { + #address-cells = <1>; + #size-cells = <0>; + + i2c@0 { + #address-cells = <1>; + #size-cells = <0>; + reg = <0>; + + status = "disabled"; + }; + + i2c@1 { + #address-cells = <1>; + #size-cells = <0>; + reg = <1>; + + status = "disabled"; + }; + + i2c@2 { + #address-cells = <1>; + #size-cells = <0>; + reg = <2>; + + status = "disabled"; + }; + + i2c@3 { + #address-cells = <1>; + #size-cells = <0>; + reg = <3>; + + status = "disabled"; + }; + }; + }; +}; + &scif0 { pinctrl-0 = <&scif0_pins>; pinctrl-names = "default"; -- 2.32.0