Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp1070284pxb; Sat, 17 Apr 2021 05:52:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy1MnDOtraVRrdykqTJ9ongkvpRTeMA10eVufmmJenGcVP7JZ9UjUkPtZfYPxAUUyU8EAkv X-Received: by 2002:a63:1203:: with SMTP id h3mr3378198pgl.223.1618663947512; Sat, 17 Apr 2021 05:52:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618663947; cv=none; d=google.com; s=arc-20160816; b=vTjV5lVTSZaUMNolsJI1pkoN6dWWIzmEUcCexP3fR6qQuCifRO0tPgPDfAki+ulp7Z A4QYBbicRtnjk2Iqj1Dr5QYR7uooYHU0bRCnX4ipPcD1N9/CeXAf0wrzzK/zMUPZCIiQ 9Gt9MfcPOsfRZZsRysuFgLYDOUAWoeFaSmpmNAVhEvc66vChayvqbULzb4AhLVq7dpUb y8NMVhBb1cR2PJ4dbfupgc441tZTNIQCm2IUvowiOz0CrcdVT69TLL634rzCXi6n/6N5 S+bcOAg3exnse8yunXbVaF5iGAjFm42XEu1CYwe9drT/Z/xaF6UXX4spFR56Ejsq+KjL sJQQ== 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=rPXmuMzpEkCL6BgxZC9XuLSBLEjAY7E3u9qrT0/yQqc=; b=ipjNO9AuoIKPqK4e205yNpNzB1d9GKirHM9MPzAt5IkVjYz0rtVfJlSAtVW9VdBDOy 2paZo9mbAvkptKLTJZngFYFmMZx9+yP+8RmL7SdcRBI2VE+wjTiCjFJlIgfCtYbrCa+X FTwK7jhYPGYY+jGQi1q520GTr2EwPlwvozNpULT7i3w/9LlsGkU4s8WhlPagiI8MewVh sY0ZbQPkDWI42f0FmP5PtNoIGd1m9RRwc4vP1so4TBYtbjYDwE0QxPOjAiSzh5Zs8yU3 wekyTu2lXYb7dLdVP+4UwG5FaN4zQaOWeamHomJadNF3KnMhsY7Gow5k+1hrvzbzkh1g cmkA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=kAx7E1ta; 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 u19si10382326plq.400.2021.04.17.05.52.15; Sat, 17 Apr 2021 05:52:27 -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=kAx7E1ta; 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 S236431AbhDQMwJ (ORCPT + 99 others); Sat, 17 Apr 2021 08:52:09 -0400 Received: from fllv0015.ext.ti.com ([198.47.19.141]:33132 "EHLO fllv0015.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230442AbhDQMwI (ORCPT ); Sat, 17 Apr 2021 08:52:08 -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 13HCpSoT004245; Sat, 17 Apr 2021 07:51:28 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1618663888; bh=rPXmuMzpEkCL6BgxZC9XuLSBLEjAY7E3u9qrT0/yQqc=; h=Date:From:To:CC:Subject:References:In-Reply-To; b=kAx7E1taPPjvq1bWp4ngK6qZvJmDfictdiLPahQmUKHBB7csyL3OakYz8Picpcv3F 2f7zcIvSyMlk43qJ4TnW8CmgstcyeCQYqXCbqwkxLopA8c1/9e73RY6mEMTbYfoJGM xvhOJpiEqsLTRfSWZI7yyJ8tQRg/jiQpy8cSy+3Y= Received: from DLEE105.ent.ti.com (dlee105.ent.ti.com [157.170.170.35]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 13HCpSWQ023901 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Sat, 17 Apr 2021 07:51:28 -0500 Received: from DLEE106.ent.ti.com (157.170.170.36) by DLEE105.ent.ti.com (157.170.170.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2176.2; Sat, 17 Apr 2021 07:51:27 -0500 Received: from fllv0039.itg.ti.com (10.64.41.19) by DLEE106.ent.ti.com (157.170.170.36) 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; Sat, 17 Apr 2021 07:51:27 -0500 Received: from localhost (ileax41-snat.itg.ti.com [10.172.224.153]) by fllv0039.itg.ti.com (8.15.2/8.15.2) with ESMTP id 13HCpRJL053600; Sat, 17 Apr 2021 07:51:27 -0500 Date: Sat, 17 Apr 2021 07:51:27 -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: <20210417125127.vigq23mdoodje6b5@velcro> References: <20210416063721.20538-1-nm@ti.com> <20210416063721.20538-3-nm@ti.com> <161861731160.46595.786611690053722257@swboyd.mtv.corp.google.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <161861731160.46595.786611690053722257@swboyd.mtv.corp.google.com> 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 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? > > > + > > +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