summaryrefslogtreecommitdiff
path: root/zephyr/projects/nissa/joxer/keyboard.dts
diff options
context:
space:
mode:
Diffstat (limited to 'zephyr/projects/nissa/joxer/keyboard.dts')
-rw-r--r--zephyr/projects/nissa/joxer/keyboard.dts22
1 files changed, 22 insertions, 0 deletions
diff --git a/zephyr/projects/nissa/joxer/keyboard.dts b/zephyr/projects/nissa/joxer/keyboard.dts
new file mode 100644
index 0000000000..04a620767a
--- /dev/null
+++ b/zephyr/projects/nissa/joxer/keyboard.dts
@@ -0,0 +1,22 @@
+/* Copyright 2022 The ChromiumOS Authors
+ * Use of this source code is governed by a BSD-style license that can be
+ * found in the LICENSE file.
+ */
+
+/ {
+ kblight {
+ compatible = "cros-ec,kblight-pwm";
+ /*
+ * Use 324 Hz so that 32Khz clock source is used,
+ * which is not gated in power saving mode.
+ */
+ pwms = <&pwm0 0 PWM_HZ(324) PWM_POLARITY_NORMAL>;
+ };
+};
+
+&pwm0 {
+ status = "okay";
+ prescaler-cx = <PWM_PRESCALER_C4>;
+ pinctrl-0 = <&pwm0_gpa0_default>;
+ pinctrl-names = "default";
+};