From patchwork Wed Jun 28 16:29:45 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 113973 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp9064821vqr; Wed, 28 Jun 2023 09:49:18 -0700 (PDT) X-Google-Smtp-Source: APBJJlEd+pymCKzTn0891bL4KPSBmCJJlfw3FSFjz6S0gh2PkwfC7NY2tzpgZyHho4d2mPr1+F4q X-Received: by 2002:a17:90a:5a0b:b0:25c:1ad3:a4a1 with SMTP id b11-20020a17090a5a0b00b0025c1ad3a4a1mr345281pjd.1.1687970958604; Wed, 28 Jun 2023 09:49:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687970958; cv=none; d=google.com; s=arc-20160816; b=GWyzRFWgwN5GhOBXTpzfYuD+4GEHTYguyL6RYnJzrOXYEaHGoTqEjsFbbLBlUx70df 8u229WwZ6h4QEZnVz8iU1p6Xod0ZEj1RzvCHBHSGN+5ymuPSH8O9ybCNUGMXTZNqxa3B utQpuBvCDncg0ZO6x4KGjG6XztgeQX4JfpJOy9IP+/0hBUN4f7N3KpeSsrAEw2WFBTCw STiPd8xKINa/lVUuQAS+DmjaS57f4hHJZv8n/M2jK587lIkVayOGJSWGfI18HTYatTUL /rIO9g1zxemyUF2C5/AMn8Ps89iRMAhUrUTfpQOLYKoz0l3HYwOJiXPn9liasVDlrXVl D33w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=k9KnMtZLR40pDXGElESmmZUvDm4CZ/ghYZ4Hvek4pbQ=; fh=qvdqMbXAE/qcPdFiL/QUg6KLKapmCEtGXJzQKn2xN9U=; b=J4gDUbjm++kl+QNy88CzgOhiTBOKX5baWKrdk+UUr/AeEQnm017t1dGNVrEt1qsGg+ cuZm4y75pLLYXJ5kL6H71YNekmBQM7Iy7JfL9y6n4qW42M9x3+cmxVCwDewsVTEb5E+v FZEHvJnxd/6wYaRwneA4z0Qf1Ih9t8cnHyUTmIJli3MbnhTH+n4WEkQYBCWKYCpOwC+j Zw+BNLwemm9nMNwxoVUbbFYftGKSAuMy6oGMsEZD3kb4X4vWC3FkcnfNtzmi5HZbCPA6 AzU7l9U7GumEboBziuWCW/ro8s6605oqH2wCCuk4t1oJa5E396ceHpS5T5lHcUQYFDX2 CUYw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="m1/0vpJU"; 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 w10-20020a17090a8a0a00b0024e29c5c06dsi9670849pjn.12.2023.06.28.09.49.04; Wed, 28 Jun 2023 09:49:17 -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="m1/0vpJU"; 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 S230519AbjF1QaM (ORCPT + 99 others); Wed, 28 Jun 2023 12:30:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38756 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232236AbjF1Q3w (ORCPT ); Wed, 28 Jun 2023 12:29:52 -0400 Received: from mail-lf1-x135.google.com (mail-lf1-x135.google.com [IPv6:2a00:1450:4864:20::135]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A53DD2D71 for ; Wed, 28 Jun 2023 09:29:50 -0700 (PDT) Received: by mail-lf1-x135.google.com with SMTP id 2adb3069b0e04-4f9fdb0ef35so6708440e87.0 for ; Wed, 28 Jun 2023 09:29:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1687969789; x=1690561789; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=k9KnMtZLR40pDXGElESmmZUvDm4CZ/ghYZ4Hvek4pbQ=; b=m1/0vpJU7e/vmira8hvb7shwcPdAr25+sj5szdqtuv4qnL85+sOOo/xfk7nVR4wSbF 8cK9NOV8cxuLtUEDAnyiO+S4B0oPjEvOBGvy6r7HmD40YUyFOvf57zr/6ZZr5vKBFWo7 SdTrH7sqljfa9vtyGc9Oa+zOD9UPUKOAhP4xIBk+e4GxAzZCPw3XRDsPt8JufSTJ8N+2 ibbABJN6DcwG3X1McvSxXbbJknNaMyAuM4W+XL8TL2bP78Fe9B25xRScrpWCvGqr96V9 zjpxFkw4nFFWuvUlf/p2tZkmFFApu2xqbsyQeLJZcrVoMs3ejMNDWRv9cO4BjxgNCm68 LQ7g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687969789; x=1690561789; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=k9KnMtZLR40pDXGElESmmZUvDm4CZ/ghYZ4Hvek4pbQ=; b=A79EMv5Ob7M8wLIyHFsSys9iy9x3l6SInbv9O6DmPbfIpUZBtSEuAZwMNuv6crbtPC QfDjxilw1LpfOGbIO90MldsgSbweJ2lCxY1ebS08otNcguOcEX68RBUO3hnryDMwSMLP iRla6XyA2d1S49jhl1keErE8MZGzPNTr3My10bo2c1TOdlMPTueCkTqKNq6h+CLlBsVs 7nIIFV/p5adr3b1gBerB6JvaZskwhi1mJ6SoOGKnLoMzBgldxz58YE/ihZvdcykBPyba VAqJzvmT3/w2yIiP4DjgliYKmK7qJ53FBDpS11Fmxl54s2Gt7ElhC0g5VNcaLdKDtfxz 4+Qw== X-Gm-Message-State: AC+VfDyMRZN9h5LY0yY2CfNdIKtyCgWedGfDNAaB4NRhuYZft+DHeNNF 7mf36F+ED6z1KJOXbbYED9h2uw== X-Received: by 2002:ac2:4f07:0:b0:4f9:6528:fb15 with SMTP id k7-20020ac24f07000000b004f96528fb15mr14393398lfr.12.1687969788869; Wed, 28 Jun 2023 09:29: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 v28-20020a056512049c00b004faeedbb29dsm1678783lfq.64.2023.06.28.09.29.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 28 Jun 2023 09:29:48 -0700 (PDT) From: Konrad Dybcio Date: Wed, 28 Jun 2023 18:29:45 +0200 Subject: [PATCH 1/4] dt-bindings: regulator: Describe Qualcomm REFGEN regulator MIME-Version: 1.0 Message-Id: <20230628-topic-refgen-v1-1-126e59573eeb@linaro.org> References: <20230628-topic-refgen-v1-0-126e59573eeb@linaro.org> In-Reply-To: <20230628-topic-refgen-v1-0-126e59573eeb@linaro.org> 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=2253; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=E6OpwKaLxLMqeufp2J5Sb8wXLqiG8TBOqY/1j2yTMwM=; b=Fl3PQ2gQQ2JC6dxfvdudrWKD2Y7+XzJSj9IfqR6O8URn9dgYJuKM7wqNx30GKtD2rIIg/tfEy qr+tcyV4xcrAYut9JAKjPW+iBve7g+7t66P2/sjfsFVzrZkhOqZAd+H 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=unavailable 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?1769965834968649126?= X-GMAIL-MSGID: =?utf-8?q?1769965834968649126?= Modern Qualcomm SoCs have a REFGEN (reference voltage generator) regulator, providing reference voltage to on-chip IP, like PHYs. It's controlled through MMIO and we can toggle it or read its state back. Describe it. Signed-off-by: Konrad Dybcio --- .../regulator/qcom,sdm845-refgen-regulator.yaml | 56 ++++++++++++++++++++++ 1 file changed, 56 insertions(+) diff --git a/Documentation/devicetree/bindings/regulator/qcom,sdm845-refgen-regulator.yaml b/Documentation/devicetree/bindings/regulator/qcom,sdm845-refgen-regulator.yaml new file mode 100644 index 000000000000..19d3eb9db98f --- /dev/null +++ b/Documentation/devicetree/bindings/regulator/qcom,sdm845-refgen-regulator.yaml @@ -0,0 +1,56 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/regulator/qcom,sdm845-refgen-regulator.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Qualcomm Technologies, Inc. REFGEN Regulator + +maintainers: + - Konrad Dybcio + +description: | + The REFGEN (reference voltage renegator) regulator provides reference + voltage for on-chip IPs (like PHYs) on some Qualcomm SoCs. + +allOf: + - $ref: regulator.yaml# + +properties: + compatible: + oneOf: + - items: + - enum: + - qcom,sc7180-refgen-regulator + - qcom,sc8180x-refgen-regulator + - qcom,sm8150-refgen-regulator + - const: qcom,sdm845-refgen-regulator + + - items: + - enum: + - qcom,sc7280-refgen-regulator + - qcom,sc8280xp-refgen-regulator + - qcom,sm6350-refgen-regulator + - qcom,sm6375-refgen-regulator + - qcom,sm8350-refgen-regulator + - const: qcom,sm8250-refgen-regulator + + - enum: + - qcom,sdm845-refgen-regulator + - qcom,sm8250-refgen-regulator + + reg: true + +required: + - compatible + - reg + +unevaluatedProperties: false + +examples: + - | + regulator@162f000 { + compatible = "qcom,sm8250-refgen-regulator"; + reg = <0 0x0162f000 0 0x84>; + }; +...