-
-
Notifications
You must be signed in to change notification settings - Fork 193
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add skeleton for RV-8263-C8 RTC, rename display driver to match it wi…
…th the vendor_type scheme of the other drivers
- Loading branch information
Showing
13 changed files
with
64 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
add_subdirectory(display) | ||
add_subdirectory(input) | ||
add_subdirectory(rtc) | ||
|
||
add_subdirectory_ifdef(CONFIG_SENSOR sensor) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
rsource "display/Kconfig" | ||
rsource "input/Kconfig" | ||
rsource "rtc/Kconfig" | ||
|
||
menu "Drivers" | ||
rsource "sensor/Kconfig" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
zephyr_sources(gc9a01.c) | ||
zephyr_sources(buydisplay_gc9a01.c) |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# Copyright (c) 2024, Daniel Kampert | ||
# | ||
# SPDX-License-Identifier: Apache-2.0 | ||
# | ||
|
||
add_subdirectory_ifdef(CONFIG_RV8263C8 rv8263c8) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
if RTC | ||
rsource "rv8263c8/Kconfig" | ||
endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# Copyright (c) 2024, Daniel Kampert | ||
# | ||
# SPDX-License-Identifier: Apache-2.0 | ||
# | ||
|
||
zephyr_sources(microcrystal_rv8263c8.c) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# RV-8263-C8 RTC configuration options. | ||
|
||
# Copyright (c) 240, Daniel Kampert | ||
# | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
menuconfig RV_8263_C8 | ||
bool "RV-8263-C8 RTC" | ||
depends on DT_HAS_MICRO_CRYSTAL_RV_8263_C8_ENABLED | ||
default y | ||
select I2C | ||
help | ||
Enable the driver for the RV-8263-C8 RTC. | ||
|
||
if RV_8263_C8 | ||
|
||
module = MICRO_CRYSTAL_RV_8263_C8 | ||
module-str = MICRO_CRYSTAL_RV_8263_C8 | ||
source "subsys/logging/Kconfig.template.log_config" | ||
|
||
endif |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
/* microcrystal_rv8263c8.h - Driver for Micro Crystal RV-8263-C8 RTC. */ | ||
|
||
/* | ||
* Copyright (c 2024, Daniel Kampert | ||
* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
#pragma once |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
description: | | ||
The RV-8263-C8 is a CMOS real-time clock/calendar module optimized for low power consumption. An Offset | ||
register makes it possible to compensate for the frequency deviation of the clock of 32.768 kHz | ||
compatible: "microcrystal,rv-8263-c8" | ||
|
||
include: [rtc-device.yaml, i2c-device.yaml] | ||
|
||
#properties: |