Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp3419129ybl; Mon, 27 Jan 2020 03:45:07 -0800 (PST) X-Google-Smtp-Source: APXvYqzPO74YkuooLJDHys0X7NVvyL6jrQgT5yjo/dwhnusEiE6JDnZSk7yoe62wXIiM4XfgC0lI X-Received: by 2002:aca:af50:: with SMTP id y77mr3251729oie.8.1580125507001; Mon, 27 Jan 2020 03:45:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580125506; cv=none; d=google.com; s=arc-20160816; b=xX4k3X16IUk9v9mDNuJXprinQAAA8H5Amk9Nvml5GHvJllaaVi6aC6j8XehbWZYuWG BKEUExyep1ZyghXk819nzWtfsBtrNQW3iQ7BGA2sfYI0rNJ7EhyBzdiBlYVq3tlPa45z XoCCgq68ZyUYBXdAEbs64DcFjzyEKY6j7QVKM8+Z0EC0kYnY/iwZj5xWCwBRzU86zYVk wBQhfpAFe2dfS4eOcYeFycrLKi86+eMMTYqBTcFIbtnfyqM5hE3xYm6p5+qRNbW3VW7A 3ekj4G/o2SEN1udpgY6l3HKFx1+W4nGEQuca0JrUUlGTsGPEMYC7CKI/ssh3SNqaHGPE nafA== 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=hmZtiKwAMJPxtQNHr5f7vZFUiQC+LYwbTWW0G904cCQ=; b=CL5kYHWcW4qpCCb9uBJQy+svXoM+tbsciZKbtIeccp0aOaFz/RP1f49aps0edqfMAQ CQJmk7lbUm7/ZA+0h4jWdjfXR00t+UiugTBxnL3fI7iKTJEEFlOvFobF/YtTDHPjbKrs v+HsEmgArd4neN2+ynLkz6TbApzyayVYfrXURPpz4RkvYDFFzFSSTtnGh7kH4tNjiPHt WAkUwDcYNYPCzvEtNX7IlzSiMRuf17ycorHR33B9uF5A7P6Bp+tc00Fgmk+MfzG0mYxq kT7PvSUXPpeX+IP4V0yn2OcQ97kNivWeh4apxqxB6DtWpRS00uoLuqxd9/tvV4uJAa0/ qEpg== 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=collabora.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r1si7046326otq.298.2020.01.27.03.44.54; Mon, 27 Jan 2020 03:45:06 -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=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729933AbgA0Ke6 (ORCPT + 99 others); Mon, 27 Jan 2020 05:34:58 -0500 Received: from bhuna.collabora.co.uk ([46.235.227.227]:57404 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729213AbgA0Ke6 (ORCPT ); Mon, 27 Jan 2020 05:34:58 -0500 Received: from localhost.localdomain (p200300CB87166A002102C4F03A4721D7.dip0.t-ipconnect.de [IPv6:2003:cb:8716:6a00:2102:c4f0:3a47:21d7]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: dafna) by bhuna.collabora.co.uk (Postfix) with ESMTPSA id E246C292E13; Mon, 27 Jan 2020 10:34:55 +0000 (GMT) From: Dafna Hirschfeld To: linux-pwm@vger.kernel.org Cc: thierry.reding@gmail.com, u.kleine-koenig@pengutronix.de, robh+dt@kernel.org, mark.rutland@arm.com, bleung@chromium.org, enric.balletbo@collabora.com, groeck@chromium.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, dafna.hirschfeld@collabora.com, helen.koike@collabora.com, ezequiel@collabora.com, kernel@collabora.com, dafna3@gmail.com Subject: [PATCH] dt-bindings: convert google,cros-ec-pwm.txt to yaml format Date: Mon, 27 Jan 2020 11:34:41 +0100 Message-Id: <20200127103441.4618-1-dafna.hirschfeld@collabora.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Convert the binding file google,cros-ec-pwm.txt to yaml format. This was tested and verified on ARM64 with: make dt_binding_check DT_SCHEMA_FILES=Documentation/devicetree/bindings/pwm/google,cros-ec-pwm.yaml make dtbs_check DT_SCHEMA_FILES=Documentation/devicetree/bindings/pwm/google,cros-ec-pwm.yaml Signed-off-by: Dafna Hirschfeld --- .../bindings/pwm/google,cros-ec-pwm.txt | 23 ----------- .../bindings/pwm/google,cros-ec-pwm.yaml | 40 +++++++++++++++++++ 2 files changed, 40 insertions(+), 23 deletions(-) delete mode 100644 Documentation/devicetree/bindings/pwm/google,cros-ec-pwm.txt create mode 100644 Documentation/devicetree/bindings/pwm/google,cros-ec-pwm.yaml diff --git a/Documentation/devicetree/bindings/pwm/google,cros-ec-pwm.txt b/Documentation/devicetree/bindings/pwm/google,cros-ec-pwm.txt deleted file mode 100644 index 472bd46ab5a4..000000000000 --- a/Documentation/devicetree/bindings/pwm/google,cros-ec-pwm.txt +++ /dev/null @@ -1,23 +0,0 @@ -* PWM controlled by ChromeOS EC - -Google's ChromeOS EC PWM is a simple PWM attached to the Embedded Controller -(EC) and controlled via a host-command interface. - -An EC PWM node should be only found as a sub-node of the EC node (see -Documentation/devicetree/bindings/mfd/cros-ec.txt). - -Required properties: -- compatible: Must contain "google,cros-ec-pwm" -- #pwm-cells: Should be 1. The cell specifies the PWM index. - -Example: - cros-ec@0 { - compatible = "google,cros-ec-spi"; - - ... - - cros_ec_pwm: ec-pwm { - compatible = "google,cros-ec-pwm"; - #pwm-cells = <1>; - }; - }; diff --git a/Documentation/devicetree/bindings/pwm/google,cros-ec-pwm.yaml b/Documentation/devicetree/bindings/pwm/google,cros-ec-pwm.yaml new file mode 100644 index 000000000000..24c217b76580 --- /dev/null +++ b/Documentation/devicetree/bindings/pwm/google,cros-ec-pwm.yaml @@ -0,0 +1,40 @@ +# SPDX-License-Identifier: GPL-2.0 +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/pwm/google,cros-ec-pwm.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: PWM controlled by ChromeOS EC + +maintainers: + - Thierry Reding + - '"Uwe Kleine-König" ' + +description: | + Google's ChromeOS EC PWM is a simple PWM attached to the Embedded Controller + (EC) and controlled via a host-command interface. + An EC PWM node should be only found as a sub-node of the EC node (see + Documentation/devicetree/bindings/mfd/cros-ec.txt). + +properties: + compatible: + const: google,cros-ec-pwm + "#pwm-cells": + description: The cell specifies the PWM index. + const: 1 + +required: + - compatible + - '#pwm-cells' + +additionalProperties: false + +examples: + - | + cros-ec@0 { + compatible = "google,cros-ec-spi"; + cros_ec_pwm: ec-pwm { + compatible = "google,cros-ec-pwm"; + #pwm-cells = <1>; + }; + }; -- 2.17.1