From patchwork Thu Jan 10 22:19:01 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rob Herring X-Patchwork-Id: 155284 Delivered-To: patch@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp2418892jaa; Thu, 10 Jan 2019 14:19:20 -0800 (PST) X-Google-Smtp-Source: ALg8bN7xxEIjqYVutlkTNIZ81PiJFCFp5H2UkddfXVCDAsRVr1Fm7J5fiJlj0BrE/pisbuvkz0zj X-Received: by 2002:a63:9843:: with SMTP id l3mr10933784pgo.413.1547158760265; Thu, 10 Jan 2019 14:19:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547158760; cv=none; d=google.com; s=arc-20160816; b=1KNqh+OkimzuVLOAIP43RLV6DAaGAjnP4dx3LtG67zKJBnrcD7UIT0lBZ6CCmIACYu E9taus6XxR07IWtpyp/AQKlfs5Wp7Mx0644DyrYyhpuNnj+SWF6upP6u+7rF07Cvd8i9 qo7u2FA+oYNJMV6U0nWvhuMXzynEetxAYKXWg3Aw2Bx1PGcm0MjYbHF7aTLGGvFkj9U3 wS70UncBsfB/V9REAft/+2BV7WXo6wmDaayyKzcKipZcZVwt1y0rN8OH0DnyViyeIkxK vRltbNe8JjoycKww0lgNfMOL4BsTbGl949gSDAcqjODVIAx9fF5iLRBIEoRuk4KW5q6B ONrA== 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 :message-id:date:subject:cc:to:from; bh=W5pRmWNfodQ0VVwG2Uqbu5471LXeV1RU+JqhgLaUyDg=; b=1BiLJUmBYlxf0wdrCco1h0Y1k3qYqMMH4kTkYBsyIlAAVJ2xdslAVB22XT52aegDZm hYO53QY9IVQ/2aon1M+Gz0YAcurNIC5cRvJz+HVbcx9B5Ru6gFJoCHIqK3eMn9pKraja GCbQVpfP8XWBPvRTt9C+c4Ibijr4TZ6mZymWkQHj1UKcPUn235q9jtufF5PnZ//joOY3 I9BMWk6VTkdE89OgWwLylNuiggkpjXSFCuMq8381vMJ+NtAWXVjq8CfSSBsXmn+O0HGH i5IE1VceefVEPuC2wmmgz0ABl1C/zeR8xLcut7Bk1hcK9N+g9ClG/CWAtjtO0DmdNWTU zweQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-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 m7si19358265pgi.547.2019.01.10.14.19.20; Thu, 10 Jan 2019 14:19:20 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of devicetree-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 devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-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 S1728886AbfAJWTO (ORCPT + 7 others); Thu, 10 Jan 2019 17:19:14 -0500 Received: from mail-ot1-f67.google.com ([209.85.210.67]:35546 "EHLO mail-ot1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728825AbfAJWTN (ORCPT ); Thu, 10 Jan 2019 17:19:13 -0500 Received: by mail-ot1-f67.google.com with SMTP id 81so11447686otj.2; Thu, 10 Jan 2019 14:19:12 -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:mime-version :content-transfer-encoding; bh=W5pRmWNfodQ0VVwG2Uqbu5471LXeV1RU+JqhgLaUyDg=; b=Giwku3AeYNSJa4TxlymSkRBgWzeQR/mE9yzEYigyPP3M15+2V8oxJMZjkr0s1gj9Xq iZVnb3wz3hU28sa1bTxR71A7WkmLDulzaxMmvWixjdNM8ppQdPtWiQKtVCRuzqXerYzb 83pMar2ppGeSHjjZPQen064ublqJnFRCKCqJK0zWaE+KLYQ5UX6zZOU/trI6BmfCLIeX Mo56AqtCojAI5uEgvWtYbRMiJ5Lujv4WJ1kubxl7jzhV9FSd3tCc9erOTc3CfcThFQqz KRaVtdzA4UAjQzdDRbNV7RSA3L5mc1Y+NJZ7rkj9Ee7q0ZgCns3dY5hRw0XIFckoQ4zA zO4A== X-Gm-Message-State: AJcUukfHI0kZLPjwLGuUoYJzzBhVvg+T6cTaybZN43ndDlyC7b9F3IT7 fHc5nCty9y6NWmxkrwnFRAsZ/vA= X-Received: by 2002:a9d:6197:: with SMTP id g23mr7688177otk.324.1547158752091; Thu, 10 Jan 2019 14:19:12 -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 c19sm36776707otl.16.2019.01.10.14.19.09 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 10 Jan 2019 14:19:10 -0800 (PST) From: Rob Herring To: devicetree@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Michael Turquette , Stephen Boyd , linux-clk@vger.kernel.org Subject: [PATCH] dt-bindings: clock: Convert fixed-clock binding to json-schema Date: Thu, 10 Jan 2019 16:19:01 -0600 Message-Id: <20190110221903.3990-4-robh@kernel.org> X-Mailer: git-send-email 2.19.1 MIME-Version: 1.0 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Convert the fixed-clock binding to DT schema format using json-schema. Cc: Michael Turquette Cc: Stephen Boyd Cc: linux-clk@vger.kernel.org Signed-off-by: Rob Herring --- .../devicetree/bindings/clock/fixed-clock.txt | 23 ---------- .../bindings/clock/fixed-clock.yaml | 44 +++++++++++++++++++ 2 files changed, 44 insertions(+), 23 deletions(-) delete mode 100644 Documentation/devicetree/bindings/clock/fixed-clock.txt create mode 100644 Documentation/devicetree/bindings/clock/fixed-clock.yaml -- 2.19.1 diff --git a/Documentation/devicetree/bindings/clock/fixed-clock.txt b/Documentation/devicetree/bindings/clock/fixed-clock.txt deleted file mode 100644 index 0641a663ad69..000000000000 --- a/Documentation/devicetree/bindings/clock/fixed-clock.txt +++ /dev/null @@ -1,23 +0,0 @@ -Binding for simple fixed-rate clock sources. - -This binding uses the common clock binding[1]. - -[1] Documentation/devicetree/bindings/clock/clock-bindings.txt - -Required properties: -- compatible : shall be "fixed-clock". -- #clock-cells : from common clock binding; shall be set to 0. -- clock-frequency : frequency of clock in Hz. Should be a single cell. - -Optional properties: -- clock-accuracy : accuracy of clock in ppb (parts per billion). - Should be a single cell. -- clock-output-names : From common clock binding. - -Example: - clock { - compatible = "fixed-clock"; - #clock-cells = <0>; - clock-frequency = <1000000000>; - clock-accuracy = <100>; - }; diff --git a/Documentation/devicetree/bindings/clock/fixed-clock.yaml b/Documentation/devicetree/bindings/clock/fixed-clock.yaml new file mode 100644 index 000000000000..8b5628463b90 --- /dev/null +++ b/Documentation/devicetree/bindings/clock/fixed-clock.yaml @@ -0,0 +1,44 @@ +# SPDX-License-Identifier: GPL-2.0 +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/clock/fixed-clock.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Binding for simple fixed-rate clock sources. + +maintainers: + - Michael Turquette + - Stephen Boyd + +properties: + compatible: + const: fixed-clock + + "#clock-cells": + const: 0 + + clock-frequency: true + + clock-accuracy: + description: accuracy of clock in ppb (parts per billion). + $ref: /schemas/types.yaml#/definitions/uint32 + + clock-output-names: + maxItems: 1 + +required: + - compatible + - "#clock-cells" + - clock-frequency + +additionalProperties: false + +examples: + - | + clock { + compatible = "fixed-clock"; + #clock-cells = <0>; + clock-frequency = <1000000000>; + clock-accuracy = <100>; + }; +...