Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp201812ybz; Thu, 16 Apr 2020 22:56:19 -0700 (PDT) X-Google-Smtp-Source: APiQypIJDXjVZWRDSX04E9N2ZGgiSm1MDQpfwem+Rd/S9fmfNXIW4xfF8/t3ZxpfRAjlYygWXdbO X-Received: by 2002:a05:6402:4a:: with SMTP id f10mr1528454edu.274.1587102979003; Thu, 16 Apr 2020 22:56:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587102978; cv=none; d=google.com; s=arc-20160816; b=JeWtwTeupTZaTI7a8C0vAs2cvQz5pLg6+FwNLqdXsROqd/DQ6yj1X/h3x+ANrKI8fj WpCr2SzTQsAxtMFHu5rzFiU3WBPAmDiMkwFdv4T2MlyuEnbUlzoHN6EWiV5eHQf0prZd qrlZYuueGm/5nXeBr4H/jbVwPe4R3e2uEMExjdkatAWMQme8DNddYg8KUXGHcwCntOWz yo6KlpFvW/Mx2qcFmMWSv/VnOSktVNDvX3Cq81kzsGsXGtT7JMznlVBkHKWUbGSUD82K NYhklJQJgruDFsAYJhPKtqmkFqfZt08eTjVUBUTPdUCHIgMNdonThIwFLUeU23C//8k+ 46ow== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :ironport-sdr:ironport-sdr; bh=818naAoBGtqu6Lj8+3BfLxg+3Uk6pAyt9zLxtAcXeAU=; b=XH8Eie/SubK49MAwpnZKEP2ketwxaZcClKAbrx3S2ZsGjf+AdCHIFfInwEKZzeaYf7 pjDCEfsgYEikpcoXJ166gX+HQvlO+8Jbjyig4ZUIvWoEY5AJkoLfSvH+2S0OEo+PoP88 eCyXycGwLbh2fU9mG23TVHPvXpjdDUftWbuk3m0o5W2nOfEqcOZ4XQWMfZdIDsGIJ89/ DTVlJIwLEi/IXsTEGS4mc7mtiSswxqjIctJhCbYPcDt50LnZz0yi4527wtHpfCUz2BtB tpcLxL6KIV1svpdtglSxSolDfbgwDwE+sJ2lVb6GX/PHYyrHpN0eykT1yRXfZG7pwrCT 4p7Q== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p16si8928540eja.354.2020.04.16.22.55.51; Thu, 16 Apr 2020 22:56:18 -0700 (PDT) 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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726488AbgDQFyy (ORCPT + 99 others); Fri, 17 Apr 2020 01:54:54 -0400 Received: from mga12.intel.com ([192.55.52.136]:64128 "EHLO mga12.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726065AbgDQFyx (ORCPT ); Fri, 17 Apr 2020 01:54:53 -0400 IronPort-SDR: dpx3WOgxY7JZpK/dmexNDH63BSlxhhTGED6XNlAaOwzaretlY48GEQQ/CRjhO59Gb3s3fIar2E fPnkYROxVpzQ== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Apr 2020 22:54:53 -0700 IronPort-SDR: NC5HDhSjxZBTFPHXDwSWhyqwNFkWnMoWKD2QgOoN0ENvTdO8YxwZYP3uLEZyXmKzbxjpPrfRZH x0BeL7GjwOpw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.72,393,1580803200"; d="scan'208";a="364233979" Received: from sgsxdev001.isng.intel.com (HELO localhost) ([10.226.88.11]) by fmsmga001.fm.intel.com with ESMTP; 16 Apr 2020 22:54:50 -0700 From: Rahul Tanwar To: sboyd@kernel.org, mturquette@baylibre.com, linux-clk@vger.kernel.org Cc: robh@kernel.org, mark.rutland@arm.com, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, andriy.shevchenko@intel.com, qi-ming.wu@intel.com, yixin.zhu@linux.intel.com, cheol.yong.kim@intel.com, Rahul Tanwar Subject: [PATCH v8 0/2] clk: intel: Add a new driver for a new clock controller IP Date: Fri, 17 Apr 2020 13:54:45 +0800 Message-Id: X-Mailer: git-send-email 2.11.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, This series adds clock driver for Clock Generation Unit(CGU) of Lightning Mountain(LGM) SoC. Patch 1 adds bindings document & include file for CGU. Patch 2 adds common clock framework based clock driver for CGU. These patches are baselined upon Linux 5.7-rc1 at below Git link: git git://git.kernel.org/pub/scm/linux/kernel/git/clk/linux.git v8: - Rebase to linux 5.7-rc1. v7: - Fix a mistake in comments explaining structure fields. v6: - Resolve Kconfig dependencies issues (Randy Dunlap) v5: - Address review concerns - mainly below mentioned. (Stephen Boyd) - Improve commit message, add COMPILE_TEST in KConfig dependency. - Remove unused header include files, drop unnecessary casts. - Switch to using readl_poll_timeout() instead of implementing timeout routine. - Avoid using small functions which are called just once. Inline them or remove them. - const static --> static const - Fix coding style/convention related review concerns. - Use __iomem for all IO addresses variables. - Consolidate clk_enable & clk_disable ops into a common clk_enable_disable routine to avoid redundant code. - Remove unnecessary dev pointers for clk data structures. - Redesign code to use new way of specifying clk_parents i.e. use clk_parent_data.fw_name instead of older parent_name strings. - Switch from raw_spin_locks() to normal spin_locks() and realign locking. - Drop __initconst, __init, __refdata. - Reorder patch series - make dt-binding patch as first patch. - Add pointer to include file in dt-bindings document. - Remove CLK_IS_CRITICAL flag for clks for which IGNORE_UNUSED flag is enough. Add comments for clks which are marked as CRITICAL. - Fix $id path in dt-bindings - drop bindings. (Rob Herring). - Add Reviewed-by tag from Rob Herring. Thanks Rob. v4: - Add drivers/clk/x86/Kconfig file which got missed in v3 by mistake. v3: - Address review concerns: Add Kconfig entry in x86 folder instead of modifying clk/Kconfig. (Andy Shevchenko) Fix coding style/convention related concerns. (Andy Shevchenko) Improve description, licensing info, rename node name correctly in dt bindings document & remove CLK_NR_CLKS from dt-bindings header file. (Stephen Boyd) Fix a build warning reported by kbuild test robot & Nathan Chancellor - Add few new clocks & rename few existing clocks. - Add more ops for ddiv & divider clk_ops. - Fix few minor bugs. - Use CLK_IS_CRITICAL flag for clocks which shall never be disabled. v2: - Move the driver to x86 folder. - Remove syscon usage. - Remove regmap based access. Use direct readl()/write() instead. Add spinlocks. - Change all enum values to capitals. - Rename all data structures & functions from intel_* to lgm_*. - Remove multiple header files. Keep only one header file. - Make probe fail when any of the clk/pll registration fails. - Fix few bugs with clk_init_data assignement. - Address review concerns for code quality/style/convention. v1: - Initial version. Rahul Tanwar (1): dt-bindings: clk: intel: Add bindings document & header file for CGU rtanwar (1): clk: intel: Add CGU clock driver for a new SoC .../devicetree/bindings/clock/intel,cgu-lgm.yaml | 44 ++ drivers/clk/Kconfig | 1 + drivers/clk/x86/Kconfig | 8 + drivers/clk/x86/Makefile | 1 + drivers/clk/x86/clk-cgu-pll.c | 156 +++++ drivers/clk/x86/clk-cgu.c | 636 +++++++++++++++++++++ drivers/clk/x86/clk-cgu.h | 335 +++++++++++ drivers/clk/x86/clk-lgm.c | 492 ++++++++++++++++ include/dt-bindings/clock/intel,lgm-clk.h | 165 ++++++ 9 files changed, 1838 insertions(+) create mode 100644 Documentation/devicetree/bindings/clock/intel,cgu-lgm.yaml create mode 100644 drivers/clk/x86/Kconfig create mode 100644 drivers/clk/x86/clk-cgu-pll.c create mode 100644 drivers/clk/x86/clk-cgu.c create mode 100644 drivers/clk/x86/clk-cgu.h create mode 100644 drivers/clk/x86/clk-lgm.c create mode 100644 include/dt-bindings/clock/intel,lgm-clk.h -- 2.11.0