From patchwork Wed Jun 28 16:29:44 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 11401 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp9059133vqr; Wed, 28 Jun 2023 09:39:12 -0700 (PDT) X-Google-Smtp-Source: APBJJlHiHf/Ye1dZurKF2mUpcDyyOyqDMR5PWzvlxYhminjHNb34+mADoIEvj9LXzNTX0bM8mLGe X-Received: by 2002:a05:6402:350b:b0:516:463d:8a10 with SMTP id b11-20020a056402350b00b00516463d8a10mr330797edd.3.1687970351887; Wed, 28 Jun 2023 09:39:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687970351; cv=none; d=google.com; s=arc-20160816; b=aDrbv6P5b/vBrEGN/eWb0gosCpUgEkaScvd1Os/7nmJNoi9FjkKiWBLp+jieO2uKbk 5bWcjrrCXy3pGd9qsoJ7cpU6ZxgFFlH+V7R9vRC+tboQXZFVdE5PTblZd2mPqVJGlzd6 YGiBBAjhtUCtNm0wOoQWRVC9if28djqssMk8sfaBzQX0AoxVz6/XB/EPBa201FPyWbx5 Aw80vY54soIEJ+vCMJohbaIpKeE4n66tYj2jLqZ5ZASmIkUk82NOGCVJdLaGb7j8xKGm gauHvj7h8yojnHfTg9ZlpNjPismn6vF7wqU9g0r5WLSXLM6w7PQi8tErKLFjNPn3pWfz gFUw== 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=Fv+nnH2B7s3Kiy0RTUWblii9XdXfwfCtrzuvTKHkpeU=; fh=qvdqMbXAE/qcPdFiL/QUg6KLKapmCEtGXJzQKn2xN9U=; b=a2rgHCUd2ACF1yiDwX60Icj8CDJ3hkP24GkgbFZ5pgOLTHec7wOuRPnkAY5C5UD/Cn jJALyIPX8WIxjaYHkAyEV4Ol/e2tEoaKJDXMWG/Ngi3kUvvjzxb0/6B9Zxbe5DSU3tPa qQ+zQrgCAtAz1ORVuFC09yLdRmF3VIVEndjA9xTrPaeusz1G2gMy1ykOTuy8vLr+EMKZ kWb8+xZnFyFeyjRqV+fyE+hsY4PB9KKf7XAq7kcAP6iLkLO/+hE0XCD7H30omfd92qEw AOZ02ruXCi7VcRgybq//wQS5dynSGNsnzp9i/yQmcWOiGmrvEqddOWHsvhEWBzR3s8uR WuWA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=CZcejYtH; 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 b19-20020aa7c6d3000000b0051d9ec03f34si3519936eds.531.2023.06.28.09.38.47; Wed, 28 Jun 2023 09:39:11 -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=CZcejYtH; 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 S231942AbjF1QaT (ORCPT + 99 others); Wed, 28 Jun 2023 12:30:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38734 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232190AbjF1Q3u (ORCPT ); Wed, 28 Jun 2023 12:29:50 -0400 Received: from mail-lf1-x12a.google.com (mail-lf1-x12a.google.com [IPv6:2a00:1450:4864:20::12a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E1567268F for ; Wed, 28 Jun 2023 09:29:48 -0700 (PDT) Received: by mail-lf1-x12a.google.com with SMTP id 2adb3069b0e04-4f95bf5c493so8383872e87.3 for ; Wed, 28 Jun 2023 09:29:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1687969787; x=1690561787; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:from:to:cc:subject:date:message-id:reply-to; bh=Fv+nnH2B7s3Kiy0RTUWblii9XdXfwfCtrzuvTKHkpeU=; b=CZcejYtHPILXXQToUbqjBhLbjLUpOKCuKoNjV3bSegFYY/Vt0r+4lVQyemyBzgoo61 uzPQZbDZituIdChBvflV0LBSBDeaUOuXp6uBD2Qcr8UJbCiePE+jfktc01SFzcVvzISL 5HSX4oNYw3j9btjxkiIgqdSvqiirIKmIescYShQ3ODKkP1QyN7y1RLzovz8paKLEi4Xi uhKeJqliTAnLodjQuUlJOEuTdmL9qn1CcuxHcF/aBeXD+m9OrMMn3NfEzypldmpcHMcf DmOW5Q7Pl9zfbykk7J/Ij2f2g9K4x9QmWkJz+Wm9c3/r0RElF/lhxdV4akvGlTJEBuaI M11g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687969787; x=1690561787; 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=Fv+nnH2B7s3Kiy0RTUWblii9XdXfwfCtrzuvTKHkpeU=; b=CjF6hgsSjBU/MoE9lgzpeT5upol9OPNDrqWrBzo05rVwcBfGYtIdVp/gS3xIt3NyGF sFuIOLvAwFjq3jxWc38dQQEMh9+Vi95gZu/Bo9Sv2R8b26xQkOxA0zyt6Iuf/sM0RnVt br2F4f/A9dFqwrOcDFJJbzSF33uj5BXgp3uY/Vlwe2ly3Du5ZoWSM7gcTXnn/lW2uvj3 SzfqxmWC3HXtvUHF7UhpPDWM+SxqyFiu84wKZkaP1YpjDPz51v+y3MHYS66udSDXdACd yv9qTBlWupi275PHCSlWJGwNhyv6yNJ/8sq6BOBlKxbeQzI82IiYYFu53NSSHqWrmOON hc4w== X-Gm-Message-State: AC+VfDzOo4X8sjVVnULUK0dT/i0Ti/8uVH9HxEWZFFZONR0sMTZ/Ga4C RcP88UaDt3iEkOyGvAHs75NpjQ== X-Received: by 2002:a05:6512:3b1e:b0:4fb:976f:c3ed with SMTP id f30-20020a0565123b1e00b004fb976fc3edmr344569lfv.69.1687969787104; Wed, 28 Jun 2023 09:29:47 -0700 (PDT) Received: from [192.168.1.101] (abyk82.neoplus.adsl.tpnet.pl. [83.9.30.82]) by smtp.gmail.com with ESMTPSA id v28-20020a056512049c00b004faeedbb29dsm1678783lfq.64.2023.06.28.09.29.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 28 Jun 2023 09:29:46 -0700 (PDT) From: Konrad Dybcio Subject: [PATCH 0/4] Qualcomm REFGEN regulator Date: Wed, 28 Jun 2023 18:29:44 +0200 Message-Id: <20230628-topic-refgen-v1-0-126e59573eeb@linaro.org> MIME-Version: 1.0 X-B4-Tracking: v=1; b=H4sIAPhfnGQC/x2NSwqEMBAFryK9tiGJv2GuIi6S2GqDtJLMiCDe3 cZlFa94F2RKTBm+xQWJDs68iYItC4iLl5mQR2VwxlWmdR/8bTtHTDTNJGjrKZjQtc7aBjQJPhO G5CUuGsl/XVXuOubz/eiH+34AX5jDUHMAAAA= To: Andy Gross , Bjorn Andersson , Liam Girdwood , Mark Brown , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Rob Clark , Abhinav Kumar , Dmitry Baryshkov , Sean Paul , David Airlie , Daniel Vetter , Krishna Manikandan Cc: Marijn Suijten , Konrad Dybcio , 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 X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1687969785; l=1224; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=UePCk4lk29C4m1NxcwF4mvfWHL33pC6ic/uMKeTErak=; b=1+YjJdCXaHWqHIJzXWRTL6yHKudHs5qrlQHXSCz/uTdOGv6PoEUPTid8RoPtf8Le0vRoEDv2Q ZjKIU6O+0BlD1xHOIUN3oFp4+RmQ4co4kDHo+em0s6u+S5NeeU/V8Qd 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,URIBL_BLOCKED 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: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1769965199569224156?= X-GMAIL-MSGID: =?utf-8?q?1769965199569224156?= 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 (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 | 56 ++++++ drivers/gpu/drm/msm/dsi/dsi_cfg.c | 2 + drivers/regulator/Kconfig | 10 ++ drivers/regulator/Makefile | 1 + drivers/regulator/qcom-refgen-regulator.c | 187 +++++++++++++++++++++ 6 files changed, 260 insertions(+) --- base-commit: 5c875096d59010cee4e00da1f9c7bdb07a025dc2 change-id: 20230628-topic-refgen-14fb0b762115 Best regards,