diff options
author | Fabio Baltieri <fabiobaltieri@google.com> | 2022-04-04 15:57:21 +0000 |
---|---|---|
committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2022-04-07 21:23:45 +0000 |
commit | 85c80f94a394f85fbfcfd80a09aec46256383af0 (patch) | |
tree | 0ad5003e43a3415499ff4d35d43fa576963b3263 /zephyr/boards/riscv/it8xxx2_evb/it8xxx2_evb.dts | |
parent | 9f8be12fa56214ee549da02f87d0887cbe123ef6 (diff) | |
download | chrome-ec-85c80f94a394f85fbfcfd80a09aec46256383af0.tar.gz |
zephyr: it8xxx2_evb: convert the named-pwm node to pwm-leds
Convert the PWM test node in it8xxx2_evb.dts to use the generic Zephyr
pwm-leds binding.
BRANCH=none
BUG=b:217741090
TEST=zmake build it8xxx2_evb
Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com>
Change-Id: I2b79ec25e53dfa84c464a1e2ef7261dd4109c78d
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3569766
Reviewed-by: Tristan Honscheid <honscheid@google.com>
Diffstat (limited to 'zephyr/boards/riscv/it8xxx2_evb/it8xxx2_evb.dts')
-rw-r--r-- | zephyr/boards/riscv/it8xxx2_evb/it8xxx2_evb.dts | 23 |
1 files changed, 9 insertions, 14 deletions
diff --git a/zephyr/boards/riscv/it8xxx2_evb/it8xxx2_evb.dts b/zephyr/boards/riscv/it8xxx2_evb/it8xxx2_evb.dts index 1c24c1cf45..d106ece265 100644 --- a/zephyr/boards/riscv/it8xxx2_evb/it8xxx2_evb.dts +++ b/zephyr/boards/riscv/it8xxx2_evb/it8xxx2_evb.dts @@ -20,6 +20,15 @@ zephyr,flash-controller = &flashctrl; }; + pwmleds { + compatible = "pwm-leds"; + + /* NOTE: &pwm number needs same with channel number */ + pwm_led_test: pwm_led_test { + pwms = <&pwm0 PWM_CHANNEL_0 PWM_POLARITY_NORMAL>; + }; + }; + aliases { gpio-wp = &gpio_wp; }; @@ -142,20 +151,6 @@ }; }; - named-pwms { - compatible = "named-pwms"; - - /* NOTE: &pwm number needs same with channel number */ - pwm_test: test { - pwms = <&pwm0 PWM_CHANNEL_0 PWM_POLARITY_NORMAL>; - /* - * If we need pwm output in ITE chip power saving - * mode, then we should set frequency <=324Hz. - */ - frequency = <324>; - }; - }; - named-fans { compatible = "named-fans"; |