From patchwork Mon Dec 3 21:31:58 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Rob Herring \(Arm\)" X-Patchwork-Id: 152776 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp7320311ljp; Mon, 3 Dec 2018 13:35:19 -0800 (PST) X-Google-Smtp-Source: AFSGD/UV2QmPXyY8NeEbKNRrGzhgUMIFILuYK+ypMaufG98/RK9H63LhLj39mGbCUeL1h052LjNJ X-Received: by 2002:a62:8985:: with SMTP id n5mr17671599pfk.255.1543872919616; Mon, 03 Dec 2018 13:35:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543872919; cv=none; d=google.com; s=arc-20160816; b=OF7ZJ+K+Cpa8nc5z4VxH01O2cNYX8SnprrQvRrQsVCvcVTSwJvSW+CwCOIMj4r2qVi S0Dd6tIg/d6cqYObx6Yi1gjRoPP9xzpEcYAP1qfhDko1G5P8wPdZKO810bqrcg3gLyPg EdkvBqkBHnUXlWrBTuxsuHDzCfbFAK4pSxXbMep2xXtju/wdlEOU32fepmJDNwUL0Sv0 SZ8TtSKayxvRYOYRSsTfQbWo6ZSA0Uu3ZGwtIJAKFS9KKXmnbBYVinKLqoSbGWhfFCb3 aHhmlhp4Vavmzc73MENWVqBUf3JKsw8WWrCnHPUMDQiggmQ7E3SlsQLOlY2ehWUmiB18 SHzA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=dA8AGvBGRvCAkyd4n1eYxm6anA991HhNOhSBUn8M78I=; b=rhmc3e4i7iyHpW2xeGSZbqTXA0kwZOJQGhqu3EBBdRqThYF8oalh3l1Y4tYqAzUIuM 5OFDg7bJRy0LSdisc3QdmeynwBXJ9HqxlUmrg3z1TJS3AvRKh4JX/ho6kY3BVOafWKTe zyEyQ/7OQhkqEu3MnHtrYq2Yr9zKu+fNr+Sn+yhCVj+p+0aDrvdb1GhZacQkEriAMKqW 2MJNOGZ4ZN12uDaj4dISQkWt4qgla+dzjpyJNl1gKBDIxzYYEsvHRtAeUsegtTpPMAdr VR9W1nfCO0pg0HjzlgULcPVy7j7QWxdY3DR/o6aAXANANOPkqgZ/qtGbZrN59GcVEMTy lkTA== 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 d32si15493993pla.136.2018.12.03.13.35.19; Mon, 03 Dec 2018 13:35:19 -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 S1726481AbeLCVfR (ORCPT + 32 others); Mon, 3 Dec 2018 16:35:17 -0500 Received: from mail-oi1-f193.google.com ([209.85.167.193]:36342 "EHLO mail-oi1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726088AbeLCVci (ORCPT ); Mon, 3 Dec 2018 16:32:38 -0500 Received: by mail-oi1-f193.google.com with SMTP id x23so12357529oix.3; Mon, 03 Dec 2018 13:32: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:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=dA8AGvBGRvCAkyd4n1eYxm6anA991HhNOhSBUn8M78I=; b=hhyy9UVNMOYuTHIXULYVyz2R8C7Wwnna/vM2g8acxpFgvnnnsN463UYcQYPYwH2per dN9hR0MZucgWbi4WDC+sIgczIJFw3qzujRquC3YajtqNXGsFElHOSsNsl9vvLfPul860 WgzlzYLPPBIjh7+U9sWHV3yRJPz+AxILY3P+bYVYFLxCd/nIjhOfFMZRrvWSIoskl+O9 A+Xn+sEHicvlFa3txY3Lqgi5BPl/eXhZ9PQDgoY9NxIQ+Z+yRWsLDPlQL9sASA7Kl/pG 3GyRCt35vdSAIM/yMmLNSPAWdL+p2eXeJx8/FdejOA+bdw18iBpwL+c/eoJyMg2a7BnB qCgw== X-Gm-Message-State: AA+aEWYsX68/d1eVgdWxeGBTKMND4LnltZOJnGsp9h1yNaHbjsCIN/s3 cfJTrqLGL9EMpGyKgUtYvYy8Sws= X-Received: by 2002:a54:4d81:: with SMTP id y1mr11227097oix.18.1543872756778; Mon, 03 Dec 2018 13:32:36 -0800 (PST) Received: from xps15.herring.priv (24-155-109-49.dyn.grandenetworks.net. [24.155.109.49]) by smtp.googlemail.com with ESMTPSA id c78sm8545501oig.30.2018.12.03.13.32.35 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 03 Dec 2018 13:32:36 -0800 (PST) From: Rob Herring To: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Sean Hudson , Frank Rowand , linux-arm-kernel@lists.infradead.org, linuxppc-dev@lists.ozlabs.org, Grant Likely , Kumar Gala , arm@kernel.org, Mark Rutland Subject: [PATCH v2 09/34] dt-bindings: arm: Convert primecell binding to json-schema Date: Mon, 3 Dec 2018 15:31:58 -0600 Message-Id: <20181203213223.16986-10-robh@kernel.org> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181203213223.16986-1-robh@kernel.org> References: <20181203213223.16986-1-robh@kernel.org> MIME-Version: 1.0 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 | 36 +++++++++++++++ 2 files changed, 36 insertions(+), 46 deletions(-) delete mode 100644 Documentation/devicetree/bindings/arm/primecell.txt create mode 100644 Documentation/devicetree/bindings/arm/primecell.yaml -- 2.19.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..5aae37f1c563 --- /dev/null +++ b/Documentation/devicetree/bindings/arm/primecell.yaml @@ -0,0 +1,36 @@ +# SPDX-License-Identifier: GPL-2.0 +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/arm/primecell.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: ARM Primecell Peripherals + +maintainers: + - Rob Herring + +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 +...