Message ID | 20230628-topic-refgen-v2-0-6136487c78c5@linaro.org |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp9905272vqr; Thu, 29 Jun 2023 13:52:05 -0700 (PDT) X-Google-Smtp-Source: APBJJlHm5BSSuwvpupMS0jjyGdzzr/1iGxJiKEaAHOciDye0/RTgvqMHDEVh/4OFprQOiL551FuX X-Received: by 2002:a17:902:d2cd:b0:1b0:6e16:b92c with SMTP id n13-20020a170902d2cd00b001b06e16b92cmr289699plc.54.1688071924795; Thu, 29 Jun 2023 13:52:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688071924; cv=none; d=google.com; s=arc-20160816; b=PJNGmxHJoGRHPRgOqlkjY3nRpDZfUhNhz8KQCHEfaHr0IX94mu7FaSIZUKOsEilswl 3yDClQKxFMjVUtUPACMKdYfsg+jzAF4wp4mZuzzUJxeCzbsZIUcz0bLRCvtmJaMgn5FO ytR41vPQvL1bJb/7j+N3am483cI/v6QHLifHcnyExE7G/BX4Sa1oYYl9uyo3E9DywbBQ 2BfwhMIAoX3qWsMJqZ4Hx0/FJ9cIK6wsu1CCoWx1IjtvcHCwwR2dcs4CcrYbASHPZVAy w83mknptDOTL5FQiH9Sed5TZPdqR8kcaDESirHKI9A8ojtLV8qc6+GrxasHTJPgIWMOr o9lw== 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=roO8YrYj9iIU3EjCKgeaxJFuC8MlkPexoI9WwcBfk4M=; fh=xqhvKFBEPfFJW68pxDib7dkLFOwl12mV3dmpZF+xzUU=; b=wBV29gocdgjXjzg9jeXNJJMXyjn8p6VJZ8A9nrip1aUZ3VXJlJbdEUDiuyMbX8L3mP W2QFJCzQ/U0+BTy2OtHVWA1RJjgfdoSAacXTFzmdlZD0gRgx+lV5+b/ilrfaqlZPsYJq qPOW8CM50rzo5gdVUNer1hsxBqApbDrHphFRXbL6Kd8wULDnVEmqDNFT6JpNIuDFCufx qOLlnfLzXgTX1iYrzm4Nk16q31ux5h70i9icnhKpNue6idSQljPgdrjHpcUqBjOeyW/+ 8d1Jlh4JortmRTikNG8Nrs1iIQtWiJc4HLYFqlrE7f+2ym5rnd9UTMtL5QmX/lBHmL53 BxlQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=aL7Dwfgq; 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 f7-20020a170902ab8700b001b4f6066f11si10513866plr.160.2023.06.29.13.51.52; Thu, 29 Jun 2023 13:52:04 -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=aL7Dwfgq; 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 S230474AbjF2Ufy (ORCPT <rfc822;adanhawthorn@gmail.com> + 99 others); Thu, 29 Jun 2023 16:35:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42200 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230046AbjF2Ufw (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Thu, 29 Jun 2023 16:35:52 -0400 Received: from mail-lj1-x22d.google.com (mail-lj1-x22d.google.com [IPv6:2a00:1450:4864:20::22d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D712D30DF for <linux-kernel@vger.kernel.org>; Thu, 29 Jun 2023 13:35:49 -0700 (PDT) Received: by mail-lj1-x22d.google.com with SMTP id 38308e7fff4ca-2b6a0d91e80so18539031fa.3 for <linux-kernel@vger.kernel.org>; Thu, 29 Jun 2023 13:35:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1688070948; x=1690662948; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:from:to:cc:subject:date:message-id:reply-to; bh=roO8YrYj9iIU3EjCKgeaxJFuC8MlkPexoI9WwcBfk4M=; b=aL7DwfgqS2nZOiWfMRKgRg8GCSGzlLizCKplh1fLS7f0H0fS9RRyV871dMs8WEpx6O w2yXTGUAqCaC4PQ4CyZ6Wc07E/VzuxRZMu5S3YL1y7OHJCBS0fu0DFmco7gDPNyz1XJL ZyRB+h+o6KOPBJpUbV/o8vmFXFaH8fLdq1WCNby99S+hpY6hSaYbclB/VXz9P3t3ouKj zmCzSJfOkn5Urm2mTYCi6chGG6rBubDwoGWAm3nUK6z6XxAiJuyLFFnK96TKahXHgQzb UcYsOdaZonTln2aa+cWXjc+6wBy5uoit5M1ysqAUf8XPnygDkQ0rR5C8qvKO4AHxbnQM VUBw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688070948; x=1690662948; 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=roO8YrYj9iIU3EjCKgeaxJFuC8MlkPexoI9WwcBfk4M=; b=NazFe0sivwPfbUedqftgTmBVNFvXhJVUBcPQPNZ2JH77qGceZLmDw8DoKOxi7G8hMZ OzDNOHHYQEgCGKtoN/AtUM6cfVjcOLsDjo4YcOJ9SV/EhKxNOYXmTo7L1MuVKSjjLYdg qKz9Dn1PDuJSCdzxF9vCU6Y4BpoxH1HnXrV3jRRsLDvFTYfRnip10l5UQQXn7QF0sWXS J/HaDbFyfzN8zRAKSNITEh1lxaJvaxv/Kn9lNuIA/yg7z811TJNOOnx/eL6hfBmHlQP8 skwusTo7K7naffUavftoj/ZK447tMJQMkxLicmjg4PtRC9qOwydmEIuxnT9o2nvGqFPm eG/Q== X-Gm-Message-State: ABy/qLYtAfJLiIdoIjpV6JZUT/Gj8NUdpBbO7AHAnzAI1LvOLJ2i0xle qhyaAWPJ/2jfXquQDQqcvZxyig== X-Received: by 2002:a2e:9059:0:b0:2b6:9f95:46d9 with SMTP id n25-20020a2e9059000000b002b69f9546d9mr545726ljg.46.1688070948029; Thu, 29 Jun 2023 13:35:48 -0700 (PDT) Received: from [192.168.1.101] (abyk82.neoplus.adsl.tpnet.pl. [83.9.30.82]) by smtp.gmail.com with ESMTPSA id k3-20020a2e2403000000b002b6b849c894sm1136008ljk.111.2023.06.29.13.35.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Jun 2023 13:35:47 -0700 (PDT) From: Konrad Dybcio <konrad.dybcio@linaro.org> Subject: [PATCH v2 0/4] Qualcomm REFGEN regulator Date: Thu, 29 Jun 2023 22:35:40 +0200 Message-Id: <20230628-topic-refgen-v2-0-6136487c78c5@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-B4-Tracking: v=1; b=H4sIABzrnWQC/3WNwQ6CMBBEf8Xs2TVtEVBP/ofh0OICm5CWbJFoC P/uyt3jm8ybWSGTMGW4HVYQWjhzigrueIB28LEn5KcyOOMKU7kLzmniFoW6niLacxdMqCtnbQm qBJ8Jg/jYDirF1zhqOGmZ3/vHo1EeOM9JPvvlYn/pn/XFokHrKiqvZV0QhfvI0Us6Jemh2bbtC 3Xqv2i+AAAA 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=1688070946; l=1730; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=o6C8T/LQ49ia1cOEpHXglcMRSGrmiGdpXmYAdGtJ7Z4=; b=Ex0q08xmxL6AcV018TpSZ/b4gyImH8vj9XCXXL2F+XrwzPusRQOEc3gsYGh6Q8WErt/Xl22a6 YSziOTXpLASAMFu25y+vL3MkzJtUXbIUQz/3N+4VTUznwyJ2mRR5a7+ 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?1770071706742874812?= X-GMAIL-MSGID: =?utf-8?q?1770071706742874812?= |
Series | Qualcomm REFGEN regulator | |
Message
Konrad Dybcio
June 29, 2023, 8:35 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 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 | 10 ++
drivers/regulator/Makefile | 1 +
drivers/regulator/qcom-refgen-regulator.c | 154 +++++++++++++++++++++
6 files changed, 228 insertions(+)
---
base-commit: 5c875096d59010cee4e00da1f9c7bdb07a025dc2
change-id: 20230628-topic-refgen-14fb0b762115
Best regards,