Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp3943602ybc; Thu, 14 Nov 2019 17:51:26 -0800 (PST) X-Google-Smtp-Source: APXvYqzpUUJPHALNkuZ1Mh8IAnM2ZnTx0znpo31ohHcKpzua/Sy050sOX/HRC4W+IWNSU4C07VdL X-Received: by 2002:a17:906:af5a:: with SMTP id ly26mr10217533ejb.252.1573782686580; Thu, 14 Nov 2019 17:51:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573782686; cv=none; d=google.com; s=arc-20160816; b=SVjBSGemlZIimqpWRRm0cHj0/BHdoEC2aY8JHd0nifyvtAsS4dnPu9l2bgLkxCEJ55 Vqf1+bR/ksT5diG94+xYeTHG4FQDXNUIneeOqr8cGzp5zyutGagcz0JTlvQW4sKldR2D fufR2Stj0QIvL1gPU3F1/lHC8WRGfRfguKCwwV3lSO044P9I3jMZjWem4fg5zazgNUi1 tEltnMOyB89ALaTkHPBWqWC/z1/GX7tIoHoc1tHLxwMcHeE7FDJdYrfWXAT3XCj/eRsh dnwdbdgU4w2c2T9Um414Oizw9zxTMnjqgoo7Y2tFjJ8cHlf6W2a8kOJPGqR1jyI8Via6 70Sw== 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=z/iOUjJQsjTMll0lM+FjugEOMtRHFPP5Lh/Lrf/6SVc=; b=xDsRgKI0kHBCUulkxG1dSACVScthP5t52w6qkC7yB0iBibe4L0feuGKDDwq6mPpSHk r+FxEenCjjzqQb+NpZ7c+mrkXvYAz9Xj6aXTQ/vIsNWDuulPBeUrBcqFuHZSUxoIMNpB QtdRWfnwjO2G259/880FXf9PpeDjk+fz7IrPTKq/nwPliTenCzR5DiZ7QQn24/u1ua4X itfoY53BiS+eTS8iS9P3iXGesG3aBxfW7UV/Cx1nMXCVNZRM9q95F4nsTyCkcCZUUsrA 7kUZ9QnDX4NDLXNic/TeVFBiRIPEUN2FlGwVZAXktWMxQD2ZtsdznS5KYhzjjTclTod2 PQtw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=iKU1Gzim; 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 o48si5709447edc.151.2019.11.14.17.51.01; Thu, 14 Nov 2019 17:51:26 -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=@kernel.org header.s=default header.b=iKU1Gzim; 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 S1727418AbfKOBtq (ORCPT + 99 others); Thu, 14 Nov 2019 20:49:46 -0500 Received: from mail.kernel.org ([198.145.29.99]:44564 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726956AbfKOBtq (ORCPT ); Thu, 14 Nov 2019 20:49:46 -0500 Received: from mail-qk1-f170.google.com (mail-qk1-f170.google.com [209.85.222.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 5F9B82071B; Fri, 15 Nov 2019 01:49:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1573782585; bh=K7DPgqI1uO+gESDRrTzIwuxJCFvF3Z803tdN3Ng+XyY=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=iKU1GzimBzkqfmUUqfH61mDUDyX21eFsQ1pTuIK5C73CAaW4IWQwUc/BdmUlIYDDF xseVlIG9D3DoZDUKtjYtYM48tgw8KIHOI8IL6y8lqLdvGtX61SQQAgIIap/kKBO0Yb FGmNoJ95IS8sRJm2KIWFGi/EnzOS9ebaLvmyGBJU= Received: by mail-qk1-f170.google.com with SMTP id h15so6838292qka.13; Thu, 14 Nov 2019 17:49:45 -0800 (PST) X-Gm-Message-State: APjAAAXBGfsvBDwbu9C1c4Hj4lPYbjHQmbMvqzXjQiIqZg1YDW6MMTAz pZrfVWYOoCc4RefvyDbXKrR/GODSTwJMOSVHAw== X-Received: by 2002:a05:620a:205d:: with SMTP id d29mr10498140qka.152.1573782584495; Thu, 14 Nov 2019 17:49:44 -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: From: Rob Herring Date: Thu, 14 Nov 2019 19:49:33 -0600 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v2 2/5] dt-bindings: serial: Convert sprd-uart to json-schema To: Chunyan Zhang 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 Thu, Nov 14, 2019 at 7:35 PM Chunyan Zhang wrote: > > 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. Thanks. Patches 1-4 applied. Rob