Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp1511060pxu; Fri, 16 Oct 2020 14:03:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxngTwAmg2jubK9E9Qrr0mbqA1SJNuOUGH7WoCQ90fL29icPrMRtHr5zZzjkoYNOkkNk74o X-Received: by 2002:a05:6402:1cbb:: with SMTP id cz27mr5985795edb.38.1602882216977; Fri, 16 Oct 2020 14:03:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1602882216; cv=none; d=google.com; s=arc-20160816; b=YI/TdY6DDMpWw/a57VrxFdgNBPhJmByTrSZ/pPIXxxQIzV0ZwYyoACNAxfRwH3NoxD y97/cdmecAmf9YXTsWjtsf5O2A9WtMxGliTpkhAKqlwXNynz4alwZIJEVgRip7lILJ6h 8tPptHgFNAw61l5lI8jEb3fkEMf2qI262gCmBuR8uNN5d1Hh1MSso+WzfvZNJyCIEgKr oQyIuFeTzKMlTT+eYdibq8CWyKd8OY8dtV5VEU+3te0GWGAOy+WuYAgpKhm8iC3O+Np/ GVWz2jVHFKvJmwAsumGpIzoensQaFCRyN9uSTnya/cBySSnLc/Q1Vb+Jb9v38wkVV+Aj NUQw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from:dmarc-filter :sender:dkim-signature; bh=12+N9Ofs4vDd/K1DaE9mgI4Xg6xM+6FDR7mLAtVA9WQ=; b=c/Q2Ny6QtrYQI1rnTpUK4w5IZjGeRo4k79W2o+EMRBVxfFIJmQSeslX2U3S6eM7YVC oFHNY5XbF+BOsO9v1fLM2YY8YhgCIjOxDgL8it63HrWfxLbzNffKFunTvLDGC51n7Ngl 9mBU8idVf4sSb+25Et8MWbQVnWCsAmdi7bs32nGPn4vhdGRq0LVnga72C50G9I1epD1h bJ0t13IBZN3TCIUNttfD0aK9cUKVdgYZb8z3PPjiejARJ1667yuvf6zE+EibYhErZnar GyP9J0o6jaXCZAs/jI+XjydTmDNaeM4E6S7Lde3EqnuafRHjoujGMJlkCiNFNycKZjkc C3Sg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b=vxXpO3Ll; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d17si2504883edj.42.2020.10.16.14.03.14; Fri, 16 Oct 2020 14:03:36 -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; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b=vxXpO3Ll; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2392781AbgJPSoG (ORCPT + 99 others); Fri, 16 Oct 2020 14:44:06 -0400 Received: from m42-4.mailgun.net ([69.72.42.4]:60314 "EHLO m42-4.mailgun.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2392758AbgJPSoF (ORCPT ); Fri, 16 Oct 2020 14:44:05 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1602873845; h=Message-Id: Date: Subject: Cc: To: From: Sender; bh=12+N9Ofs4vDd/K1DaE9mgI4Xg6xM+6FDR7mLAtVA9WQ=; b=vxXpO3Ll0MkTD/pUvYBlO2SuLexgAILhF0ehTpHT9CGBl9EFiasXjaLoQepccP+mmIOcu0M0 n9ORCJpEJi7GOtGK3sx9dQQiZiXUPdg9N0b/GxNmg5OgHjGCey2gJk9H68isqacV3wEKWguQ ifQ0RU8/fqwVOvZBQQvw0S0ejmA= X-Mailgun-Sending-Ip: 69.72.42.4 X-Mailgun-Sid: WyI0MWYwYSIsICJsaW51eC1rZXJuZWxAdmdlci5rZXJuZWwub3JnIiwgImJlOWU0YSJd Received: from smtp.codeaurora.org (ec2-35-166-182-171.us-west-2.compute.amazonaws.com [35.166.182.171]) by smtp-out-n04.prod.us-west-2.postgun.com with SMTP id 5f89e9e542f9861fb11fe82f (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Fri, 16 Oct 2020 18:43:49 GMT Sender: tdas=codeaurora.org@mg.codeaurora.org Received: by smtp.codeaurora.org (Postfix, from userid 1001) id DF6B6C433FE; Fri, 16 Oct 2020 18:43:48 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-caf-mail-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=ALL_TRUSTED,BAYES_00,SPF_FAIL, URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from tdas-linux.qualcomm.com (unknown [202.46.22.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: tdas) by smtp.codeaurora.org (Postfix) with ESMTPSA id 02D33C433CB; Fri, 16 Oct 2020 18:43:43 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 02D33C433CB Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; spf=fail smtp.mailfrom=tdas@codeaurora.org From: Taniya Das To: Stephen Boyd , =?UTF-8?q?Michael=20Turquette=20=C2=A0?= Cc: David Brown , Rajendra Nayak , linux-arm-msm@vger.kernel.org, linux-soc@vger.kernel.org, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, Andy Gross , devicetree@vger.kernel.org, robh@kernel.org, robh+dt@kernel.org, Taniya Das Subject: [PATCH v3 0/4] Add Camera clock controller driver for SC7180 Date: Sat, 17 Oct 2020 00:13:31 +0530 Message-Id: <1602873815-1677-1-git-send-email-tdas@codeaurora.org> X-Mailer: git-send-email 2.7.4 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org [v3] * Introduce helper functions to be used across pll configure and pll rate margins. * Update the Agera PLL configure/set rate to use the new helper functions. * Update documentation binding to update the header inclusion. * Update the vco table to 'const'. * Fix the failure path of probe. [v2] * Update PLL set rate function : clk_alpha_pll_agera_set_rate * Remove mb() [v1] * Add support for Agera PLL which is used in the camera clock controller. * Add driver support for camera clock controller for SC7180 and also update device tree bindings for the various clocks supported in the clock controller. Taniya Das (4): clk: qcom: clk-alpha-pll: Add support for helper functions clk: qcom: clk-alpha-pll: Add support for controlling Agera PLLs dt-bindings: clock: Add YAML schemas for the QCOM Camera clock bindings. clk: qcom: camcc: Add camera clock controller driver for SC7180 .../bindings/clock/qcom,sc7180-camcc.yaml | 73 + drivers/clk/qcom/Kconfig | 9 + drivers/clk/qcom/Makefile | 1 + drivers/clk/qcom/camcc-sc7180.c | 1736 ++++++++++++++++++++ drivers/clk/qcom/clk-alpha-pll.c | 217 ++- drivers/clk/qcom/clk-alpha-pll.h | 4 + include/dt-bindings/clock/qcom,camcc-sc7180.h | 121 ++ 7 files changed, 2072 insertions(+), 89 deletions(-) create mode 100644 Documentation/devicetree/bindings/clock/qcom,sc7180-camcc.yaml create mode 100644 drivers/clk/qcom/camcc-sc7180.c create mode 100644 include/dt-bindings/clock/qcom,camcc-sc7180.h -- Qualcomm INDIA, on behalf of Qualcomm Innovation Center, Inc.is a member of the Code Aurora Forum, hosted by the Linux Foundation.