From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 16077C43334 for ; Tue, 14 Jun 2022 21:41:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=udaVRqJYC6p58lJfnPu5NXXyKrR4W7ymrs5nJloI3ds=; b=OiJfOWweGboBlT fZ+aPRzcxYR+9Q239wiTr8Q8dpC/4vS2YWsGMvDzgBq80q83HqR/ExXQqlzdkK5WeGS+WAxrP1zSt yhcDGkHrOHkNWs/r0+XwIokPAXCs7pEDFRK0r3kYnTKgPDAv6BPkxHrqHWaOGEFIXfOC5LZUBsJPJ 80/Wh+EQX3AMwcf3SDSGZiwIWvHIkaUcm78unEt+jAdWegGLstWMyA6W79vEgLRHVdYapUy1i8gXt 4qvaf0/x7SpJjfopITr4mFnpvuWuy2hriL2YhSzVQznPOTxsq8YKE8+KabXgy0YjMt0on5tzy0dOH cwEmRe0QibVP51rGV0pA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1o1EGW-00BSGC-Rd; Tue, 14 Jun 2022 21:40:00 +0000 Received: from mail-io1-f46.google.com ([209.85.166.46]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1o1EGT-00BSF4-1R for linux-arm-kernel@lists.infradead.org; Tue, 14 Jun 2022 21:39:58 +0000 Received: by mail-io1-f46.google.com with SMTP id b138so3985793iof.13 for ; Tue, 14 Jun 2022 14:39:56 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=unZFsQoQAWR2pVZAAakZd6F7Dh1f8xGDIsqx3gD2nuk=; b=z0yRIq2tJ+zdWmJy/HA1fUrX+6mwa391Lf2zQc4cxtOrIk1tvebJbQn7fmS54petDx oVr9YopDytfUPaZqZLTpuqmCcMF8vzRBoBjiQpV2x1pKoqtXXykqAnY0aU7UFOuOeRw8 yHwmLfkEmxjo2NSjxAc3yOLeZ0DvrTLkRYbscUMFrsVsJFQoWkJbnrTNGBZ9CbTKl+b7 6mFvg9s+AX4hBinEGQR9u/yUnK53aGKVZNwA1DDPOF3tUmR7M5vypzuZkyr0irPx0e9h Y3M8mNkmMESSxKxQn5hcMsmW+KwhKFFClEPBIJH6f/ojDGdEMVGY8MoGcm5ai3LHar0d MPzg== X-Gm-Message-State: AOAM532eLWjrSU+NfASmaG3OuFMimoYTgdRduX23C0w2Ls1C5VKg9CMQ RQzqUA8BcoRHHGbWrqHraQ== X-Google-Smtp-Source: ABdhPJz09xbYRZDNi3/YsjjW6r/15AnlT22h/DBiEtxoVg3gRd4IjQT+4XzXcBpF5u5Q6wibbUz2sA== X-Received: by 2002:a05:6602:1592:b0:669:f7c7:885b with SMTP id e18-20020a056602159200b00669f7c7885bmr3582962iow.54.1655242796097; Tue, 14 Jun 2022 14:39:56 -0700 (PDT) Received: from robh.at.kernel.org ([64.188.179.251]) by smtp.gmail.com with ESMTPSA id z3-20020a029383000000b0032ec5c47c17sm5258876jah.46.2022.06.14.14.39.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 Jun 2022 14:39:55 -0700 (PDT) Received: (nullmailer pid 2702517 invoked by uid 1000); Tue, 14 Jun 2022 21:39:53 -0000 Date: Tue, 14 Jun 2022 15:39:53 -0600 From: Rob Herring To: "Peng Fan (OSS)" Cc: krzysztof.kozlowski+dt@linaro.org, sboyd@kernel.org, mturquette@baylibre.com, shawnguo@kernel.org, s.hauer@pengutronix.de, aisheng.dong@nxp.com, l.stach@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, linux-imx@nxp.com, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Peng Fan Subject: Re: [PATCH V4 1/7] dt-bindings: soc: add i.MX93 SRC Message-ID: <20220614213953.GA2693578-robh@kernel.org> References: <20220609125100.3496633-1-peng.fan@oss.nxp.com> <20220609125100.3496633-2-peng.fan@oss.nxp.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20220609125100.3496633-2-peng.fan@oss.nxp.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220614_143957_122800_93E956FE X-CRM114-Status: GOOD ( 22.85 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Thu, Jun 09, 2022 at 08:50:54PM +0800, 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/power/fsl,imx93-src.yaml | 96 +++++++++++++++++++ > include/dt-bindings/power/fsl,imx93-power.h | 11 +++ > 2 files changed, 107 insertions(+) > create mode 100644 Documentation/devicetree/bindings/power/fsl,imx93-src.yaml > create mode 100644 include/dt-bindings/power/fsl,imx93-power.h > > diff --git a/Documentation/devicetree/bindings/power/fsl,imx93-src.yaml b/Documentation/devicetree/bindings/power/fsl,imx93-src.yaml > new file mode 100644 > index 000000000000..880500a841f7 > --- /dev/null > +++ b/Documentation/devicetree/bindings/power/fsl,imx93-src.yaml > @@ -0,0 +1,96 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/power/fsl,imx93-src.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: NXP i.MX93 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 > + > + slices: power-controller But if there aren't any other child nodes for the SRC, then why do you need this level at all? If there are others, then your binding is incomplete. > + type: object > + description: list of power domains provided by this controller. > + > + properties: > + '#address-cells': > + const: 1 > + > + '#size-cells': > + const: 0 > + > + patternProperties: > + "power-domain@[0-9]$": > + $ref: /schemas/power/power-domain.yaml# > + > + type: object > + 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 > + - slices > + > +additionalProperties: false > + > +examples: > + - | > + #include > + #include > + > + system-controller@44460000 { > + compatible = "fsl,imx93-src", "syscon"; > + reg = <0x44460000 0x10000>; > + > + slices { > + #address-cells = <1>; > + #size-cells = <0>; > + > + mediamix: power-domain@0 { > + reg = ; > + #power-domain-cells = <0>; > + clocks = <&clk IMX93_CLK_MEDIA_AXI>, > + <&clk IMX93_CLK_MEDIA_APB>; > + }; > + }; > + }; > diff --git a/include/dt-bindings/power/fsl,imx93-power.h b/include/dt-bindings/power/fsl,imx93-power.h > new file mode 100644 > index 000000000000..27fb7df80f93 > --- /dev/null > +++ b/include/dt-bindings/power/fsl,imx93-power.h > @@ -0,0 +1,11 @@ > +/* SPDX-License-Identifier: (GPL-2.0 OR MIT) */ > +/* > + * Copyright 2022 NXP > + */ > + > +#ifndef __DT_BINDINGS_IMX93_POWER_H__ > +#define __DT_BINDINGS_IMX93_POWER_H__ > + > +#define IMX93_POWER_DOMAIN_MEDIAMIX 0 > + > +#endif > -- > 2.25.1 > > _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel