devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v4 0/3] Add support for Nuvoton ma35d1 rtc controller
@ 2023-09-25  7:02 Jacky Huang
  2023-09-25  7:02 ` [PATCH v4 1/3] dt-bindings: rtc: Add Nuvoton ma35d1 rtc Jacky Huang
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Jacky Huang @ 2023-09-25  7:02 UTC (permalink / raw)
  To: a.zummo, alexandre.belloni, robh+dt, krzysztof.kozlowski+dt,
	conor+dt
  Cc: linux-rtc, devicetree, linux-kernel, linux-arm-kernel, mjchen,
	schung, Jacky Huang

From: Jacky Huang <ychuang3@nuvoton.com>

This patch series adds the rtc driver for the nuvoton ma35d1 ARMv8 SoC.
It includes DT binding documentation, the ma35d1 rtc driver, and device
tree updates.

The ma35d1 rtc controller provides real-time and calendar messaging
capabilities. It supports programmable time tick and alarm match
interrupts. The time and calendar messages are expressed in BCD format.

This rtc driver has been tested on the ma35d1 som board with Linux 6.5-rc2.
It passed the rtctest and rtc-range 2000 ~ 2099.

v4:
  This version is actually a resend of v3.
  - Updated drivers/rtc/Kconfig due to this file was modified in the
    recent mainline update.

v3:
  - Update ma35d1 rtc driver
    - Renamed "TICKIEN" to "UIEN" as their functional equivalence.
    - Eliminated the usage of 'struct ma35_bcd_time' and associated
      ma35d1 bcd functions; instead, opted to directly utilize the
      "bin2bcd()" function
    - Employed "ma35d1_alarm_irq_enable()" to accommodate the
      "alrm->enabled" feature
    - Revised the probe sequence and implemented a check to verify if
      the rtc was initialized
    - Other minor fixes

v2:
  - Updated nuvoton,ma35d1-rtc.yaml
    - Modified patch title and fixed typo
    - Added reference to rtc.yaml
    - Used unevaluatedProperties instead of additionalProperties
  - Modified rtc driver
    - Used dev_err_probe()
    - Removed ma35d1_rtc_remove()
    - Made other minor fixes

Jacky Huang (3):
  dt-bindings: rtc: Add Nuvoton ma35d1 rtc
  arm64: dts: nuvoton: Add rtc for ma35d1
  rtc: Add driver for Nuvoton ma35d1 rtc controller

 .../bindings/rtc/nuvoton,ma35d1-rtc.yaml      |  48 +++
 .../boot/dts/nuvoton/ma35d1-iot-512m.dts      |   4 +
 .../boot/dts/nuvoton/ma35d1-som-256m.dts      |   4 +
 arch/arm64/boot/dts/nuvoton/ma35d1.dtsi       |   8 +
 drivers/rtc/Kconfig                           |  11 +
 drivers/rtc/Makefile                          |   1 +
 drivers/rtc/rtc-ma35d1.c                      | 324 ++++++++++++++++++
 7 files changed, 400 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/rtc/nuvoton,ma35d1-rtc.yaml
 create mode 100644 drivers/rtc/rtc-ma35d1.c

-- 
2.34.1


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2023-12-17 22:44 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-09-25  7:02 [PATCH v4 0/3] Add support for Nuvoton ma35d1 rtc controller Jacky Huang
2023-09-25  7:02 ` [PATCH v4 1/3] dt-bindings: rtc: Add Nuvoton ma35d1 rtc Jacky Huang
2023-09-25  7:02 ` [PATCH v4 2/3] arm64: dts: nuvoton: Add rtc for ma35d1 Jacky Huang
2023-09-25  7:02 ` [PATCH v4 3/3] rtc: Add driver for Nuvoton ma35d1 rtc controller Jacky Huang
2023-12-17 22:43 ` (subset) [PATCH v4 0/3] Add support " Alexandre Belloni

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).