From patchwork Wed Jun 30 13:31:43 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 468690 Delivered-To: patch@linaro.org Received: by 2002:a02:c94a:0:0:0:0:0 with SMTP id u10csp354294jao; Wed, 30 Jun 2021 06:31:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyeRnwzYNuKQJooY2B0T5lor0RSn2bVLy2mjE1mxgmH6I3IMXDVmC9RV/EtNLigTEIL3tBp X-Received: by 2002:a92:4446:: with SMTP id a6mr26418486ilm.9.1625059919035; Wed, 30 Jun 2021 06:31:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625059919; cv=none; d=google.com; s=arc-20160816; b=vq1byxVzrJ86TuOb5JjT5uDxHTLtZmt5Taix4suA4t4lZmQEBLVVq/04Q0WZWrWhP3 nSmQfXvYO1KWJISjSyG52nXqbXkGrQNj1qNvNFZ5veE1LrRUQNzVO5NjGTU1KmQhOnhx dIxQzCU4ffX7BbCppIQNCjwjYzWzCVMaolGRBZxRiJm7mwsuyr19zl+IV0uTWdF8vhcf 6TQ+tMB/3pSAFxEvb271ts4iQGlMul+1hkNVViOLd9Ed4lVSYOw0wyrf6xKS0NHsw1ZV yz1kxti4//Cfc7pXI7ooWQhdpo43hTj9duQXyc5Qn04x+uARjjYeyGX6V5QlUCMBuTl2 kylg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=pUIlKUb2VNsBMxEGshGZSTgSUZ/+y9exbQnL3jxdY4Q=; b=F/qschpfifbX/Gx3fSOIFpdqJ9y6Ku09rzJnJDbIBDZOlr4MjEN4G0ht0XdTfn2tQ6 a17qlqPPITLi6RJNIf7B3TaWc8tUGt0/bSpfNNUYBNZmOL2tI/TtCsPkj/0FDMS6CSUs PN0YCvmr7lGBGZcs7y87HopQW+fVMEHyfnxiTnPFWhYVqQnI10T6DOwC1Qhz8wCHh2p+ yKbZNSm2pLHbDCZI/KcZSn0sFqTl92azdtuvd36eiQeUb8BnYtZznSjLmX6V7J9p6/yt fIAuTjnWIt6KvrWyMqlIGFtotXoVSo2QVrtdxFnIVMdqlWGp8FfucCP5+D5MQ19MhjNP sLrA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="m8/ZyOw8"; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s9si1455631iow.41.2021.06.30.06.31.58; Wed, 30 Jun 2021 06:31:59 -0700 (PDT) Received-SPF: pass (google.com: domain of devicetree-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=@linaro.org header.s=google header.b="m8/ZyOw8"; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235005AbhF3Ne0 (ORCPT + 7 others); Wed, 30 Jun 2021 09:34:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41924 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234903AbhF3NeX (ORCPT ); Wed, 30 Jun 2021 09:34:23 -0400 Received: from mail-lj1-x22f.google.com (mail-lj1-x22f.google.com [IPv6:2a00:1450:4864:20::22f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 56A58C061766 for ; Wed, 30 Jun 2021 06:31:53 -0700 (PDT) Received: by mail-lj1-x22f.google.com with SMTP id h6so3293158ljl.8 for ; Wed, 30 Jun 2021 06:31:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=pUIlKUb2VNsBMxEGshGZSTgSUZ/+y9exbQnL3jxdY4Q=; b=m8/ZyOw8UIZzA4U6zFtgtKJQrhzLglN5hzj06KtI0x4gEO9vac+4oPc/JIJCmxe1g/ QGSGUeOaRPeT72vSXYEIAjj5bvORV6EPdLMaJhlz48AXCXKzAa7bXRaZv/nfS6Id1tFM y9lzzXwODdpPYlOzvHXecQBkIcBbOjZ5+4pCH7z6viMObyJFfbVNA1Sgh9xDh7TvClMW I0dIl0V1K1tBWgYXMtd42a9XsLfpk2I517EQg9mtP7AFQVdB5gVDhCaD9leKliJnfsnR zakCs+7l+lwFPVmT6kAycgRR2ZyoRqWfHKZlkxdDV+emmNqUUQ7nrRMwAsWTOSKN2SwY EJVw== 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=pUIlKUb2VNsBMxEGshGZSTgSUZ/+y9exbQnL3jxdY4Q=; b=hmRcjR4onweuewT5aLMOkAJE7JSwlN8OX9KfixGuDgZyrrZc6Yq6RH0w8fGMLpW5SZ DkLse3MRhwP42X6VU4W8/aLZVfTanVm1rgC5e2xdHNyerVZoFlHvm4BxfNvlZwWahp14 y98Dtg0tunYXyFnxuXSfwbmjc+ry8fZnWPVqZ/yJ16U8cedJStSHtXxTN17mDcorrwHe QJUTodygToFiSpu7rY8S5+6OfFLymaj8Cchl0NLmliWTJ0JKfkOGEC+eeJa/zGQ0KbcH iT6BPp1XAo8Q64RRYLq6DRUBPNky3iOjVGwU9A8JPHzlSWRRdNt04VrvEXr48ou3B3M4 t5fQ== X-Gm-Message-State: AOAM530Ph5gY2x80zXQW9veuLnEgrue6f1RYMqdYsikHDp0/9lPW0+8D w2HUILAmW8zkuwKO5wJ4Lch73Q== X-Received: by 2002:a2e:9e8e:: with SMTP id f14mr7967443ljk.468.1625059911561; Wed, 30 Jun 2021 06:31:51 -0700 (PDT) Received: from eriador.lan ([37.153.55.125]) by smtp.gmail.com with ESMTPSA id x20sm1578098lfd.128.2021.06.30.06.31.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 30 Jun 2021 06:31:50 -0700 (PDT) From: Dmitry Baryshkov To: Andy Gross , Bjorn Andersson , Rob Herring , Stephen Boyd , Taniya Das , Jonathan Marek , Michael Turquette Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-clk@vger.kernel.org, Bryan O'Donoghue , Mark Brown , Ulf Hansson , linux-kernel@vger.kernel.org Subject: [PATCH 0/6] clk: qcom: use power-domain for sm8250's clock controllers Date: Wed, 30 Jun 2021 16:31:43 +0300 Message-Id: <20210630133149.3204290-1-dmitry.baryshkov@linaro.org> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org On SM8250 both the display and video clock controllers are powered up by the MMCX power domain. Handle this link in GDSC code by using pm_runtime_get/put to enable and disable the MMCX power domain. ---------------------------------------------------------------- Dmitry Baryshkov (6): dt-bindings: clock: qcom,dispcc-sm8x50: add mmcx power domain dt-bindings: clock: qcom,videocc: add mmcx power domain clk: qcom: gdsc: enable optional power domain support arm64: dts: qcom: sm8250: remove mmcx regulator clk: qcom: dispcc-sm8250: stop using mmcx regulator clk: qcom: videocc-sm8250: stop using mmcx regulator .../bindings/clock/qcom,dispcc-sm8x50.yaml | 19 ++++++++ .../devicetree/bindings/clock/qcom,videocc.yaml | 19 ++++++++ arch/arm64/boot/dts/qcom/sm8250.dtsi | 13 ++--- drivers/clk/qcom/common.c | 55 +++++++++++++++++++--- drivers/clk/qcom/dispcc-sm8250.c | 1 - drivers/clk/qcom/gdsc.c | 6 +++ drivers/clk/qcom/videocc-sm8250.c | 4 -- 7 files changed, 97 insertions(+), 20 deletions(-) Reviewed-by: Bjorn Andersson