diff options
Diffstat (limited to 'zephyr/dts/bindings/leds/cros-ec,pwm-led-pins.yaml')
-rw-r--r-- | zephyr/dts/bindings/leds/cros-ec,pwm-led-pins.yaml | 50 |
1 files changed, 26 insertions, 24 deletions
diff --git a/zephyr/dts/bindings/leds/cros-ec,pwm-led-pins.yaml b/zephyr/dts/bindings/leds/cros-ec,pwm-led-pins.yaml index dcd06d7b96..19fee69be4 100644 --- a/zephyr/dts/bindings/leds/cros-ec,pwm-led-pins.yaml +++ b/zephyr/dts/bindings/leds/cros-ec,pwm-led-pins.yaml @@ -1,4 +1,4 @@ -# Copyright 2022 The Chromium OS Authors. All rights reserved. +# Copyright 2022 The ChromiumOS Authors # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. @@ -6,27 +6,24 @@ description: PWM LED pins parent node compatible: "cros-ec,pwm-led-pins" -properties: - pwm-frequency: - type: int - required: true - description: PWM frequency in Hz. - child-binding: - description: Each child node describes all the PWM pins that need to be - altered to set a specific color. Eg. For blue and amber PWM - channels, in order to set color amber, a node looks like - this where 100 is PWM duty cycle in percentage - color-amber { - led-color = "LED_AMBER"; - led-pins = <&pwm_led_y 100>, - <&pwm_led_b 0>; - }; + description: | + Each child node describes all the PWM pins that need to be altered to set + a specific color. + e.g. For blue and amber PWM channels, in order to set color amber, a node + looks like this where 100 is PWM duty cycle in percentage. + color-amber { + led-color = "LED_AMBER"; + led-pins = <&pwm_led_y 100>, + <&pwm_led_b 0>; + }; properties: led-color: type: string required: true - description: Used to link the color nodes with the pin nodes + description: | + This property is used to identify pin nodes based on color enum. + It is required by the EC_CMD_LED_CONTROL host command. enum: - LED_OFF - LED_RED @@ -38,10 +35,9 @@ child-binding: led-id: type: string required: true - description: Used to link the color nodes with the pin nodes in - case of multiple LEDs. Also required by ectool to - identify led-ids supported. It needs to match the - enum names defined in ec_commands.h + description: | + This property is required by the EC_CMD_LED_CONTROL host command. + It must match the enum names defined in ec_commands.h. enum: - EC_LED_ID_BATTERY_LED - EC_LED_ID_POWER_LED @@ -53,8 +49,9 @@ child-binding: br-color: type: string required: false - description: This is used in the ectool brightness range APIs. - It needs to match the enum names defined in ec_commands.h + description: | + This is used in the ectool brightness range APIs. It must match + the enum names defined in ec_commands.h. enum: - EC_LED_COLOR_RED - EC_LED_COLOR_GREEN @@ -64,4 +61,9 @@ child-binding: - EC_LED_COLOR_AMBER led-pins: type: phandle-array - required: false + required: true + description: | + This property is used to specify an array of PWM pins and + corresponding values to enable a particular color. + e.g. Amber color - led-pins = <&pwm_led_y 100>, + <&pwm_led_b 0>; |