1c66ec88fSEmmanuel Vadot# SPDX-License-Identifier: GPL-2.0 2c66ec88fSEmmanuel Vadot%YAML 1.2 3c66ec88fSEmmanuel Vadot--- 4c66ec88fSEmmanuel Vadot$id: http://devicetree.org/schemas/pwm/google,cros-ec-pwm.yaml# 5c66ec88fSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml# 6c66ec88fSEmmanuel Vadot 7c66ec88fSEmmanuel Vadottitle: PWM controlled by ChromeOS EC 8c66ec88fSEmmanuel Vadot 9c66ec88fSEmmanuel Vadotmaintainers: 10c66ec88fSEmmanuel Vadot - Thierry Reding <thierry.reding@gmail.com> 11c66ec88fSEmmanuel Vadot - '"Uwe Kleine-König" <u.kleine-koenig@pengutronix.de>' 12c66ec88fSEmmanuel Vadot 13c66ec88fSEmmanuel Vadotdescription: | 14c66ec88fSEmmanuel Vadot Google's ChromeOS EC PWM is a simple PWM attached to the Embedded Controller 15c66ec88fSEmmanuel Vadot (EC) and controlled via a host-command interface. 16c66ec88fSEmmanuel Vadot An EC PWM node should be only found as a sub-node of the EC node (see 17*6be33864SEmmanuel Vadot Documentation/devicetree/bindings/mfd/google,cros-ec.yaml). 18c66ec88fSEmmanuel Vadot 19c66ec88fSEmmanuel Vadotproperties: 20c66ec88fSEmmanuel Vadot compatible: 21c66ec88fSEmmanuel Vadot const: google,cros-ec-pwm 22c66ec88fSEmmanuel Vadot "#pwm-cells": 23c66ec88fSEmmanuel Vadot description: The cell specifies the PWM index. 24c66ec88fSEmmanuel Vadot const: 1 25c66ec88fSEmmanuel Vadot 26c66ec88fSEmmanuel Vadotrequired: 27c66ec88fSEmmanuel Vadot - compatible 28c66ec88fSEmmanuel Vadot - '#pwm-cells' 29c66ec88fSEmmanuel Vadot 30c66ec88fSEmmanuel VadotadditionalProperties: false 31c66ec88fSEmmanuel Vadot 32c66ec88fSEmmanuel Vadotexamples: 33c66ec88fSEmmanuel Vadot - | 34c66ec88fSEmmanuel Vadot spi { 35c66ec88fSEmmanuel Vadot #address-cells = <1>; 36c66ec88fSEmmanuel Vadot #size-cells = <0>; 37c66ec88fSEmmanuel Vadot 38c66ec88fSEmmanuel Vadot cros-ec@0 { 39c66ec88fSEmmanuel Vadot compatible = "google,cros-ec-spi"; 40c66ec88fSEmmanuel Vadot reg = <0>; 41c66ec88fSEmmanuel Vadot 42c66ec88fSEmmanuel Vadot cros_ec_pwm: ec-pwm { 43c66ec88fSEmmanuel Vadot compatible = "google,cros-ec-pwm"; 44c66ec88fSEmmanuel Vadot #pwm-cells = <1>; 45c66ec88fSEmmanuel Vadot }; 46c66ec88fSEmmanuel Vadot }; 47c66ec88fSEmmanuel Vadot }; 48