Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp143473img; Thu, 21 Mar 2019 16:15:47 -0700 (PDT) X-Google-Smtp-Source: APXvYqxSDGgPbGH8oGoOD8c0DIBQlTXuDd2bNzLnb0LFDC6daerVTBqA2b9w0/xIlZ3T0OzTsjbR X-Received: by 2002:a17:902:26f:: with SMTP id 102mr6087773plc.175.1553210147242; Thu, 21 Mar 2019 16:15:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553210147; cv=none; d=google.com; s=arc-20160816; b=rEDHnCbet0M3cnWjqoRd6Bp9tISzKNk4/AustvF4bzCKmfeHlMHr/KlhbPhSUodBXD u8pNeP07/aTJG402oV40GAnHJlFLOImQNuhRpbtkf4LvkvRCzysB8BRPL8cGFLhso47y H9x6Ku+U7OxIu2QwDgbJrYZjBvZLWqxFnlLYCkt8YLqePn+oMeQT54PQ3h32IRkenYQl 2505x/EO5EvGMJVoXl/fYT9u6okiZYoKwgpMMDKG+h8cvqh5slquOIVS65m1qXKIA9Jq xahD7RS25tuD4jFQ81AOOgyBkIfHg+Xqa7JVL4pU08Ags21WRLqgCXmSIsaCmz0GRXwi NN8Q== 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=Gp5j0idkeIiVr0z/nrA8jbKpuygdJr8PvH3+fWjAgvo=; b=oxWYWEs/U+esQDJ00K7YCq92BusMnFL1Y42BN/qN+CT1j3vPr7Lt5A4LW/71nNkr7a TM7rX06tiW+uUvCKCzZWGrKRWPVJNmlq+7B8V9bqxDbDyBg8PBHoRK4J2EQ0tz1HugjH R5pckNiLZZ2ZTyxwhRMZXalB8i3ZmjqYJgq4wmHtciqfGrZdPQfKlQMrqtZbMj3GwY7O 9Lz/zQdFu0u0MFvKnrC30qryRpBk3X6rB+AXNR4aQ1H555UfoskXBF7WTR09O+aC9lN0 Yg/HAAwwrviLJxEN/0EgXQ6ovEihDpWLIJ5Fb84ZKA68znN0FoN84moLY5JV0IC+XYJw IXlw== 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 z3si5413655pgr.90.2019.03.21.16.15.32; Thu, 21 Mar 2019 16:15:47 -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 S1727505AbfCUXOx (ORCPT + 99 others); Thu, 21 Mar 2019 19:14:53 -0400 Received: from bhuna.collabora.co.uk ([46.235.227.227]:51684 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727485AbfCUXOu (ORCPT ); Thu, 21 Mar 2019 19:14:50 -0400 Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: gportay) with ESMTPSA id 4A13228198C 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 , =?UTF-8?q?Ga=C3=ABl=20PORTAY?= Subject: [PATCH v3 5/5] arm64: dts: rockchip: Enable dmc and dfi nodes on gru. Date: Thu, 21 Mar 2019 19:14:40 -0400 Message-Id: <20190321231440.19031-6-gael.portay@collabora.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190321231440.19031-1-gael.portay@collabora.com> References: <20190321231440.19031-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 v3: - [PATCH v2 5/5] Remove display_subsystem nodes. 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 .../boot/dts/rockchip/rk3399-gru-chromebook.dtsi | 4 ++++ arch/arm64/boot/dts/rockchip/rk3399-gru.dtsi | 16 ++++++++++++++++ 2 files changed, 20 insertions(+) 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..1bde7ad3b980 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 * @@ -489,6 +495,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 -- 2.21.0