Received: by 10.223.176.5 with SMTP id f5csp864640wra; Tue, 6 Feb 2018 08:37:28 -0800 (PST) X-Google-Smtp-Source: AH8x226//BLowMW2FDqaUULYfyLck6Yo1esmqkfXBR4G30vj/gWzUFpemesv8o9xNn94KkLony27 X-Received: by 10.101.72.197 with SMTP id o5mr2428194pgs.303.1517935048594; Tue, 06 Feb 2018 08:37:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517935048; cv=none; d=google.com; s=arc-20160816; b=cG2tT8HVGcDbbk2tMTiNbW9tX+S1dnEzH5//Q0fTOPdaKoSex6grVhferAUZkFxVBB voYKAWXa7WEAzZWqc7Auc2b+PCbBaKHCamZm3PENataMW61QdB68j5axWvWbxSGBPJwG l/M6/W5nmK9dCJN5AtXTWoCgKu8VV5mPR2V/Zm5DcVfEhboI6BVh5hp/dLKW5Ep7P4Ip 2jvWrxzPSGprbTDPn8fm5dTRLtyyhAY3fxtPuocD4enAYaa9shqUUKZsSwHubJ4Kedr8 755GPu/tlxshcVWIrhAncMZ++BId23blYPWHzZNwI8Z43JX9AWlsQ7sqcw7QpstuZsGH ZFIQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from:arc-authentication-results; bh=+42hqKfEee9AIRUHyZk6jfz84Ufn3yNOnrEPnA3Vuz0=; b=QX7fj9MDNB0vFrPhlKiv83cqzK9Lhz0qr5rt4xX0ysr0aDHkRWt+wg3KDPeFX7uSRG 1eG7MmrbVABc7zAPbxZyS0fA4QoRWe4TJO91Zrrs5Ac9b9X/OIiNV0nec5FvugsTpfd0 db4Z7Sc5euN1MGAbIJ/xlEjlkZkM9mbMyUCmYL6sFpBcjbocy6UXR2ZgZM/1g7tCsk3A QaMopPYH6Ab4txfNujSKYRFP2AxVW/17hvemnW4LDh76J6CqOCVENtQrRzyHnk2tjXio H2OZDjC+w/oNUwyIgxiAcc5RdShzWvC69UjIGitWykADmUnnFx0l9WinMl6m7X0s/fPV ojVQ== 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=nvidia.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i187si1756855pgc.257.2018.02.06.08.37.14; Tue, 06 Feb 2018 08:37:28 -0800 (PST) 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=nvidia.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752690AbeBFQey (ORCPT + 99 others); Tue, 6 Feb 2018 11:34:54 -0500 Received: from hqemgate16.nvidia.com ([216.228.121.65]:16144 "EHLO hqemgate16.nvidia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752432AbeBFQej (ORCPT ); Tue, 6 Feb 2018 11:34:39 -0500 Received: from hqpgpgate101.nvidia.com (Not Verified[216.228.121.13]) by hqemgate16.nvidia.com id ; Tue, 06 Feb 2018 08:34:50 -0800 Received: from HQMAIL108.nvidia.com ([172.20.161.6]) by hqpgpgate101.nvidia.com (PGP Universal service); Tue, 06 Feb 2018 08:34:39 -0800 X-PGP-Universal: processed; by hqpgpgate101.nvidia.com on Tue, 06 Feb 2018 08:34:39 -0800 Received: from UKMAIL101.nvidia.com (10.26.138.13) by HQMAIL108.nvidia.com (172.18.146.13) with Microsoft SMTP Server (TLS) id 15.0.1347.2; Tue, 6 Feb 2018 16:34:38 +0000 Received: from tbergstrom-lnx.Nvidia.com (10.21.24.170) by UKMAIL101.nvidia.com (10.26.138.13) with Microsoft SMTP Server (TLS) id 15.0.1347.2; Tue, 6 Feb 2018 16:34:34 +0000 Received: from tbergstrom-lnx.nvidia.com (localhost [127.0.0.1]) by tbergstrom-lnx.Nvidia.com (Postfix) with ESMTP id 48C77F80005; Tue, 6 Feb 2018 18:34:33 +0200 (EET) From: Peter De Schrijver To: , , , , , , , , , CC: Peter De Schrijver Subject: [PATCH v3 00/11] Tegra210 DFLL implementation Date: Tue, 6 Feb 2018 18:34:01 +0200 Message-ID: <1517934852-23255-1-git-send-email-pdeschrijver@nvidia.com> X-Mailer: git-send-email 1.9.1 X-NVConfidentiality: public MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.21.24.170] X-ClientProxiedBy: UKMAIL101.nvidia.com (10.26.138.13) To UKMAIL101.nvidia.com (10.26.138.13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This series introduces support for the DFLL as a CPU clock source on Tegra210. As Jetson TX2 uses a PWM controlled regulator IC which is driven directly by the DFLLs PWM output, we also introduce support for PWM regulators next to I2C controlled regulators. The DFLL output frequency is directly controlled by the regulator voltage. The registers for controlling the PWM are part of the DFLL IP block, so there's no separate linux regulator object involved because the regulator IC only supplies the rail powering the DFLL and the CPUs. It doesn't have any other controls. Changes since v2: * added DT updates for Tegra210 * updated dfll DT binding documentation * split changes to i2c support into its own patch * retrieve regulator parameters from framework rather than from CVB table * bug fixes Changes since v1: * improved commit messages * some style cleanups Laxman Dewangan (1): regulator: core: add API to get voltage constraints Peter De Schrijver (10): clk: tegra: retrieve regulator info from framework clk: tegra: dfll registration for multiple SoCs clk: tegra: add CVB tables for Tegra210 CPU DFLL clk: tegra: prepare dfll driver for PWM regulator clk: tegra: dfll: support PWM regulator control dt-bindings: tegra: Update DFLL binding for PWM regulator clk: tegra: build clk-dfll.c for Tegra124 and Tegra210 cpufreq: tegra124-cpufreq: extend to support Tegra210 arm64: dts: tegra: Add Tegra210 DFLL definition arm64: dts: nvidia: Tegra210 CPU clock definition .../bindings/clock/nvidia,tegra124-dfll.txt | 76 ++- arch/arm64/boot/dts/nvidia/tegra210-p2180.dtsi | 18 + arch/arm64/boot/dts/nvidia/tegra210-p2597.dtsi | 12 + arch/arm64/boot/dts/nvidia/tegra210.dtsi | 26 + drivers/clk/tegra/Kconfig | 5 + drivers/clk/tegra/Makefile | 2 +- drivers/clk/tegra/clk-dfll.c | 462 +++++++++++++++--- drivers/clk/tegra/clk-dfll.h | 2 + drivers/clk/tegra/clk-tegra124-dfll-fcpu.c | 526 ++++++++++++++++++++- drivers/clk/tegra/cvb.c | 16 +- drivers/clk/tegra/cvb.h | 7 +- drivers/cpufreq/tegra124-cpufreq.c | 15 +- drivers/regulator/core.c | 31 ++ include/linux/regulator/consumer.h | 2 + 14 files changed, 1106 insertions(+), 94 deletions(-) -- 1.9.1