From patchwork Wed Nov 23 15:36:37 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Abel Vesa X-Patchwork-Id: 25060 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp2864218wrr; Wed, 23 Nov 2022 07:42:07 -0800 (PST) X-Google-Smtp-Source: AA0mqf4Bko1O5FlwZmQZlJK1RyUSLuTgCMnfN1PSKJgHAQ+Dfu/zTYpZ1iLWxPn0TM7qg50uQFcS X-Received: by 2002:a17:902:ab59:b0:188:dcfb:5993 with SMTP id ij25-20020a170902ab5900b00188dcfb5993mr9667368plb.172.1669218127573; Wed, 23 Nov 2022 07:42:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669218127; cv=none; d=google.com; s=arc-20160816; b=W2zfp0JWMsm8lmplo27rJc7fioRdES4CmTVigHuG/JO7tDUYTINsbqw16HqgAxdi/8 NlTHFFXjL1m8LLcFgCIX7wVs0daoiteDfLEvkAZC+/C7teWSmC8pDDRUzL0YyYKRI7tY K280n8CHfvChB8JSxBUkJsn9ZsymoeI/uadLnu14DqEKtDfQFSfQCotDejkP5UPzOyyP yoR/fTsDM3oEucwc5A2EfPlD6mZbHvRZtjkD7Lw6bXY+Sn7ni4KjdPIS+ZH8p0Ix0W6T 7s2bcmBWNkku0cuUiz/3K4ub0pYEQyTlgv8olMGQVZgaPRopnU6cBcj0m1BbclET6xoV ExvA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=fgJnlXA/WQvDoRbBq0+m+j+f2DhODOPC9nPotgIbx1U=; b=HV+B5QzOM0nncj+d9/7tBSxz25VOtyxAzAJToweTwM+OxaVGXW10dytYoRgi0vcGUT Gcln5tCbVbUbSVVk6exK+4WzCRR2M84Cvc8LaGiyZlm80DBU9EvxBraYdtj0tIfeOjWu IQr2zLvZL3iwNMgQFg4rQ7xEIwuAQQTrYtAmBhR2HjwqFCi3qY6n3QI4VCrKdcjqnWIa Sxi1VS3ZXDFZNcSTvHaQqMb0XUhykvyl0Qb4hG/FhnmwPUT4fQKVhK1I6BaCL1qSdU3u PEs+pZbcgGi8cbR7SdXyvkm5vzxGMj5UB/ybmz1JEiql4rXcwBsaN+YXrMz1h5kooYl0 AJQA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Es1bgfzu; 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 m11-20020a170902db0b00b0017532e01e57si17926829plx.200.2022.11.23.07.41.53; Wed, 23 Nov 2022 07:42:07 -0800 (PST) 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=Es1bgfzu; 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 S238706AbiKWPhZ (ORCPT + 99 others); Wed, 23 Nov 2022 10:37:25 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49816 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238415AbiKWPgx (ORCPT ); Wed, 23 Nov 2022 10:36:53 -0500 Received: from mail-wm1-x330.google.com (mail-wm1-x330.google.com [IPv6:2a00:1450:4864:20::330]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A8D2661754 for ; Wed, 23 Nov 2022 07:36:52 -0800 (PST) Received: by mail-wm1-x330.google.com with SMTP id ja4-20020a05600c556400b003cf6e77f89cso3179360wmb.0 for ; Wed, 23 Nov 2022 07:36:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=fgJnlXA/WQvDoRbBq0+m+j+f2DhODOPC9nPotgIbx1U=; b=Es1bgfzu412Kx60PeTZcrp1bmjukKo7/RDWkNjXkIxFnTwyS79CFMHKSq3vUqaG1eq lH4RmLmwBV9SiEZGbn25SH/jn26PhtFZIzpJNrhmNCv0XgVN6dTNZVl3dnAbtvUjpiLm VHr1IPAOlfE0L28YHHQkcWuxJnS5dBcvd+kWVP+fjIbkE0f09J63W3baLeVJ4xGJz9Q+ oj/N0pb8uJyHtwxQMA7Xvm1RQrrpZfmJdsb8GFtoe8gfuiaXGbaeZG++k+xTnjTxafV4 w1jtviAbCO72DNCTgje6k+Wk5hqNclf/4aigk5relTSXOls3NICIV9P9FMsSyP1e6Ja7 qzsA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=fgJnlXA/WQvDoRbBq0+m+j+f2DhODOPC9nPotgIbx1U=; b=RUke+Hwa6vA3iNeIf+hXlft6EQPGIcUO9Fra24eLHXhyvd8xgds63Lux19XYvziFud 3gEoVNmlOc5o+hW0AuDuHFqVqTTIvNFkh9sP9z90pWDspQHmTZdrQ9eAzIanq8DAObjp 3crUGPxEz9GrnE0FKpCxKkKnMV3THgejWHWkX0fNtrNYKAPLwaXSQAqKMen4lfKJgt/B RjzvVCLz+pIxU8EhYvU7aixEX+fbldfwYl4YdLEbgpOxBPY89S69ajrColM7E2xkghua r+j1gFDkGwo7a3/pSYPfIpxFJ5eKtqDytsoJyIBvGKzybYg/3m1XOtWQztwY6nHm+2Y6 5xXA== X-Gm-Message-State: ANoB5pl95pb3MCUz26yoq/DB2eWrEIjXFWMfYhS74vT6AYyCSOmtm83f FOGdGou/s77ebCFNXY5bhTUnXw== X-Received: by 2002:a05:600c:548b:b0:3cf:b0e4:30d9 with SMTP id iv11-20020a05600c548b00b003cfb0e430d9mr13918414wmb.66.1669217811237; Wed, 23 Nov 2022 07:36:51 -0800 (PST) Received: from localhost.localdomain ([94.52.112.99]) by smtp.gmail.com with ESMTPSA id e28-20020adfa45c000000b00228cbac7a25sm17169833wra.64.2022.11.23.07.36.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 23 Nov 2022 07:36:50 -0800 (PST) From: Abel Vesa To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Liam Girdwood , Mark Brown , Rob Herring , Krzysztof Kozlowski Cc: Linux Kernel Mailing List , devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org Subject: [PATCH v2 1/2] regulator: dt-bindings: qcom,rpmh: Add compatible for PM8550 Date: Wed, 23 Nov 2022 17:36:37 +0200 Message-Id: <20221123153638.721254-2-abel.vesa@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221123153638.721254-1-abel.vesa@linaro.org> References: <20221123153638.721254-1-abel.vesa@linaro.org> MIME-Version: 1.0 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 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?1750302067485790736?= X-GMAIL-MSGID: =?utf-8?q?1750302067485790736?= Add compatible string for PM8550 used in SM8550 boards. Signed-off-by: Abel Vesa Reviewed-by: Krzysztof Kozlowski --- Changes since v1: * changed subject line according to Krzysztof's suggestion * dropped unrelated changes reported by Krzysztof .../regulator/qcom,rpmh-regulator.yaml | 26 +++++++++++++++++-- 1 file changed, 24 insertions(+), 2 deletions(-) diff --git a/Documentation/devicetree/bindings/regulator/qcom,rpmh-regulator.yaml b/Documentation/devicetree/bindings/regulator/qcom,rpmh-regulator.yaml index 7ff51b558702..297a75069f60 100644 --- a/Documentation/devicetree/bindings/regulator/qcom,rpmh-regulator.yaml +++ b/Documentation/devicetree/bindings/regulator/qcom,rpmh-regulator.yaml @@ -47,6 +47,7 @@ description: | For PM8350, smps1 - smps12, ldo1 - ldo10 For PM8350C, smps1 - smps10, ldo1 - ldo13, bob For PM8450, smps1 - smps6, ldo1 - ldo4 + For PM8550, smps1 - smps6, ldo1 - ldo17, bob1 - bob2 For PM8998, smps1 - smps13, ldo1 - ldo28, lvs1 - lvs2 For PMI8998, bob For PMR735A, smps1 - smps3, ldo1 - ldo7 @@ -70,6 +71,9 @@ properties: - qcom,pm8350-rpmh-regulators - qcom,pm8350c-rpmh-regulators - qcom,pm8450-rpmh-regulators + - qcom,pm8550-rpmh-regulators + - qcom,pm8550ve-rpmh-regulators + - qcom,pm8550vs-rpmh-regulators - qcom,pm8998-rpmh-regulators - qcom,pmg1110-rpmh-regulators - qcom,pmi8998-rpmh-regulators @@ -83,7 +87,7 @@ properties: RPMh resource name suffix used for the regulators found on this PMIC. $ref: /schemas/types.yaml#/definitions/string - enum: [a, b, c, d, e, f, h, k] + enum: [a, b, c, d, e, f, g, h, k] qcom,always-wait-for-ack: description: | @@ -107,7 +111,7 @@ properties: regulator-allow-set-load: ["regulator-allowed-modes"] patternProperties: - "^(smps|ldo|lvs)[0-9]+$": + "^(smps|ldo|lvs|bob)[0-9]+$": type: object $ref: "regulator.yaml#" description: smps/ldo regulator nodes(s). @@ -299,6 +303,24 @@ allOf: "^vdd-l[1-4]-supply$": true "^vdd-s[1-6]-supply$": true + - if: + properties: + compatible: + enum: + - qcom,pm8550-rpmh-regulators + - qcom,pm8550ve-rpmh-regulators + - qcom,pm8550vs-rpmh-regulators + then: + properties: + vdd-l2-l13-l14-supply: true + vdd-l5-l16-supply: true + vdd-l6-l7-supply: true + vdd-l8-l9-supply: true + patternProperties: + "^vdd-l([1-4]|1[0-7])-supply$": true + "^vdd-s[1-6]-supply$": true + "^vdd-bob[1-2]-supply$": true + - if: properties: compatible: