Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp2499988pxa; Mon, 24 Aug 2020 16:25:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxh4v1j2THGZyTF1JCzYtxOeYyapr+zBwMiN0MZSgQWsnt/CkUc8Ubv5d+GqYF54pPSNKs8 X-Received: by 2002:a05:6402:1109:: with SMTP id u9mr4690768edv.74.1598311549750; Mon, 24 Aug 2020 16:25:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598311549; cv=none; d=google.com; s=arc-20160816; b=uqFgkIIEzCMSfivfA16hMN3sh2rVCU74gDrcqTGHNV+ju1pYXfoZfyFovRfkkXu4Oh ZX6d9vdHVxk2YEswAfGJG+ZCAvjMfMzC6V58UWIZoDyE4i37xscqOoaYI6D4yxRG5/md gS+sOAiILiQwOuOC44w17jTDyDVU65cauFP8y5TPmHsfxjHPiZAacqJLekCGiNnHyDBG 6TVXTM+d2VV9rHOi3Q3osUyFrk6vanVKbxQpGsU9e1m5HAbzhKTYtp00N6FMX7V05aCv O7cqLIyNQLTIaNOCQp0HXdIpoPyjKtbgDabf8J6WO+VOlC7N2cFbU/inZdfbK1W4/wQd cYkg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=JwCY8rswka2evtE21QF7ein3AFgooZR8ofb7Ek5G2oQ=; b=seLx5y4UssA8uybJVfavkEtx5d9BQ4kGpcwETUATwmXOrmRFMT+5UxMdGCLevh7MfT LkrXiEtPtdjCsBHHYOMQDbLorC5Hfos0wPRKp6yo4GT+1tlYW8eagtoYf7iysR+85I6V 7L5mTDBIopVspzNZj4tgEPc4p0fIB5r16xdh/GCeDqHU57SxIqhztiWfNA2uyVfY9ZdG ei/DOc/LJzkrulatIv4dBWZKvRPb80LMklv+aTebENsblO1ZyIC/TfQLhJ3PvsMW30p6 85jEjcyj7TREhbw0uuloRJOKkUG+fjhMvn8S2nFk0RxyuLPbFLvEbSPS6HuGd8hTmnWV V4Cg== ARC-Authentication-Results: i=1; mx.google.com; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id gz13si4057222ejb.567.2020.08.24.16.25.25; Mon, 24 Aug 2020 16:25:49 -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; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728058AbgHXXYm (ORCPT + 99 others); Mon, 24 Aug 2020 19:24:42 -0400 Received: from mail-il1-f195.google.com ([209.85.166.195]:39253 "EHLO mail-il1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726090AbgHXXYl (ORCPT ); Mon, 24 Aug 2020 19:24:41 -0400 Received: by mail-il1-f195.google.com with SMTP id f12so8837729ils.6; Mon, 24 Aug 2020 16:24:40 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=JwCY8rswka2evtE21QF7ein3AFgooZR8ofb7Ek5G2oQ=; b=hnmOt0f8Sf4ZLsXp3NS0YE01QMyIUnHFl8QO/p4VTcsCrQEAiYfDU4fOpOBGqscqQD 9Q5d9KnXo//QJn1oQBAq4tVvz8VAMTdY3eFImrNjhW+QkmPk8VcqElDBIW5TWPPr/GnF Tapgl090S8AZmUjfGNg9KUjqGbh2OlsBrV+sbdPLl6EhkziS4izczzS1pLF+iYXBbCz3 dVwzGyF3RwkZtZOy8Iq5Zg6zzPvAF5qgOPPlnzS8zZOn6Lpt6/ORltZkhLFkqsoar+XN dQS/GYrr/WMoSZBPZmWt97AcYVrR95Rj0Xi6ZHjH+mhaZaWPAFwu9dvjkZV3eogFXyR2 ZCog== X-Gm-Message-State: AOAM532Z1kR5nybnZ9eBpDHtxQIIbj52XJE8zwBZnfWZ0ghQeazMEBpX B6Fsa5WUBSnrtPdImuzhJQ== X-Received: by 2002:a92:a188:: with SMTP id b8mr7329457ill.81.1598311480006; Mon, 24 Aug 2020 16:24:40 -0700 (PDT) Received: from xps15 ([64.188.179.249]) by smtp.gmail.com with ESMTPSA id a16sm8105572ilp.23.2020.08.24.16.24.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 24 Aug 2020 16:24:39 -0700 (PDT) Received: (nullmailer pid 3530535 invoked by uid 1000); Mon, 24 Aug 2020 23:24:38 -0000 Date: Mon, 24 Aug 2020 17:24:38 -0600 From: Rob Herring To: Miquel Raynal Cc: Boris Brezillon , linux-i3c@lists.infradead.org, devicetree@vger.kernel.org, Nicolas Pitre , Rajeev Huralikoppi , Conor Culhane , linux-kernel@vger.kernel.org, Thomas Petazzoni Subject: Re: [PATCH v2 2/4] dt-bindings: i3c: Describe Silvaco master binding Message-ID: <20200824232438.GA3525200@bogus> References: <20200812141312.3331-1-miquel.raynal@bootlin.com> <20200812141312.3331-2-miquel.raynal@bootlin.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200812141312.3331-2-miquel.raynal@bootlin.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Aug 12, 2020 at 04:13:10PM +0200, Miquel Raynal wrote: > Silvaco provide a dual-role I3C master. > > Description is rather simple: it needs a register mapping, three > clocks and an interrupt. > > Signed-off-by: Miquel Raynal > --- > > Changes in v2: > * Updated Rob's tool and fixed the mistake reported. > * Updated the vendor prefix. > > .../bindings/i3c/silvaco,i3c-master.yaml | 59 +++++++++++++++++++ > 1 file changed, 59 insertions(+) > create mode 100644 Documentation/devicetree/bindings/i3c/silvaco,i3c-master.yaml > > diff --git a/Documentation/devicetree/bindings/i3c/silvaco,i3c-master.yaml b/Documentation/devicetree/bindings/i3c/silvaco,i3c-master.yaml > new file mode 100644 > index 000000000000..63731e8a9068 > --- /dev/null > +++ b/Documentation/devicetree/bindings/i3c/silvaco,i3c-master.yaml > @@ -0,0 +1,59 @@ > +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/i3c/silvaco,i3c-master.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Silvaco I3C master > + > +maintainers: > + - Conor Culhane > + > +properties: > + compatible: > + const: silvaco,i3c-master > + > + reg: > + maxItems: 1 > + > + interrupts: > + maxItems: 1 > + > + clock-names: > + description: | > + There are three clocks: > + pclk: System clock > + fast_clk: Fast clock (for the bus) > + slow_clk: Slow clock (for other events) You basically say this in the schema... If you want some description, do it in 'clocks': clocks: items: - description: ... - description: ... - description: ... > + > + items: > + - const: pclk > + - const: fast_clk > + - const: slow_clk > + > + clocks: > + minItems: 3 > + maxItems: 3 > + > + resets: > + maxItems: 1 > + > +required: > + - compatible > + - reg > + - interrupts > + - clock-names > + - clocks additionalProperties: false And that will point out some errors in the example. > + > +examples: > + - | > + i3c-master@a0000000 { > + compatible = "silvaco,i3c-master"; > + clocks = <&zynqmp_clk 71>, <&fclk>, <&sclk>; > + clock-names = "pclk", "fast_clk", "slow_clk"; > + interrupt-parent = <&gic>; > + interrupts = <0 89 4>; > + reg = <0xa0000000 0x1000>; > + #address-cells = <1>; > + #size-cells = <0>; > + }; > -- > 2.20.1 >