Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp18723ybt; Tue, 30 Jun 2020 13:55:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxId0JrzZaOqkRD104rZ/nkktCpfSRrt06TUn761eowo28QA6UhqB48dYlgi9DKCKe7kWvj X-Received: by 2002:aa7:cf02:: with SMTP id a2mr25385529edy.263.1593550177657; Tue, 30 Jun 2020 13:49:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593550177; cv=none; d=google.com; s=arc-20160816; b=MReASHgeGOYCrvC2qHGFzAue8icOFYRPviowPUlA3OwssoDOL01LOwMDQgrA3/QFf9 HnUWh1GufTIpcB9ZCF1TixcLwbAG67eGfMFTXIB6Yk9X4kW/bstspAcnOumPhcbkWAJs WqjBkW/pgfUgGXpxcrmkzKHJkAyik4lYkn+sg0dAqh5XXy5q7DaHavpAh7loj3USGhl8 U7IG2PTNJVShIa4EgIqWz0ql3ekmVxIej5hgebcdRfudznH6DuNvuPl0EoArhin0KROP 18/SPs6sTcCbDD36yUaHLZ9nNou3YM8Iwu1qf2lASzKkf3jgQT4ZdAd0dKq0g+MpUtfW cViw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=1BedfZLLtUv8+jct9K4ydZAXp2NUQdx/2FyFkLNGA7s=; b=hxCR+r2nI+bEbEku1vtucatRHVSN0w/Zx7xegxieY4dA664lvGuPWP9t3YpjiPZkdV eafporvJNymArppBjR7XR9tHVFbzgOM6Z65iGc7o+u+d0UT+MJz6/X336UiFaKNsjGYi ah1eCxRsV3Iuk2sPe5YCBuBZ4VrZ4K9tZLavYE19rwvUHsc7KN6knDHUb18t4gEnArAV ye0Z26X5s5W2c0vXxyD7O8fq4M59mIukryB71yZ1qEQ3wxQ5Dx0HOXWZB0pwpjKvVqDF n8zq/dLt/Ia1CTbglFreXmAzLvBQ4NczcKec3dLz0j6gkAfYOCk+5n0K37XH1Qomyi1n QsnA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@googlemail.com header.s=20161025 header.b=mYAMjLBw; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=googlemail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bh6si2407891ejb.325.2020.06.30.13.49.14; Tue, 30 Jun 2020 13:49:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@googlemail.com header.s=20161025 header.b=mYAMjLBw; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=googlemail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727800AbgF3Swj (ORCPT + 99 others); Tue, 30 Jun 2020 14:52:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37730 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726577AbgF3Swh (ORCPT ); Tue, 30 Jun 2020 14:52:37 -0400 Received: from mail-ej1-x635.google.com (mail-ej1-x635.google.com [IPv6:2a00:1450:4864:20::635]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BAB9BC061755; Tue, 30 Jun 2020 11:52:36 -0700 (PDT) Received: by mail-ej1-x635.google.com with SMTP id dr13so21706231ejc.3; Tue, 30 Jun 2020 11:52:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=1BedfZLLtUv8+jct9K4ydZAXp2NUQdx/2FyFkLNGA7s=; b=mYAMjLBw/2y0mr1jSH/zEFiLJo8bQfT5+BFFD3Qwwq1rEDtfLtSZIW24XUh5Sv1xTk H+4wCzfvrI3uccwgxHbVSThPkzEptCuszQuiyVkbte9U/4HLbdZo/h8f4gi7s4ED9RXm ka8huNfGNCbdjvoeVpjG99TUXoZgf978BwsfGZ9FAGyDmoYV+uXPT/vohmujMBmABuMM e+CL9NfimYNVAxEmHXXJm0mPusi5hDGX4zuOvmPYEITIt5VSRZqeQbFHKtlaePpa7Qxk k0uI1ndIdhcvJnQ/Biw2Jzq3P/uA1GWWRbY3XuvEBMXU0hMyD4QsphiKtqhB7byba+zq ux5A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=1BedfZLLtUv8+jct9K4ydZAXp2NUQdx/2FyFkLNGA7s=; b=itdikeyNyEdffixDvvTFp45LHuVvxz6+WSFb+DpxadXXo6aG9Hkr3pG5nRF2uSjsGn aRkMVm0c1MSh430PtNO3cA9ZiqscTVSP8F1EnMqQ0ySsVgiasctCVwR8mwYKfif3Gt/P LFaway0vOhGm19j76C0qaodYGYTzOkJ6JAPMMd8WVwy7q4b1o2e1Gxi/KFtnJ6w5EL0u tH43U77NH0MwXwCmDwiEdp4hOP7i5Fbui0A2Q/KuylwpiELjz+xFi4bZr/r0IleTQSqP K0Y3w8qaHfW7jLjKAEvnFvXbGZj+1w56S/dabz3XvOjkVyzHCSGTq++i5QHK0CfdMOBF ikAw== X-Gm-Message-State: AOAM5311YC9BtcIyHs15l8p2L7MSN2Eqyy91S3mjd7rRigugQj+14JRl KMta9fxcKSUgFxKh3HW8+etggbpn X-Received: by 2002:a17:906:c35a:: with SMTP id ci26mr4299839ejb.451.1593543155481; Tue, 30 Jun 2020 11:52:35 -0700 (PDT) Received: from localhost.localdomain ([2a02:8070:bb9:bc00::fc]) by smtp.googlemail.com with ESMTPSA id e16sm2677238ejt.14.2020.06.30.11.52.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Jun 2020 11:52:35 -0700 (PDT) From: Christoph Fritz To: Mark Brown Cc: Liam Girdwood , Rob Herring , linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCH 2/2] dt-bindings: regulator: Document bindings for fan53880 Date: Tue, 30 Jun 2020 20:52:03 +0200 Message-Id: <20200630185203.22882-3-chf.fritz@googlemail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200630185203.22882-1-chf.fritz@googlemail.com> References: <20200630185203.22882-1-chf.fritz@googlemail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add device tree binding information for fan53880 regulator driver. Signed-off-by: Christoph Fritz --- .../bindings/regulator/onnn,fan53880.yaml | 85 +++++++++++++++++++ 1 file changed, 85 insertions(+) create mode 100644 Documentation/devicetree/bindings/regulator/onnn,fan53880.yaml diff --git a/Documentation/devicetree/bindings/regulator/onnn,fan53880.yaml b/Documentation/devicetree/bindings/regulator/onnn,fan53880.yaml new file mode 100644 index 000000000000..eb61e04ef852 --- /dev/null +++ b/Documentation/devicetree/bindings/regulator/onnn,fan53880.yaml @@ -0,0 +1,85 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/regulator/onnn,fan53880.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Onsemi FAN53880 PMIC + +maintainers: + - Christoph Fritz + +description: | + The FAN53880 is an I2C porgrammable power management IC (PMIC) + that contains a BUCK (step-down converter), four low dropouts (LDO) + and one BOOST (step-up converter) output. It is designed for mobile + power applications. + +properties: + $nodename: + pattern: "pmic@[0-9a-f]{1,2}" + compatible: + enum: + - onnn,fan53880 + + reg: + maxItems: 1 + + VIN12-supply: + description: Input supply phandle(s) for LDO1 and LDO2 + + VIN3-supply: + description: Input supply phandle(s) for LDO3 + + VIN4-supply: + description: Input supply phandle(s) for LDO4 + + PVIN-supply: + description: Input supply phandle(s) for BUCK and BOOST + + regulators: + type: object + $ref: regulator.yaml# + description: | + list of regulators provided by this controller, must be named + after their hardware counterparts LDO[1-4], BUCK and BOOST + + patternProperties: + "^LDO[1-4]$": + type: object + $ref: regulator.yaml# + + "^BUCK|BOOST$": + type: object + $ref: regulator.yaml# + + additionalProperties: false + +required: + - compatible + - reg + - regulators + +additionalProperties: false + +examples: + - | + i2c { + #address-cells = <1>; + #size-cells = <0>; + + pmic@35 { + compatible = "onnn,fan53880"; + reg = <0x35>; + + PVIN-supply = <&fixreg_example_vcc>; + + regulators { + BUCK { + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <1200000>; + }; + }; + }; + }; +... -- 2.20.1