Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp1290408rwr; Thu, 20 Apr 2023 12:43:02 -0700 (PDT) X-Google-Smtp-Source: AKy350aJd/oDkuNfpR4j/drS7/9KOWM+NTtKp7lfi12aYMfd0i/jsE84ArgNfKz2uaQrqQ9/bKtJ X-Received: by 2002:a17:90a:d34c:b0:246:d13c:c027 with SMTP id i12-20020a17090ad34c00b00246d13cc027mr6682054pjx.24.1682019781970; Thu, 20 Apr 2023 12:43:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682019781; cv=none; d=google.com; s=arc-20160816; b=zF/DxvyHFnOcKYoRNQz3FKNgjmjX5y8zsAYj4AFEwDvm6eU58I6J+DyU4JPVVN7Oxm 59MtzGk6wRKIyJEmxuaqUl03V4BFdEzCYXjfhJdsxwq33BnFlZfOQCnEI9npt363Y9F9 8yHbSgfymJD8IRAU/t6v/QvXdWtJQRttUA+n4n6PZV9r7uwRFMDiICTicaDUO9zrvGod BWet+2PJDJYGFHK7RtKIpzpkgL3TV2NPbDKLqnQrw+cXNKz9a6Y6cQsK9rtNaNXxyTVO HSW51lk8LufiGHv35u8Wj6Z4I7rsjRThHV++0D0czeP7YIhAunFZvMZvoa/Xd1foMgcA 67Cg== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=5qbGFeXrDs3WrhBf+lvrgBNLjjhcPXH+cPYhZsQiewQ=; b=k4QuqSfai2KFUlnREIO0rBAMbxakgfL3IctOCiz5s4vUbr0DuOXJnbRFhewahg0M1M bJJ+9ViuIj6xB7mhZNqmoR9quIUHIbiT157kUfJaWs1q4Nqg68DvPpto0jgH4mx2E8W0 m0ru7Ogf+8XSUkXFVioV/CED+pqgzkUv8GXNev2n/inpDdhDqlsd7eeYDRbpbi30gzy9 16CnywbhAyRVYeH11w8WFxee8w3VeY9/GA4PQC9bhf8Ky4vYykBM43OuTQ4kfhZvnWZl tsA9IDFVQzTEUVBvstaPhz/Ax2KEy2UVthhboXqDEtNK95y0YS/AyU2VYR3rbCwFZfki O+9A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@9elements.com header.s=google header.b="Ac93lBa/"; 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=9elements.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i6-20020a170902cf0600b001a6cb666800si2546366plg.19.2023.04.20.12.42.50; Thu, 20 Apr 2023 12:43:01 -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=@9elements.com header.s=google header.b="Ac93lBa/"; 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=9elements.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231739AbjDTTYi (ORCPT + 99 others); Thu, 20 Apr 2023 15:24:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46960 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230190AbjDTTYh (ORCPT ); Thu, 20 Apr 2023 15:24:37 -0400 Received: from mail-wr1-x42d.google.com (mail-wr1-x42d.google.com [IPv6:2a00:1450:4864:20::42d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1A4FE2D6A for ; Thu, 20 Apr 2023 12:24:32 -0700 (PDT) Received: by mail-wr1-x42d.google.com with SMTP id ffacd0b85a97d-2f40b891420so865294f8f.0 for ; Thu, 20 Apr 2023 12:24:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=9elements.com; s=google; t=1682018670; x=1684610670; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=5qbGFeXrDs3WrhBf+lvrgBNLjjhcPXH+cPYhZsQiewQ=; b=Ac93lBa/9BLRzbTUcFMyNcv0LR2mn86n/7LatpQPOmPnIeoIVS8CMN5ZA4Iiz1PkjZ k7LurRp9dERgJMIKohVtx2XFerLcvtT5P7XychnJe/uyHOW8OrpB7+9bv/UK5bKJsF0R 8CjUlmeFciVl84uA73WfydbjH1kKJ6p2QhMpxSsY9X8httdTo+kuoT3F34O/gbd3J1/b 077FldUCsxn9J1s8HoAg8seAPzexZiBy28xqZ3yjUUW1/C12KIvwV4n3MdTbIN8QT2RJ 04ifTJHe+F9y0D7nmU85oTFm+xDCXZgLwp1/3w2zWMhr6zsf5tna9dhewowre5/cX4R4 DX5w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682018670; x=1684610670; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=5qbGFeXrDs3WrhBf+lvrgBNLjjhcPXH+cPYhZsQiewQ=; b=fXiLLNzF6baI/tT+QfslOD4dXpSC+mhlWyCGFZtO51vXpfAj1pmmSHPFhdFK2u1pgU AXqfEI2AtBU54eCDaNihSlAx2vXgdNePV5lsddHYfoNCbCOlt+W61h9o8nSHszD3wqC9 fT4RH5MAwlwalxJQABMwn9/fIDudcjXRj82/LzdSm12gV/xoFJ8zmOiqBN/MhXNFrCfw LzFDXoIc702CkIju2j5j8JON/JPMRjGV61t6CD1Do7+1F+KajZoGNa3gwzJOWT057U50 JprvftzgA1kckT/6yKZaADxx/DKbFT6Sc0gLjbpY35QaeIhv19Ra2TyyWHPwZhrPKE7H crVQ== X-Gm-Message-State: AAQBX9dSsxxh6+26UEZEmHkZcH6NIr1akyp/Ik2mYGwc9tTP4H1C7QD+ SIabwcW5oY5mPz4KpUce/aD1RwxP62prDdvG7Dxf0A== X-Received: by 2002:a05:6000:1c9:b0:2fb:ad8:288f with SMTP id t9-20020a05600001c900b002fb0ad8288fmr2015321wrx.11.1682018670573; Thu, 20 Apr 2023 12:24:30 -0700 (PDT) Received: from stroh80.sec.9e.network (ip-078-094-000-051.um19.pools.vodafone-ip.de. [78.94.0.51]) by smtp.gmail.com with ESMTPSA id u3-20020a7bcb03000000b003f16f3cc9fcsm2825651wmj.9.2023.04.20.12.24.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 20 Apr 2023 12:24:30 -0700 (PDT) From: Naresh Solanki X-Google-Original-From: Naresh Solanki To: zev@bewilderbeest.net, Liam Girdwood , Mark Brown , Rob Herring , Krzysztof Kozlowski Cc: Naresh Solanki , linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCH v2 1/2] dt-bindings: regulator: Add support for multiple supplies Date: Thu, 20 Apr 2023 21:24:01 +0200 Message-Id: <20230420192402.3695265-1-Naresh.Solanki@9elements.com> X-Mailer: git-send-email 2.39.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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: X-Mailing-List: linux-kernel@vger.kernel.org Add optional DT property 'regulator-supplies' to handle connectors with multiple supplies. If this property is present, it will determine all regulator supplies. Otherwise, the 'vout' supply will be used as a fallback. This change improves support for connector like PCIe connectors on mainboards that can be powered by 12V and 3.3V supplies. Signed-off-by: Naresh Solanki ... Change in V2: - Added example - Update property type & description. - Improve commit message --- .../bindings/regulator/regulator-output.yaml | 21 ++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/Documentation/devicetree/bindings/regulator/regulator-output.yaml b/Documentation/devicetree/bindings/regulator/regulator-output.yaml index 078b37a1a71a..a9dce26991ff 100644 --- a/Documentation/devicetree/bindings/regulator/regulator-output.yaml +++ b/Documentation/devicetree/bindings/regulator/regulator-output.yaml @@ -21,13 +21,22 @@ properties: compatible: const: regulator-output - vout-supply: + regulator-supplies: + $ref: /schemas/types.yaml#/definitions/string-array description: - Phandle of the regulator supplying the output. + Optional property that specifies supply names provided by + the regulator. Defaults to "vout" if not specified. The + array contains a list of supply names. + Each supply name corresponds to a phandle in the + patternProperties. + +patternProperties: + ".*-supply": + description: + Specifies the phandle for various supplies required: - compatible - - vout-supply additionalProperties: false @@ -37,3 +46,9 @@ examples: compatible = "regulator-output"; vout-supply = <&output_reg>; }; + out2 { + compatible = "regulator-output"; + regulator-supplies = "sw0", "sw1"; + sw0-supply = <&out2_sw0>; + sw1-supply = <&out2_sw1>; + }; base-commit: 43c75e470e5b56a992acb08474810e6822f0989c -- 2.39.1