Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp2591968pxb; Mon, 19 Apr 2021 09:06:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzASyOsibdKVB3UfE/PW6/AVxTQ+G7hNb/nF9O92mGViZiOitajUDedtrNHCVQ2rhoISVFq X-Received: by 2002:a17:907:1c01:: with SMTP id nc1mr22990748ejc.283.1618848410561; Mon, 19 Apr 2021 09:06:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618848410; cv=none; d=google.com; s=arc-20160816; b=SpNt7t9jWAWjVJVaZCt9ZMYyz4Q484KYvNh8yMo1iYEQkot28bPcklWPOraVZHwV5q 6X61rdj8G5gJxlc22xRM7AiHVXGA+eHbsfXSMCK79GUAQcjvgU5df7eFr3wsUozizr+T deCTZsxfNXxlezP2Q3wij1UL48x4r0DdtMoRT+umPt1+YhJzZtX4S1yC3coBAC+OzeJL lcLNmblE8Kz6+TdtgflmV6vvxKFq1VnLHsnHR5qn4Sj8rlV/qPfuE0d6J72eRSGutDcu +mpENkS740T9dm48mfDUEqDZ2wRfNOp2EefTNsQ41kNyRIMSWTaBzc9mT9U+QiuIdktP Vupg== 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=JFCTqdIXkYq8NCAgS6SIjPTOLQeFBS+5dzOhZryAFkxmATOIj6kMj1gZ55jGIFGeHG PPYoNksWt2BmJIzKIxBWgHqF8Ymny1yX8y5ejD6aCTgdpGbY2zwMjcQ0XcaKSXfXsWFK CMk1JilEL7ucpnV9/SrcWC31+/342/zT8ZkGCor+EoMOgXLm11Jh4rjx79lvUuwSJ4Rn dkkc01z+TxTuYpCevitt4LnHZA70t8aYht6wX6d5o9H/csLc3r9kE7kbYH+svGth0dVC /7bmwssIc5Gn+Fnqt70JJ9nSuCo0FRRQH4jqP83duO2aHoP10VUkVtWillaXn+Gl01St XqYg== 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 w3si12187604eju.181.2021.04.19.09.06.27; Mon, 19 Apr 2021 09:06:50 -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 S239545AbhDSOYT (ORCPT + 99 others); Mon, 19 Apr 2021 10:24:19 -0400 Received: from relay2-d.mail.gandi.net ([217.70.183.194]:62517 "EHLO relay2-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239569AbhDSOXx (ORCPT ); Mon, 19 Apr 2021 10:23:53 -0400 X-Originating-IP: 93.34.118.233 Received: from uno.lan (93-34-118-233.ip49.fastwebnet.it [93.34.118.233]) (Authenticated sender: jacopo@jmondi.org) by relay2-d.mail.gandi.net (Postfix) with ESMTPSA id 291214000A; Mon, 19 Apr 2021 14:23:21 +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 v5 5/7] arm64: dts: renesas: eagle: Enable MAX9286 Date: Mon, 19 Apr 2021 16:23:43 +0200 Message-Id: <20210419142345.53152-6-jacopo+renesas@jmondi.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210419142345.53152-1-jacopo+renesas@jmondi.org> References: <20210419142345.53152-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