Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp734005pxb; Thu, 15 Apr 2021 05:26:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJydzHDlqI1NLZAJgb+6L/iOQkAd3TyOfT/vE2iaYQfcsFTWyvwjY0xBWmkSTgYfr8cc78Ge X-Received: by 2002:a17:902:e549:b029:e6:6b3a:49f7 with SMTP id n9-20020a170902e549b02900e66b3a49f7mr3800859plf.52.1618489616635; Thu, 15 Apr 2021 05:26:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618489616; cv=none; d=google.com; s=arc-20160816; b=YE++TvSvTObWrBW4aCEhK4oQIdHO9IxKnQUl32Kjh8p8MIMcwhOdzPgnm5JMMzQX4E uQ3iSs6ISV/PD1Xu77QtfMxgHBeq2rKD0a52NKeyREX9e7g+Q9y0z8SGGkOfZWfTzqa4 fnSNibazreKEAucpcnASNP4KL6oXTiB7NngH1di5CXtDkN1gcNyHKbOnQSuBuDQOGBxt 3jP0UyMRqr0WoSDL7Xcqg7STSD9CPfsaTTyk83emt7OiOu9Lvimk5ngnalxuDVUhL6Os Kwc06M1FCZeKK7jnI6SLONPPuYkIqFHXYeGO2Wo7sQn+Cmq1sIn8NzIS669mJTQJD+Sl WGuA== 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=/QNhJAqINbsF5Vs/UwMx+L1qdzQFNf49zdv4vuWqbWw=; b=xEQCw62JIuowF6bLpt9HZAmEbjjw9jhg4B/keJ5Ng1kmXG1gLdZOOx8MXF1vszNmKC 7B2goueQ65FitVK9Kw8zIR48lfNs0J9x90nkPZmmBy7GWE42bpBRtIGJRFfAK0yi1pV+ 1RuS8G2Kvw4IyibMOBuK0HsD9Akh95n+xBh2E2EkOFwsXxwxTxSx0ftmgBPodMWi5/Q4 c/NWx4Gkd+xEkSivVky4nDQkLReNvG3+J/JplWs2zl9j7PbBKB+M5Sw4gEO2XI6VEwXt iwWCsd3upaJ2XcuhN4hjxzOavw3FncchwGn9N/WOU9qscydlBXXclowi40Dx/f8tIzSW TKow== 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 b15si2941007pfl.74.2021.04.15.05.26.44; Thu, 15 Apr 2021 05:26:56 -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 S232836AbhDOM0R (ORCPT + 99 others); Thu, 15 Apr 2021 08:26:17 -0400 Received: from relay5-d.mail.gandi.net ([217.70.183.197]:46901 "EHLO relay5-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232849AbhDOM0E (ORCPT ); Thu, 15 Apr 2021 08:26:04 -0400 X-Originating-IP: 93.61.96.190 Received: from uno.LocalDomain (93-61-96-190.ip145.fastwebnet.it [93.61.96.190]) (Authenticated sender: jacopo@jmondi.org) by relay5-d.mail.gandi.net (Postfix) with ESMTPSA id E4B611C0008; Thu, 15 Apr 2021 12:25:38 +0000 (UTC) From: Jacopo Mondi To: Geert Uytterhoeven , Magnus Damm , Laurent Pinchart , Kieran Bingham , Rob Herring Cc: Jacopo Mondi , linux-renesas-soc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v4 5/7] arm64: dts: renesas: eagle: Enable MAX9286 Date: Thu, 15 Apr 2021 14:26:00 +0200 Message-Id: <20210415122602.87697-6-jacopo+renesas@jmondi.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210415122602.87697-1-jacopo+renesas@jmondi.org> References: <20210415122602.87697-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 | 106 ++++++++++++++++++ 1 file changed, 106 insertions(+) diff --git a/arch/arm64/boot/dts/renesas/r8a77970-eagle.dts b/arch/arm64/boot/dts/renesas/r8a77970-eagle.dts index 874a7fc2730b..ab35202857f5 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,105 @@ &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>; + + gmsl: gmsl-deserializer@48 { + compatible = "maxim,max9286"; + reg = <0x48>; + + maxim,gpio-poc = <0 GPIO_ACTIVE_LOW>; + + /* eagle-pca9654-max9286-pwdn */ + 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.31.1