Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp2659931pxy; Sun, 25 Apr 2021 00:09:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx+gZIVRKTaRitqJm9srGaqZZnH+f3WgZlWu44bpC2cQ1e3RjVc5MvfU6qAL8BgvJiPh3U7 X-Received: by 2002:a17:90a:f992:: with SMTP id cq18mr13584121pjb.7.1619334594438; Sun, 25 Apr 2021 00:09:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619334594; cv=none; d=google.com; s=arc-20160816; b=WUYHp+U/PJ83VryYqXJEPcAUcELEKltR8CO/x1YT2xp8gK1T6lqd3scApOZs6kLB0M bJy85aVQQEvEdZMU5tPN8s7ou8ZN2lxwiNqDSID2H2gjtPxJF+NHDW/ryEGHtm6rgT5d ArTw21yjoHvmW7zK+62uOLUMeRXKQLvBmUxqY3W5u1U1eCCku5HwqYvEzsbkGp/cO+1G fKsSrOAdimSayY1oH74FlwEQYSdc61mldsODjkfvfn4eTz0R/77kKWuVjZpxWAYs8d+x C8wAqpvkt6RSfHuLb1nkn9+J3wdODJ1xuftBVrkgrsn3oXyJ/rBel/nB+R88bSAGlDWN n4Kw== 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=niPyJpAZpR71QDB+qwRPU8SYtCcTw1VHp+nM0K9chAQ=; b=KkHGtuWCDJVpHMpllyp20SW2FsFCFCPX0nJkS34oVtJ4ZXLo8lvmIgJF2+HBIKU9qC hvvtVFteBezBd4krBo7kBHClLAgQlMnw3JKFKeTwMeyArhPAbnvsRUo64wjhkIAitYTc KMUfZCgQTodoHclBCJUD1vwRn+Z1nn+vn0UDqMExB4XCXBiIEKzAjChuXFIxLzuwyXZl s2EXtDqwwRWskpisw8KYRN4k5ttKza2ZPFfXITqHzzhA0ClB7IuD5y15nPotsMTZfWua NafC6+PQMw83dOcdoayQvSeUXRuZg85H51T/ouEkbp56fwvd/HP1rxM81zQFJQc1qqn3 k/rw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b=iLBhOmh8; 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 v11si15193286pfu.140.2021.04.25.00.09.42; Sun, 25 Apr 2021 00:09:54 -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=iLBhOmh8; 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 S229786AbhDYHJW (ORCPT + 99 others); Sun, 25 Apr 2021 03:09:22 -0400 Received: from so254-9.mailgun.net ([198.61.254.9]:32312 "EHLO so254-9.mailgun.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229744AbhDYHJV (ORCPT ); Sun, 25 Apr 2021 03:09:21 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1619334522; h=Message-Id: Date: Subject: Cc: To: From: Sender; bh=niPyJpAZpR71QDB+qwRPU8SYtCcTw1VHp+nM0K9chAQ=; b=iLBhOmh8Wu1k6p9HQhx4it5wIhL7E29bN9hsHn60sSkzAv/o6F43v+d1qP27c4QOeWt5HyEg dLmZM1iA2LnjPH15nVxFfZrj1cxFpY9q3KDqid8bxDU1fZTE321A0RIWumlNEsctJKzCFUtW WL2xEKsbDnaqI8nL3DHyDQu2f0c= X-Mailgun-Sending-Ip: 198.61.254.9 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-n06.prod.us-west-2.postgun.com with SMTP id 608515782cc44d3aea6e458c (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Sun, 25 Apr 2021 07:08:40 GMT Sender: tdas=codeaurora.org@mg.codeaurora.org Received: by smtp.codeaurora.org (Postfix, from userid 1001) id B4D2FC433D3; Sun, 25 Apr 2021 07:08:39 +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 BFF6CC433D3; Sun, 25 Apr 2021 07:08:35 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org BFF6CC433D3 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: Rajendra Nayak , linux-arm-msm@vger.kernel.org, linux-soc@vger.kernel.org, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, Taniya Das Subject: [PATCH v3] Add support for duty-cycle for RCG Date: Sun, 25 Apr 2021 12:38:21 +0530 Message-Id: <1619334502-9880-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 The root clock generators with MND divider has the capability to support change in duty-cycle by updating the 'D'. Add the clock ops which would check all the boundary conditions and enable setting the desired duty-cycle as per the consumer. [v3] * Implement clockops for get_duty_cycle. * Return -EINVAL for Non-MND or HID RCGs. Taniya Das (1): clk: qcom: clk-rcg2: Add support for duty-cycle for RCG drivers/clk/qcom/clk-rcg2.c | 81 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 81 insertions(+) -- Qualcomm INDIA, on behalf of Qualcomm Innovation Center, Inc.is a member of the Code Aurora Forum, hosted by the Linux Foundation.