Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp2478553pxb; Mon, 19 Apr 2021 06:43:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyzAK6ZiK3Is1sHBYWivpStbQ82RNwSbfx+9mlKI1swoLCtVJ1qIwZi0LcgvIg4inIBCYKX X-Received: by 2002:a17:903:304b:b029:eb:4cf:8321 with SMTP id u11-20020a170903304bb02900eb04cf8321mr23323614pla.40.1618839833816; Mon, 19 Apr 2021 06:43:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618839833; cv=none; d=google.com; s=arc-20160816; b=D92hfe6R9FJqMCwO5Wa6WFantTa5XCiytq8M9JFNOMtV3n6hzZEV/P9NkTk2mIG01g y755QMmaCbyjYPWqFUgfSTz7yfTDZXcB78iUzGaVAD4vKLwaX8JNDTcRmgi3xSEOrAgr Ylw9iS2eNV0pToKye95KtWtpDYSc6TYEpypoJvJYHOzioxSfeFNl1PadxPRJ7kJMLus2 wF4sX9QTMuf4o6AXG+0lz3k6WGGaWZhJnvd+3gL/i9TsI992zSrn6Bq5H+R7xvwIglSK qMwl+j0ajoPgDekyiuJ8z+WD4sK7i6EjBGdmbKEFS1sYuUDz6l9/+rJQO1rLHVEfRHDT XYHA== 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 :dkim-signature; bh=qeZcN+h8qnPRTBufAOnY5cwD/Q0Lqcs0+bre14HwovE=; b=H+24H1QhK1FNz+CG9HDKlCZ/NXWh7kjW/x7+ryVm4e/P89ZCxmijKKpMvugOao/xxB ZFbBj8PmlgnSGSY4z5CnnigCtR1cic6IsRv6j4UTP57O9fHsc4SdtRW8fmkEOq5D6Esx fuCvV6PYPy8upR06eF2kFkiSl1vmTv1z4+HUJQW3+a03FlCaOMVCFHAqFdOTQIYNhd6I kXaxn+EE6cbNsDBOAuJslDml5NwG3b6JRc/gtzWrTV5rKmNtf/v+f5doVQJKaHXQhKoD UfbNF3hmndT6vfeiK8hLVvrhhNIpxcxzz4yPll1xu5M8u3QQfkq9nIQeeRbAgS24Bpg4 bj1Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=ENexWrbe; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y7si17822993plt.83.2021.04.19.06.43.41; Mon, 19 Apr 2021 06:43:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=ENexWrbe; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241832AbhDSNla (ORCPT + 99 others); Mon, 19 Apr 2021 09:41:30 -0400 Received: from fllv0015.ext.ti.com ([198.47.19.141]:53406 "EHLO fllv0015.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241512AbhDSNg3 (ORCPT ); Mon, 19 Apr 2021 09:36:29 -0400 Received: from fllv0035.itg.ti.com ([10.64.41.0]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id 13JDZhIo110437; Mon, 19 Apr 2021 08:35:43 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1618839343; bh=qeZcN+h8qnPRTBufAOnY5cwD/Q0Lqcs0+bre14HwovE=; h=Date:From:To:CC:Subject:References:In-Reply-To; b=ENexWrbeYpj1oR7s5ZNzjDgFGxdy9V5O5I+UoZJrHh+oyikFGpjm2EC1r5PkdOExF YxrIJjWVnpq4YdeaqGu0T2i5G6p+Nq15aoOR/DwnUgNzQKYCMLGI7g9EYJYsSAe7W+ NeyvnQbpUEuUUsh9Xei/vmLpjIyd1hvq3MPj04GQ= Received: from DFLE103.ent.ti.com (dfle103.ent.ti.com [10.64.6.24]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 13JDZhtI129553 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 19 Apr 2021 08:35:43 -0500 Received: from DFLE102.ent.ti.com (10.64.6.23) by DFLE103.ent.ti.com (10.64.6.24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2176.2; Mon, 19 Apr 2021 08:35:42 -0500 Received: from fllv0040.itg.ti.com (10.64.41.20) by DFLE102.ent.ti.com (10.64.6.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2176.2 via Frontend Transport; Mon, 19 Apr 2021 08:35:42 -0500 Received: from localhost (ileax41-snat.itg.ti.com [10.172.224.153]) by fllv0040.itg.ti.com (8.15.2/8.15.2) with ESMTP id 13JDZgj9049023; Mon, 19 Apr 2021 08:35:42 -0500 Date: Mon, 19 Apr 2021 08:35:42 -0500 From: Nishanth Menon To: Stephen Boyd CC: Michael Turquette , Philipp Zabel , Rob Herring , Santosh Shilimkar , Tero Kristo , , , , Subject: Re: [PATCH 2/4] dt-bindings: clock: Convert ti,sci-clk to json schema Message-ID: <20210419133542.ndgkmf7eq4oqse34@ladies> References: <20210416063721.20538-1-nm@ti.com> <20210416063721.20538-3-nm@ti.com> <161861731160.46595.786611690053722257@swboyd.mtv.corp.google.com> <20210417125127.vigq23mdoodje6b5@velcro> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <20210417125127.vigq23mdoodje6b5@velcro> User-Agent: NeoMutt/20171215 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Stephen, On 07:51-20210417, Nishanth Menon wrote: > On 16:55-20210416, Stephen Boyd wrote: > > Quoting Nishanth Menon (2021-04-15 23:37:19) > > > diff --git a/Documentation/devicetree/bindings/clock/ti,sci-clk.yaml b/Documentation/devicetree/bindings/clock/ti,sci-clk.yaml > > > new file mode 100644 > > > index 000000000000..72633651f0c7 > > > --- /dev/null > > > +++ b/Documentation/devicetree/bindings/clock/ti,sci-clk.yaml > > > @@ -0,0 +1,52 @@ > > > +# SPDX-License-Identifier: (GPL-2.0-only or BSD-2-Clause) > > > +%YAML 1.2 > > > +--- > > > +$id: http://devicetree.org/schemas/clock/ti,sci-clk.yaml# > > > +$schema: http://devicetree.org/meta-schemas/core.yaml# > > > + > > > +title: TI-SCI clock controller node bindings > > > + > > > +maintainers: > > > + - Nishanth Menon > > > + > > > +allOf: > > > + - $ref: /schemas/clock/clock.yaml# > > > > Is this needed? > > https://github.com/devicetree-org/dt-schema/blob/master/schemas/clock/clock.yaml > This standardizes provider properties like '#clock-cells' etc, allowing > you to add more stricter checks or controls in the future if necessary. > > while: > > https://github.com/devicetree-org/dt-schema/blob/master/meta-schemas/clocks.yaml > is more a consumer node description. > > Should I have picked a different yaml as base for a standard clock-controller > base? > Thinking again, I think your comment was to drop the clock.yaml inclusion, and, as a result this schema can become more stringent.. Could you clarify? > > > > > + > > > +description: | > > > + Some TI SoCs contain a system controller (like the Power Management Micro > > > + Controller (PMMC) on Keystone 66AK2G SoC) that are responsible for controlling > > > + the state of the various hardware modules present on the SoC. Communication > > > + between the host processor running an OS and the system controller happens > > > + through a protocol called TI System Control Interface (TI-SCI protocol). > > > + > > > + This clock controller node uses the TI SCI protocol to perform various clock > > > + management of various hardware modules (devices) present on the SoC. This > > > + node must be a child node of the associated TI-SCI system controller node. > > > + > > > +properties: > > > + $nodename: > > > + pattern: "^clock-controller$" > > > > Is this nodename pattern check required? > > I'd like the definition on rails and not subject to interpretation, and > restrict the kind of subnodes under TISCI controller node. > > > > > > + > > > + compatible: > > > + const: ti,k2g-sci-clk > > > > I thought most things keyed off the compatible string. > > Yes, they are. I am not sure I understand your question here. Did you > mean to indicate that having $nodename and compatible both are > redundant? > > Redundancy was'nt the intent of this schema definition, rather, I'd like > to make sure that it is not upto interpretation or debate as to what the > node name should be: I believe clock-controller is the correct nodename > (without @0x... since this does'nt use reg property) instead of using > clocks, tisci-clock as the node names. > > > Do you suggest something different? > > -- > Regards, > Nishanth Menon > Key (0xDDB5849D1736249D)/Fingerprint: F8A2 8693 54EB 8232 17A3 1A34 DDB5 849D 1736 249D -- Regards, Nishanth Menon Key (0xDDB5849D1736249D) / Fingerprint: F8A2 8693 54EB 8232 17A3 1A34 DDB5 849D 1736 249D