Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp7502884yba; Thu, 2 May 2019 10:59:52 -0700 (PDT) X-Google-Smtp-Source: APXvYqyxCuFf3C9OCx6u2wEzHTyvJWAoZ+j5Fb0xSwlvkZMuFVHNHxOWOVqanFWGFAf8mMZ++VfV X-Received: by 2002:a63:1852:: with SMTP id 18mr5357371pgy.283.1556819992884; Thu, 02 May 2019 10:59:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556819992; cv=none; d=google.com; s=arc-20160816; b=xRcPF4pNjat4Clqpy0XNKRP4h8Cv1WBpGq6GYf5wzXugGdtQSp0om08vtsFDpEKeI2 n8nfgUCm9V+/u30Ie7Wh0JmQDwZeP5GOGfJjO2BDee/RULLZaNH9HCv1ZbFqsciKzk/v Lt/tBMaxpgDP57o6NsU8sV3Qz4nfp+jqs2rHs7sHQyEQjRaewy81XI3gwcdsGoDHItim 3tZJ02MCsrOnUCvcfaiTlfTnaFpHzURTOIF6M7TXOrlkMnFhZ9TaVR0R9uNclYHDhG4K 8VKjlxfhw0U73KDfJbI7t1Qcb+ImHQlbGHqrsSYjVgFMNSU+tDilpxp74hlc+qedWN/z YpCw== 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=98zudtLq1tEMskIh7v0a5Jv8juvpxlj032mM+ZQVJYg=; b=JnaXc7nyekCChOBQop0DmrcP3SDVy9GXgOM2ubS6xAlLmwYnKnK+KHYqtcmYLtlbfA qhiQVpJ0kh0NrhYHfRPfit8g7ybRXiftNS5Yv0ShrGomx2HMgUtOKuta+n3LCDdfQ+ek KnkES6MVFdpiYkpQy3jA9+kWcIlj011nQYQeHqPdVIJhsFsoaN3T6LJmGajxm7QF+FOC hSn8TL/s0GAf1G9Pm24IPDywLpuYwwGUM387qkqgrBIKpHGz9FRvdWMvD8tr8/fSXLGi 5rp8x+sCv6Yd6EesGgnnHhWii5z+GVrRHK/FmEFRgXmbOYDaaNyGg2G9gbwnOy5dxoal RxmQ== 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 j5si44923595pfa.63.2019.05.02.10.59.37; Thu, 02 May 2019 10:59:52 -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 S1726538AbfEBR6e (ORCPT + 99 others); Thu, 2 May 2019 13:58:34 -0400 Received: from bhuna.collabora.co.uk ([46.235.227.227]:41886 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726451AbfEBR6a (ORCPT ); Thu, 2 May 2019 13:58:30 -0400 Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: gportay) with ESMTPSA id 42CF4283490 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 v5 4/6] arm64: dts: rk3399: Add dfi and dmc nodes. Date: Thu, 2 May 2019 13:58:18 -0400 Message-Id: <20190502175820.25382-5-gael.portay@collabora.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190502175820.25382-1-gael.portay@collabora.com> References: <20190502175820.25382-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 These are required to support DDR DVFS on rk3399 platform. Signed-off-by: Lin Huang Signed-off-by: Enric Balletbo i Serra Signed-off-by: Gaƫl PORTAY --- Changes in v5: None Changes in v4: - [PATCH v3 4/5] Remove board related DDR settings. Changes in v3: None Changes in v2: - [PATCH 7/8] Reword the commit message to reflect the removal of rk3390-dram-default-timing.dts in v1. Changes in v1: - [RFC 8/10] Move rk3399-dram.h to dt-includes. - [RFC 8/10] Put sdram default values under the dmc node. - [RFC 8/10] Removed rk3399-dram-default-timing.dts arch/arm64/boot/dts/rockchip/rk3399.dtsi | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3399.dtsi b/arch/arm64/boot/dts/rockchip/rk3399.dtsi index db9d948c0b03..87ee084fac89 100644 --- a/arch/arm64/boot/dts/rockchip/rk3399.dtsi +++ b/arch/arm64/boot/dts/rockchip/rk3399.dtsi @@ -1885,6 +1885,25 @@ status = "disabled"; }; + dfi: dfi@ff630000 { + reg = <0x00 0xff630000 0x00 0x4000>; + compatible = "rockchip,rk3399-dfi"; + rockchip,pmu = <&pmugrf>; + interrupts = ; + clocks = <&cru PCLK_DDR_MON>; + clock-names = "pclk_ddr_mon"; + status = "disabled"; + }; + + dmc: dmc { + compatible = "rockchip,rk3399-dmc"; + rockchip,pmu = <&pmugrf>; + devfreq-events = <&dfi>; + clocks = <&cru SCLK_DDRC>; + clock-names = "dmc_clk"; + status = "disabled"; + }; + pinctrl: pinctrl { compatible = "rockchip,rk3399-pinctrl"; rockchip,grf = <&grf>; -- 2.21.0