Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp1230056ioo; Fri, 27 May 2022 04:33:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwVL/BZrFqDaJ4kp6bdjExyBtpV4JRkkMCZy1M86nFrLhGco/37vuRmUVRYWu6NZfH3x3rj X-Received: by 2002:a17:903:124a:b0:154:c860:6d52 with SMTP id u10-20020a170903124a00b00154c8606d52mr43157888plh.159.1653651230561; Fri, 27 May 2022 04:33:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653651230; cv=none; d=google.com; s=arc-20160816; b=lPILPpeNQr2rc5U/EgMg5Wh6K+iDDhcB/OLnsr6HN0kxZ7901VeuLe+QOF00LPYpMT KWD6MtNiY/exgyK/UnaXDIygSmF3iMoIHdMcOhmyojoStwIG48dITU1GJtyM67KaXdkT 7NgdO8k563f4LNfZg+9/WcO2r3Mfxp7KVL3TB+AQ01MBCj0YcF/cmzg07tBlkfcOYfP4 jGbpi3qy2Z326PBCl8vQoC8K07V0MKZaOqnAqtyxofNWuxm71WvF64QB64kBdoQop5FK FSQWURjP9ablqHZ92ZNL64OBAhC3nZ41t6OgLV0xBMRpfaRCcSh/uzPzVyWT6+31yXoi KayA== 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=djaXZvKnQ48OkK/XXFXcCAtGydBecmNA8ztZBz8O8C0=; b=GLrHXz2Igri5br7jS/xBcUIXFJnlgHbjPnrkhAWrV7UXMCOQJGF1XKOWBBbOlSWxU7 t0gZy+bX7aruHuEb4H9kghM8W/iFw3Xvc6JdkwOsk30D/PEzHbse/SRoGHOdFsXhLoky GiwSJ7MP6Asymv2LQzo5fhRup8c1c/r9D/gYkNkl0r4zRqEjfKP9G9aXYl5n8aajUgB/ f2AMwR2H3M15XUxKelK35qnqsbx43at1Wwqk09f0Vt9ibM76ydHGWMjFIYLo9juSUpWt BCC8U6nETZjsXDdr5LC6/dmu1q/+1Pc1xJTDAsHj6BiwbLtbqVLqYSTV0oRAXz8x5CBA HIkw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=B7bKYNL3; 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 q125-20020a632a83000000b003f979ee8706si5136100pgq.765.2022.05.27.04.33.36; Fri, 27 May 2022 04:33:50 -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=B7bKYNL3; 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 S241691AbiEZMIT (ORCPT + 99 others); Thu, 26 May 2022 08:08:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43708 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232417AbiEZMIQ (ORCPT ); Thu, 26 May 2022 08:08:16 -0400 Received: from mail-ej1-x630.google.com (mail-ej1-x630.google.com [IPv6:2a00:1450:4864:20::630]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AD01966AD5 for ; Thu, 26 May 2022 05:08:15 -0700 (PDT) Received: by mail-ej1-x630.google.com with SMTP id gh17so2636985ejc.6 for ; Thu, 26 May 2022 05:08:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=message-id:date:mime-version:user-agent:subject:content-language:to :cc:references:from:in-reply-to:content-transfer-encoding; bh=djaXZvKnQ48OkK/XXFXcCAtGydBecmNA8ztZBz8O8C0=; b=B7bKYNL3NKxnfWA7VWZz4UmFeTe3x68RQORyEnkm/BdZCx1XebjX31Yk8CZDkah/g0 P+U8liuUMu7jPILg21Z/KX5VeWh6PP/XPz3p/CWY8ljnS05J3jUBZxGPmyFDWwlCSbCa b4I39CLOBG+KfGHNrWVlML2KZJU6MCgtk5r7P3zylVJJm2LrVC++uHBDugBB2ZHPDJYr AecB7iWy/c7y8wKrhSm2pUm4xIdUt3hy/mAFbdHs0Zr3WOFCix2OFMqNIMsPF9DP4qrw XUn+DHwVanhrLQMoUAqIkeFrWjRcdYf/Bs4+slPsV27akWBdHW9uMfllZ4QqjBb6u0/K h9iQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=djaXZvKnQ48OkK/XXFXcCAtGydBecmNA8ztZBz8O8C0=; b=FIOZIB4NZKYAtoQ1M4cz5iPlMaIexQjU85Vz/r3TBBfUUSI4bSp/j8KmhwmtY9f0JS 8ykKzoyeJeH8xxBMceitxkTjQatgBenEjJ4gSz5hiWIPG999VGvtr724vCPFT+OHU88F iZawciXEUA9ZI+JGXcs4sJAg+hy12RP/6EdIIJcxFA0usPgh3IifubXxWMtNlbN2TgW1 xs4rbIoal33jAGyPQ+gkNbWAp+CfD/KaIhFrBlV5qZywN+PxjgoFCuY8pBXYXi3ymJgu qV/2oBRGQ+6zRTZwGnsrItzHPprOWfXxJCZ2ayK6NxHDgpZjykTz68yNlb52JxaiS8HU gGdQ== X-Gm-Message-State: AOAM531+ZmhYutowXHHJ+siyNG9BKny20ihuSrY2+C4n9acwB1Q3VYL7 9uKzqk7yytvWmgyepfLQWDPjhw== X-Received: by 2002:a17:907:8a03:b0:6fe:c10d:4bf8 with SMTP id sc3-20020a1709078a0300b006fec10d4bf8mr23014549ejc.308.1653566894204; Thu, 26 May 2022 05:08:14 -0700 (PDT) Received: from [192.168.0.177] (xdsl-188-155-176-92.adslplus.ch. [188.155.176.92]) by smtp.gmail.com with ESMTPSA id s16-20020a056402521000b0042bd6630a14sm745106edd.87.2022.05.26.05.08.13 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 26 May 2022 05:08:13 -0700 (PDT) Message-ID: <5bcbf7d3-daa8-6f00-6743-3d0328a82980@linaro.org> Date: Thu, 26 May 2022 14:08:12 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.9.1 Subject: Re: [PATCH 1/7] dt-bindings: soc: add bindings for i.MX93 SRC Content-Language: en-US To: Peng Fan , "Peng Fan (OSS)" , "robh+dt@kernel.org" , "krzysztof.kozlowski+dt@linaro.org" , "sboyd@kernel.org" , "mturquette@baylibre.com" , "shawnguo@kernel.org" , "s.hauer@pengutronix.de" Cc: Aisheng Dong , "l.stach@pengutronix.de" , "kernel@pengutronix.de" , "festevam@gmail.com" , dl-linux-imx , "devicetree@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" References: <20220523113029.842753-1-peng.fan@oss.nxp.com> <20220523113029.842753-2-peng.fan@oss.nxp.com> From: Krzysztof Kozlowski In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.1 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 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 24/05/2022 14:07, Peng Fan wrote: >> Subject: Re: [PATCH 1/7] dt-bindings: soc: add bindings for i.MX93 SRC >> >> On 24/05/2022 12:37, Peng Fan wrote: >>>> Subject: Re: [PATCH 1/7] dt-bindings: soc: add bindings for i.MX93 >>>> SRC >>>> >>>> On 23/05/2022 13:30, Peng Fan (OSS) wrote: >>>>> From: Peng Fan >>>>> >>>>> Add bindings for i.MX93 System Reset Controller(SRC). SRC supports >>>>> resets and power gating for mixes. >>>>> >>>>> Signed-off-by: Peng Fan >>>>> --- >>>>> .../bindings/soc/imx/fsl,imx93-src.yaml | 88 >>>> +++++++++++++++++++ >>>>> include/dt-bindings/power/imx93-power.h | 11 +++ >>>>> 2 files changed, 99 insertions(+) >>>>> create mode 100644 >>>>> Documentation/devicetree/bindings/soc/imx/fsl,imx93-src.yaml >>>> >>>> File should be in respective subsystem, so probably power/reset? >>> >>> ok, will put under power. >>> >>>> >>>>> create mode 100644 include/dt-bindings/power/imx93-power.h >>>>> >>>>> diff --git >>>>> a/Documentation/devicetree/bindings/soc/imx/fsl,imx93-src.yaml >>>>> b/Documentation/devicetree/bindings/soc/imx/fsl,imx93-src.yaml >>>>> new file mode 100644 >>>>> index 000000000000..d45c1458b9c1 >>>>> --- /dev/null >>>>> +++ b/Documentation/devicetree/bindings/soc/imx/fsl,imx93-src.yaml >>>>> @@ -0,0 +1,88 @@ >>>>> +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) %YAML 1.2 >>>>> +--- >>>>> +$id: >>>>> +> > +title: NXP i.MX9 System Reset Controller >>>>> + >>>>> +maintainers: >>>>> + - Peng Fan >>>>> + >>>>> +description: | >>>>> + The System Reset Controller (SRC) is responsible for the >>>>> +generation of >>>>> + all the system reset signals and boot argument latching. >>>>> + >>>>> + Its main functions are as follows, >>>>> + - Deals with all global system reset sources from other modules, >>>>> + and generates global system reset. >>>>> + - Responsible for power gating of MIXs (Slices) and their memory >>>>> + low power control. >>>>> + >>>>> +properties: >>>>> + compatible: >>>>> + items: >>>>> + - const: fsl,imx93-src >>>>> + - const: syscon >>>>> + >>>>> + reg: >>>>> + maxItems: 1 >>>>> + >>>>> + slice: >>>> >>>> Why do you need this subnode, instead of listing domains here? >>> >>> I follow >>> Documentation/devicetree/bindings/power/fsl,imx-gpcv2.yaml >>> >>> There are several slices in SRC, just like there are many pgcs in gpcv2. >> >> Wait, but you have only one slice and you do no allow more of them. > > Slice is just a group node that could include many child nodes, > such as > slice { > mediamix { > }; > mlmix { > }; > } > > The same >> as for gpcv2 - there is only one pgc. What's the point of that node? > > There are many pgcs, pgc is just a group node there, > See arch/arm64/boot/dts/freescale/imx8mp.dtsi. So this does not explain my question at all. Why do you need "slice" (or pgc) node? You have only one slice in this device, so this is some indirect layer without meaning... Best regards, Krzysztof