Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp2676028pxb; Sun, 15 Nov 2020 13:39:10 -0800 (PST) X-Google-Smtp-Source: ABdhPJxPMdW1ZegHSXFrUgj9CTqamz1MBk5OtGYCNhCru4MZub33Pe3W+IhB9XrwfN+ykXQzz6GE X-Received: by 2002:a17:906:c08f:: with SMTP id f15mr11745826ejz.97.1605476349951; Sun, 15 Nov 2020 13:39:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605476349; cv=none; d=google.com; s=arc-20160816; b=FkrEyobH18Hr9oZUSdTattan5tZGIfCoQXgTj7czM2HWjE691zaejGsrF3J/Ad2Ugj +433wa7nShe41BQnqZHBBxZRxHz54BMB+nUWMsp4oi9wPbIBRk3vGb0g7SEoc01Sx1Zg ILatPpX9nbzJboAgQ33v5hMQCMoSOfMsVLYnh7Kkz9e0qYh/TASXUKLH0e2N05TnX1C7 sa1ajPkkyPijNf+ZgbT9RjDD495E6ijky60i2iL1BBsqMFQk5a3r1uKzGUb147q4kLWR wf/JqBAgYxIX9eUnFzjKswAKbFduHaCjZHqJMOTNJvnLDC1kJoMkx21wBngjRWAx8RgM sprA== 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=EQFGtDz+eXLg7dXb4gglyvWDP06c+/8mo10e9Fv/CVo=; b=Ed28spjpNH52/ZzhBfjQsZkRSpVPny3rzMSiW9k91wYso4Kal4hdVT3/ife1//8GJ4 280mqsawUhsE2acbH8qi3zsi89uF0dObj2Mb4M2UDlgZ9bTISeGT7NbzgyewXiNkVod2 y6ZHkV7ptVe9roldQ61cH7VMyDBkXoXL4wgRoQwopWaEnr5dmav4IhhiYjv1DNgs4YvP 7iRLhxly/47nraPPoMAEdIu/8NggOhCj8fGOJU9gD0Tv4rN/Hepx/0xiLsozWaemoPex A06buSWqq0zrQE7pJ3Iw9/X/Mt753D1Aq+2jcw+xE36xsplTr22VEcFgWdl9PF0Nlj0j c3ag== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=eGhOmYLX; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j15si10825406eds.511.2020.11.15.13.38.47; Sun, 15 Nov 2020 13:39:09 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=eGhOmYLX; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728107AbgKOVdf (ORCPT + 99 others); Sun, 15 Nov 2020 16:33:35 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58070 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728101AbgKOVde (ORCPT ); Sun, 15 Nov 2020 16:33:34 -0500 Received: from mail-lj1-x22e.google.com (mail-lj1-x22e.google.com [IPv6:2a00:1450:4864:20::22e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 06D5DC0613CF; Sun, 15 Nov 2020 13:33:34 -0800 (PST) Received: by mail-lj1-x22e.google.com with SMTP id s9so17795974ljo.11; Sun, 15 Nov 2020 13:33:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=EQFGtDz+eXLg7dXb4gglyvWDP06c+/8mo10e9Fv/CVo=; b=eGhOmYLXIiyHKIPsHGH5GAFZHYG54DspuJmR0drQy7XKv9l/R3ah57bz05zAk1pv3K 3p7QjKNFhNLYxDhr7TmEj/ZUwWf2IDi7l4nT6LdkLzCYgjfqlqa2W3igJxJz0geS6Vsd DpJSkqr5owOdSOr+7bqhf1NRzjK20XILbWFY97f4Skxhx75Wg+G65EmNthtbrbvcbmYA py4H87rY7tGo+/AxZVS2XZIU6cX2+656gKuomr1ZePK21auiYVj80tFS29RYfH39Qp1W 79wWi+Ny/X/3KD+cqCsEfvsQc2RPBfY0Ucv2cVko2HU1Qp2WvJeGTv1rFJrC+ET2TxIL bMiw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=EQFGtDz+eXLg7dXb4gglyvWDP06c+/8mo10e9Fv/CVo=; b=M23M+2HjHKYJ4jUzrqLjFRtG4DQ8ueR5Kzntwz9HTuSRkt+vaBv4fEsPphbhQVBeco MCU8Uz6GXnLjSb/uBzi5/RKf5GvQRqDhb/Pt3PtR8RsNw1G2mScrq0c4IFOornlI7yS5 EsOS+pY/nlHZiBkE8eY73I1WdYgNLgAumeX4sCqzE9fbo0FPYQGOpGFx/Rsutf1fuWp8 TwdD2LkpYk106CKKhYkyCBdPV6mpz/Ck4RS5I0o0ZGa6mfkv2Y00PwgpiulTn19O7/X1 Vy6pzVYFKGJAhEWdgOlHnv9Ug7KVoTMWqOmF2GODALozN/33qvunjhUut8euzBcBPyag hr+w== X-Gm-Message-State: AOAM530+EUc/MIFyh2JIxTqVgXe1f45kDxrPXPd0JeGmfZLtDB9LuBWX 4OOkYM3AzA8HAKO1eR3Hwls= X-Received: by 2002:a2e:a17c:: with SMTP id u28mr5292290ljl.453.1605476012561; Sun, 15 Nov 2020 13:33:32 -0800 (PST) Received: from localhost.localdomain (109-252-193-159.dynamic.spd-mgts.ru. [109.252.193.159]) by smtp.gmail.com with ESMTPSA id o3sm2462055lfo.217.2020.11.15.13.33.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 15 Nov 2020 13:33:32 -0800 (PST) From: Dmitry Osipenko To: Thierry Reding , Jonathan Hunter , Georgi Djakov , Rob Herring , Michael Turquette , Stephen Boyd , Peter De Schrijver , MyungJoo Ham , Kyungmin Park , Chanwoo Choi , Mikko Perttunen , Viresh Kumar , Peter Geis , Nicolas Chauvet , Krzysztof Kozlowski Cc: linux-tegra@vger.kernel.org, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org Subject: [PATCH v9 15/17] ARM: tegra: Add EMC OPP properties to Tegra20 device-trees Date: Mon, 16 Nov 2020 00:29:20 +0300 Message-Id: <20201115212922.4390-16-digetx@gmail.com> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201115212922.4390-1-digetx@gmail.com> References: <20201115212922.4390-1-digetx@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add EMC OPP DVFS tables and update board device-trees by removing unsupported OPPs. Signed-off-by: Dmitry Osipenko --- .../boot/dts/tegra20-acer-a500-picasso.dts | 5 + arch/arm/boot/dts/tegra20-colibri.dtsi | 4 + arch/arm/boot/dts/tegra20-paz00.dts | 4 + .../arm/boot/dts/tegra20-peripherals-opp.dtsi | 92 +++++++++++++++++++ arch/arm/boot/dts/tegra20.dtsi | 3 + 5 files changed, 108 insertions(+) create mode 100644 arch/arm/boot/dts/tegra20-peripherals-opp.dtsi diff --git a/arch/arm/boot/dts/tegra20-acer-a500-picasso.dts b/arch/arm/boot/dts/tegra20-acer-a500-picasso.dts index dd6fb134ee39..a29b44837855 100644 --- a/arch/arm/boot/dts/tegra20-acer-a500-picasso.dts +++ b/arch/arm/boot/dts/tegra20-acer-a500-picasso.dts @@ -1451,3 +1451,8 @@ emc-table@300000 { }; }; }; + +&emc_icc_dvfs_opp_table { + /delete-node/ opp@666000000; + /delete-node/ opp@760000000; +}; diff --git a/arch/arm/boot/dts/tegra20-colibri.dtsi b/arch/arm/boot/dts/tegra20-colibri.dtsi index 6162d193e12c..585a5b441cf6 100644 --- a/arch/arm/boot/dts/tegra20-colibri.dtsi +++ b/arch/arm/boot/dts/tegra20-colibri.dtsi @@ -742,6 +742,10 @@ sound { }; }; +&emc_icc_dvfs_opp_table { + /delete-node/ opp@760000000; +}; + &gpio { lan-reset-n { gpio-hog; diff --git a/arch/arm/boot/dts/tegra20-paz00.dts b/arch/arm/boot/dts/tegra20-paz00.dts index ada2bed8b1b5..7e49112cd9a1 100644 --- a/arch/arm/boot/dts/tegra20-paz00.dts +++ b/arch/arm/boot/dts/tegra20-paz00.dts @@ -662,3 +662,7 @@ cpu@1 { }; }; }; + +&emc_icc_dvfs_opp_table { + /delete-node/ opp@760000000; +}; diff --git a/arch/arm/boot/dts/tegra20-peripherals-opp.dtsi b/arch/arm/boot/dts/tegra20-peripherals-opp.dtsi new file mode 100644 index 000000000000..25b1ba73951e --- /dev/null +++ b/arch/arm/boot/dts/tegra20-peripherals-opp.dtsi @@ -0,0 +1,92 @@ +// SPDX-License-Identifier: GPL-2.0 + +/ { + emc_icc_dvfs_opp_table: emc-dvfs-opp-table { + compatible = "operating-points-v2"; + + opp@36000000 { + opp-microvolt = <950000 950000 1300000>; + opp-hz = /bits/ 64 <36000000>; + }; + + opp@47500000 { + opp-microvolt = <950000 950000 1300000>; + opp-hz = /bits/ 64 <47500000>; + }; + + opp@50000000 { + opp-microvolt = <950000 950000 1300000>; + opp-hz = /bits/ 64 <50000000>; + }; + + opp@54000000 { + opp-microvolt = <950000 950000 1300000>; + opp-hz = /bits/ 64 <54000000>; + }; + + opp@57000000 { + opp-microvolt = <950000 950000 1300000>; + opp-hz = /bits/ 64 <57000000>; + }; + + opp@100000000 { + opp-microvolt = <1000000 1000000 1300000>; + opp-hz = /bits/ 64 <100000000>; + }; + + opp@108000000 { + opp-microvolt = <1000000 1000000 1300000>; + opp-hz = /bits/ 64 <108000000>; + }; + + opp@126666000 { + opp-microvolt = <1000000 1000000 1300000>; + opp-hz = /bits/ 64 <126666000>; + }; + + opp@150000000 { + opp-microvolt = <1000000 1000000 1300000>; + opp-hz = /bits/ 64 <150000000>; + }; + + opp@190000000 { + opp-microvolt = <1000000 1000000 1300000>; + opp-hz = /bits/ 64 <190000000>; + }; + + opp@216000000 { + opp-microvolt = <1000000 1000000 1300000>; + opp-hz = /bits/ 64 <216000000>; + }; + + opp@300000000 { + opp-microvolt = <1000000 1000000 1300000>; + opp-hz = /bits/ 64 <300000000>; + }; + + opp@333000000 { + opp-microvolt = <1000000 1000000 1300000>; + opp-hz = /bits/ 64 <333000000>; + }; + + opp@380000000 { + opp-microvolt = <1100000 1100000 1300000>; + opp-hz = /bits/ 64 <380000000>; + }; + + opp@600000000 { + opp-microvolt = <1200000 1200000 1300000>; + opp-hz = /bits/ 64 <600000000>; + }; + + opp@666000000 { + opp-microvolt = <1200000 1200000 1300000>; + opp-hz = /bits/ 64 <666000000>; + }; + + opp@760000000 { + opp-microvolt = <1300000 1300000 1300000>; + opp-hz = /bits/ 64 <760000000>; + }; + }; +}; diff --git a/arch/arm/boot/dts/tegra20.dtsi b/arch/arm/boot/dts/tegra20.dtsi index 8f8ad81916e7..6ce498178105 100644 --- a/arch/arm/boot/dts/tegra20.dtsi +++ b/arch/arm/boot/dts/tegra20.dtsi @@ -6,6 +6,8 @@ #include #include +#include "tegra20-peripherals-opp.dtsi" + / { compatible = "nvidia,tegra20"; interrupt-parent = <&lic>; @@ -664,6 +666,7 @@ emc: memory-controller@7000f400 { #size-cells = <0>; #interconnect-cells = <0>; + operating-points-v2 = <&emc_icc_dvfs_opp_table>; nvidia,memory-controller = <&mc>; }; -- 2.29.2