Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp685604imm; Fri, 5 Oct 2018 10:02:38 -0700 (PDT) X-Google-Smtp-Source: ACcGV621o3qeCvbxv66pNX1DZFHI6g92EaN4PivZTHu3YRZDiIc7kStgq8OT4tndvAlK7hamvCHq X-Received: by 2002:a17:902:9696:: with SMTP id n22-v6mr12619142plp.212.1538758958757; Fri, 05 Oct 2018 10:02:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538758958; cv=none; d=google.com; s=arc-20160816; b=eHcBnSIDNDdhV1TJd77gQG+Ob9U/tjBYL2N/R4gnAL56YGxkv1HhbqPYD9fhXwOS/N Wrz1dmeDuX/o6hTFsDnezgLImy7YUM6MDFM+p6lq27B1ZODCb2NkEsXMcZyfSTrwqmT9 90haFAFRkvbJCnYG319wsC8jbXZjnAtuaCCPvmJIoPe6ofkcOaHsgFhFhZ8dFBP9XxNo Br14G4QCnA4sO+G2pmGH5orT87hYqKC/Jzof9jSgS6lKmC+aabyhyUz/16mrgKl0DXoV srbJTx5oGzW0JfCp+ID72Y+eab65nya696eOjA+VPU46u7METK+8h7NTLYm3VlCnEdAp mKSg== 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 t18-v6si8549825plo.191.2018.10.05.10.02.23; Fri, 05 Oct 2018 10:02:38 -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 S1729238AbeJEX6q (ORCPT + 99 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 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 +... -- 2.17.1