rtc: starfive: Add support jh7100 rtc driver
authorSaminGuo <samin.guo@starfivetech.com>
Wed, 17 Nov 2021 07:55:45 +0000 (15:55 +0800)
committerJaehoon Chung <jh80.chung@samsung.com>
Mon, 19 Feb 2024 00:13:58 +0000 (09:13 +0900)
commit6e4a31f87c6c7b87dcde3391b15625bf9771d47e
tree2a74b61d1bd21215ca4a9d7b851de8fffc7bd22e
parentd2bc53715c79de325da73c9ab50d26133930f60b
rtc: starfive: Add support jh7100 rtc driver

Add support rtc driver and device tree of starfive JH7110. This
driver is from [1], and the imported patch list[2]. We modified
compatible and clock in the device-tree to fix kernel v6.1.

[1] https://github.com/starfive-tech/linux

[2] patch list from v5.15.y
  fc56ea25c7ca ziv.xu   rtc:starfive: add pm ops for rtc
  cc1a7edcd475 ziv.xu   rtc-starfive.c:add system pm for rtc
  d369d91bd926 Hal Feng rtc: starfive: Standardize property "compatible"
  3d1b30793d55 Hal Feng rtc: starfive: Fix time may be not updated when date updated
  d85e29ea7625 Hal Feng rtc: starfive: Fix command 'hwclock' can't work in rootfs
  f344adc8fb81 Hal Feng rtc: starfive: Change reset api
  8cf53d91eb5f Hal Feng rtc: starfive: Improve rtc driver
  66422888adb5 Hal Feng rtc: starfive: Improve coding style
  99ae7e93b897 Hal Feng rtc: starfive: Use stardand clock and reset apis for initialization
  8b570194e872 samin    rtc: starfive: Get the interrupt status using Completion.
  1fafc8d35f88 SaminGuo rtc: starfive-rtc: Add RTC support for StarFive JH7110.

Signed-off-by: SaminGuo <samin.guo@starfivetech.com>
Signed-off-by: Hal Feng <hal.feng@starfivetech.com>
Signed-off-by: ziv.xu <ziv.xu@starfive.com>
Change-Id: I4475e4314237bb8be670aefa40039c166107cb15
Signed-off-by: Hoegeun Kwon <hoegeun.kwon@samsung.com>
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
arch/riscv/boot/dts/starfive/jh7110.dtsi
drivers/rtc/Kconfig
drivers/rtc/Makefile
drivers/rtc/rtc-starfive.c [new file with mode: 0644]