Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp3577525ioo; Wed, 25 May 2022 03:54:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzbAgk1gEF7N+VaUTevsCvURqcpDoYkl8wmKgr6MhNZz0WIeO1XTjBZtL/GrWXy1jmARldM X-Received: by 2002:a65:6a15:0:b0:3f6:13ea:1cfb with SMTP id m21-20020a656a15000000b003f613ea1cfbmr28714921pgu.495.1653476045801; Wed, 25 May 2022 03:54:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653476045; cv=none; d=google.com; s=arc-20160816; b=AzyCK0GWWBR6CWZMG8om+o3TNS+xaT9GOnlWoAgaTGvusVaeJQsh7WGcaiRXSoPadN Z2QL507AtjAMw2gMwafsDvABOwst9b1HM7khzdCPbmTGuM5+Og7q3cxebXYb8IE8H70U vKx1tOXUNzAP3QpnNo2553VcURvqzVkQlwdESEvdKzf4UmDd4zAtPGWzHS1hyfPTtQ7j Mji5r4fy+9e6/NM+WszPj/F5T5/ZSeQlZw+QEHFLb15pvq0D1vfUEqObsKDdrUD49KKq OHuhKPdCIjzPj0oTwrSLxyXrbX5r8t8gANfWykR8WO3SzHla9KQdzBCkVMPXaLGNcvPy Hr9A== 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=uZXl4RLzzhryYGc4tfKASYNpJNQsDtpLhwIbhtBkN3M=; b=ywhLIjwGtz+/kMGVw2/98OUrfWyRpwFVxpTLx0wQnHKRhccAL4ZmkHWAH+Sy0c1qtZ pyyVWPIU7tlbnGWOmlx8TZcil5vsIeWnu0ILoYb/udFdSLi3rbUA3CHQ+0xuo9ccLZBg NzONiB6/rYTjlFKQcGdSE7mRXP3DrQTMi4WQJPwN/ydbOCcnTFbpVpw/KjekBg7+dnRz 1PwL08QPJ3lHVjggLXknlDS2WPKL/qdeisEkQNwAY7R5wWrOyUTP2cjXWvpW7Vjtw6sG Yjb518tSA+OUhBtwG08Pl3MI6TTl/0Aye9f5P/8fOWClnE1AoVk6ZPLrzvlLaBruxcXt /Yyw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=F0L95uV9; 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 s5-20020a17090302c500b00156b24c4bb6si17615752plk.120.2022.05.25.03.53.53; Wed, 25 May 2022 03:54:05 -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=F0L95uV9; 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 S236703AbiEXLeU (ORCPT + 99 others); Tue, 24 May 2022 07:34:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60824 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235508AbiEXLeT (ORCPT ); Tue, 24 May 2022 07:34:19 -0400 Received: from mail-lf1-x12e.google.com (mail-lf1-x12e.google.com [IPv6:2a00:1450:4864:20::12e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E70AA8BD28 for ; Tue, 24 May 2022 04:34:17 -0700 (PDT) Received: by mail-lf1-x12e.google.com with SMTP id t25so30324621lfg.7 for ; Tue, 24 May 2022 04:34:17 -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=uZXl4RLzzhryYGc4tfKASYNpJNQsDtpLhwIbhtBkN3M=; b=F0L95uV9E/AgMjCwe/WYoZXPBgf+yhKojr2kVa/MF4G527YdhqKjf5Q5Mv33jX2wjv 8um03WQLBpIuJmNpyW1rrq6pqd7ivlxlyg1PrupURv1xG17IMWvBwBeZu9kTd+LHA0Tz h5OrSzx1SZfPBfWP/F7dg8OHGsyp8CN5Hcvb0F9yWYY6b5XISZM1TCUoh4AjpWUCIgRR Nb1ypQ1vICq4UmE5ua0Ay+Catlm5Vnlx9Xg9GXX0B23/SCG+R0l19PoP9KA+w36yNG+m BA9zVgqQFeJTh9PyxYLU2HYSTzBlDV4dzhh8qNuiScCk3f1/OMcdWcMNsRcVVn8BsTXT hV5g== 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=uZXl4RLzzhryYGc4tfKASYNpJNQsDtpLhwIbhtBkN3M=; b=Zdl1/cyMNvQNEDwn3lC4ZihiH6EXguCeCj5PbcPjnqNv+yr3or9BiBvFLBTSEXzRUy iWPEf09DJvYm6DUaXPS+NEpJLG8NmT0I77OqBntCFFNPwirH8I7IUq7/a4G4Zw4sBWjG x9/GvPM51w72L/TlJtlN7tKJClnQCAUg1YIA7jHd68GDTpQBeqo7MMpVKml+G/r2tWxr l8RTrHUqmsHYvnVfXSfIFN0unP+C8ZCpEGWgMWINFDl3uRnqrU22ZG6hNmicVTlWv74A L0k2oG6aFUs2SVnTZ4wE+iNZMOocKqDMgeL9ypzWHJr+d/Zsl32LYDldq/kAHthvbflC D1GQ== X-Gm-Message-State: AOAM532artEJsqGQ0LagjTzaDFoVgtWLun9SCfQKqLnCnMoxZ/207F0q Q14oTZRFuRVDrCg55/QsUoPM3g== X-Received: by 2002:a05:6512:b9f:b0:478:5bf0:67f9 with SMTP id b31-20020a0565120b9f00b004785bf067f9mr12209045lfv.313.1653392056241; Tue, 24 May 2022 04:34:16 -0700 (PDT) Received: from [172.20.68.48] ([91.221.145.6]) by smtp.gmail.com with ESMTPSA id i22-20020a2e8656000000b0024f3d1daed0sm2451344ljj.88.2022.05.24.04.34.15 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 24 May 2022 04:34:15 -0700 (PDT) Message-ID: Date: Tue, 24 May 2022 13:34:11 +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=-5.4 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=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 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. The same as for gpcv2 - there is only one pgc. What's the point of that node? > > >> >>> + type: object >>> + description: list of power domains provided by this controller. >>> + >> >> Hm, what about address/size cells? Is syscon schema bringing these? > > The slice submode should have address/size cells, but I not > meet yaml/dtbs check error. Will add it. > > Not sure syscon bringing or not. > >> >>> + patternProperties: >>> + "power-domain@[0-9]$": >>> + type: object >> >> Missing ref to power-domain.yaml > > Ok. > >> >>> + properties: >>> + >>> + '#power-domain-cells': >>> + const: 0 >>> + >>> + reg: >>> + description: | >>> + Power domain index. Valid values are defined in >>> + include/dt-bindings/power/imx93-power.h for fsl,imx93-src >>> + maxItems: 1 >>> + >>> + clocks: >>> + description: | >>> + A number of phandles to clocks that need to be enabled >>> + during domain power-up sequencing to ensure reset >>> + propagation into devices located inside this power domain. >>> + minItems: 1 >>> + maxItems: 5 >>> + >>> + required: >>> + - '#power-domain-cells' >>> + - reg >>> + >>> +required: >>> + - compatible >>> + - reg >>> + - slice >>> + >>> +additionalProperties: false >>> + >>> +examples: >>> + - | >>> + #include >>> + #include >>> + >>> + src@44460000 { >> >> reset-controller >> or some other generic node name. > > It is not a single reset or power domain controller, > Currently linux driver just use it as a power domain > controller. Then maybe system-controller. > > Thanks, > Peng. > >> >>> + compatible = "fsl,imx93-src", "syscon"; >>> + reg = <0x44460000 0x10000>; >>> + >>> + slice { >>> + #address-cells = <1>; >>> + #size-cells = <0>; >>> + >>> + mediamix: power-domain@0 { >> >> Best regards, >> Krzysztof Best regards, Krzysztof