Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp334198rwb; Thu, 1 Dec 2022 02:51:09 -0800 (PST) X-Google-Smtp-Source: AA0mqf5e1mBtDwTwjE2ECeW31hT2FBPQPT8XQK7eR3DPvjYAYufT2m944XUFCdqB14R7aAcHIMZ1 X-Received: by 2002:a17:90a:67c1:b0:212:d484:b410 with SMTP id g1-20020a17090a67c100b00212d484b410mr76679951pjm.211.1669891869711; Thu, 01 Dec 2022 02:51:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669891869; cv=none; d=google.com; s=arc-20160816; b=QIwlNdYOUOWuEX5T8bq4MDdAJutHyAZGfWiYK9dh80hFVuHlqduXzwWioZ9vvDu0kV v0OxDEv+Ty9ufRPqt/4wTj5j67i4Y+K8YXNEAmL+BnHdqLX3C0LEAhKs4ZRhUGfL2WjM SeC4XDul7cl3hFhWQ6JRXj5bw1HuzSTPNN4XEqi8wKyksacrYY8tvJw4nW4RuLGxBgQq rsYOKhenhJp8UQ+pFY/PMDb8z2Rxnj9kuJjtSSi51m16A/pJj/2IhxOMn+uPuMx2a3Nd G2Ask/cLrQAxTckxT5vbiQKXSDuO5GdC+9x2fWNnlL9rrlexY7NL1HzneCGRsi2cNJxA wUTw== 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 :dkim-signature; bh=pmNGsnyzkJb86/Kqwmb0oA4KLwDxcR0RdtMZcVQrnIY=; b=Ma5Ea0yv/dJjIUuXXDHp/GNpCIAzVry/44VnqK+53PLMa0NRLMqzcubZBwWRpG2O28 42g7TsluNpryO13Yi2G9ObvtVo3Q0Jv7v9hszYEnzNBVrYZgU00rPzb0iQgYSsogXJcQ A2rcHIaLjpv+MK6DQhO1zEIN3Gvh9Vih7ytkrdJ55R2GqnEYnYD9ezmarT17F1rgO1Nl g1ewvM5Y0GO9EU2QcLiBYlUpDDphSty91ygpuAbmXSZW/V1BkcgkqEazNdElkXFp31ki ok4M2/84R9/p1PtmmQzD1Pc6Q53iNC2v9Oo0jMnput48wQzHAAaWQUbbNfciYXpNj1RQ H+aQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=jNlRoS4p; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x15-20020a056a00188f00b0056dc16897d7si5389497pfh.15.2022.12.01.02.50.58; Thu, 01 Dec 2022 02:51:09 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=jNlRoS4p; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230368AbiLAJ50 (ORCPT + 82 others); Thu, 1 Dec 2022 04:57:26 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58330 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229612AbiLAJ47 (ORCPT ); Thu, 1 Dec 2022 04:56:59 -0500 Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [IPv6:2001:4b98:dc2:55:216:3eff:fef7:d647]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C266F8C681; Thu, 1 Dec 2022 01:56:57 -0800 (PST) Received: from desky.lan (91-154-32-225.elisa-laajakaista.fi [91.154.32.225]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id D10D7161B; Thu, 1 Dec 2022 10:56:53 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1669888614; bh=TFegyMOiBdBMIpxjS/hopQO/iK5LC2AFN1HdZyBBj94=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=jNlRoS4pzsJRKnKfTfYFmOzy8pwNIVe1eTbgDApLio5Z7izmd8EOeT6A/z5mElUD5 MhY2h8cRKm8vpH2/pFu+7Ay+45e+YcWNnc1Q1p5NljC8TiIdmEbiUXwPRrGfxdhaUC y6qvk9ZoSUssyD5J3y8CAC74bOX4jBA31tp8tul4= From: Tomi Valkeinen To: Laurent Pinchart , Kieran Bingham , Rob Herring , Krzysztof Kozlowski , Geert Uytterhoeven , Magnus Damm , dri-devel@lists.freedesktop.org, linux-renesas-soc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Andrzej Hajda , Neil Armstrong , Robert Foss , Jonas Karlman , Jernej Skrabec , Tomi Valkeinen Subject: [PATCH v5 5/7] arm64: dts: renesas: white-hawk-cpu: Add DP output support Date: Thu, 1 Dec 2022 11:56:29 +0200 Message-Id: <20221201095631.89448-6-tomi.valkeinen+renesas@ideasonboard.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221201095631.89448-1-tomi.valkeinen+renesas@ideasonboard.com> References: <20221201095631.89448-1-tomi.valkeinen+renesas@ideasonboard.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add DT nodes needed for the mini DP connector. The DP is driven by sn65dsi86, which in turn gets the pixel data from the SoC via DSI. Signed-off-by: Tomi Valkeinen Reviewed-by: Kieran Bingham Reviewed-by: Laurent Pinchart --- .../dts/renesas/r8a779g0-white-hawk-cpu.dtsi | 94 +++++++++++++++++++ 1 file changed, 94 insertions(+) diff --git a/arch/arm64/boot/dts/renesas/r8a779g0-white-hawk-cpu.dtsi b/arch/arm64/boot/dts/renesas/r8a779g0-white-hawk-cpu.dtsi index c10740aee9f6..8aab859aac7a 100644 --- a/arch/arm64/boot/dts/renesas/r8a779g0-white-hawk-cpu.dtsi +++ b/arch/arm64/boot/dts/renesas/r8a779g0-white-hawk-cpu.dtsi @@ -97,6 +97,15 @@ memory@600000000 { reg = <0x6 0x00000000 0x1 0x00000000>; }; + reg_1p2v: regulator-1p2v { + compatible = "regulator-fixed"; + regulator-name = "fixed-1.2V"; + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <1200000>; + regulator-boot-on; + regulator-always-on; + }; + reg_1p8v: regulator-1p8v { compatible = "regulator-fixed"; regulator-name = "fixed-1.8V"; @@ -114,6 +123,24 @@ reg_3p3v: regulator-3p3v { regulator-boot-on; regulator-always-on; }; + + mini-dp-con { + compatible = "dp-connector"; + label = "CN5"; + type = "mini"; + + port { + mini_dp_con_in: endpoint { + remote-endpoint = <&sn65dsi86_out>; + }; + }; + }; + + sn65dsi86_refclk: clk-x6 { + compatible = "fixed-clock"; + #clock-cells = <0>; + clock-frequency = <38400000>; + }; }; &avb0 { @@ -134,6 +161,23 @@ phy0: ethernet-phy@0 { }; }; +&dsi0 { + status = "okay"; + + ports { + port@1 { + dsi0_out: endpoint { + remote-endpoint = <&sn65dsi86_in>; + data-lanes = <1 2 3 4>; + }; + }; + }; +}; + +&du { + status = "okay"; +}; + &extal_clk { clock-frequency = <16666666>; }; @@ -172,6 +216,51 @@ eeprom@50 { }; }; +&i2c1 { + pinctrl-0 = <&i2c1_pins>; + pinctrl-names = "default"; + + status = "okay"; + clock-frequency = <400000>; + + bridge@2c { + compatible = "ti,sn65dsi86"; + reg = <0x2c>; + + clocks = <&sn65dsi86_refclk>; + clock-names = "refclk"; + + interrupt-parent = <&intc_ex>; + interrupts = <0 IRQ_TYPE_LEVEL_HIGH>; + + enable-gpios = <&gpio1 26 GPIO_ACTIVE_HIGH>; + + vccio-supply = <®_1p8v>; + vpll-supply = <®_1p8v>; + vcca-supply = <®_1p2v>; + vcc-supply = <®_1p2v>; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + sn65dsi86_in: endpoint { + remote-endpoint = <&dsi0_out>; + }; + }; + + port@1 { + reg = <1>; + sn65dsi86_out: endpoint { + remote-endpoint = <&mini_dp_con_in>; + }; + }; + }; + }; +}; + &mmc0 { pinctrl-0 = <&mmc_pins>; pinctrl-1 = <&mmc_pins>; @@ -221,6 +310,11 @@ i2c0_pins: i2c0 { function = "i2c0"; }; + i2c1_pins: i2c1 { + groups = "i2c1"; + function = "i2c1"; + }; + keys_pins: keys { pins = "GP_5_0", "GP_5_1", "GP_5_2"; bias-pull-up; -- 2.34.1