Skip to content

Commit 9e60f50

Browse files
computersforpeacethierryreding
authored andcommitted
dt-bindings: pwm: Add binding for ChromeOS EC PWM
The ChromeOS Embedded Controller can support controlling its attached PWMs via its host-command interface. The number of supported PWMs varies on a per-board basis, but we can autodetect this by checking the error codes, so we don't need an extra property for this. And because the EC only allows specifying the duty cycle and not the period, we don't specify the period via pwm-cells, and instead have only support for one cell -- to specify the index. Signed-off-by: Brian Norris <briannorris@chromium.org> Acked-by: Rob Herring <robh@kernel.org> Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
1 parent 3859342 commit 9e60f50

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
* PWM controlled by ChromeOS EC
2+
3+
Google's ChromeOS EC PWM is a simple PWM attached to the Embedded Controller
4+
(EC) and controlled via a host-command interface.
5+
6+
An EC PWM node should be only found as a sub-node of the EC node (see
7+
Documentation/devicetree/bindings/mfd/cros-ec.txt).
8+
9+
Required properties:
10+
- compatible: Must contain "google,cros-ec-pwm"
11+
- #pwm-cells: Should be 1. The cell specifies the PWM index.
12+
13+
Example:
14+
cros-ec@0 {
15+
compatible = "google,cros-ec-spi";
16+
17+
...
18+
19+
cros_ec_pwm: ec-pwm {
20+
compatible = "google,cros-ec-pwm";
21+
#pwm-cells = <1>;
22+
};
23+
};

0 commit comments

Comments
 (0)