Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2795940rwd; Wed, 14 Jun 2023 07:27:26 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4gDQlOQ0x14itafLUBeXFR6PtA17sobB/yEqUirPzxPwtK6PxjIkFszbiTNl144L/sd7Fp X-Received: by 2002:a19:f20d:0:b0:4f6:116d:6d26 with SMTP id q13-20020a19f20d000000b004f6116d6d26mr8083680lfh.42.1686752846233; Wed, 14 Jun 2023 07:27:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686752846; cv=none; d=google.com; s=arc-20160816; b=c/QLyxeGRH4FPMZcgqpssKjfIJH/V9L6X4Luu8p9Z3mo6MxKLMJYm3P+0moiK9Mc1W KhoXGAOgHGPQMjEP05FqX2XTxhsonqYr4c7sgTugx7Qcr+p7fQ8tCVJCufV399VLhM0z ZbUgJy26TpwjpllOMqD3rPFbjd6c4BZ/r4iuHnuNUmdDDks5gajwhgc465/neLizAE1a qEkFWK+3EbaNfxx+A0anUL7y1xNE0ECCKztSo8wmDEFsTAp+MVko2YTyBFxrnQypUBw3 pGmwJc8lIBKzI8QghUH6cJAS0PR9+L+YxJ11D/3Zm0GLt6OakKJ5c1vfz1Y9fhx2h1we OHLg== 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=FANL57ecbIxqC2s7WVdfFkY/wb9kISO9tnMy6zPKsiU=; b=bmlSvE7fmJ/OwjrnvFcJ9ZmGJ4CJ1ckf2GJ7fsuMwvWzhW2BbFey/CkgBwjz3+fAtY BoOf3a9SxLbU6e0bXCCV+46NiItk98cuAck9p0DaqAkf8pyPIz78zNP6y4YsY0VYCNag s5UsYXV15tSm5MeTaRLxbWUdTFzvKFf/bGS1kyKbHnb9zUztnsaDMdVQf0tuXliUlh65 VNG0fX7q59FYPbw7St0Mzj69wyX1MzdA1clZsa3py/Lqx+pFiUVfw2czLil05QoYDMlt zXq1ZD5AswEk7Fd8ehjC8/bSLdZleqCdL28O9ew6gxxZfXl2dCuYsGBqwE5r2K9oodBa u7eQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="txhaf/go"; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r9-20020aa7d149000000b0051638a5a755si9490974edo.75.2023.06.14.07.26.55; Wed, 14 Jun 2023 07:27:26 -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=@linaro.org header.s=google header.b="txhaf/go"; 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 S244824AbjFNNaM (ORCPT + 99 others); Wed, 14 Jun 2023 09:30:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43916 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244187AbjFNNaL (ORCPT ); Wed, 14 Jun 2023 09:30:11 -0400 Received: from mail-ej1-x62e.google.com (mail-ej1-x62e.google.com [IPv6:2a00:1450:4864:20::62e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E4CA11BEF for ; Wed, 14 Jun 2023 06:30:09 -0700 (PDT) Received: by mail-ej1-x62e.google.com with SMTP id a640c23a62f3a-970056276acso101765066b.2 for ; Wed, 14 Jun 2023 06:30:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1686749408; x=1689341408; 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=FANL57ecbIxqC2s7WVdfFkY/wb9kISO9tnMy6zPKsiU=; b=txhaf/go51p1KpK+q8iErRvGq64ClFPXTsTwzV/xtf4DM3J/d5VanUzyzEoAhZIxeL BLcZ1uzi2tf5aXjBBEfezBYP70SNdDmOfeCMxaBmLcu6Oga7uNYqrOiZLiXuQu4/IH0g ubyrjSv5YxAPkZ+4LzAsdv4zqgWB6Mcoi5rTDRsF0VaZ9qSmZoQBC8mAXvs/PW5orUAz Wqafo4wCZxiQ8iIO/GCE3UlfhzmDoli6/AHnncISYWtyJxmBbg3JfInTBj+n8vOTs07Y f6yzWrgXw1qKSx4BU9m4B1M7E9OpzgRZZXZbH7NBGbsGUlbn5VlLnkmUqfS99+NN8WOt 26BA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686749408; x=1689341408; 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=FANL57ecbIxqC2s7WVdfFkY/wb9kISO9tnMy6zPKsiU=; b=IhJ+WQvslXaaiG26YAwmTvjJ8xeHU0nXz0zhvrVJonBkLaTqkuYyMc1sBVnNagM4bS r5WnWebE/CeO1X2Yh8h5oFTMet8Nqxw0Tsj/kltRiPaWmKx4I4dLlE/cRmqzmdptNpR+ Tk1PnPqyVeGlz4IC6gNxqTLHvi0XG2BMM6zzXpicCYsoG2K6/VuCLXBss/vqUbE6aD3q Coon7qipoj4EaWm6DE2P4Ot3Q+1Ej+IexCzk83SupUVgCEhF/WhBp+hWmzYt00HVNuuj fAXIGzqWQoZeN89O6ApxY4NvA/M6/O8KxcQhQznfB/KU7Q0ClLu4F47Eu3q6oCXTO0AY ObXg== X-Gm-Message-State: AC+VfDwZOKp/VBW72jegT8OU/4XbpKtDK6ek+ia8vIfjnxG0P2Vdk/s/ Gs9nHB/99SKSrUV/g4oUVTAP/w== X-Received: by 2002:a17:907:728d:b0:96f:afe9:25c4 with SMTP id dt13-20020a170907728d00b0096fafe925c4mr14390331ejc.50.1686749408420; Wed, 14 Jun 2023 06:30:08 -0700 (PDT) Received: from [192.168.1.20] ([178.197.219.26]) by smtp.gmail.com with ESMTPSA id lv16-20020a170906bc9000b00965a52d2bf6sm8013335ejb.88.2023.06.14.06.30.06 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 14 Jun 2023 06:30:07 -0700 (PDT) Message-ID: <45f91d55-7a98-b300-f81c-30f9009519b0@linaro.org> Date: Wed, 14 Jun 2023 15:30:05 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.12.0 Subject: Re: [PATCH 05/10] dt-bindings: power: reset: Add bindings for twl6030-power Content-Language: en-US To: Mithil , "robh@kernel.org" Cc: "contact@paulk.fr" , "devicetree@vger.kernel.org" , "dmitry.torokhov@gmail.com" , "krzysztof.kozlowski+dt@linaro.org" , "lee@kernel.org" , "linux-arm-kernel@lists.infradead.org" , "linux-input@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "linux-omap@vger.kernel.org" , "linux-pm@vger.kernel.org" , "linux@armlinux.org.uk" , "sre@kernel.org" , "tony@atomide.com" References: From: Krzysztof Kozlowski In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 On 14/06/2023 11:13, Mithil wrote: > Subject: Re: [PATCH 05/10] dt-bindings: power: reset: Add bindings for > twl6030-power > > On Tue, Aug 23, 2022 at 12:54 AM Rob Herring wrote: >> >> On Sat, Aug 20, 2022 at 12:46:55PM +0530, Mithil Bavishi wrote: >>> Adds documentation for the twl6030 power driver. >>> >>> Signed-off-by: Paul Kocialkowski >>> Signed-off-by: Mithil Bavishi >>> --- >>> .../bindings/power/reset/twl6030-power.txt | 31 +++++++++++++++++++ >> >> New bindings must be DT schema format. >> >>> 1 file changed, 31 insertions(+) >>> create mode 100644 Documentation/devicetree/bindings/power/reset/twl6030-power.txt >>> >>> diff --git a/Documentation/devicetree/bindings/power/reset/twl6030-power.txt b/Documentation/devicetree/bindings/power/reset/twl6030-power.txt >>> new file mode 100644 >>> index 000000000..946bb3d9f >>> --- /dev/null >>> +++ b/Documentation/devicetree/bindings/power/reset/twl6030-power.txt >>> @@ -0,0 +1,31 @@ >>> +Texas Instruments TWL family (twl6030) reset and power management module >>> + >>> +For now, the binding only supports the complete shutdown of the system after >>> +poweroff. >>> + >>> +Required properties: >>> +- compatible : must be >>> + "ti,twl6030-power" >>> + >>> +Optional properties: >>> + >>> +- ti,system-power-controller: This indicates that TWL6030 is the >> >> We have a generic property for this. >> > > What is property is that? And how would it get implemented here? Easy to guess... git grep system-power-controller > >>> + power supply master of the system. With this flag, the chip will >>> + initiate an ACTIVE-to-OFF or SLEEP-to-OFF transition when the >>> + system poweroffs. >>> + >>> +Example: >>> +&i2c1 { >>> + clock-frequency = <2600000>; >>> + >>> + twl: twl@48 { >>> + reg = <0x48>; >>> + interrupts = <7>; /* SYS_NIRQ cascaded to intc */ >>> + interrupt-parent = <&intc>; >>> + >>> + twl_power: power { >>> + compatible = "ti,twl6030-power"; >>> + ti,system-power-controller; >> >> Why do you need a child node here? There aren't any resources for the >> sub-block. >> > > Just an example and how it is used on a device as well, is it fine if > just the block is as-is? The question is not about example. Question was why do you need child node at all. Children without resources are usually useless. Best regards, Krzysztof