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, 24 Jul 2023 23:25:03 +0000 (08:25 +0900)
commitb73a487495e2ca5a9fff6be9eed0d7cc3abeb303
treef0307cee1d0ae02cfd73729294f60a2d904ebc47
parent45f2f4b1005d1480e6ed29043d15059d3e0997fc
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>
arch/riscv/boot/dts/starfive/jh7110.dtsi
drivers/rtc/Kconfig
drivers/rtc/Makefile
drivers/rtc/rtc-starfive.c [new file with mode: 0644]