From patchwork Fri Oct 5 16:58:26 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rob Herring X-Patchwork-Id: 148239 Delivered-To: patch@linaro.org Received: by 2002:a2e:8595:0:0:0:0:0 with SMTP id b21-v6csp689085lji; Fri, 5 Oct 2018 09:59:15 -0700 (PDT) X-Google-Smtp-Source: ACcGV63VSa91KYpeQCUmt/0fGh2zAEiYH5Gm2oNFJz7Gi2g8oOC2rNSTO7HpkN5v66hcCV8TT96s X-Received: by 2002:a62:e110:: with SMTP id q16-v6mr12669426pfh.75.1538758755697; Fri, 05 Oct 2018 09:59:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538758755; cv=none; d=google.com; s=arc-20160816; b=H2F/wc8xqgaWxTkrgT9+leuAbSINngYrzLTXAU6QrS06tI548N3lAg6vovFoNldVXK 2Bw5FDol8VAZvXtALlOyX7YJnbS57K8qehA/N94hQWgC2lAKujAo5UaDYfkiJfxMYPoQ qfGNncYWW2NNl7b/zNZiHlVZoM2q9jdJ73J0AAs9MxcV1clIGafG6wbRqwFFoWAxiw+A EdXT5khwaGC8yd5jMovc1mSuXu7MwYqIlrkkTGKu7ZtYvJmZBM/7ACbGdhMBAB/QZ0nD UIbqf5jy1Ft9NTnSA38GeFp9ZgNYFrD5E4m2KDmPBKMskGpS08Pg7TCVqSCAh7+0cmJ8 f/Hw== 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:message-id:date :subject:cc:to:from; bh=7IXpfPQDP0ZoNfR+xycIt5dHNa3FBYx05kaWJs5b62w=; b=VNHNWkrmngKg3pVbRz8BVijF7w0xd0tZCeL1WHi45AGQIu6DYItMD6TlCJd1a3etU/ qMIgXr9N89FFQgljB63+GU9PHApk9DE1JP45e5sj2hlcd1VtLeWrkcoKmUW2SRglMI0o L2aWeOsK2JYL1zX34CapwYLMkoPzmlnN6RJsDILaJtfOVxKv6LlFfkhh3qn+dRVGherN YO8wCpQEx+jKOwiYlYkvPK5KihbzaZN1+bUx1uyKludfJok354ugBC4Gt1LMehMipTzr nBeN6VyaQT473dR0jfK3ilkogKozl52j1iY+yL4q7i2EMPPzGZjB7UlQT5/SZRkgSuwW GT2A== 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 i4-v6si7781833pgk.564.2018.10.05.09.59.15; Fri, 05 Oct 2018 09:59:15 -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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729244AbeJEX6q (ORCPT + 32 others); Fri, 5 Oct 2018 19:58:46 -0400 Received: from mail-ot1-f68.google.com ([209.85.210.68]:42923 "EHLO mail-ot1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729164AbeJEX6p (ORCPT ); Fri, 5 Oct 2018 19:58:45 -0400 Received: by mail-ot1-f68.google.com with SMTP id h26-v6so13360529otl.9; Fri, 05 Oct 2018 09:59:11 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=7IXpfPQDP0ZoNfR+xycIt5dHNa3FBYx05kaWJs5b62w=; b=CQmyMBgR/AnycuQ+d4PhJYXqLoeKOzfPNA/D9QKpzj4ZTEKoNN/KB/5nW7TjLDvHs5 0mzlQETuEETbUcqqVY3aUKBuj2nDMJAL0eDqJFkmA+B/cEIq0LSxoj+XsBrbAJ8I4xJo zIuSoFhWH8DeYVwxPnZYfsHH2cuRma7HYVmU0SNLod7E6LD+nL5FWb77kvCacOxZl8lz EAaYhRFql3s8ENeczaaQoPGVlNv+v64yS5FCUjq/Hg9DauMVSELIsm8LG4wK86vRiOqp lxZGWSG2YmmZguCSSaa04ReVlsWacH3kRkxGhfvJsjpC9l9dwuVWnsjLE/DPM3I7CUNz 6vzg== X-Gm-Message-State: ABuFfogMSr62zz6I8Z2za8P5rP6T4R/LA31nnHwX/6Gep3TmPV7sGDt1 9T50+zZDsaBjX4gEb3MoY/e41z0dBw== X-Received: by 2002:a9d:538c:: with SMTP id w12mr1623009otg.139.1538758750406; Fri, 05 Oct 2018 09:59:10 -0700 (PDT) Received: from xps15.herring.priv (24-155-109-49.dyn.grandenetworks.net. [24.155.109.49]) by smtp.googlemail.com with ESMTPSA id u63-v6sm2904328ota.75.2018.10.05.09.59.09 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 05 Oct 2018 09:59:09 -0700 (PDT) From: Rob Herring To: linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linuxppc-dev@lists.ozlabs.org Cc: Grant Likely , Kumar Gala , Frank Rowand , Mark Rutland , Linus Walleij , Olof Johansson , Arnd Bergmann , Mark Brown , Tom Rini , Pantelis Antoniou , Geert Uytterhoeven , Jonathan Cameron , Bjorn Andersson Subject: [PATCH 14/36] dt-bindings: arm: Convert primecell binding to json-schema Date: Fri, 5 Oct 2018 11:58:26 -0500 Message-Id: <20181005165848.3474-15-robh@kernel.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181005165848.3474-1-robh@kernel.org> References: <20181005165848.3474-1-robh@kernel.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Convert ARM Primecell binding to DT schema format using json-schema. Cc: Mark Rutland Cc: devicetree@vger.kernel.org Signed-off-by: Rob Herring --- .../devicetree/bindings/arm/primecell.txt | 46 ------------------- .../devicetree/bindings/arm/primecell.yaml | 35 ++++++++++++++ 2 files changed, 35 insertions(+), 46 deletions(-) delete mode 100644 Documentation/devicetree/bindings/arm/primecell.txt create mode 100644 Documentation/devicetree/bindings/arm/primecell.yaml -- 2.17.1 diff --git a/Documentation/devicetree/bindings/arm/primecell.txt b/Documentation/devicetree/bindings/arm/primecell.txt deleted file mode 100644 index 0df6acacfaea..000000000000 --- a/Documentation/devicetree/bindings/arm/primecell.txt +++ /dev/null @@ -1,46 +0,0 @@ -* ARM Primecell Peripherals - -ARM, Ltd. Primecell peripherals have a standard id register that can be used to -identify the peripheral type, vendor, and revision. This value can be used for -driver matching. - -Required properties: - -- compatible : should be a specific name for the peripheral and - "arm,primecell". The specific name will match the ARM - engineering name for the logic block in the form: "arm,pl???" - -Optional properties: - -- arm,primecell-periphid : Value to override the h/w value with -- clocks : From common clock binding. First clock is phandle to clock for apb - pclk. Additional clocks are optional and specific to those peripherals. -- clock-names : From common clock binding. Shall be "apb_pclk" for first clock. -- dmas : From common DMA binding. If present, refers to one or more dma channels. -- dma-names : From common DMA binding, needs to match the 'dmas' property. - Devices with exactly one receive and transmit channel shall name - these "rx" and "tx", respectively. -- pinctrl- : Pinctrl states as described in bindings/pinctrl/pinctrl-bindings.txt -- pinctrl-names : Names corresponding to the numbered pinctrl states -- interrupts : one or more interrupt specifiers -- interrupt-names : names corresponding to the interrupts properties - -Example: - -serial@fff36000 { - compatible = "arm,pl011", "arm,primecell"; - arm,primecell-periphid = <0x00341011>; - - clocks = <&pclk>; - clock-names = "apb_pclk"; - - dmas = <&dma-controller 4>, <&dma-controller 5>; - dma-names = "rx", "tx"; - - pinctrl-0 = <&uart0_default_mux>, <&uart0_default_mode>; - pinctrl-1 = <&uart0_sleep_mode>; - pinctrl-names = "default","sleep"; - - interrupts = <0 11 0x4>; -}; - diff --git a/Documentation/devicetree/bindings/arm/primecell.yaml b/Documentation/devicetree/bindings/arm/primecell.yaml new file mode 100644 index 000000000000..d8097521dc7d --- /dev/null +++ b/Documentation/devicetree/bindings/arm/primecell.yaml @@ -0,0 +1,35 @@ +# SPDX-License-Identifier: None +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/bindings/arm/primecell.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: ARM Primecell Peripherals + +maintainers: + - Grant Likely +description: |+ + ARM, Ltd. Primecell peripherals have a standard id register that can be used to + identify the peripheral type, vendor, and revision. This value can be used for + driver matching. + +properties: + compatible: + contains: + const: arm,primecell + description: + Should be a specific name for the peripheral followed by "arm,primecell". + The specific name will match the ARM engineering name for the logic block + in the form "arm,pl???" + + arm,primecell-periphid: + $ref: /schemas/types.yaml#/definitions/uint32 + description: Value to override the h/w ID value + clocks: + minItems: 1 + maxItems: 32 + clock-names: + contains: + const: apb_pclk + additionalItems: true +...