Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp2566195rwb; Mon, 15 Aug 2022 07:31:47 -0700 (PDT) X-Google-Smtp-Source: AA6agR7OheSA+qw1RXJWTFDmeZ+RzDGu4qELJAD4rN6vgltXLs8v8NXE79vzI86gJ9tMRSfjmnt2 X-Received: by 2002:a17:907:1611:b0:731:87dd:5eda with SMTP id hb17-20020a170907161100b0073187dd5edamr10930286ejc.148.1660573906999; Mon, 15 Aug 2022 07:31:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660573906; cv=none; d=google.com; s=arc-20160816; b=ntbaGCqoMrzxMvc1RJHiDl5/XBq7L0qr4yiB5bIxk2NhAkvzUawu+MWGJ5fEQghfhz YFNc6MrViRxTDjgbHjeBnxlQXOEjwsvD3MgxFU19xmSk7iOyy1TJaZZEKvRjlntr5U49 YNN4/UDdUcuC8orBbvEph+KdhnPN+SyhL9hRRVoaRQriVGGVcnqTGURs9dIRVwHJ98n4 mwApgGOEp/SlTVKBRbxnEX1giB67HxUmuXDUD8Mumrqu+pNMv7qSr2RUmETNnkGC5ilj iXuEI9S6ctMBGZJKE2m94Aju9OGfZafuKzZmp8E1+TyTxOoBEpwjnV9xmQCj7g4YEkFl yq7w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=9T/2HEx2Ywz+Wiv5B1cJgvVpoHbUTXFglhiQiXLhfP8=; b=JQpDIZVa22u0Mtgt9NzSvD5hAUibXkLZjGVJ67tAJEym6rSCOuPKU2g4Gw7qWjqD0l UFRLRa++jC+nXZXdNDNMi4MQ74KtISBBNj66ZtOojN2HdBcYpH+JpCfJ1/Xd9UpsiC/p ZbIgJ1I6PA8IAsrwjf9Fotvhy/erJ85qYG16wJtJt+CruDFBZmlA77qarLpDPKhIvFRS es9ZZjO9jfWMKKEiyZ28Jvp19HFQsy89E8DvMNNm7/AJq9mGe9OLkfTmwpeNBGon/LEX /+SAFP8MxyAR6ziz7QWQZXZ1H6SkiFNuN5E4XxwgUHDICtWXxz9IWfYucae8zc93jKJ9 BiKA== ARC-Authentication-Results: i=1; mx.google.com; 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 w3-20020a170906184300b0072b81296609si6400939eje.64.2022.08.15.07.31.21; Mon, 15 Aug 2022 07:31:46 -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; 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 S232477AbiHON6R (ORCPT + 99 others); Mon, 15 Aug 2022 09:58:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42558 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231909AbiHON6M (ORCPT ); Mon, 15 Aug 2022 09:58:12 -0400 Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de [IPv6:2001:67c:670:201:290:27ff:fe1d:cc33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F31452252F for ; Mon, 15 Aug 2022 06:58:11 -0700 (PDT) Received: from ptx.hi.pengutronix.de ([2001:67c:670:100:1d::c0]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oNabN-0002nz-5Y; Mon, 15 Aug 2022 15:57:57 +0200 Received: from sha by ptx.hi.pengutronix.de with local (Exim 4.92) (envelope-from ) id 1oNabM-00075V-1g; Mon, 15 Aug 2022 15:57:56 +0200 Date: Mon, 15 Aug 2022 15:57:56 +0200 From: Sascha Hauer To: "Peng Fan (OSS)" Cc: abelvesa@kernel.org, abel.vesa@linaro.org, mturquette@baylibre.com, sboyd@kernel.org, shawnguo@kernel.org, kernel@pengutronix.de, festevam@gmail.com, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, linux-imx@nxp.com, linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Peng Fan Subject: Re: [PATCH 1/2] dt-bindings: clock: imx8m: introduce fsl,protected-clocks property Message-ID: <20220815135756.GC17485@pengutronix.de> References: <20220815033632.1687854-1-peng.fan@oss.nxp.com> <20220815033632.1687854-2-peng.fan@oss.nxp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220815033632.1687854-2-peng.fan@oss.nxp.com> X-Sent-From: Pengutronix Hildesheim X-URL: http://www.pengutronix.de/ X-Accept-Language: de,en X-Accept-Content-Type: text/plain User-Agent: Mutt/1.10.1 (2018-07-13) X-SA-Exim-Connect-IP: 2001:67c:670:100:1d::c0 X-SA-Exim-Mail-From: sha@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, 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 Hi Peng, On Mon, Aug 15, 2022 at 11:36:31AM +0800, Peng Fan (OSS) wrote: > From: Peng Fan > > i.MX8M Linux run on top of Jailhouse hypervisor, the root cell Linux > should not disable clocks used by inmate. This would also benifit > AMP to avoid Linux disable clocks used by Cortex-M4/M7. > > So introduce fsl,protected-clocks for above case. > > Signed-off-by: Peng Fan > --- > Documentation/devicetree/bindings/clock/imx8m-clock.yaml | 4 ++++ > 1 file changed, 4 insertions(+) > > diff --git a/Documentation/devicetree/bindings/clock/imx8m-clock.yaml b/Documentation/devicetree/bindings/clock/imx8m-clock.yaml > index 458c7645ee68..0ec490ff9a09 100644 > --- a/Documentation/devicetree/bindings/clock/imx8m-clock.yaml > +++ b/Documentation/devicetree/bindings/clock/imx8m-clock.yaml > @@ -39,6 +39,10 @@ properties: > ID in its "clocks" phandle cell. See include/dt-bindings/clock/imx8m-clock.h > for the full list of i.MX8M clock IDs. > > + fsl,protected-clocks: > + description: List of the Protected clock. > + $ref: /schemas/types.yaml#/definitions/uint32-array There already is a generic protected-clocks property described in https://github.com/devicetree-org/dt-schema/blob/0d1b78cd0c3d9a3d523ced17d7da64b03f6c18ea/dtschema/schemas/clock/clock.yaml#L131 We probably shouldn't add a property with the same name but different meaning. I am not sure if we want to go the route of a fsl specific property, it looks like other SoCs could have similar problems and it might be worth solving this problem with a broader view. Anyway, please add a description to the binding what this property actually does. Sascha -- Pengutronix e.K. | | Steuerwalder Str. 21 | http://www.pengutronix.de/ | 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |