Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp3678700ybc; Thu, 14 Nov 2019 12:56:07 -0800 (PST) X-Google-Smtp-Source: APXvYqznH+p+Rzzo48f1wajxhNabwMo+8xXa0h44Mmmh4DSCxSPGd17OSKnctMYHN4AbyrUtSzBF X-Received: by 2002:a5d:4a85:: with SMTP id o5mr11174159wrq.109.1573764967176; Thu, 14 Nov 2019 12:56:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573764967; cv=none; d=google.com; s=arc-20160816; b=v4gr4gc3ZKVXFV6lruCvwTuvR+vgMJTeIsWBdnMXPy0Kg7Mkg5pZ7+sw2Z3zt6uQFu KXlF5IV+3ZwDLf55+lNfWYxQmDaaQ3DyRiV37kUbMIrxbeFal9ltC9OUSsjgOGZtRh/b wltmZ0PXbBkJcyTEUfxHUyGu09yArGWarLE7tkH9lU0COy+P0kB41+WQsynpof3SzBnm J9qB0XXlUUECavLySt5tEVrq00bQP3VLn0Bw4pXKKvA3mBmdVCItBYxDzWWAfXYi44vx tR5aJVU/dOsBFR7v6E+5cTurzVBhoHbd+aSr8czVEPpOGPQWW6KbHUDy+KykEeYhehRy 9OxA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=zBojHFMIp4w0kfIAZN5FF9FT2LN0lcrYZ7vKt4cgOQY=; b=XuOTUFfIdsRcSUxEi3N0WkFi9/SnqAK3/cbqOiA67elTvdzIquF7hAI/YAV8qFWiSu gxeJ9zgpHHI9MXV4G2qYd3GKLX5xwdwsls1RFn8gxxoBrTGkbnGnexpOyHP7Hjdq+zkX 4ztySjZe9Vzq9EJvHRNmoF1kA3a3SCTAwmPys4s68+4h0v4Y519y8h4FFhEvdZEcZpT2 SB0m6mOj96qMDpR/hOsYeGRIbZfYt7L19QTlkTIkGdiUl1ttyHEnooR9MlXLtIcn7FhT HxS8WJC89ZA9SlLT3bFHemUb7pzGBzT+IlLQpmn+6rWOcUQRThj/3FJi6mjgpL9c1kkx +DDg== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (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 g7si2442165edp.308.2019.11.14.12.55.41; Thu, 14 Nov 2019 12:56:07 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726912AbfKNUwi (ORCPT + 99 others); Thu, 14 Nov 2019 15:52:38 -0500 Received: from mail-oi1-f193.google.com ([209.85.167.193]:35225 "EHLO mail-oi1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726592AbfKNUwi (ORCPT ); Thu, 14 Nov 2019 15:52:38 -0500 Received: by mail-oi1-f193.google.com with SMTP id n16so6613113oig.2; Thu, 14 Nov 2019 12:52:37 -0800 (PST) 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:user-agent; bh=zBojHFMIp4w0kfIAZN5FF9FT2LN0lcrYZ7vKt4cgOQY=; b=jKBtUTAP17znvpSOLteir2XU7aeHo7hX+Tf6UB8yA1ieOW47IgU2bQXeSmjSWYl9eF cVCqm2kMkBATph8eBU/j71wrNeFJLjWCS9HTgF5SXbUBLl3Z+U4xCM4rC+kvFqSJUe4o 7ibia8vv8gTZX15soKdRn8R+5RvE3V2lDHjfqKTVLtl5/79vPQnEqjkEJnLLlbpKSoed b2w2v/PYdF+cBx9j5uwtrO+7YaWDGtiy9Z3WBiL9lKDp2GP2YThHyEIpHaWl+d+Mmmy8 sdx04BVI4wqev4l4icfhYP8x89RypNcEQjg2WZZE86WVZ4vPAs2LSJaHxmh6q4r2AbKK hccA== X-Gm-Message-State: APjAAAXKQ26AVESsqZP/LLq+e/oKKNRL6VlgHaCEk4O4r51eg0cBmZtn YBYM4DjuiJVI9pcOQ1snNQ== X-Received: by 2002:aca:d6d7:: with SMTP id n206mr5211559oig.147.1573764756782; Thu, 14 Nov 2019 12:52:36 -0800 (PST) Received: from localhost (24-155-109-49.dyn.grandenetworks.net. [24.155.109.49]) by smtp.gmail.com with ESMTPSA id 4sm2190881otc.77.2019.11.14.12.52.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Nov 2019 12:52:36 -0800 (PST) Date: Thu, 14 Nov 2019 14:52:35 -0600 From: Rob Herring To: Chunyan Zhang Cc: Mark Rutland , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Orson Zhai , Baolin Wang , Chunyan Zhang Subject: Re: [PATCH v2 2/5] dt-bindings: serial: Convert sprd-uart to json-schema Message-ID: <20191114205235.GA16668@bogus> References: <20191111090230.3402-1-chunyan.zhang@unisoc.com> <20191111090230.3402-3-chunyan.zhang@unisoc.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20191111090230.3402-3-chunyan.zhang@unisoc.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. Rob