Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp4256045ybl; Tue, 20 Aug 2019 09:10:46 -0700 (PDT) X-Google-Smtp-Source: APXvYqyUp2XlNte3cnjnAyoyE9rzO/0YxeG33qzXwU3Fg+0A04/PeQ3hmY2JVDe719XIpqtSsda4 X-Received: by 2002:a17:90a:d592:: with SMTP id v18mr721713pju.135.1566317446421; Tue, 20 Aug 2019 09:10:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566317446; cv=none; d=google.com; s=arc-20160816; b=NNci3PKYSM3JrqxcIpY8sZjWu3iWHYVDuuoZYC1aDhCbHisdT306AZmjO9CsbDWkxt GVso4Vjs44uT720D1CYn1KeM7RFNTCoTjJ0ayLSRPIZA6ohKyQcfwSGbUD/+yqNTld/7 VEgoVQ8ZuOcHSQi+6kiVM7XrjIC0WzDYaLnkZltmVv+NibW1sOoAqEa2EyLF8kaB1D9w H/aR612vOmqwvetk8grSgCoIHE8yFo2mUvVhMzE+p7tGeCWW0tPSJ1F2EulR7rMBMkma oJFS+Iq4aTRS3uUV9uYOcDoQo1IYdFIdRf5Izu2WxphuPusFsNjDoVH6gnHvb0urzkWa A29w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=fQ0E8EVnOODC4lDiSI4m+Lgn4Fe9xAFPT3hkAMHAhHs=; b=PyjnVz3l5nAzD07x/zDsyCD7UtyIcREZiwt5ut7Qywgas1A/U8he9/2oQ+H/RezC0B hzY4Njr8urz5z83Rb9/KNlgh32FbE07rAyYrDXpTtO4ICOzSHyvjqmNW0umzz+ryoH8u kdetu3AdP+BikMz+N0iIHdz+yXQc6UcbhO8tz71oAvgD8hgEMeVNpTGfvAvzds78Tem6 sBiVnaGjHs2zK5YYd5sn4aBZKZcKCL1EhFDPhjOVvpNma0tNy35JgA2QKG/ym0sLW1yC 1JOlsgggNBBgQIRRbtokDCZVp6JvQ9GYfbBzGn9pFjpbZRpmCc3LaRbcUWzjLMuiKv66 yHlQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="f0UI6Me/"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id b9si264353pju.44.2019.08.20.09.10.29; Tue, 20 Aug 2019 09:10:46 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="f0UI6Me/"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S1729820AbfHTQID (ORCPT + 99 others); Tue, 20 Aug 2019 12:08:03 -0400 Received: from mail.kernel.org ([198.145.29.99]:40392 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726981AbfHTQID (ORCPT ); Tue, 20 Aug 2019 12:08:03 -0400 Received: from mail-qt1-f170.google.com (mail-qt1-f170.google.com [209.85.160.170]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 053612332B; Tue, 20 Aug 2019 16:08:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1566317282; bh=9WiZS4Vb8Ltws2vpFt/lV9v4TuNFvLwVNuFhWS8JWWs=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=f0UI6Me//nMcbhpY/1VIE6yXpoOfj51QMxH5WYLwkmb78PLlzJKPOuBsOQ/cU6cz4 JHR/Ufw/jK0MEpP9gt65qbqI1N9q1+AGZHz9UBfn7xH4T2OqMRASkP9fRq4L9ouyhH bLhBl9UzL21MQxE92yA+XgPgWFrKZR17jFcJDaG4= Received: by mail-qt1-f170.google.com with SMTP id i4so6620210qtj.8; Tue, 20 Aug 2019 09:08:01 -0700 (PDT) X-Gm-Message-State: APjAAAV3AQ5di5Ipd4I3hvH3Mnc4EwIHnwlpHQML41t54azEzqdAFQRO mpXHG56WyGjNM48a+rvOhH0hfz7sfq+Y8Pk2eA== X-Received: by 2002:a0c:eb92:: with SMTP id x18mr15040300qvo.39.1566317281129; Tue, 20 Aug 2019 09:08:01 -0700 (PDT) MIME-Version: 1.0 References: <772527bd87da45eeef905d9b9d46a8d99915a116.1566288689.git.rahul.tanwar@linux.intel.com> In-Reply-To: <772527bd87da45eeef905d9b9d46a8d99915a116.1566288689.git.rahul.tanwar@linux.intel.com> From: Rob Herring Date: Tue, 20 Aug 2019 11:07:49 -0500 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v2 1/2] dt-bindings: serial: lantiq: Convert to YAML schema To: Rahul Tanwar Cc: devicetree@vger.kernel.org, Greg Kroah-Hartman , Mark Rutland , "open list:SERIAL DRIVERS" , "linux-kernel@vger.kernel.org" , Andy Shevchenko , qi-ming.wu@intel.com, cheol.yong.kim@intel.com, rahul.tanwar@intel.com Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Aug 20, 2019 at 3:29 AM Rahul Tanwar wrote: > > Convert the existing DT binding document for Lantiq SoC ASC serial controller > from txt format to YAML format. > > Signed-off-by: Rahul Tanwar > --- > .../devicetree/bindings/serial/lantiq_asc.txt | 31 ---------- > .../devicetree/bindings/serial/lantiq_asc.yaml | 70 ++++++++++++++++++++++ Use the compatible name: lantiq,asc.yaml Don't forget the $id value too. > 2 files changed, 70 insertions(+), 31 deletions(-) > delete mode 100644 Documentation/devicetree/bindings/serial/lantiq_asc.txt > create mode 100644 Documentation/devicetree/bindings/serial/lantiq_asc.yaml > diff --git a/Documentation/devicetree/bindings/serial/lantiq_asc.yaml b/Documentation/devicetree/bindings/serial/lantiq_asc.yaml > new file mode 100644 > index 000000000000..54b90490f4fb > --- /dev/null > +++ b/Documentation/devicetree/bindings/serial/lantiq_asc.yaml > @@ -0,0 +1,70 @@ > +# SPDX-License-Identifier: GPL-2.0-only > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/serial/lantiq_asc.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Lantiq SoC ASC serial controller > + > +maintainers: > + - Rahul Tanwar > + > +allOf: > + - $ref: /schemas/serial.yaml# > + > +properties: > + compatible: > + oneOf: > + items: > + - const: lantiq,asc > + > + reg: > + maxItems: 1 > + > + interrupts: > + minItems: 1 Technically, 1 item is not allowed until patch 2 (or the old doc was wrong). > + maxItems: 3 > + items: > + - description: tx or combined interrupt > + - description: rx interrupt > + - description: err interrupt > + > + clocks: > + description: > + When present, first entry listed should contain phandle > + to the frequency clock and second entry should contain > + phandle to the gate clock. Schema needs to define how many entries: items: - description: ... - description: ... > + > + clock-names: > + items: > + - const: freq > + - const: asc > + > +required: > + - compatible > + - reg > + - interrupts > + > + > +examples: > + - | > + asc0: serial@16600000 { > + compatible = "lantiq,asc"; > + reg = <0x16600000 0x100000>; > + interrupt-parent = <&gic>; > + interrupts = , > + , > + ; > + clocks = <&cgu CLK_SSX4>, <&cgu GCLK_UART>; > + clock-names = "freq", "asc"; > + }; > + > + - | > + asc1: serial@e100c00 { I don't think this 2nd example adds anything. > + compatible = "lantiq,asc"; > + reg = <0xE100C00 0x400>; > + interrupt-parent = <&icu0>; > + interrupts = <112 113 114>; > + }; > + > +... > -- > 2.11.0 >