Skip to content

Commit 5df5a57

Browse files
Dafna Hirschfeldthierryreding
authored andcommitted
dt-bindings: pwm: Convert google,cros-ec-pwm.txt to YAML format
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 <[email protected]> Reviewed-by: Rob Herring <[email protected]> Signed-off-by: Thierry Reding <[email protected]>
1 parent 74c8249 commit 5df5a57

File tree

2 files changed

+40
-23
lines changed

2 files changed

+40
-23
lines changed

Documentation/devicetree/bindings/pwm/google,cros-ec-pwm.txt

Lines changed: 0 additions & 23 deletions
This file was deleted.
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
# SPDX-License-Identifier: GPL-2.0
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/pwm/google,cros-ec-pwm.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: PWM controlled by ChromeOS EC
8+
9+
maintainers:
10+
- Thierry Reding <[email protected]>
11+
- '"Uwe Kleine-König" <[email protected]>'
12+
13+
description: |
14+
Google's ChromeOS EC PWM is a simple PWM attached to the Embedded Controller
15+
(EC) and controlled via a host-command interface.
16+
An EC PWM node should be only found as a sub-node of the EC node (see
17+
Documentation/devicetree/bindings/mfd/cros-ec.txt).
18+
19+
properties:
20+
compatible:
21+
const: google,cros-ec-pwm
22+
"#pwm-cells":
23+
description: The cell specifies the PWM index.
24+
const: 1
25+
26+
required:
27+
- compatible
28+
- '#pwm-cells'
29+
30+
additionalProperties: false
31+
32+
examples:
33+
- |
34+
cros-ec@0 {
35+
compatible = "google,cros-ec-spi";
36+
cros_ec_pwm: ec-pwm {
37+
compatible = "google,cros-ec-pwm";
38+
#pwm-cells = <1>;
39+
};
40+
};

0 commit comments

Comments
 (0)