Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp5724026rwl; Wed, 22 Mar 2023 01:06:34 -0700 (PDT) X-Google-Smtp-Source: AK7set/lCw2rJlufeY9/R249F5M2IiRpj2Vh0g+RQuAe3xiTqZ/n+ifXHNA0Rp6jaQQag+yw8ArJ X-Received: by 2002:a05:6402:104b:b0:500:2cac:332c with SMTP id e11-20020a056402104b00b005002cac332cmr5246983edu.25.1679472394311; Wed, 22 Mar 2023 01:06:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679472394; cv=none; d=google.com; s=arc-20160816; b=xnicltiPL37ioUCXmRijWVWAe/TdsmRQAHS7B3XJb4PVLBjQ2E9pXUCVRsrUxWL1le PA6bsxiqmHTf90M9yhwHgDuYKJn9kGvQGznt4jgx+6PQl/Kg1KssWAmSHd2kBsiMOt2X CyM4ScGW6dnUi128ZMrDkKeluHk7bDdcRg0eyEXkHAsEoMbZ7uoWe63s16CzHNSGOkb3 L3eCq88qpq5Z+PKIw+1g0td3ZFmHRGPUZkGY8aIOyDQbNqKotFS1Rm3qR0PlusBt8OxM w3fO7/0Ppm13ybmPh5RXakXG4XDmecpc42WkHKXRhORqg8N5o4nFTjGe/U5kT5zm3VvD OaPQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=e2bpCu2JkDxdB1j+Upo++Ty9Q2a+W+RFaVVRjPXt9MM=; b=xaktvedqE2KGpFf1V5bPwjuVtqAWFSKdHfM7P2OgB5XHAwpi95rW0ntrl/42Dh9pKz Ot3W67Anj6WY1ku2wwtfme6k2YU5MSuMfEHTMfvmNqMg/G+H67RWv3XM+G7n4S30N6Wl ygk1K+VKFETo4xnKGQr7UoYKcZEu+JXJ8U+/X73aT0vT8YrULP/oIYP0ARzKgytDS2zl lxwM7vC48ZG9zyMELmXQcBoaBZxsioJlwwC4ESaWl18l8qz9xh41IbTRgxoOOwGVb9EG q9W51yYxVc2m8M0wPZFKlf6S37ycx+fn2RbW2WvTBbOIzwQOF6ArGRbkRI5/AsvPlABd +OQg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20210112.gappssmtp.com header.s=20210112 header.b=x872nMvE; 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 j12-20020aa7c0cc000000b004fce9efe651si14578768edp.603.2023.03.22.01.06.09; Wed, 22 Mar 2023 01:06:34 -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=x872nMvE; 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 S230042AbjCVIBr (ORCPT + 99 others); Wed, 22 Mar 2023 04:01:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42572 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229682AbjCVIBm (ORCPT ); Wed, 22 Mar 2023 04:01:42 -0400 Received: from mail-wm1-x332.google.com (mail-wm1-x332.google.com [IPv6:2a00:1450:4864:20::332]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9984A23332 for ; Wed, 22 Mar 2023 01:01:39 -0700 (PDT) Received: by mail-wm1-x332.google.com with SMTP id l15-20020a05600c4f0f00b003ed58a9a15eso10826934wmq.5 for ; Wed, 22 Mar 2023 01:01:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20210112.gappssmtp.com; s=20210112; t=1679472098; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=e2bpCu2JkDxdB1j+Upo++Ty9Q2a+W+RFaVVRjPXt9MM=; b=x872nMvEYBCBHKT76hXne8vpGCgaWD4I74cu5OV3jp4KtTykj63AxTuDw+GvyLK6TZ ttytHBtlURPVQ1rwRRlV5oRCXcPGVM4RbqvoZPXBZwY4EL5HKpXLDGNRGhcLuv9TzLmd QClsavyNjf6NxzBQptz0oU139JJiuP027ji/YWARz452wspPU3XJuYjeSs8H4gDxNCs+ WIqXq2vRZx7oFKAscT5pl4CDIj+VOYANla/ki+JcywhjqRgb/Yqd+p7psyvSFEIwB0GN F16BnTbYXbFb5iobP3euQvrGFU1t+SItoMp/6w34X7yOS7zrY0YNkzF5aJGtpG1PgLJk zYWQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679472098; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=e2bpCu2JkDxdB1j+Upo++Ty9Q2a+W+RFaVVRjPXt9MM=; b=HNRyzeokPCn3KpGCb4P+JNSeT3uhJtjMs2r+T/4N9BJwhRs7ajSk4XT0mngFCUQwPK dUx1UCmWk8IOQGjA20b8BPVH8G6hPuB52ANK6ohlc1XwC0nL6P7ph6AaQDI3QTYhmZNU P2daW9Crb29qe59QTvDzqw7613xVQp9pg75adR45jlhtQLGqEkJkUzVUWS6FY+Zz1WAc /WC1chkJFCo5d2lWy5h3zm13i7TjZVrIBaSgadJjcO3Vm05CUg6kHAKMJFKMzY+nG9+o CV4ZejDa2d/W3AP6m81YYrR8nZ55SS3ztdH8sicwOLqFD7t2fF9HhgH4tNkxuE+WRoUh CT3Q== X-Gm-Message-State: AO0yUKXiZAR5NfqvHdT9bZaBEPgAG2RR6dqIgCvvg11YGDcH/0h6ToqE QbiE55trV0AXqQC00yRvNVBBug== X-Received: by 2002:a05:600c:295:b0:3eb:25ff:3446 with SMTP id 21-20020a05600c029500b003eb25ff3446mr4283251wmk.4.1679472098083; Wed, 22 Mar 2023 01:01:38 -0700 (PDT) Received: from [192.168.1.70] (151.31.102.84.rev.sfr.net. [84.102.31.151]) by smtp.gmail.com with ESMTPSA id fc6-20020a05600c524600b003ee04190ddfsm7743179wmb.17.2023.03.22.01.01.35 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 22 Mar 2023 01:01:37 -0700 (PDT) Message-ID: Date: Wed, 22 Mar 2023 09:01:35 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.8.0 Subject: Re: [PATCH v3 1/4] dt-bindings: mfd: Add TI TPS6594 PMIC Content-Language: en-US To: Krzysztof Kozlowski , 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: eric.auger@redhat.com, jgg@ziepe.ca, razor@blackwall.org, stephen@networkplumber.org, davem@davemloft.net, christian.koenig@amd.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 References: <20230321171020.74736-1-jpanis@baylibre.com> <20230321171020.74736-2-jpanis@baylibre.com> <88a6856e-c766-d4a5-1882-5350fd0e248a@linaro.org> From: Julien Panis In-Reply-To: <88a6856e-c766-d4a5-1882-5350fd0e248a@linaro.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=0.0 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, NICE_REPLY_A,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED 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 On 3/22/23 08:34, Krzysztof Kozlowski wrote: > On 21/03/2023 18:10, Julien Panis wrote: >> 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 LP8764X are derivatives. >> >> Signed-off-by: Julien Panis >> --- >> .../devicetree/bindings/mfd/ti,tps6594.yaml | 231 ++++++++++++++++++ >> 1 file changed, 231 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..4e4565a68e40 >> --- /dev/null >> +++ b/Documentation/devicetree/bindings/mfd/ti,tps6594.yaml >> @@ -0,0 +1,231 @@ >> +# 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 LP8764X are derivatives. >> + >> +properties: >> + compatible: >> + enum: >> + - ti,lp8764x > Does x stand for a wildcard? If so, then fix it. Compatibles should be > specific. OK, I will remove 'x' in next version. > >> + - ti,tps6593 >> + - ti,tps6594 >> + >> + 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 >> + >> + ti,multi-phase-id: >> + description: | >> + Describes buck multi-phase configuration, if any. For instance, XY id means >> + that outputs of buck converters X and Y are combined in multi-phase mode. >> + $ref: /schemas/types.yaml#/definitions/uint32-array > No improvements here. As Rob pointed out, this looks like coupled > regulators. I used 'oneOf' logic to handle mutual exclusion. But it seems that I did not understand what you and Rob expected. Does some generic property already exist for 'coupled regulators' ? > > Best regards, > Krzysztof >