Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp1793651rwl; Thu, 30 Mar 2023 01:22:02 -0700 (PDT) X-Google-Smtp-Source: AKy350ZkhgB4EDXrwhpJsW6duhkq3acrodBVcCvrTv2TCgLWKkl/QHsvdX70Q2liIKar95+mk+AQ X-Received: by 2002:a17:906:dd:b0:93e:22e6:e7d1 with SMTP id 29-20020a17090600dd00b0093e22e6e7d1mr1272142eji.3.1680164522037; Thu, 30 Mar 2023 01:22:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680164522; cv=none; d=google.com; s=arc-20160816; b=VRFnBF6OACgcRkEWW+JcsQl80u62knjQUqKGdxljKh3hNSkoTVJLSdLaQNgnItco4v BxiB54V8yTk3olJHFqgL9nz5gUVX0XJBzEA9YkCKXObS40DhZi7YM8jh92WCrD6ruu/a 3QP1aFi6d6QxFMkJGlkRypUOxymg3+I3tamjZQhcfiLoEChvkSqvsungA3lvvpIRDBtf kpbvhvmmk+K4shbQZ2eLRC6UhC1tBtg4M8PVtsu5/MNMkWzq5ndxt375fQHrbSrOWO/2 fbt6A1xVzlDJI1NiTFZJ+ehQs3w3nDKRAfBwQzyLW/kIPQvZ6AfJ9nJmP/zZ7V/Zg1AO GCZA== 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=Kz8O0h7OgMF0sc+ePQvG9dGICikJ94bKFs6ad794+O4=; b=cXhWqvb0ZK+TWjLcR88Rgy9lPt6mddVAcT/v1e5qK6xdBIUvbu2Ddb4zquCLfFl8GR GclW+FovbPFdiyz0FTr+U+ZaKVrpKbaiiQfZeSvS8yjhLy87HuDBHsAMcHMRwHozHb1n 8a5rIIjjX9s9fznXhxBVcNda5Q+LPi2AwDBDUaQ1nhdRmwl+cNxhAPftZwXfgrGzdXsf K7k58piLIvHBDCynZ/rSvFv4V/H6INp4UQejXyw2w+KvCvlNHXG1ItCQH/69Fg7qEdvy gEPMWM0T+ki6nmTXgdyl0Ian5nrokKIZwLyMgy+VeUSS1EXm8hxaG8WoLb6Dl9/Nep+V nCfw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20210112.gappssmtp.com header.s=20210112 header.b=SIfPU8Lk; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a12-20020a170906274c00b008bc108463e1si32308036ejd.98.2023.03.30.01.21.37; Thu, 30 Mar 2023 01:22:02 -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=@baylibre-com.20210112.gappssmtp.com header.s=20210112 header.b=SIfPU8Lk; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229902AbjC3IUi (ORCPT + 99 others); Thu, 30 Mar 2023 04:20:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35152 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230265AbjC3IUU (ORCPT ); Thu, 30 Mar 2023 04:20:20 -0400 Received: from mail-wr1-x430.google.com (mail-wr1-x430.google.com [IPv6:2a00:1450:4864:20::430]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E9BF476BE for ; Thu, 30 Mar 2023 01:20:12 -0700 (PDT) Received: by mail-wr1-x430.google.com with SMTP id d17so18149271wrb.11 for ; Thu, 30 Mar 2023 01:20:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20210112.gappssmtp.com; s=20210112; t=1680164411; x=1682756411; 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=Kz8O0h7OgMF0sc+ePQvG9dGICikJ94bKFs6ad794+O4=; b=SIfPU8LkPm1D2UMludinin+ImXvyDgmatubsc5VNKSLmjzosne2bNfXGuJry9ntlZc c5Z+lRvFfwC5ziOE+hvJcQiaFeomsIwlJ1upkRoq9MNLaLu6nNdjgzfRgMyVNjgVnIkZ G6IDaIjlgg1L2HoSn0JVNqkM+FLCGqmbrgSSHnVDnVywTptjphwBp4fUdHE1ffrV6v5P xII5+FNL0C5novcISxxI1RSGaGIsmDMv7zVQFPsR87iGFCVKQyjuiZRsf/i+wDe9Neki HmPEzxLTFuKHawAJjUED9MqRAR9E5Ee3rBVW1JUiG73n/PXZrJ904H751I0D2SRwo0ti y2cg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680164411; x=1682756411; 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=Kz8O0h7OgMF0sc+ePQvG9dGICikJ94bKFs6ad794+O4=; b=pK0i8m1uKbHO9drRwBVXUbp9lYb3HBWA9b6r1YudeaSoKfZmr24Sx/pzLyhXBt9x0j WmA/P6CH1XcZ2zff22ICnSI5DQPaCj+hnNpULmeLWhnQxXxJd78DvuLn/odV0csotsz8 sJtb/a77JVGEQ5omA9wZtrogj0ybnjSO5nuNnV3pcMWjsB+HmXJTuz/oJB6eNsPIQguV T238fuKy6Q/k+wwbkEvBZZ4BWjuhw3c09litGPfhYeAt2TGijYR5DNRrqYVK7V9C3fdB c3httbuSNE9Qs68vPjVUjhEoO3I5C1HbxW4QSx0dazKvku3aDCh/G0KPfp3JrNbpVwIx 5Nyg== X-Gm-Message-State: AAQBX9eVc0fDCI+4eukyMSyTT6KAYaAyJeKzkL1UbHG653bNNC8SLCwT 7zv4sfUqr46u5CKJvTyb2DbpJQ== X-Received: by 2002:a5d:4d03:0:b0:2da:f0b5:2595 with SMTP id z3-20020a5d4d03000000b002daf0b52595mr17411197wrt.0.1680164411361; Thu, 30 Mar 2023 01:20:11 -0700 (PDT) Received: from baylibre-ThinkPad-T14s-Gen-2i.. (151.31.102.84.rev.sfr.net. [84.102.31.151]) by smtp.gmail.com with ESMTPSA id e13-20020a5d4e8d000000b002ceacff44c7sm32286588wru.83.2023.03.30.01.20.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 Mar 2023 01:20:11 -0700 (PDT) From: Julien Panis To: lee@kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, corbet@lwn.net, arnd@arndb.de, gregkh@linuxfoundation.org, derek.kiernan@xilinx.com, dragan.cvetic@xilinx.com Cc: yi.l.liu@intel.com, jgg@ziepe.ca, razor@blackwall.org, stephen@networkplumber.org, prabhakar.csengg@gmail.com, contact@emersion.fr, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, sterzik@ti.com, u-kumar1@ti.com, eblanc@baylibre.com, jneanne@baylibre.com Subject: [PATCH v5 1/4] dt-bindings: mfd: Add TI TPS6594 PMIC Date: Thu, 30 Mar 2023 10:20:03 +0200 Message-Id: <20230330082006.11216-2-jpanis@baylibre.com> X-Mailer: git-send-email 2.37.3 In-Reply-To: <20230330082006.11216-1-jpanis@baylibre.com> References: <20230330082006.11216-1-jpanis@baylibre.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=0.0 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS 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 TPS6594 is a Power Management IC which provides regulators and others features like GPIOs, RTC, watchdog, ESMs (Error Signal Monitor), and PFSM (Pre-configurable Finite State Machine) managing the state of the device. TPS6594 is the super-set device while TPS6593 and LP8764 are derivatives. Signed-off-by: Julien Panis --- .../devicetree/bindings/mfd/ti,tps6594.yaml | 193 ++++++++++++++++++ 1 file changed, 193 insertions(+) create mode 100644 Documentation/devicetree/bindings/mfd/ti,tps6594.yaml diff --git a/Documentation/devicetree/bindings/mfd/ti,tps6594.yaml b/Documentation/devicetree/bindings/mfd/ti,tps6594.yaml new file mode 100644 index 000000000000..9d43376bebed --- /dev/null +++ b/Documentation/devicetree/bindings/mfd/ti,tps6594.yaml @@ -0,0 +1,193 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/mfd/ti,tps6594.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: TI TPS6594 Power Management Integrated Circuit + +maintainers: + - Julien Panis + +description: + TPS6594 is a Power Management IC which provides regulators and others + features like GPIOs, RTC, watchdog, ESMs (Error Signal Monitor), and + PFSM (Pre-configurable Finite State Machine) managing the state of the device. + TPS6594 is the super-set device while TPS6593 and LP8764 are derivatives. + +properties: + compatible: + enum: + - ti,lp8764-q1 + - ti,tps6593-q1 + - ti,tps6594-q1 + + reg: + description: I2C slave address or SPI chip select number. + maxItems: 1 + + ti,primary-pmic: + type: boolean + description: | + Identify the primary PMIC on SPMI bus. + A multi-PMIC synchronization scheme is implemented in the PMIC device + to synchronize the power state changes with other PMIC devices. This is + accomplished through a SPMI bus: the primary PMIC is the controller + device on the SPMI bus, and the secondary PMICs are the target devices + on the SPMI bus. + + system-power-controller: true + + gpio-controller: true + + '#gpio-cells': + const: 2 + description: | + The first cell is the pin number, the second cell is used to specify flags. + See ../gpio/gpio.txt for more information. + + interrupts: + maxItems: 1 + + regulators: + type: object + description: List of regulators provided by this controller. + + patternProperties: + "^buck([1-5]|12|34|123|1234)$": + type: object + $ref: /schemas/regulator/regulator.yaml# + + unevaluatedProperties: false + + "^ldo[1-4]$": + type: object + $ref: /schemas/regulator/regulator.yaml# + + unevaluatedProperties: false + + allOf: + - if: + required: + - buck12 + then: + properties: + buck123: false + buck1234: false + - if: + required: + - buck123 + then: + properties: + buck34: false + - if: + required: + - buck1234 + then: + properties: + buck34: false + + additionalProperties: false + +patternProperties: + "^buck([1-5]|12|34|123|1234)-supply$": + description: Input supply phandle for each buck. + + "^ldo[1-4]-supply$": + description: Input supply phandle for each ldo. + +required: + - compatible + - reg + - interrupts + +additionalProperties: false + +examples: + - | + #include + i2c { + #address-cells = <1>; + #size-cells = <0>; + + tps6593: pmic@48 { + compatible = "ti,tps6593-q1"; + reg = <0x48>; + ti,primary-pmic; + system-power-controller; + + gpio-controller; + #gpio-cells = <2>; + + pinctrl-names = "default"; + pinctrl-0 = <&pmic_irq_pins_default>; + interrupt-parent = <&mcu_gpio0>; + interrupts = <0 IRQ_TYPE_EDGE_FALLING>; + + buck123-supply = <&vcc_3v3_sys>; + buck4-supply = <&vcc_3v3_sys>; + buck5-supply = <&vcc_3v3_sys>; + ldo1-supply = <&vcc_3v3_sys>; + ldo2-supply = <&vcc_3v3_sys>; + ldo3-supply = <&buck5>; + ldo4-supply = <&vcc_3v3_sys>; + + regulators { + buck123: buck123 { + regulator-name = "vcc_core"; + regulator-min-microvolt = <750000>; + regulator-max-microvolt = <850000>; + regulator-boot-on; + regulator-always-on; + }; + + buck4: buck4 { + regulator-name = "vcc_1v1"; + regulator-min-microvolt = <1100000>; + regulator-max-microvolt = <1100000>; + regulator-boot-on; + regulator-always-on; + }; + + buck5: buck5 { + regulator-name = "vcc_1v8_sys"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + regulator-boot-on; + regulator-always-on; + }; + + ldo1: ldo1 { + regulator-name = "vddshv5_sdio"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + regulator-boot-on; + regulator-always-on; + }; + + ldo2: ldo2 { + regulator-name = "vpp_1v8"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + regulator-boot-on; + regulator-always-on; + }; + + ldo3: ldo3 { + regulator-name = "vcc_0v85"; + regulator-min-microvolt = <850000>; + regulator-max-microvolt = <850000>; + regulator-boot-on; + regulator-always-on; + }; + + ldo4: ldo4 { + regulator-name = "vdda_1v8"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + regulator-boot-on; + regulator-always-on; + }; + }; + }; + }; -- 2.37.3