summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew McRae <amcrae@google.com>2022-07-20 18:19:37 +1000
committerChromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com>2022-07-20 23:50:04 +0000
commit5643b1b844ec73d02e8d8b1702c0385379e7e453 (patch)
tree129a61a01b6d4e54c562b7cf09d800d28402613f
parentb35af7da54d5fce3f7c2ae555e07a895501ed18c (diff)
downloadchrome-ec-release-R105-14989.B-main.tar.gz
nissa: Use low freq clock for keyboard backlightrelease-R105-14989.B-main
Use low frequency clock for keyboard backlight so that PWM clock does not get turned off when power management turns off the main clocks. BUG=b:230427574 TEST=zmake build nivviks; flash & run on Nirwen BRANCH=none Change-Id: I48bfe4cfaf2095b2b208a0ff6161cd868e6b31f4 Signed-off-by: Andrew McRae <amcrae@google.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3775276 Reviewed-by: Peter Marheine <pmarheine@chromium.org>
-rw-r--r--zephyr/projects/nissa/craask/overlay.dts3
-rw-r--r--zephyr/projects/nissa/nivviks/keyboard.dts3
-rw-r--r--zephyr/projects/nissa/pujjo/keyboard.dts3
3 files changed, 6 insertions, 3 deletions
diff --git a/zephyr/projects/nissa/craask/overlay.dts b/zephyr/projects/nissa/craask/overlay.dts
index 6a83ee70ad..de191cba3a 100644
--- a/zephyr/projects/nissa/craask/overlay.dts
+++ b/zephyr/projects/nissa/craask/overlay.dts
@@ -239,7 +239,7 @@
kblight {
compatible = "cros-ec,kblight-pwm";
- pwms = <&pwm6 6 PWM_KHZ(10) PWM_POLARITY_NORMAL>;
+ pwms = <&pwm6 6 PWM_HZ(2400) PWM_POLARITY_NORMAL>;
};
/*
@@ -309,6 +309,7 @@
&pwm6 {
status = "okay";
+ clock-bus = "NPCX_CLOCK_BUS_LFCLK";
pinctrl-0 = <&pwm6_gpc0>;
pinctrl-names = "default";
};
diff --git a/zephyr/projects/nissa/nivviks/keyboard.dts b/zephyr/projects/nissa/nivviks/keyboard.dts
index fd18e1de99..ee5dd6d085 100644
--- a/zephyr/projects/nissa/nivviks/keyboard.dts
+++ b/zephyr/projects/nissa/nivviks/keyboard.dts
@@ -6,12 +6,13 @@
/ {
kblight {
compatible = "cros-ec,kblight-pwm";
- pwms = <&pwm6 6 PWM_KHZ(10) PWM_POLARITY_NORMAL>;
+ pwms = <&pwm6 6 PWM_HZ(2400) PWM_POLARITY_NORMAL>;
};
};
&pwm6 {
status = "okay";
+ clock-bus = "NPCX_CLOCK_BUS_LFCLK";
pinctrl-0 = <&pwm6_gpc0>;
pinctrl-names = "default";
};
diff --git a/zephyr/projects/nissa/pujjo/keyboard.dts b/zephyr/projects/nissa/pujjo/keyboard.dts
index fd18e1de99..ee5dd6d085 100644
--- a/zephyr/projects/nissa/pujjo/keyboard.dts
+++ b/zephyr/projects/nissa/pujjo/keyboard.dts
@@ -6,12 +6,13 @@
/ {
kblight {
compatible = "cros-ec,kblight-pwm";
- pwms = <&pwm6 6 PWM_KHZ(10) PWM_POLARITY_NORMAL>;
+ pwms = <&pwm6 6 PWM_HZ(2400) PWM_POLARITY_NORMAL>;
};
};
&pwm6 {
status = "okay";
+ clock-bus = "NPCX_CLOCK_BUS_LFCLK";
pinctrl-0 = <&pwm6_gpc0>;
pinctrl-names = "default";
};