summaryrefslogtreecommitdiff
path: root/zephyr/dts/bindings
diff options
context:
space:
mode:
authorFabio Baltieri <fabiobaltieri@google.com>2021-09-20 17:05:01 +0000
committerCommit Bot <commit-bot@chromium.org>2021-09-22 20:49:48 +0000
commit2c0d93a1ae43c4ed9745005f46787fcaf7285b39 (patch)
treebc26735734db186928d2d4c939dacb4a5716e7dd /zephyr/dts/bindings
parentba61af3b8c8a1f04caba91c4a264c78c1fe7d77b (diff)
downloadchrome-ec-2c0d93a1ae43c4ed9745005f46787fcaf7285b39.tar.gz
zephyr: shim: implement a generic led_get_brightness_range
Implement a generic led_get_brightness_range function using static values from the device tree. This is currently ignoring led_id, but no pwm_led based device is using it right now anyway, so this could cover all existing use cases. BRANCH=none BUG=b:177452529 TEST=called the function, verified the values in runtime Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com> Change-Id: I67dc7564eb6724e401961261ff5cc5892899ad5f Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3170401 Reviewed-by: Yuval Peress <peress@google.com> Reviewed-by: Keith Short <keithshort@chromium.org> Reviewed-by: Jack Rosenthal <jrosenth@chromium.org> Commit-Queue: Keith Short <keithshort@chromium.org>
Diffstat (limited to 'zephyr/dts/bindings')
-rw-r--r--zephyr/dts/bindings/led/cros-ec,pwm-leds.yaml7
1 files changed, 7 insertions, 0 deletions
diff --git a/zephyr/dts/bindings/led/cros-ec,pwm-leds.yaml b/zephyr/dts/bindings/led/cros-ec,pwm-leds.yaml
index ed0659aaac..fd99e3202a 100644
--- a/zephyr/dts/bindings/led/cros-ec,pwm-leds.yaml
+++ b/zephyr/dts/bindings/led/cros-ec,pwm-leds.yaml
@@ -66,3 +66,10 @@ properties:
color-map-amber:
type: array
required: true
+
+ brightness-range:
+ type: array
+ required: true
+ description: |
+ A list of brigthness range value for all supported channels in order,
+ Red, Green, Blue, Yellow, White, Amber (0 to 255).