Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp1604459img; Tue, 19 Mar 2019 11:14:49 -0700 (PDT) X-Google-Smtp-Source: APXvYqx1Ep8XvPWM8F0Wzt/pqhwsTVd6aIKCIZLDW23Zt92x/Dio+Jd4weHIikxUcK6XuQZEuopD X-Received: by 2002:a17:902:5992:: with SMTP id p18mr3413648pli.231.1553019289656; Tue, 19 Mar 2019 11:14:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553019289; cv=none; d=google.com; s=arc-20160816; b=afNKsdEm3j8a04YbM7KuyYKY7HTbolp00EuRnL4+pHBfu2vQGC9/n7lCvJOg5jioTJ fp1l7qU8kRVgM4Nn3JtyGa6chms7ocMDY5LDKjo2lwiKeJIZjWtPLyQjSuT3cdQyipOd wJsRTzAY7D1VFJgBxY8dqvCeJTUEhopsLkjh3/11KdaDSOXR73qWwoPbee/9m1JazfA3 dMKBPvq1XE25STaRWBnqjRxsuiSwQ7X5OfGtehXoC0NhjbceuNydnDQoLMZZuGW+vMaT IcO3R5m3dln+0EOVUggLVPXUsizqg+zYpPxVa7l755bqf/Q3J5VL6JTRlJ/Db4XgRUdl VWYw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=eKo8L3EwHMV2zuhrswWWr2nQA6ASvCUdxf1kbxJNMuI=; b=FjMHx+M0IlKWbzfp0+xoepUl7XBir8OmSrgZJFij9EgcQoVFJe52+Vo16wp3p6Z7B1 U85twumbaMuOemhG1yt5iBrPGRkXvNqB0rKGUGMXRONVyZeS71hqbCcctQ332oE6SaBS KbVS4Tmgy77cKrciiVGD8HQtbStLMRLHzqFq/IdHK9dyBYxK41ucczLXuHNdwi9naYpu 0gqQACgss3apfk+TQ49pAzyWzPs/UzS4yT44vIs/KKSdq2qYjaVipdqs2y7GY7MBredC 1zdX6E9SLXScw4vvGfAlPqMlZQsXGD2/8EVvy5KKXFH+NN97THMqD4MHhmLvX7ZI7ujz YOVQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o123si3419377pfb.116.2019.03.19.11.14.34; Tue, 19 Mar 2019 11:14:49 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727970AbfCSSNv (ORCPT + 99 others); Tue, 19 Mar 2019 14:13:51 -0400 Received: from bhuna.collabora.co.uk ([46.235.227.227]:38186 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727946AbfCSSNu (ORCPT ); Tue, 19 Mar 2019 14:13:50 -0400 Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: gportay) with ESMTPSA id 2EF8028141A From: =?UTF-8?q?Ga=C3=ABl=20PORTAY?= To: MyungJoo Ham , Kyungmin Park , Chanwoo Choi , Rob Herring , Heiko Stuebner , Enric Balletbo i Serra , Lin Huang , Brian Norris , Douglas Anderson , Klaus Goger , Derek Basehore , Randy Li , linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org Cc: Mark Rutland , kernel@collabora.com, =?UTF-8?q?Ga=C3=ABl=20PORTAY?= Subject: [PATCH v2 5/5] arm64: dts: rockchip: Enable dmc and dfi nodes on gru. Date: Tue, 19 Mar 2019 14:13:23 -0400 Message-Id: <20190319181323.22804-6-gael.portay@collabora.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190319181323.22804-1-gael.portay@collabora.com> References: <20190319181323.22804-1-gael.portay@collabora.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Lin Huang Enable the DMC (Dynamic Memory Controller) and the DFI (DDR PHY Interface) nodes on gru/kevin boards so we can support DDR DVFS. Signed-off-by: Lin Huang Signed-off-by: Enric Balletbo i Serra Signed-off-by: Gaƫl PORTAY --- Changes in v2: - [PATCH 8/8] Move center-supply attribute of dmc node in file rk3399-gru-chromebook.dtsi (where ppvar_centerlogic is defined). Changes in v1: None .../dts/rockchip/rk3399-gru-chromebook.dtsi | 4 ++++ arch/arm64/boot/dts/rockchip/rk3399-gru.dtsi | 20 +++++++++++++++++++ arch/arm64/boot/dts/rockchip/rk3399.dtsi | 2 +- 3 files changed, 25 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/rockchip/rk3399-gru-chromebook.dtsi b/arch/arm64/boot/dts/rockchip/rk3399-gru-chromebook.dtsi index 931640e9aed4..cfb81356c61e 100644 --- a/arch/arm64/boot/dts/rockchip/rk3399-gru-chromebook.dtsi +++ b/arch/arm64/boot/dts/rockchip/rk3399-gru-chromebook.dtsi @@ -400,3 +400,7 @@ ap_i2c_tp: &i2c5 { rockchip,pins = <0 8 RK_FUNC_GPIO &pcfg_pull_none>; }; }; + +&dmc { + center-supply = <&ppvar_centerlogic>; +}; diff --git a/arch/arm64/boot/dts/rockchip/rk3399-gru.dtsi b/arch/arm64/boot/dts/rockchip/rk3399-gru.dtsi index da03fa9c5662..d14dce679e7a 100644 --- a/arch/arm64/boot/dts/rockchip/rk3399-gru.dtsi +++ b/arch/arm64/boot/dts/rockchip/rk3399-gru.dtsi @@ -289,6 +289,12 @@ status = "okay"; }; +&dmc_opp_table { + opp04 { + opp-suspend; + }; +}; + /* * Set some suspend operating points to avoid OVP in suspend * @@ -368,6 +374,10 @@ <200000000>; }; +&display_subsystem { + devfreq = <&dmc>; +}; + &emmc_phy { status = "okay"; }; @@ -489,6 +499,16 @@ ap_i2c_audio: &i2c8 { status = "okay"; }; +&dfi { + status = "okay"; +}; + +&dmc { + status = "okay"; + upthreshold = <25>; + downdifferential = <15>; +}; + &sdhci { /* * Signal integrity isn't great at 200 MHz and 150 MHz (DDR) gives the diff --git a/arch/arm64/boot/dts/rockchip/rk3399.dtsi b/arch/arm64/boot/dts/rockchip/rk3399.dtsi index 8fe86a3e7658..010b3e5267a0 100644 --- a/arch/arm64/boot/dts/rockchip/rk3399.dtsi +++ b/arch/arm64/boot/dts/rockchip/rk3399.dtsi @@ -156,7 +156,7 @@ }; }; - display-subsystem { + display_subsystem: display-subsystem { compatible = "rockchip,display-subsystem"; ports = <&vopl_out>, <&vopb_out>; }; -- 2.21.0