From patchwork Mon Feb 24 04:49:58 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vinod Koul X-Patchwork-Id: 190255 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.1 required=3.0 tests=DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, MAILING_LIST_MULTI, SPF_HELO_NONE, SPF_PASS, USER_AGENT_GIT autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 33A9CC35641 for ; Mon, 24 Feb 2020 04:50:23 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 0132020863 for ; Mon, 24 Feb 2020 04:50:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1582519823; bh=raLSkCsVsEsGVWKAl7s7CtI/m6bBykJgg2wahMZMTJA=; h=From:To:Cc:Subject:Date:List-ID:From; b=Ga2XC7Pz/5G+Kn7V+C0wFLCcONr7tCiiccyumogisA9VoJiclc6S8AMQhC3cpRwox ceMXtFdR170db8/rLMEMO27oApTdS60p22v1OdFqad7IwU3B5du0HV0wAEn8cuslvZ zFCNKjxUCJ2fs09nuawVR/fO4iI6XAFgXnKC/eeQ= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727189AbgBXEuW (ORCPT ); Sun, 23 Feb 2020 23:50:22 -0500 Received: from mail.kernel.org ([198.145.29.99]:38052 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727186AbgBXEuW (ORCPT ); Sun, 23 Feb 2020 23:50:22 -0500 Received: from localhost.localdomain (unknown [122.182.199.233]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id CEEF320661; Mon, 24 Feb 2020 04:50:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1582519821; bh=raLSkCsVsEsGVWKAl7s7CtI/m6bBykJgg2wahMZMTJA=; h=From:To:Cc:Subject:Date:From; b=Z+CPGI+ivK+KlgnAbdUQ9sbHqEVCzb5EXR1H0M1jtjH31mMDljeUtIqaMJ3O25YJK owXXj8jvzhCgC7pnesz/a6Sw7oqysc/WpdTosYl1fCENLi7f/gJqmoigMv+6w3juTz dRuRuxDdcGMTu38owzybyUgbAqcsj4UWircjTWXc= From: Vinod Koul To: Stephen Boyd Cc: linux-arm-msm@vger.kernel.org, Bjorn Andersson , Vinod Koul , Rob Herring , Mark Rutland , devicetree@vger.kernel.org, Andy Gross , Michael Turquette , linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, psodagud@codeaurora.org, tsoni@codeaurora.org, jshriram@codeaurora.org, tdas@codeaurora.org, vnkgutta@codeaurora.org Subject: [PATCH v4 0/5] Add clock drivers for SM8250 SoC Date: Mon, 24 Feb 2020 10:19:58 +0530 Message-Id: <20200224045003.3783838-1-vkoul@kernel.org> X-Mailer: git-send-email 2.24.1 MIME-Version: 1.0 Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org This series adds clock drivers support for SM8250 SoC. As part of the device tree, the sm8250 dts file has basic nodes like CPU, PSCI, intc, timer and clock controller. Required clock controller driver and RPMH cloks are added to support peripherals like USB. All this configuration is added to support SM8250 to boot up to the serial console. Changes in v4: - Make qcom,gcc-sm8250.yaml license as dual GPL + BSD Changes in v3: - Dropped accepted patches by Steve - Split the common rename patch to rename and refactor patches - Rebase on clk/clk-qcom and move yaml binding to .../bindings/clock/qcom,gcc-sm8250.yaml - Fix comments form Steve on gcc-sm8250 clk driver Taniya Das (5): clk: qcom: clk-alpha-pll: Use common names for defines clk: qcom: clk-alpha-pll: Refactor trion PLL clk: qcom: clk-alpha-pll: Add support for controlling Lucid PLLs dt-bindings: clock: Add SM8250 GCC clock bindings clk: qcom: gcc: Add global clock controller driver for SM8250 .../bindings/clock/qcom,gcc-sm8250.yaml | 72 + drivers/clk/qcom/Kconfig | 7 + drivers/clk/qcom/Makefile | 1 + drivers/clk/qcom/clk-alpha-pll.c | 264 +- drivers/clk/qcom/clk-alpha-pll.h | 12 + drivers/clk/qcom/gcc-sm8250.c | 3690 +++++++++++++++++ include/dt-bindings/clock/qcom,gcc-sm8250.h | 271 ++ 7 files changed, 4268 insertions(+), 49 deletions(-) create mode 100644 Documentation/devicetree/bindings/clock/qcom,gcc-sm8250.yaml create mode 100644 drivers/clk/qcom/gcc-sm8250.c create mode 100644 include/dt-bindings/clock/qcom,gcc-sm8250.h Reviewed-by: Bryan O'Donoghue Tested-by: Bryan O'Donoghue