Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp3748633ybl; Tue, 20 Aug 2019 01:30:35 -0700 (PDT) X-Google-Smtp-Source: APXvYqxTHa9HXqFvtlPpZ3dFFRZwhYeY7ktafEvj6Bst8L0vVw4GXQEOtIs1N+kJ8cm/TqJGRgPj X-Received: by 2002:a17:90a:3646:: with SMTP id s64mr25224432pjb.44.1566289835339; Tue, 20 Aug 2019 01:30:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566289835; cv=none; d=google.com; s=arc-20160816; b=j4DvrUiFttFfv05/7NLafyEo6KDZdzP/xZf1NYTjekb2HtRl5oxN9B575DbiFuqrpD JchEAiaX72S2NamJ3/4Owcqqby8KpBVG3DH2VcS/gzseBZWjLnW2t3ERDihTt6eMWiPl n9DHp9/kJUPebdzBWyhAiGkB3NKt4z75MU7FLiH4f/v3SQkUVxlRvSTq8kTTDII5SDJ2 30WZa2VH3kXxg8D8gX6Tqpxv5XxD6h6sMieR0I5aNtbakP5Lbwb9VVpaTEGl/QfGijI4 De4YOEpJg7VEhPs7Jq/iagbb/6nPkiOjI3bJivbIAc9lzkNHIXI9RI0GORQEeQ15zz3n g0+w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:references :in-reply-to:message-id:date:subject:cc:to:from; bh=Zd1PNyhY6RYe+KooDHI1hCg/KqBAxntq93yFtLXvh4M=; b=u4mBQzvjASZF0XJlRtrj2Jmsdogkw28gRRcqeYzwL02DKp/w6ekIwvhIfwAydxwWT9 mavCnzFZl3MzahczslQ13TwR5GQr/63rsK7FlKQLyH2AouIIFlHII6hZqtY2tdyOmVDK fiOB3y/HuyG7ratj1YLEK/yPMvFRD0wL0tLUZJWCt2aSOLMCqe9aVLjx6MMje3ittuzn r3ukZfWwK6MboO1FwMJl6/nX8E9ts2yOgIegIDsDbN+qhGmr6dA4IXBs1P9OvcpQt2IG WWsSpLB6nDvsMu/r9b5VNvU5qWqlH7eZICVYsow2LvOxQSL1S/FmIY4YuzyE33Bb4Qwt o4wQ== 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=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 59si11782132plp.331.2019.08.20.01.30.20; Tue, 20 Aug 2019 01:30:35 -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; 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=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729515AbfHTI3M (ORCPT + 99 others); Tue, 20 Aug 2019 04:29:12 -0400 Received: from mga14.intel.com ([192.55.52.115]:27343 "EHLO mga14.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726049AbfHTI3M (ORCPT ); Tue, 20 Aug 2019 04:29:12 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga004.jf.intel.com ([10.7.209.38]) by fmsmga103.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 20 Aug 2019 01:29:11 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.64,408,1559545200"; d="scan'208";a="329638795" Received: from sgsxdev001.isng.intel.com (HELO localhost) ([10.226.88.11]) by orsmga004.jf.intel.com with ESMTP; 20 Aug 2019 01:29:08 -0700 From: Rahul Tanwar To: robh+dt@kernel.org, devicetree@vger.kernel.org, gregkh@linuxfoundation.org, mark.rutland@arm.com, linux-serial@vger.kernel.org Cc: linux-kernel@vger.kernel.org, andriy.shevchenko@intel.com, qi-ming.wu@intel.com, cheol.yong.kim@intel.com, rahul.tanwar@intel.com, Rahul Tanwar Subject: [PATCH v2 1/2] dt-bindings: serial: lantiq: Convert to YAML schema Date: Tue, 20 Aug 2019 16:29:01 +0800 Message-Id: <772527bd87da45eeef905d9b9d46a8d99915a116.1566288689.git.rahul.tanwar@linux.intel.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: References: In-Reply-To: References: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 ++++++++++++++++++++++ 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.txt b/Documentation/devicetree/bindings/serial/lantiq_asc.txt deleted file mode 100644 index 40e81a5818f6..000000000000 --- a/Documentation/devicetree/bindings/serial/lantiq_asc.txt +++ /dev/null @@ -1,31 +0,0 @@ -Lantiq SoC ASC serial controller - -Required properties: -- compatible : Should be "lantiq,asc" -- reg : Address and length of the register set for the device -- interrupts: the 3 (tx rx err) interrupt numbers. The interrupt specifier - depends on the interrupt-parent interrupt controller. - -Optional properties: -- clocks: Should contain frequency clock and gate clock -- clock-names: Should be "freq" and "asc" - -Example: - -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 { - compatible = "lantiq,asc"; - reg = <0xE100C00 0x400>; - interrupt-parent = <&icu0>; - interrupts = <112 113 114>; -}; 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 + 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. + + 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 { + compatible = "lantiq,asc"; + reg = <0xE100C00 0x400>; + interrupt-parent = <&icu0>; + interrupts = <112 113 114>; + }; + +... -- 2.11.0