Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp3934696ybc; Thu, 14 Nov 2019 17:38:05 -0800 (PST) X-Google-Smtp-Source: APXvYqw+DndSoESA3VTNEU/W7U0Oe9uiNpCWrkryJeLf8WgsOOJzMoR5I8sfYbNAOVoRwhQ1vqhZ X-Received: by 2002:a17:906:8591:: with SMTP id v17mr10015607ejx.185.1573781885265; Thu, 14 Nov 2019 17:38:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573781885; cv=none; d=google.com; s=arc-20160816; b=wiWSpfif5viDoazSiKIl9wOZr1m1cU73lXd5cpNGQEzsueOMypOV78/T47X/taF0cM BI5Jp9X+N/t9gYI5sNHpoXjZ/kXD3aCyOIwOn0pC+0NkOzbiHtWVrGw5K57z0LtYHFL9 LI1aQ/QyUR/ozdoTt2ZERdGqCH0qxbc+y5pORDMsmuxk3dk0bHV0B4llBFH/tOBjIIO7 811jn6Pond6jDrPejOgw4znVuT+Y20tI+UvYkOPkJkBhvPapn+O3UWPX2Ww11dmgpAAK kYhfxNovzeLuR9piL7aMAuA5rtJKTghcIg5crPhB3jBjHvX5HQfBJ0bLUHzu4sa5fsDw +RLg== 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=B2XNQuUR8Wh6kRLjMqlhXvwKQ8d9fAfymRV8s7wKrPI=; b=VszqWgOe3N8GyYhxhPbGRlnWyrYXoQX9utzN5UMlyqha3xylbV0wQykJt/7LIU0BUO 0HqruK3mFKXSYe/7KSx0Ag6NoesYXRgGA9BAfLKOORGyU+FVbtI7ykQpR6shElqMFqre YJf0Qje9zpEQvV0dKoZkDlVnU7i78snDhVLAs4OBqGI4yw0xvLqbXoOiaq+F9aDTnrBI 5befJcoi0+JQ1JhRNrPgnZVsKWPnQsEdqJfrXggDKHTMtKJ+AAuIrU2IR/qQDXVAthZ6 V3ooJt9wsTCnbF54vLZhA/4kJa4PPXR5ASJvk3x1cY4wZyJRqebuocpJd/lEeX+vrYJc 897w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=oS+L4APa; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l5si5556814edb.341.2019.11.14.17.37.40; Thu, 14 Nov 2019 17:38:05 -0800 (PST) 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=@gmail.com header.s=20161025 header.b=oS+L4APa; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727442AbfKOBfR (ORCPT + 99 others); Thu, 14 Nov 2019 20:35:17 -0500 Received: from mail-wr1-f67.google.com ([209.85.221.67]:38001 "EHLO mail-wr1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727022AbfKOBfR (ORCPT ); Thu, 14 Nov 2019 20:35:17 -0500 Received: by mail-wr1-f67.google.com with SMTP id i12so9156015wro.5; Thu, 14 Nov 2019 17:35:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=B2XNQuUR8Wh6kRLjMqlhXvwKQ8d9fAfymRV8s7wKrPI=; b=oS+L4APaOZrpJXEc1LLhVdt8mkJ12CUna5vRiYhGh4GfIXHelKvs9BXZXdDQkJISzl pFx9HsScYfYTw51MURxTbA7Z5Vku8km4XuZs5prR0VxkFNEMBO7j/Tdd3ufqo4S3ehas 0RjA21mxGrsYWpjnvT2vYkCh1NKOtz21qBr1KQACAZajhdd2VGjaI9ny1cJU6mJyHXWR FOZzXQJts1qA0FZ8f6hEo52ulY+VGodgXRQVLsg0RGudlRovFOXdEoCi7Cs/zfVlmEwN K9W/eA0EwgkQyNZXVpfb/BJXdjyft2a8KV/5H0a81JANtQwsdHMXKze+WIsz3Za5GNTW tmpQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=B2XNQuUR8Wh6kRLjMqlhXvwKQ8d9fAfymRV8s7wKrPI=; b=U4gwJL1VOlE5//2feZsggLKkGtGhZAkNSfLfO1K37lIHYcM9qPTxrH7NF6k8MjCKgW hjqlkyS7/rnz4J1UW0h+Zm3L8xtgo8G6Mfs8I1/sIKg2/PohBpr+GUGnzc9VduEw4Sex osMOLG6s5+iDCjTzcdazxRLKCqmqEWWSCKEqdFL7agsxz7rnLdJnVYJAzdtgmXRFD8HD ot7rWLi0Jf4LpcbQ/A/HAojSFNxorMO5BoM91tNYIuvr93jr63fio4VoCuyziQDBEULn xn9TLtqCql6g7JaTcFFg3ezXBfmwrRs9IA+vl28eedxpqPo0GVFQiYmMEKuFkh7o3Aih zsNA== X-Gm-Message-State: APjAAAU36KlbreJ38/HMBI2TQAidANrJu5Fp7fxXF70yWXSQZ3uZE7Kj FUh5/1MSUCQ3pg/yWiqk4/zBmUcwQbEQ8dsj/jg= X-Received: by 2002:adf:9786:: with SMTP id s6mr12669139wrb.188.1573781714445; Thu, 14 Nov 2019 17:35:14 -0800 (PST) MIME-Version: 1.0 References: <20191111090230.3402-1-chunyan.zhang@unisoc.com> <20191111090230.3402-3-chunyan.zhang@unisoc.com> <20191114205235.GA16668@bogus> In-Reply-To: <20191114205235.GA16668@bogus> From: Chunyan Zhang Date: Fri, 15 Nov 2019 09:34:38 +0800 Message-ID: Subject: Re: [PATCH v2 2/5] dt-bindings: serial: Convert sprd-uart to json-schema To: Rob Herring Cc: Chunyan Zhang , Mark Rutland , DTML , Linux Kernel Mailing List , Orson Zhai , Baolin Wang 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 Fri, 15 Nov 2019 at 04:52, Rob Herring wrote: > > On Mon, Nov 11, 2019 at 05:02:27PM +0800, Chunyan Zhang wrote: > > > > Convert the sprd-uart binding to DT schema using json-schema. > > > > Signed-off-by: Chunyan Zhang > > --- > > .../devicetree/bindings/serial/sprd-uart.txt | 32 --------- > > .../devicetree/bindings/serial/sprd-uart.yaml | 69 +++++++++++++++++++ > > 2 files changed, 69 insertions(+), 32 deletions(-) > > delete mode 100644 Documentation/devicetree/bindings/serial/sprd-uart.txt > > create mode 100644 Documentation/devicetree/bindings/serial/sprd-uart.yaml > > > > diff --git a/Documentation/devicetree/bindings/serial/sprd-uart.txt b/Documentation/devicetree/bindings/serial/sprd-uart.txt > > deleted file mode 100644 > > index 9607dc616205..000000000000 > > --- a/Documentation/devicetree/bindings/serial/sprd-uart.txt > > +++ /dev/null > > @@ -1,32 +0,0 @@ > > -* Spreadtrum serial UART > > - > > -Required properties: > > -- compatible: must be one of: > > - * "sprd,sc9836-uart" > > - * "sprd,sc9860-uart", "sprd,sc9836-uart" > > - > > -- reg: offset and length of the register set for the device > > -- interrupts: exactly one interrupt specifier > > -- clock-names: Should contain following entries: > > - "enable" for UART module enable clock, > > - "uart" for UART clock, > > - "source" for UART source (parent) clock. > > -- clocks: Should contain a clock specifier for each entry in clock-names. > > - UART clock and source clock are optional properties, but enable clock > > - is required. > > - > > -Optional properties: > > -- dma-names: Should contain "rx" for receive and "tx" for transmit channels. > > -- dmas: A list of dma specifiers, one for each entry in dma-names. > > - > > -Example: > > - uart0: serial@0 { > > - compatible = "sprd,sc9860-uart", > > - "sprd,sc9836-uart"; > > - reg = <0x0 0x100>; > > - interrupts = ; > > - dma-names = "rx", "tx"; > > - dmas = <&ap_dma 19>, <&ap_dma 20>; > > - clock-names = "enable", "uart", "source"; > > - clocks = <&clk_ap_apb_gates 9>, <&clk_uart0>, <&ext_26m>; > > - }; > > diff --git a/Documentation/devicetree/bindings/serial/sprd-uart.yaml b/Documentation/devicetree/bindings/serial/sprd-uart.yaml > > new file mode 100644 > > index 000000000000..0cc4668a9b9c > > --- /dev/null > > +++ b/Documentation/devicetree/bindings/serial/sprd-uart.yaml > > @@ -0,0 +1,69 @@ > > +# SPDX-License-Identifier: GPL-2.0 > > Dual license please. If you are okay with that on both patches, I can > fix them and apply patches 1-4. Sure, thanks for your help. Chunyan > > Rob