Skip to content

Commit 81c2f05

Browse files
clementlegeralexandrebelloni
authored andcommitted
rtc: optee: add RTC driver for OP-TEE RTC PTA
This drivers allows to communicate with a RTC PTA handled by OP-TEE [1]. This PTA allows to query RTC information, set/get time and set/get offset depending on the supported features. [1] OP-TEE/optee_os#5179 Signed-off-by: Clément Léger <[email protected]> Reviewed-by: Jens Wiklander <[email protected]> Signed-off-by: Alexandre Belloni <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 870c54e commit 81c2f05

File tree

4 files changed

+379
-0
lines changed

4 files changed

+379
-0
lines changed

Diff for: MAINTAINERS

+6
Original file line numberDiff line numberDiff line change
@@ -14356,6 +14356,12 @@ L: [email protected]
1435614356
S: Maintained
1435714357
F: drivers/char/hw_random/optee-rng.c
1435814358

14359+
OP-TEE RTC DRIVER
14360+
M: Clément Léger <[email protected]>
14361+
14362+
S: Maintained
14363+
F: drivers/rtc/rtc-optee.c
14364+
1435914365
OPA-VNIC DRIVER
1436014366
M: Dennis Dalessandro <[email protected]>
1436114367
M: Mike Marciniszyn <[email protected]>

Diff for: drivers/rtc/Kconfig

+10
Original file line numberDiff line numberDiff line change
@@ -1293,6 +1293,16 @@ config RTC_DRV_OPAL
12931293
This driver can also be built as a module. If so, the module
12941294
will be called rtc-opal.
12951295

1296+
config RTC_DRV_OPTEE
1297+
tristate "OP-TEE based RTC driver"
1298+
depends on OPTEE
1299+
help
1300+
Select this to get support for OP-TEE based RTC control on SoCs where
1301+
RTC are not accessible to the normal world (Linux).
1302+
1303+
This driver can also be built as a module. If so, the module
1304+
will be called rtc-optee.
1305+
12961306
config RTC_DRV_ZYNQMP
12971307
tristate "Xilinx Zynq Ultrascale+ MPSoC RTC"
12981308
depends on OF && HAS_IOMEM

Diff for: drivers/rtc/Makefile

+1
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@ obj-$(CONFIG_RTC_DRV_GAMECUBE) += rtc-gamecube.o
115115
obj-$(CONFIG_RTC_DRV_NTXEC) += rtc-ntxec.o
116116
obj-$(CONFIG_RTC_DRV_OMAP) += rtc-omap.o
117117
obj-$(CONFIG_RTC_DRV_OPAL) += rtc-opal.o
118+
obj-$(CONFIG_RTC_DRV_OPTEE) += rtc-optee.o
118119
obj-$(CONFIG_RTC_DRV_PALMAS) += rtc-palmas.o
119120
obj-$(CONFIG_RTC_DRV_PCAP) += rtc-pcap.o
120121
obj-$(CONFIG_RTC_DRV_PCF2123) += rtc-pcf2123.o

0 commit comments

Comments
 (0)