Message ID | 20230628-topic-refgen-v3-0-9fbf0e605d23@linaro.org |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f45:0:b0:3ea:f831:8777 with SMTP id v5csp715796vqx; Mon, 3 Jul 2023 11:35:56 -0700 (PDT) X-Google-Smtp-Source: APBJJlH28apPnZTzApe14bqoaLwtHudEm5Eixld0hPDoB1bDXAhSk190jr6UcmJ2suKOJ0tq4TvM X-Received: by 2002:a17:902:fb8e:b0:1b8:70d2:eb3a with SMTP id lg14-20020a170902fb8e00b001b870d2eb3amr10574566plb.0.1688409355926; Mon, 03 Jul 2023 11:35:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688409355; cv=none; d=google.com; s=arc-20160816; b=qf2z+r3bhWS318GjAf+bjNGWhqQuw7lE3cTWz4ffrHCgSj41Zp6dQ8iFjSHsxZEVng Ycj7KPpR3TiCDtHBLeXbLUM86Na9zgc+EOdIez3bHUojOJklc1qIlJ45sR32VD3MpLBc 9S1lsy0D7XpmSzV9OnfxjvT3YcuPDI8FYGatEIr9W6rc/+4xx+wUCzhkWWCOBeDtAfQp sKtHCDuZ+MYdHhDp0JYnAY0BfVY6f5DWvPhmziu1xXJMwV+waiwvYahojS7iRzWxqi6R ZDNSOmP4AIL32bYa/5NLfhwLYjKby5SupwOehH0tEAIZUL6TPM2hinu0Rqpx0uOcXyP5 eLjw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:content-transfer-encoding:mime-version :message-id:date:subject:from:dkim-signature; bh=QTb+nXJp46q8JDCpV9EvFgYbL4krB6DdNBmj86VEcFo=; fh=xqhvKFBEPfFJW68pxDib7dkLFOwl12mV3dmpZF+xzUU=; b=AKJIIuod9s5i4mKNcCDda5iE81BPJeqIJo6Azhv7j4cuxnEZDgpjnibNwYE3C7QwHD OmagIDm9pNOokkOKSm9ptw4k8sUhGEgXw+oyIH7LtEKW8r42cGJHJ1hQBgPGf3PvYH3t g7Stk+B2jgf61GVGDWfm/poP8YLOWVVYvEPwCtKxB5jgtOpEfTz/bTufchgJ8cIOVHDW OHFA9xYnDvzknFundPdEcQBMF6ZP4p53IDqHUNEBSjNj3PkWy2CcrVbvRPcOtMDeEABF SHoFL5lzwQsGDYst21KpPAdf9ZTJDqlzqLMr/epesEGJErkitcYQmi/YChOHX0fUQcf4 oFvw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=XuZ6q3VR; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p18-20020a170902ebd200b001b876cb3e53si6481771plg.211.2023.07.03.11.35.43; Mon, 03 Jul 2023 11:35:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=XuZ6q3VR; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-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 S230360AbjGCSQE (ORCPT <rfc822;ivan.orlov0322@gmail.com> + 99 others); Mon, 3 Jul 2023 14:16:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39434 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230072AbjGCSQC (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 3 Jul 2023 14:16:02 -0400 Received: from mail-lf1-x12f.google.com (mail-lf1-x12f.google.com [IPv6:2a00:1450:4864:20::12f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 14492DD for <linux-kernel@vger.kernel.org>; Mon, 3 Jul 2023 11:16:01 -0700 (PDT) Received: by mail-lf1-x12f.google.com with SMTP id 2adb3069b0e04-4fba1288bbdso6008416e87.1 for <linux-kernel@vger.kernel.org>; Mon, 03 Jul 2023 11:16:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1688408159; x=1691000159; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:from:to:cc:subject:date:message-id:reply-to; bh=QTb+nXJp46q8JDCpV9EvFgYbL4krB6DdNBmj86VEcFo=; b=XuZ6q3VRsc5ysNSSfsmGf3gsLeCvE1lGP2VNQwr+GWLbH8tuBgj7maui1ViU+F5QnS a4nwNpK4WsD5x/XEw/yyC+NHBu5be9jZpSd7SBcJYsEeA4xiBua1PIfBd2sw8N0p0s/9 WKUczo7kHoFvD6ea02hfGzGC0caphZjYO8Xmmde4RvG7RNV/XFlcqtJ9FcRotHD6z+NM xLYFJWCq8bCkogJ86G6z5RwbVjuL02LBOLHRMswnUfFTzXvZT0lJrkjpZ8nAo6WCDwIc kzwDeuWb3kXyK53ee3e3SgMoJZFikYmbsZKsOopOkx2AnjQyWLRDOv5nZMRYnqgoq3zQ xzMw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688408159; x=1691000159; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=QTb+nXJp46q8JDCpV9EvFgYbL4krB6DdNBmj86VEcFo=; b=Vb/eda7HZk/L1/LOezcrt4QJJBNrvxVj9+PvI8l6WLZjvJ4enW8YOIxdhlV60gwGst Tc4oNZftXU381f4rIF0Lrko6OwmLh2Ml9nUnP1NAKq7OakvhDGrovIxoTT84hbfZo4I+ XIFOed3FFwFKArAhMJaZj7WGOc9rWYMS2c6Y6k0ApGvcpn2oDqNYzjzuNES/yi0dmuPE IuEXvBpzoJ9dV9822c1mQwgcC/zKE7ITFtbeUepKMy8K1lkzw+88nBQIQd2o3XGpdzxH vNDoYhzX+RHNm5KHJ15E7UX4Jwv88rVtA4P991cJ4l+tXHKzrce1Ef+RLMPr8zGAStNO IZBA== X-Gm-Message-State: ABy/qLakqmyHrAEdleCvsCLrgfWXzLWKhaQXpIqNXN/TisWdeeve4KeF j1a3i3mYfD0xADRmRYyxFS8CDw== X-Received: by 2002:a19:2d05:0:b0:4fb:8e1b:ba05 with SMTP id k5-20020a192d05000000b004fb8e1bba05mr7952874lfj.11.1688408159219; Mon, 03 Jul 2023 11:15:59 -0700 (PDT) Received: from [192.168.1.101] (abyj26.neoplus.adsl.tpnet.pl. [83.9.29.26]) by smtp.gmail.com with ESMTPSA id a6-20020a056512390600b004f1383d57ecsm4633034lfu.202.2023.07.03.11.15.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 03 Jul 2023 11:15:58 -0700 (PDT) From: Konrad Dybcio <konrad.dybcio@linaro.org> Subject: [PATCH v3 0/4] Qualcomm REFGEN regulator Date: Mon, 03 Jul 2023 20:15:53 +0200 Message-Id: <20230628-topic-refgen-v3-0-9fbf0e605d23@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-B4-Tracking: v=1; b=H4sIAFkQo2QC/32Nyw7CIBREf8WwFsOjQHXlfxgXgLctSQMNVKJp+ u/edudCl2cyZ2YhBXKAQi6HhWSooYQUEeTxQPxgYw80PJCJYEIyLVo6pyl4mqHrIVLedI45owX niqDibAHqso1+QCk+xxHDCcvhtX/c7shDKHPK7/2y8i39sV45ZZQLDeqsjARw1zFEm9Mp5Z5sS 1X8swXamkvdtMab1qsve13XD8P2byn8AAAA To: Andy Gross <agross@kernel.org>, Bjorn Andersson <andersson@kernel.org>, Liam Girdwood <lgirdwood@gmail.com>, Mark Brown <broonie@kernel.org>, Rob Herring <robh+dt@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, Conor Dooley <conor+dt@kernel.org>, Rob Clark <robdclark@gmail.com>, Abhinav Kumar <quic_abhinavk@quicinc.com>, Dmitry Baryshkov <dmitry.baryshkov@linaro.org>, Sean Paul <sean@poorly.run>, David Airlie <airlied@gmail.com>, Daniel Vetter <daniel@ffwll.ch>, Krishna Manikandan <quic_mkrishn@quicinc.com> Cc: Marijn Suijten <marijn.suijten@somainline.org>, Konrad Dybcio <konradybcio@kernel.org>, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org, Konrad Dybcio <konrad.dybcio@linaro.org>, Rob Herring <robh@kernel.org> X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1688408157; l=1915; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=3ESCbgZ3PrD9wdJUC4E4i1ivhrr8hMCGWLtTU5VEbiE=; b=lVsR+3/ZTGKIrLGUE+kXfNb+uXPVJuPxZnKBT6Vi1scMbUIju2H2BmbC+EPLt8/QOISbRw6xR 0GP4K7edxsvAYyTe+5BUX/I6zfBEYtpiezeRluPx78MvRquvBpGgf0t X-Developer-Key: i=konrad.dybcio@linaro.org; a=ed25519; pk=iclgkYvtl2w05SSXO5EjjSYlhFKsJ+5OSZBjOkQuEms= X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1770425529158621656?= X-GMAIL-MSGID: =?utf-8?q?1770425529158621656?= |
Series | Qualcomm REFGEN regulator | |
Message
Konrad Dybcio
July 3, 2023, 6:15 p.m. UTC
Recent Qualcomm SoCs have a REFGEN (reference voltage generator) regulator
responsible for providing a reference voltage to some on-SoC IPs (like DSI
or PHYs). It can be turned off when unused to save power.
This series introduces the driver for it and lets the DSI driver
consume it.
Signed-off-by: Konrad Dybcio <konrad.dybcio@linaro.org>
---
Changes in v3:
- depend on HAS_IOMEM (s390 build failure, meh)
- constify regulator_ops
- Link to v2: https://lore.kernel.org/r/20230628-topic-refgen-v2-0-6136487c78c5@linaro.org
Changes in v2:
- Remove "|" from bindings description
- fix 'renegator' typo
- define number of 'reg'
- adjust reg= to size/address-cells = 1
- fix regmap usage
- use C++ comments for the header
- remove now-unused struct qcom_refgen
- use common helpers for sm8250 refgen (simple bit ops)
- add missing FIELD_PREPs (small brain forgot regmap_update_bits
doesn't do shifting)
- pick up tags
- Link to v1: https://lore.kernel.org/r/20230628-topic-refgen-v1-0-126e59573eeb@linaro.org
---
Konrad Dybcio (4):
dt-bindings: regulator: Describe Qualcomm REFGEN regulator
regulator: Introduce Qualcomm REFGEN regulator driver
dt-bindings: display/msm: dsi-controller-main: Allow refgen-supply
drm/msm/dsi: Hook up refgen regulator
.../bindings/display/msm/dsi-controller-main.yaml | 4 +
.../regulator/qcom,sdm845-refgen-regulator.yaml | 57 ++++++++
drivers/gpu/drm/msm/dsi/dsi_cfg.c | 2 +
drivers/regulator/Kconfig | 11 ++
drivers/regulator/Makefile | 1 +
drivers/regulator/qcom-refgen-regulator.c | 154 +++++++++++++++++++++
6 files changed, 229 insertions(+)
---
base-commit: 296d53d8f84ce50ffaee7d575487058c8d437335
change-id: 20230628-topic-refgen-14fb0b762115
Best regards,
Comments
On Mon, Jul 03, 2023 at 08:15:53PM +0200, Konrad Dybcio wrote: > Recent Qualcomm SoCs have a REFGEN (reference voltage generator) regulator > responsible for providing a reference voltage to some on-SoC IPs (like DSI > or PHYs). It can be turned off when unused to save power. > > This series introduces the driver for it and lets the DSI driver > consume it. What's the expected plan for merging this - should I be applying the DRM patch?
On 4.07.2023 00:59, Mark Brown wrote: > On Mon, Jul 03, 2023 at 08:15:53PM +0200, Konrad Dybcio wrote: > >> Recent Qualcomm SoCs have a REFGEN (reference voltage generator) regulator >> responsible for providing a reference voltage to some on-SoC IPs (like DSI >> or PHYs). It can be turned off when unused to save power. >> >> This series introduces the driver for it and lets the DSI driver >> consume it. > > What's the expected plan for merging this - should I be applying the DRM > patch? Uh sorry for not clarifying.. please just take the first two. Konrad
On Tue, 4 Jul 2023 at 01:59, Mark Brown <broonie@kernel.org> wrote: > > On Mon, Jul 03, 2023 at 08:15:53PM +0200, Konrad Dybcio wrote: > > > Recent Qualcomm SoCs have a REFGEN (reference voltage generator) regulator > > responsible for providing a reference voltage to some on-SoC IPs (like DSI > > or PHYs). It can be turned off when unused to save power. > > > > This series introduces the driver for it and lets the DSI driver > > consume it. > > What's the expected plan for merging this - should I be applying the DRM > patch? I'd pick the least two patches into msm-next after -rc1.
On Mon, 03 Jul 2023 20:15:53 +0200, Konrad Dybcio wrote: > Recent Qualcomm SoCs have a REFGEN (reference voltage generator) regulator > responsible for providing a reference voltage to some on-SoC IPs (like DSI > or PHYs). It can be turned off when unused to save power. > > This series introduces the driver for it and lets the DSI driver > consume it. > > [...] Applied, thanks! [3/4] dt-bindings: display/msm: dsi-controller-main: Allow refgen-supply https://gitlab.freedesktop.org/lumag/msm/-/commit/f5cedc432fdf [4/4] drm/msm/dsi: Hook up refgen regulator https://gitlab.freedesktop.org/lumag/msm/-/commit/4bc71795761b Best regards,
On Mon, 03 Jul 2023 20:15:53 +0200, Konrad Dybcio wrote: > Recent Qualcomm SoCs have a REFGEN (reference voltage generator) regulator > responsible for providing a reference voltage to some on-SoC IPs (like DSI > or PHYs). It can be turned off when unused to save power. > > This series introduces the driver for it and lets the DSI driver > consume it. > > [...] Applied to https://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator.git for-next Thanks! [1/4] dt-bindings: regulator: Describe Qualcomm REFGEN regulator commit: d16db38c2a66060ee25c6b86ee7b6d66d40fc8e0 [2/4] regulator: Introduce Qualcomm REFGEN regulator driver commit: 7cbfbe23796086fdb72b681e2c182b02acd36a04 All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted. You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed. If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced. Please add any relevant lists and maintainers to the CCs when replying to this mail. Thanks, Mark