From patchwork Sat Nov 2 14:37:35 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thierry Reding X-Patchwork-Id: 11224119 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 6CB4D139A for ; Sat, 2 Nov 2019 14:37:41 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 4A7B0217D9 for ; Sat, 2 Nov 2019 14:37:41 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="q+OspviU" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726675AbfKBOhk (ORCPT ); Sat, 2 Nov 2019 10:37:40 -0400 Received: from mail-wm1-f65.google.com ([209.85.128.65]:35755 "EHLO mail-wm1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726430AbfKBOhk (ORCPT ); Sat, 2 Nov 2019 10:37:40 -0400 Received: by mail-wm1-f65.google.com with SMTP id 8so4752100wmo.0; Sat, 02 Nov 2019 07:37:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=BERMe2PRWrqqvzVEB3hnHt7RUi7JRLGfZJJ6Qdlaz/U=; b=q+OspviUqdS3RaK+VpA6r2gurw2Jzcfs0+hastKDxxwLuVeUYEHfXE1nKILfdkRCcO NjDU1ZUBg69ZubDwBPe/28R0MsVGWfzmHkJ5fgX5keH006U85B99edI/x5ySd6CpjR1j FW6n1sU3TA+NStjeCTXO8EQq5a6IGs2xMREdmr8xn4nLFeInSZqBGDkQU5r4AYF/db+1 bAplW+gYdbZ6++YudaEADX2kSiGyCJ4UuMlXXZlOcCQH0mKbackMedYfnmLcEs1hOq56 tZ5esNAtw5r1efptowjCScdpcxzqVvR6u1880yhTUing3GO+AEU8ibVvl7cc5VxgEknl LCfA== 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:mime-version :content-transfer-encoding; bh=BERMe2PRWrqqvzVEB3hnHt7RUi7JRLGfZJJ6Qdlaz/U=; b=abGlwxmFkwjl66X2KQa2AXV1ZaWDyO6ox+fmFMq9ixooO6MlnXy4WzpUaLzBK838G+ Mgaa/Vs7Mvf86NrriBCedEk2q8SwgL4mgUbVAIKTYXXLK7WMz4Rgyj0504eQZVYnOpbp KA02dmM3In/8uEmgKoqS/4rG0URedE90+efxmL71TiNAX/FWifkg5gw6OGn1Z5Gnko1Z g+RYFP9SNv4Nht/SKMvL4A0/C8kBN4VT8Eko3Ta/Q8sKvC9h9y/EBSP2mGJ2z8RWFu83 uFRR0LQ8ZQWhMYBD8gtweBp2rYIKov1isO0CWBXeoMnDER6BbEHxr1OcL2s1RJpCxhNE 4T8Q== X-Gm-Message-State: APjAAAV6X4UijzTBQt74CqX0z2/r6VP3V3GkA76ymr3wh0xdz6LnnNVg Fk7QeTH7EvjZLM4bzFRNnT6UbQHZ X-Google-Smtp-Source: APXvYqx9Hy+O9UTDFkZmv9hdTJ+c3t6YNKjvMWj7w/hC1bzNvC+Yf1NEIuYcXuk2IuQihJK0WAB8Lg== X-Received: by 2002:a1c:e404:: with SMTP id b4mr16526258wmh.90.1572705458532; Sat, 02 Nov 2019 07:37:38 -0700 (PDT) Received: from localhost (p2E5BE2CE.dip0.t-ipconnect.de. [46.91.226.206]) by smtp.gmail.com with ESMTPSA id t134sm13476427wmt.24.2019.11.02.07.37.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 02 Nov 2019 07:37:37 -0700 (PDT) From: Thierry Reding To: Michael Turquette , Stephen Boyd Cc: linux-clk@vger.kernel.org, linux-tegra@vger.kernel.org Subject: [GIT PULL 1/2] clk: Changes for v5.5-rc1 Date: Sat, 2 Nov 2019 15:37:35 +0100 Message-Id: <20191102143736.3862768-1-thierry.reding@gmail.com> X-Mailer: git-send-email 2.23.0 MIME-Version: 1.0 Sender: linux-clk-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-clk@vger.kernel.org Hi Michael, Stephen, The following changes since commit 54ecb8f7028c5eb3d740bb82b0f1d90f2df63c5c: Linux 5.4-rc1 (2019-09-30 10:35:40 -0700) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/tegra/linux.git tags/tegra-for-5.5-clk-core for you to fetch changes up to 837d3fa941cd270e3ac3c2fcf1290cfac4f195f6: clk: Add API to get index of the clock parent (2019-10-29 13:20:13 +0100) Thanks, Thierry ---------------------------------------------------------------- clk: Changes for v5.5-rc1 Contains a single core API addition that allows clock providers to query the parent index for a given struct clk_hw. This is used to implement suspend/resume support on Tegra SoCs. ---------------------------------------------------------------- Sowjanya Komatineni (1): clk: Add API to get index of the clock parent drivers/clk/clk.c | 17 +++++++++++++++++ include/linux/clk-provider.h | 1 + 2 files changed, 18 insertions(+) From patchwork Sat Nov 2 14:37:36 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thierry Reding X-Patchwork-Id: 11224121 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id C6E11139A for ; Sat, 2 Nov 2019 14:37:44 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id A6D4F21855 for ; Sat, 2 Nov 2019 14:37:44 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="S3Bh2H3z" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726687AbfKBOho (ORCPT ); Sat, 2 Nov 2019 10:37:44 -0400 Received: from mail-wr1-f68.google.com ([209.85.221.68]:46904 "EHLO mail-wr1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726430AbfKBOho (ORCPT ); Sat, 2 Nov 2019 10:37:44 -0400 Received: by mail-wr1-f68.google.com with SMTP id b3so6651963wrs.13; Sat, 02 Nov 2019 07:37:41 -0700 (PDT) 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=zBM3L0jlBGXj3TSuMClKg4IxiJ8Eu5J1lnCEn4l3MCY=; b=S3Bh2H3zIFIgBsSdIS4KPJeoDEVx1TjWGYPx2SVlOsghigEQnLXOL+AWMpsqrsEcWm fkt/whMnHt/IRsX86aO03OJVia4OWhLmVUy+xmyDkLSbuiYZFtxabQWBL7m1vQzlpL+e rHHxIBbVLT7Zx3g8mXYj9U0DoI/BwLnXIbphZUEI/v9tyayDBLXzFGq6Ay6DQ5Ka35dP 12EdJayfMTXxs4zo8Um+VYEFcf4aDY9uDrhDav28NLfFM/+z9ELSFCUhFC21ebMPAQrh lrZRaFQiJWCVuETyv+df3A1pFGUIEkvPDWR6NPhiB7h6o8dxnvHZlabqSxowunsVDTkJ JkCQ== 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=zBM3L0jlBGXj3TSuMClKg4IxiJ8Eu5J1lnCEn4l3MCY=; b=TUdnguAwTVhuvS2iYB0+temuDc3Ehfg5I7lUszdS3v2OiEuar/m+TXlL/riHbriQbU 2YdXJLDj4KY4B6dmlZp/skQ5u6oJPhIu5Bcp8FQXbQEHwYpsZ9IjvpIh3u4uGT/1v4Xw 2q4+zXy5uwJxrIE3qq5rrrXekOu0m4MzZ7Vajl+q7Wl3SRIikmWJSjqTFQN3qkb5M1RV k1H+jMf1R3oEg56fUmUcbg0sRbZVMi7xaSLk9oEvxGXWJA9XpBu0L+Cr+chtuc4wuKir YHyALmGQ+td5QUbL/SY61arbrFDzw1NMaiYyz/aHsLsqXqkjNF6wNOXuVm0ble5Zo0RW xtsg== X-Gm-Message-State: APjAAAXT7IVOouSKm0q6rPPMnCMJ/Jc635IjhuzvNVG1GDlV20a8qmX9 iDsB22Opx6lK0gAUWXsMSZDJrQzD X-Google-Smtp-Source: APXvYqx56/jG9S+0Yf+xb7hIXguXh4vzyhnOtv2PVZHzd4mPeHKqawsdE1NW4dQovuulZTW3V4LBtg== X-Received: by 2002:a5d:526a:: with SMTP id l10mr12217589wrc.72.1572705460880; Sat, 02 Nov 2019 07:37:40 -0700 (PDT) Received: from localhost (p2E5BE2CE.dip0.t-ipconnect.de. [46.91.226.206]) by smtp.gmail.com with ESMTPSA id s10sm10968978wrr.5.2019.11.02.07.37.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 02 Nov 2019 07:37:39 -0700 (PDT) From: Thierry Reding To: Michael Turquette , Stephen Boyd Cc: linux-clk@vger.kernel.org, linux-tegra@vger.kernel.org Subject: [GIT PULL 2/2] clk: tegra: Changes for v5.5-rc1 Date: Sat, 2 Nov 2019 15:37:36 +0100 Message-Id: <20191102143736.3862768-2-thierry.reding@gmail.com> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20191102143736.3862768-1-thierry.reding@gmail.com> References: <20191102143736.3862768-1-thierry.reding@gmail.com> MIME-Version: 1.0 Sender: linux-clk-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-clk@vger.kernel.org Hi Michael, Stephen, The following changes since commit 54ecb8f7028c5eb3d740bb82b0f1d90f2df63c5c: Linux 5.4-rc1 (2019-09-30 10:35:40 -0700) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/tegra/linux.git tags/tegra-for-5.5-clk for you to fetch changes up to 25c6fa38444d1bad287895447a17a3cfdbaeee10: clk: tegra: Fix build error without CONFIG_PM_SLEEP (2019-11-01 10:44:52 +0100) Thanks, Thierry ---------------------------------------------------------------- clk: tegra: Changes for v5.5-rc1 The bulk of these changes implement suspend/resume support for Tegra210. In addition, some of the SOR clocks on earlier Tegra generations are reimplemented to more closely match the implementation on later chips, which in turn makes it possible to handle HDMI and DP support in a more unified way. ---------------------------------------------------------------- Dmitry Osipenko (3): clk: tegra: Add Tegra20/30 EMC clock implementation clk: tegra: Optimize PLLX restore on Tegra20/30 clk: tegra: Add missing stubs for the case of !CONFIG_PM_SLEEP Sowjanya Komatineni (12): clk: Add API to get index of the clock parent clk: tegra: divider: Save and restore divider rate clk: tegra: pllout: Save and restore pllout context clk: tegra: pll: Save and restore pll context clk: tegra: Support for OSC context save and restore clk: tegra: periph: Add restore_context support clk: tegra: clk-super: Fix to enable PLLP branches to CPU clk: tegra: clk-super: Add restore-context support clk: tegra: clk-dfll: Add suspend and resume support clk: tegra: Use fence_udelay() during PLLU init clk: tegra: Share clk and rst register defines with Tegra clock driver clk: tegra: Add suspend and resume support on Tegra210 Thierry Reding (8): dt-bindings: clock: tegra: Rename SOR0_LVDS to SOR0_OUT Merge branch 'for-5.5/clk-core' Merge branch 'for-5.5/dt-bindings' clk: tegra: Remove last remains of TEGRA210_CLK_SOR1_SRC clk: tegra: Move SOR0 implementation to Tegra124 clk: tegra: Rename sor0_lvds to sor0_out clk: tegra: Reimplement SOR clock on Tegra124 clk: tegra: Reimplement SOR clocks on Tegra210 YueHaibing (1): clk: tegra: Fix build error without CONFIG_PM_SLEEP drivers/clk/clk.c | 17 ++ drivers/clk/tegra/Makefile | 2 + drivers/clk/tegra/clk-dfll.c | 56 +++++ drivers/clk/tegra/clk-dfll.h | 2 + drivers/clk/tegra/clk-divider.c | 11 + drivers/clk/tegra/clk-id.h | 4 +- drivers/clk/tegra/clk-periph.c | 18 ++ drivers/clk/tegra/clk-pll-out.c | 9 + drivers/clk/tegra/clk-pll.c | 86 ++++--- drivers/clk/tegra/clk-sdmmc-mux.c | 12 + drivers/clk/tegra/clk-super.c | 35 +++ drivers/clk/tegra/clk-tegra-fixed.c | 15 ++ drivers/clk/tegra/clk-tegra-periph.c | 8 - drivers/clk/tegra/clk-tegra-super-gen4.c | 7 +- drivers/clk/tegra/clk-tegra124-dfll-fcpu.c | 1 + drivers/clk/tegra/clk-tegra124.c | 55 ++++- drivers/clk/tegra/clk-tegra20-emc.c | 293 ++++++++++++++++++++++++ drivers/clk/tegra/clk-tegra20.c | 80 +++---- drivers/clk/tegra/clk-tegra210.c | 181 ++++++++++++--- drivers/clk/tegra/clk-tegra30.c | 63 +++-- drivers/clk/tegra/clk.c | 112 +++++---- drivers/clk/tegra/clk.h | 70 ++++++ include/dt-bindings/clock/tegra124-car-common.h | 3 +- include/dt-bindings/clock/tegra210-car.h | 6 +- include/linux/clk-provider.h | 1 + include/linux/clk/tegra.h | 24 ++ 26 files changed, 983 insertions(+), 188 deletions(-) create mode 100644 drivers/clk/tegra/clk-tegra20-emc.c