Skip to contentSkip to conversation

dt-bindings: define vendor prefix for whwave, Inc.

PATCH New zoro 1 participant 3 messages Nov 12, 2018

Subsystems (3)
lore
Share & tools
lore

zoro

author maintainer
#0 lore raw

PATCH 1/3 dt-bindings: define vendor prefix for whwave, Inc.

Introduce vendor prefix for whwave, Inc.
for SD3078 rtc device.

---
 .../devicetree/bindings/vendor-prefixes.txt        |    1 +
 1 file changed, 1 insertion(+)
Documentation/devicetree/bindings/vendor-prefixes.txt +1 -0
index 4b1a2a8..7d2e9b01 100644
@@ -423,6 +423,7 @@ vot	Vision Optical Technology Co., Ltd.
 wd	Western Digital Corp.
 wetek	WeTek Electronics, limited.
 wexler	Wexler
+whwave	Shenzhen whwave Electronics crop
 wi2wi	Wi2Wi, Inc.
 winbond Winbond Electronics corp.
 winstar	Winstar Display Corp.
Signature · 1 line
1.7.9.5
author maintainer
#1 lore raw

PATCH 2/3 rtc: sd3078: new driver.

The sd3078 is a combination RTC and SRAM device with I2C interface.

---
 MAINTAINERS              |    6 ++
 drivers/rtc/Kconfig      |    9 ++
 drivers/rtc/Makefile     |    1 +
 drivers/rtc/rtc-sd3078.c |  232 ++++++++++++++++++++++++++++++++++++++++++++++
 4 files changed, 248 insertions(+)
 create mode 100644 drivers/rtc/rtc-sd3078.c
MAINTAINERS +6 -0
index 2f3eba4..002fcd7 100644
@@ -16125,6 +16125,12 @@ L:	[email protected]
 S:	Maintained
 F:	drivers/gpio/gpio-wcove.c
 
+WHWAVE RTC DRIVER
+M:	Zoro Li <[email protected]>
+L:	[email protected]
+S:	Maintained
+F:	drivers/rtc/rtc-sd3078.c
+
 WIIMOTE HID DRIVER
 M:	David Herrmann <[email protected]>
 L:	[email protected]
drivers/rtc/Kconfig +9 -0
index a819ef0..5b4b1b4 100644
@@ -646,6 +646,15 @@ config RTC_DRV_S5M
 	  This driver can also be built as a module. If so, the module
 	  will be called rtc-s5m.
 
+config RTC_DRV_SD3078
+    tristate "ZXW Crystal SD3078"
+    help
+      If you say yes here you get support for the ZXW Crystal
+      SD3078 RTC chips.
+
+      This driver can also be built as a module. If so, the module
+      will be called rtc-sd3078.
+
 endif # I2C
 
 comment "SPI RTC drivers"
drivers/rtc/Makefile +1 -0
index 290c173..f973bd0 100644
@@ -148,6 +148,7 @@ obj-$(CONFIG_RTC_DRV_S3C)	+= rtc-s3c.o
 obj-$(CONFIG_RTC_DRV_S5M)	+= rtc-s5m.o
 obj-$(CONFIG_RTC_DRV_SA1100)	+= rtc-sa1100.o
 obj-$(CONFIG_RTC_DRV_SC27XX)	+= rtc-sc27xx.o
+obj-$(CONFIG_RTC_DRV_SD3078)	+= rtc-sd3078.o
 obj-$(CONFIG_RTC_DRV_SH)	+= rtc-sh.o
 obj-$(CONFIG_RTC_DRV_SIRFSOC)	+= rtc-sirfsoc.o
 obj-$(CONFIG_RTC_DRV_SNVS)	+= rtc-snvs.o
drivers/rtc/rtc-sd3078.c new file +232 -0

232 lines not on this page · raw message

Signature · 1 line
1.7.9.5
author maintainer
#2 lore raw

PATCH 3/3 dt-bindings: rtc: sd3078: add device tree documentation

In reply to zoro

The devicetree documentation for the SD3078 device tree binding is added with a short example.

---
 .../devicetree/bindings/rtc/rtc-sd3078.txt         |   15 +++++++++++++++
 1 file changed, 15 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/rtc/rtc-sd3078.txt
Documentation/devicetree/bindings/rtc/rtc-sd3078.txt new file +15 -0
new file mode 100644
index 0000000..9b45c8e
@@ -0,0 +1,15 @@
+SD3078 Real Time Clock
+============================
+
+Required properties:
+- compatible: Should contain "whwave,sd3078".
+- reg: I2C address for chip.
+
+Example:
+
+sd3078: sd3078@32 {
+       compatible = "whwave,sd3078";
+       reg = <0x32>;
+};
+
+
Signature · 1 line
1.7.9.5