From patchwork Mon Jan 7 03:28:04 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joseph Lo X-Patchwork-Id: 10749849 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id A1C1B13AD for ; Mon, 7 Jan 2019 03:28:31 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 82E01286E0 for ; Mon, 7 Jan 2019 03:28:31 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7113D286F7; Mon, 7 Jan 2019 03:28:31 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id D455F286E0 for ; Mon, 7 Jan 2019 03:28:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:To :From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=RQ+KALj6tblZAJLLV5aCozALG4utFfvxP9TkoTYp6Mc=; b=W+LKG0w/rLQQnH thRwFAA6MbT/P/zgW+MhSzWVV+2+zZ/QapyFw3jhjOgLGrKbfioNkdiY0yz0GheFQEHix4e+9U7aM 7wk/FXaMDzrivSB8M79sHzCPjjKSOzVer+fcQbugdneVzxOt2O3jrNYSYUNfN6V4ywc8DjAf6xo7U IG8F0SXINWvjF/bhSZd/9t3jRbonLxB0pf3H6AgF3t4k8rP44iFkR6tz48ZA/3Re1CpdizBd/RDFk JRnx21xzwCtgF8I0csme0hfqkXoZpvVb7cV+H3trkUyJS3JYtKScoNUe0kL1LKq8TvWsnUwJm4NuS iTdzyq0src4VjgojBa4Q==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1ggLaS-0007vg-Ik; Mon, 07 Jan 2019 03:28:24 +0000 Received: from hqemgate14.nvidia.com ([216.228.121.143]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1ggLaP-0007u4-Tj for linux-arm-kernel@lists.infradead.org; Mon, 07 Jan 2019 03:28:23 +0000 Received: from hqpgpgate101.nvidia.com (Not Verified[216.228.121.13]) by hqemgate14.nvidia.com (using TLS: TLSv1.2, DES-CBC3-SHA) id ; Sun, 06 Jan 2019 19:28:03 -0800 Received: from hqmail.nvidia.com ([172.20.161.6]) by hqpgpgate101.nvidia.com (PGP Universal service); Sun, 06 Jan 2019 19:28:15 -0800 X-PGP-Universal: processed; by hqpgpgate101.nvidia.com on Sun, 06 Jan 2019 19:28:15 -0800 Received: from HQMAIL111.nvidia.com (172.20.187.18) by HQMAIL104.nvidia.com (172.18.146.11) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Mon, 7 Jan 2019 03:28:15 +0000 Received: from HQMAIL105.nvidia.com (172.20.187.12) by HQMAIL111.nvidia.com (172.20.187.18) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Mon, 7 Jan 2019 03:28:15 +0000 Received: from hqnvemgw01.nvidia.com (172.20.150.20) by HQMAIL105.nvidia.com (172.20.187.12) with Microsoft SMTP Server (TLS) id 15.0.1395.4 via Frontend Transport; Mon, 7 Jan 2019 03:28:15 +0000 Received: from josephl-linux.nvidia.com (Not Verified[10.19.108.132]) by hqnvemgw01.nvidia.com with Trustwave SEG (v7, 5, 8, 10121) id ; Sun, 06 Jan 2019 19:28:14 -0800 From: Joseph Lo To: Thierry Reding , Jonathan Hunter Subject: [PATCH 0/6] Add CPUidle support for Tegra210 Date: Mon, 7 Jan 2019 11:28:04 +0800 Message-ID: <20190107032810.13522-1-josephl@nvidia.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 X-NVConfidentiality: public DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nvidia.com; s=n1; t=1546831683; bh=N03FYwW6XP9aefCfvgw6wcd6UWDxSU5D1YXpkvgnAQU=; h=X-PGP-Universal:From:To:CC:Subject:Date:Message-ID:X-Mailer: MIME-Version:X-NVConfidentiality:Content-Transfer-Encoding: Content-Type; b=nDUQnmSA6FFZ55rrWq6FqooopmYgE7Xhu3dsbtRnjexon8XRBHek0NXNhjPX76MMR BA5eL45i4ORRLm5HeNTmWNjjuhM55Z/Gi8+CXtlp+CC8dQhHNEDovdKP+cmYgIZYwW 6qi2PFb26gxvVkE5EmlEoVacgJvgNiwnQtW21rC9JLtHenA4S6ejNpqZueY/yHi9E1 GGTS4Cp7YpOWolh7UxuKzg0iV91PJNo1V/Vs0X6pCQPilTSF+BsATxLqTMVWf1JneS cf3D576GbPNz/xEmybgwe5Xl+3KTs43gMPDZ9osPt+8rRgyL3DhR5926twNAAb9vbq Ajg+p9EiRR/Vw== X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190106_192822_027449_37BE4D25 X-CRM114-Status: UNSURE ( 8.52 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-tegra@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Joseph Lo Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP This patch series adds CPUidle support for Tegra210, which supports power-down state (C7) for CPU cores. And due to arch timer cannot work across CPU core power-down and power on reset signal event. We introduce Tegra210 timer driver to work as clock event device. So it can be the wake-up source of CPU cores when they idled in the power-down state. Joseph Lo (6): dt-bindings: timer: add Tegra210 timer clocksource: tegra: add Tegra210 timer driver arm64: dts: tegra210: fix timer node arm64: dts: tegra210: add CPU idle states properties arm64: dts: tegra210-p2180: Enable CPU idle support arm64: dts: tegra210-smaug: Enable CPU idle support .../bindings/timer/nvidia,tegra210-timer.txt | 25 ++ .../arm64/boot/dts/nvidia/tegra210-p2180.dtsi | 6 + arch/arm64/boot/dts/nvidia/tegra210-smaug.dts | 7 + arch/arm64/boot/dts/nvidia/tegra210.dtsi | 29 ++- drivers/clocksource/Kconfig | 3 + drivers/clocksource/Makefile | 1 + drivers/clocksource/timer-tegra210.c | 240 ++++++++++++++++++ include/linux/cpuhotplug.h | 1 + 8 files changed, 305 insertions(+), 7 deletions(-) create mode 100644 Documentation/devicetree/bindings/timer/nvidia,tegra210-timer.txt create mode 100644 drivers/clocksource/timer-tegra210.c