summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRajesh Kumar <rajesh3.kumar@intel.com>2022-09-26 09:52:04 -0700
committerChromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com>2022-09-26 21:35:23 +0000
commite384e55c5711fd62174e3aafc3e6b73679b1cd11 (patch)
treec062427beb84a8290d69c90dafca23ed8c955aac
parent8b5416ab108de2284941f6f6c432e785fd65b4f5 (diff)
downloadchrome-ec-e384e55c5711fd62174e3aafc3e6b73679b1cd11.tar.gz
zephyr: rex: Enable keyboard backlight
This enables keyboard backlight dts configuration for rex platform. BRANCH=none BUG=none TEST=zmake build rex; Tested using EC console command 'kblight' Signed-off-by: Rajesh kumar <rajesh3.kumar@intel.com> Change-Id: I6ecffecda9d10333dee1a94b0ce35ff58ac1f53b Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3917422 Reviewed-by: Vijay P Hiremath <vijay.p.hiremath@intel.com> Reviewed-by: Tristan Honscheid <honscheid@google.com> Reviewed-by: Scott Collyer <scollyer@chromium.org>
-rw-r--r--zephyr/projects/rex/keyboard.dts13
1 files changed, 13 insertions, 0 deletions
diff --git a/zephyr/projects/rex/keyboard.dts b/zephyr/projects/rex/keyboard.dts
index 5248c4aaff..91fad2db92 100644
--- a/zephyr/projects/rex/keyboard.dts
+++ b/zephyr/projects/rex/keyboard.dts
@@ -3,6 +3,19 @@
* found in the LICENSE file.
*/
+/ {
+ kblight {
+ compatible = "cros-ec,kblight-pwm";
+ pwms = <&pwm3 0 PWM_HZ(2400) PWM_POLARITY_NORMAL>;
+ };
+};
+
+&pwm3 {
+ status = "okay";
+ pinctrl-0 = <&pwm3_gp80>;
+ pinctrl-names = "default";
+};
+
&cros_kb_raw {
status = "okay";
/* No KSO2 (it's inverted and implemented by GPIO) */