diff options
author | Sam Hurst <shurst@google.com> | 2021-09-21 08:44:33 -0700 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-09-23 06:14:02 +0000 |
commit | 3151e266808c9cbff6a5274ad8ab993e5b7d09f0 (patch) | |
tree | adf1d3b81b1ae07eed0639f056808e7fcaed4b37 /zephyr/dts | |
parent | 5155d9c7bfc42aa3f53572e0389a8180d7f3a366 (diff) | |
download | chrome-ec-3151e266808c9cbff6a5274ad8ab993e5b7d09f0.tar.gz |
RTC: Zephyr IDT1337AG RTC driver
Zephyr IDT1337AG RTC driver
BRANCH=none
BUG=b:197743934
TEST=ectool rtcset 30000
ectool rtcget
Current time: 0x00007535 (30005)
ectool rtcsetalarm 10
after ~10 (measured with a timer) printed on
ec console: [160.248900 event set 0x0000000002000000]
I tested the alarm up to one hour.
Hibernation test:
rtc_alarm 10
hibernate
[339.906200 system hibernating]
*** Booting Zephyr OS build zephyr-v2.6.0-110-g862339fbeda5 ***
[Image: RO, herobrine_npcx9_v2.6.73690-ec:c87457
[Reset cause: power-on hibernate]
Signed-off-by: Sam Hurst <shurst@google.com>
Change-Id: If5b936af2555915582ca38fee751f57bb2b8d10f
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3173093
Reviewed-by: Wai-Hong Tam <waihong@google.com>
Reviewed-by: Keith Short <keithshort@chromium.org>
Diffstat (limited to 'zephyr/dts')
-rw-r--r-- | zephyr/dts/bindings/cros_rtc/renesas,rtc-idt1337ag.yaml | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/zephyr/dts/bindings/cros_rtc/renesas,rtc-idt1337ag.yaml b/zephyr/dts/bindings/cros_rtc/renesas,rtc-idt1337ag.yaml new file mode 100644 index 0000000000..a741a98aef --- /dev/null +++ b/zephyr/dts/bindings/cros_rtc/renesas,rtc-idt1337ag.yaml @@ -0,0 +1,17 @@ +# Copyright 2021 Google LLC +# SPDX-License-Identifier: Apache-2.0 + +description: RENESAS, Real-Time Clock + +compatible: "renesas,rtc-idt1337ag" + +include: [base.yaml, i2c-device.yaml] + +properties: + label: + required: true + + int-gpios: + type: phandle-array + required: true + description: Interrupt from RTC |