From patchwork Tue Sep 12 07:49:49 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stephan Gerhold X-Patchwork-Id: 138426 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9ecd:0:b0:3f2:4152:657d with SMTP id t13csp664847vqx; Tue, 12 Sep 2023 13:33:49 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGsg46flawDETNdnL/JU9bCgLX/kW+4xAEjjQa57yNL7wmADgl2+Kg/KN5jDosF5865QS/s X-Received: by 2002:a05:6a21:3294:b0:149:2fd0:a4ac with SMTP id yt20-20020a056a21329400b001492fd0a4acmr581531pzb.42.1694550828952; Tue, 12 Sep 2023 13:33:48 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1694550828; cv=pass; d=google.com; s=arc-20160816; b=pSWQP8ytjLHnB3eaqx06F0Et/Qp0BryLQ/31MOb77vxvnII/98ZNNQA+C0/mNBC11E APQ0JIbRoCWt/oW5qi0BAJxudcpdruDY0QbGra2n2Z8aDLN3VGQVvhg59T2wI5jgWq2H KL9C/LYGYZnWOHmMWFb26qhLWHgpLsSd2mjDXe37Jdl+SwDWDwJJOzmtbxACSuRTsdit wM9m2vCw4x9Gu6/q3a/Jkm0gn6eQfp3/TLknsRg0Iu/XM1h/weoeL3kUmJh90Mr5ORP6 JtAnCyuLSMLXvsy420mYZXsSCs+8XOIa3tJwJk17qE98ST8fFgRoBrI788n7rbVQfJ/Q 8eOg== ARC-Message-Signature: i=2; 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:dkim-signature; bh=L/GhP++3ntz+tiVHjTtfdN0t8NIw2lLOzuPYeZ0wQb8=; fh=GylhPReoJ41e26WaMzpkK04zMiJ739hw46eo5KjngQw=; b=LCEp9Fst92t/XJjzvYu+toIufCbuS0B/BwvfcShkxpQuJk4bSz2FgcY/XIaHdgt+0Q gBW/xWYkFZyt7zX3KLjX+yt5ZI7FVRyzEgrQde49L/5X/jszYMShtAOqaBOCGeUOhLMv Mv0WH4Z4GhVtWuI8UHhOpuoYkMMQQMoMgvSms5eVIUE0bHy2w5MRK8lE6pUOBKzI2Q8v 9IqiLVTG/zR2uVJ2hXCHHUkE4ZmemwNqNfayXhbW5ZsQwH94jaEi0+OXqp4A6JQvs1Ef pOWWmLH6HEJwigpSXu0RPH0IFz/blyjyigaps1tJufY0h+rzMsbnHL6pqLGXVDPgZ7LZ Ow7w== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gerhold.net header.s=strato-dkim-0002 header.b=AWm0Qdpz; dkim=neutral (no key) header.i=@gerhold.net; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id cj6-20020a056a00298600b0068be042fe24si8503794pfb.356.2023.09.12.13.33.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Sep 2023 13:33:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; dkim=pass header.i=@gerhold.net header.s=strato-dkim-0002 header.b=AWm0Qdpz; dkim=neutral (no key) header.i=@gerhold.net; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 61A078348207; Tue, 12 Sep 2023 00:50:45 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231779AbjILHuk (ORCPT + 39 others); Tue, 12 Sep 2023 03:50:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50232 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231816AbjILHuZ (ORCPT ); Tue, 12 Sep 2023 03:50:25 -0400 Received: from mo4-p02-ob.smtp.rzone.de (mo4-p02-ob.smtp.rzone.de [85.215.255.84]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0837910C4; Tue, 12 Sep 2023 00:50:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694505011; cv=none; d=strato.com; s=strato-dkim-0002; b=qOdQVWmUls7hOz2ZuWGqGaQn8Gpv0FKINBZaZWur3owBqjXsg3HLIk7DNcQbvE3Zl2 GbKPsKwErfYoFlFvEwuMxnMi/ucQDj4CrRM0SZv34qpQIo4wy0KgbsJa2a14NK1/dceM vADyBU70D+J1jUfvJ3QuD1dswjG4rMxrGPeVbEXu0FsZxQ0oSURlH9fCXslYzkhlrd+J AUYuCJONbt3OpgAB+OuOJiiAYj1W19ij2+LKCNHie1jkUsLeWj8BG8qnzAGNhxEYdgFh Zi3erasPqFzRZdkZcZePeMVfVWmi/wjHc+meLfwXmabL+/JFI4m8+RDclAzk6l2SNd7J y4eA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; t=1694505011; s=strato-dkim-0002; d=strato.com; h=Cc:To:In-Reply-To:References:Message-Id:Subject:Date:From:Cc:Date: From:Subject:Sender; bh=L/GhP++3ntz+tiVHjTtfdN0t8NIw2lLOzuPYeZ0wQb8=; b=t1kSAWZlkIBmcV7B/9v3ErYueu2G8cYYu1AAT5iQGDN+EcD24vt2FUFsmUG1G1UZ8a IXisC+NEZO95yk2o5sxfBVzW2HBTYkg0hbrdqJLlz7socLfqvlK1YYLVmxe2TeWAojsc 0/SisyMyYe4sRzbWcdD438CVUmNeywzQT+Y0/ZU4gn01loM7K510Sd48clUSqCw9+4Pm Ez2/Kpn7/oPNNBxeybwwuYqFWQOvHZjMifAdB0VEHbA5tJ+vcb/9D4+Ih30arF9VchNE jrOT/W2YUKBmdTatHoYRfeDpxcLkoTzaIZthh1OgFhdHSuyMXEEd/O/B7jUMXFn7VHo5 E9HA== ARC-Authentication-Results: i=1; strato.com; arc=none; dkim=none X-RZG-CLASS-ID: mo02 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1694505011; s=strato-dkim-0002; d=gerhold.net; h=Cc:To:In-Reply-To:References:Message-Id:Subject:Date:From:Cc:Date: From:Subject:Sender; bh=L/GhP++3ntz+tiVHjTtfdN0t8NIw2lLOzuPYeZ0wQb8=; b=AWm0QdpzMZvXlXaCc9KXRldje8YIcOfIkNjHCjp7iYJ+9SnXiMRRMcN52zO7N7SgBp 9pPzA96lPTABNMwFX2Ib6/gD+gyeyMIngooi74YePAibkH2UjfCQqtJ5nkGJ2BMVVsZx 0Fvk98QJQEimgND7K9MR7AaFNuNxjEIWySJVxOQV8JO7n8VQyRabU5rUGimy6XLtK2Qf I6v7FKjNK+hQR9Qh9PfxTSpdC6PtnQxer/Mf/mG9qOEQ2XGBOXNWalEwZUEQiXfu0+r/ 4bK9CpEfTr9IUPlJip0jFfQrxnFDA6qrhJIJdaRxbJ3TYXeZT8lBELVztPlhk0agVX6x rAuQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; t=1694505011; s=strato-dkim-0003; d=gerhold.net; h=Cc:To:In-Reply-To:References:Message-Id:Subject:Date:From:Cc:Date: From:Subject:Sender; bh=L/GhP++3ntz+tiVHjTtfdN0t8NIw2lLOzuPYeZ0wQb8=; b=MPcsBaY3i6wqLxVrwbCO/lIwQYU1G10xy5HWwzoEYkf1Yiugz64DjYWtpcHsTmert9 GYfHM7Xb2MhLFR4L0FBg== X-RZG-AUTH: ":P3gBZUipdd93FF5ZZvYFPugejmSTVR2nRPhVOQjVd4CteZ/7jYgS+mLFY+H0JAn9VOL7nT0=" Received: from [192.168.244.3] by smtp.strato.de (RZmta 49.8.2 DYNA|AUTH) with ESMTPSA id 60372az8C7oAcKm (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits)) (Client did not present a certificate); Tue, 12 Sep 2023 09:50:10 +0200 (CEST) From: Stephan Gerhold Date: Tue, 12 Sep 2023 09:49:49 +0200 Subject: [PATCH 1/6] dt-bindings: regulator: qcom,spmi: Document PM8909 MIME-Version: 1.0 Message-Id: <20230912-spmi-pm8909-v1-1-ba4b3bfaf87d@gerhold.net> References: <20230912-spmi-pm8909-v1-0-ba4b3bfaf87d@gerhold.net> In-Reply-To: <20230912-spmi-pm8909-v1-0-ba4b3bfaf87d@gerhold.net> To: Mark Brown Cc: Andy Gross , Bjorn Andersson , Konrad Dybcio , Liam Girdwood , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Robert Marko , linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Stephan Gerhold , Stephan Gerhold X-Mailer: b4 0.12.3 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Tue, 12 Sep 2023 00:50:45 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1776855730399268268 X-GMAIL-MSGID: 1776865329951104667 From: Stephan Gerhold Document the qcom,pm8909-regulators compatible together with the necessary supply properties to allow interfacing via the hardware regulator registers directly via SPMI. This is mainly intended for debugging since the regulators are typically controlled via the RPM firmware (qcom,rpm-pm8909-regulators compatible). Signed-off-by: Stephan Gerhold --- .../bindings/regulator/qcom,spmi-regulator.yaml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/Documentation/devicetree/bindings/regulator/qcom,spmi-regulator.yaml b/Documentation/devicetree/bindings/regulator/qcom,spmi-regulator.yaml index bdf34c2de96b..765c31246cc7 100644 --- a/Documentation/devicetree/bindings/regulator/qcom,spmi-regulator.yaml +++ b/Documentation/devicetree/bindings/regulator/qcom,spmi-regulator.yaml @@ -19,6 +19,7 @@ properties: - qcom,pm8005-regulators - qcom,pm8226-regulators - qcom,pm8841-regulators + - qcom,pm8909-regulators - qcom,pm8916-regulators - qcom,pm8941-regulators - qcom,pm8950-regulators @@ -206,6 +207,24 @@ allOf: patternProperties: "^vdd_s[1-8]-supply$": true + - if: + properties: + compatible: + contains: + enum: + - qcom,pm8909-regulators + then: + properties: + vdd_s1-supply: true + vdd_s2-supply: true + vdd_l1-supply: true + vdd_l2_l5-supply: true + vdd_l3_l6_l10-supply: true + vdd_l4_l7-supply: true + vdd_l8_l11_l15_l18-supply: true + vdd_l9_l12_l14_l17-supply: true + vdd_l13-supply: true + - if: properties: compatible: