Alper Nebi Yasak | 1b9ee28 | 2020-10-22 23:49:27 +0300 | [diff] [blame] | 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 | doc/device-tree-bindings/misc/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 | }; |