From 3151e266808c9cbff6a5274ad8ab993e5b7d09f0 Mon Sep 17 00:00:00 2001 From: Sam Hurst Date: Tue, 21 Sep 2021 08:44:33 -0700 Subject: 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 Change-Id: If5b936af2555915582ca38fee751f57bb2b8d10f Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3173093 Reviewed-by: Wai-Hong Tam Reviewed-by: Keith Short --- zephyr/dts/bindings/cros_rtc/renesas,rtc-idt1337ag.yaml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 zephyr/dts/bindings/cros_rtc/renesas,rtc-idt1337ag.yaml (limited to 'zephyr/dts') 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 -- cgit v1.2.1