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 <clement.leger@bootlin.com> Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Link: https://lore.kernel.org/r/20220308133505.471601-1-clement.leger@bootlin.com
1 parent 870c54e commit 81c2f05

4 files changed

Lines changed: 379 additions & 0 deletions

File tree

MAINTAINERS

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14356,6 +14356,12 @@ L: op-tee@lists.trustedfirmware.org
1435614356
S: Maintained
1435714357
F: drivers/char/hw_random/optee-rng.c
1435814358

14359+
OP-TEE RTC DRIVER
14360+
M: Clément Léger <clement.leger@bootlin.com>
14361+
L: linux-rtc@vger.kernel.org
14362+
S: Maintained
14363+
F: drivers/rtc/rtc-optee.c
14364+
1435914365
OPA-VNIC DRIVER
1436014366
M: Dennis Dalessandro <dennis.dalessandro@cornelisnetworks.com>
1436114367
M: Mike Marciniszyn <mike.marciniszyn@cornelisnetworks.com>

drivers/rtc/Kconfig

Lines changed: 10 additions & 0 deletions
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

drivers/rtc/Makefile

Lines changed: 1 addition & 0 deletions
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)