Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp5112509pxb; Mon, 15 Feb 2021 09:46:25 -0800 (PST) X-Google-Smtp-Source: ABdhPJzf+h0bBwiio5h675lIteZkAfzCwlfV5M7QKi6gIi0+7Sj4GIrPTWB7UdJ96JKZHRxTySRJ X-Received: by 2002:a05:6402:1c0f:: with SMTP id ck15mr16210917edb.16.1613411185403; Mon, 15 Feb 2021 09:46:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613411185; cv=none; d=google.com; s=arc-20160816; b=gJXp9w/vojzkMHQ9BtASR5GQ4CLN4pX62nym2iH4RKL/4y1GG0HwjuzYkb/bw+1ZNj Xgor4NsGgbed5XUpgaNpy0T9s8tBw5HgvVY56kbAFKAKIzPhA7B28IQZcUviP1kRjBKA Ideu47D1VYk/w6MwlmNdm/DhASvF1RZlL9sEYpmjT3qd9mLaAAbDBifO27djOvBtOJUn JhkfY1EQh06AhidB2UbR1gV33U14f3A3w17X4ECwbNeGnbqaeICagjQKevR0tLlhPbcb 3/lYBWjPiU5t8YSGPPoPscwX075+A/VvNpzUBBAaJ1Pu3CfKmyIAlzEUrM5T9n0onwP9 sapQ== 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=y/jcd3WBxNBxaiXNKqWBJUtKkDr9ZZIpYUJ7/jecoys=; b=g/I2uz1MQoNARjf6R7nqezrEtv5RlHTZpXmmLNbfoE8OIYNrw+xU3RBO84ZQvnQRck yjG3MR6oFt2wwIUrOjjp88h89D3Su8rvj5ONia+rUeaGIs3Dkq5yDGoPEy6Fk1RxzHpi lI2RFSGx7bxsMxjiCOCLzvhK+p43JVuQeY8M8XjyzIHZZs0Ghl9GjghZbB7633jcbI4t nluAannKi8V17x8u2Tvpmnh2xRuAJUqFp92NmnYcb0qbN/qqj38KP2CyLFIe4JO8su0x hBMR/n1u+3HM05B3RcgWvL7+QwaIw6YxEaj6YU0T2ZWyat88VcbFsTt5pod0jF/gjPD/ KEqw== 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 i12si12255464ejr.344.2021.02.15.09.46.01; Mon, 15 Feb 2021 09:46:25 -0800 (PST) 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 S232709AbhBORnM (ORCPT + 99 others); Mon, 15 Feb 2021 12:43:12 -0500 Received: from relay5-d.mail.gandi.net ([217.70.183.197]:36667 "EHLO relay5-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231234AbhBORZ0 (ORCPT ); Mon, 15 Feb 2021 12:25:26 -0500 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 relay5-d.mail.gandi.net (Postfix) with ESMTPSA id 6D4D21C0007; Mon, 15 Feb 2021 17:24:37 +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 2/4] arm64: dts: renesas: eagle: Enable MAX9286 Date: Mon, 15 Feb 2021 18:24:45 +0100 Message-Id: <20210215172447.2026514-3-jacopo+renesas@jmondi.org> X-Mailer: git-send-email 2.30.0 In-Reply-To: <20210215172447.2026514-1-jacopo+renesas@jmondi.org> References: <20210215172447.2026514-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..eb8f2b3a3bbd 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 { + 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