Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp3439283pxf; Mon, 15 Mar 2021 09:32:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx0Q+ZgBHJiVihIZMQTgX3dEfliJPQax1OA97yR7eIPXPFToFdVxDChigGf1+mkBWdrym+o X-Received: by 2002:a05:6402:375:: with SMTP id s21mr30865723edw.287.1615825948160; Mon, 15 Mar 2021 09:32:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1615825948; cv=none; d=google.com; s=arc-20160816; b=Iys/pbzZubzMd0E91dVaTV1dCW0vF7RcxS9NqU+LYLCkR3HTZN/l4Zt7ATp08Pnj8i kUWKYhkJHtgfrD3IR5q4ozL9bFlRvhxXozCC1RThP6DdrR9FzDQaCsGaMyI3F7tcboyw tCwqFNJP8LXd1qHCRpwwbiPxfiQs9WPczpJ/6Q7eqETpkVkYSMB8u96TcJnnayOs+Osj 0TiV1Fjqt85x9TAwZ/zrtSjOYAvET/Htws9afzrNtNxJnOKHYxSiG2EChMU96mmxzq3v ONlYiqFDGfD4TT7r2gdkICFXHaRsRMuLEkiT/Q9tE4Q3AiUurodcTkLHrAYSUJm9lFbr 856w== 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=YK6q5PVWXoCY0GzkSFB6KN2NkurIs8TIgZ4k+IPLetA=; b=JAwjf/4IVrUbIqAc4NnIP8pXuAz5M1dweKLkXctf7QiGTpF2u8ZWkcxbs/2CxXde96 Ef0UA6xLHIEfK3uK3UP+YwElreWheJaSVQiLiTzBv8rsbD+kYRMIP/uP/g2HvvF8dm0v oqOyf0euyOp7SaxnKmNK8jPmPx7hx1eqU4qo9B7J2ocZR44MlOxkOvBY6fUATXKd83k8 /6Ngvkp1TbOBocxA/oitPx0KdRtYHw+FCeWRJ8Rw7EqFW/YPI6fosNiv+N7cCXlsZmO8 zbRjTfsBpnb+rlV7+7e8gew4YrYcJP3nYd6OaeatYIcs0hSHjNmpUMVk5YbMpJk2FIKq 6D5Q== 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 u4si11223573ejy.135.2021.03.15.09.32.04; Mon, 15 Mar 2021 09:32:28 -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 S232001AbhCOQbD (ORCPT + 99 others); Mon, 15 Mar 2021 12:31:03 -0400 Received: from relay1-d.mail.gandi.net ([217.70.183.193]:30893 "EHLO relay1-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231926AbhCOQat (ORCPT ); Mon, 15 Mar 2021 12:30:49 -0400 X-Originating-IP: 79.22.58.175 Received: from uno.homenet.telecomitalia.it (host-79-22-58-175.retail.telecomitalia.it [79.22.58.175]) (Authenticated sender: jacopo@jmondi.org) by relay1-d.mail.gandi.net (Postfix) with ESMTPSA id 44B6124000F; Mon, 15 Mar 2021 16:30:46 +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 v2 2/4] arm64: dts: renesas: eagle: Enable MAX9286 Date: Mon, 15 Mar 2021 17:30:26 +0100 Message-Id: <20210315163028.173148-3-jacopo+renesas@jmondi.org> X-Mailer: git-send-email 2.30.0 In-Reply-To: <20210315163028.173148-1-jacopo+renesas@jmondi.org> References: <20210315163028.173148-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. Signed-off-by: Kieran Bingham Signed-off-by: Jacopo Mondi --- .../arm64/boot/dts/renesas/r8a77970-eagle.dts | 132 ++++++++++++++++++ 1 file changed, 132 insertions(+) diff --git a/arch/arm64/boot/dts/renesas/r8a77970-eagle.dts b/arch/arm64/boot/dts/renesas/r8a77970-eagle.dts index 874a7fc2730b..d2f63cccc238 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,131 @@ &rwdt { status = "okay"; }; +&csi40 { + status = "okay"; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <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 { + gpio-controller; + #gpio-cells = <2>; + + compatible = "maxim,max9286"; + reg = <0x48>; + + /* eagle-pca9654-max9286-pwdn */ + enable-gpios = <&io_expander 0 GPIO_ACTIVE_HIGH>; + + /* + * Workaround: Hog the CAMVDD line high as we can't establish a + * regulator-fixed on the gpio_chip exposed by &gmsl due to + * circular-dependency issues. + */ + camvdd-en-hog { + gpio-hog; + gpios = <0 0>; + output-low; + line-name = "CAMVDD_EN"; + }; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + max9286_in0: endpoint { + }; + }; + + port@1 { + reg = <1>; + max9286_in1: endpoint { + }; + }; + + port@2 { + reg = <2>; + max9286_in2: endpoint { + }; + }; + + port@3 { + reg = <3>; + max9286_in3: endpoint { + }; + }; + + 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.30.0