summaryrefslogtreecommitdiff
path: root/docs/zephyr
diff options
context:
space:
mode:
authorFabio Baltieri <fabiobaltieri@google.com>2022-04-25 11:56:16 +0000
committerChromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com>2022-04-25 13:59:57 +0000
commit6527122a48db5a05de3e8a69f7de6378001b6031 (patch)
treec06b06e79a47dd6b1638a3234b70bde0c96ac5ef /docs/zephyr
parent08a5e281b7bbe469a360e55346e6d0ba08c1e667 (diff)
downloadchrome-ec-6527122a48db5a05de3e8a69f7de6378001b6031.tar.gz
zephyr: shim: set a placeholder period cell for pwms property
Update all pwms entries to set a period property. This is part of an ongoing standardization effort in the PWM subsystem in Zephyr, for the moment just set a "0" placeholder (it's not used by any high level driver), will followup setting it to the target value once we'll have the frequency dt macro available, and then use them in the higher level driver and deprecate the old frequency label properties on a later stage. BRANCH=none BUG=b:230093078 TEST=zmake testall Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com> Cq-Depend: chromium:3605349, chromium:3605359 Change-Id: I38cc7ab4cbbb8a7e256a913e3c592aa7ffd55000 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3602884 Reviewed-by: Yuval Peress <peress@google.com>
Diffstat (limited to 'docs/zephyr')
-rw-r--r--docs/zephyr/zephyr_pwm.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/zephyr/zephyr_pwm.md b/docs/zephyr/zephyr_pwm.md
index 95144f406e..48221dd2a6 100644
--- a/docs/zephyr/zephyr_pwm.md
+++ b/docs/zephyr/zephyr_pwm.md
@@ -28,7 +28,7 @@ For example for a keyboard backlight device:
```
kblight {
compatible = "cros-ec,kblight-pwm";
- pwms = <&pwm3 0 PWM_POLARITY_NORMAL>;
+ pwms = <&pwm3 0 0 PWM_POLARITY_NORMAL>;
frequency = <2400>;
};
```
@@ -110,7 +110,7 @@ channel per PWM on NPCX), normal polarity:
/ {
kblight {
compatible = "cros-ec,kblight-pwm";
- pwms = <&pwm3 0 PWM_POLARITY_NORMAL>;
+ pwms = <&pwm3 0 0 PWM_POLARITY_NORMAL>;
frequency = <2400>;
};
};