Skip to contentSkip to conversation

MIPS: Ci20: Enable RTC driver

PATCH New Mathieu Malaterre 1 participant 2 messages Sep 5, 2017

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/2 MIPS: Ci20: Enable RTC driver

Update the Ci20's defconfig to enable the JZ4780's RTC driver.

---
 arch/mips/configs/ci20_defconfig | 2 ++
 1 file changed, 2 insertions(+)
arch/mips/configs/ci20_defconfig +2 -0
index 99719cc4c137..2571045e14df 100644
@@ -105,6 +105,8 @@ CONFIG_REGULATOR_FIXED_VOLTAGE=y
 # CONFIG_HID is not set
 # CONFIG_USB_SUPPORT is not set
 CONFIG_MMC=y
+CONFIG_RTC_CLASS=y
+CONFIG_RTC_DRV_JZ4740=y
 # CONFIG_IOMMU_SUPPORT is not set
 CONFIG_MEMORY=y
 # CONFIG_DNOTIFY is not set
Signature · 6 lines
2.11.0

--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
#1 lore raw

PATCH 2/2 MIPS: jz4780: DTS: Probe the jz4740-rtc driver from devicetree

The jz4740-rtc driver supports both jz4740 & jz4780, setup the compatible string to jz4780.

---
 arch/mips/boot/dts/ingenic/jz4780.dtsi | 11 +++++++++++
 1 file changed, 11 insertions(+)
arch/mips/boot/dts/ingenic/jz4780.dtsi +11 -0
index 02a752eb6a8e..c338c7d1cbca 100644
@@ -48,6 +48,17 @@
 		};
 	};
 
+	rtc_dev: rtc@10003000 {
+		compatible = "ingenic,jz4780-rtc";
+		reg = <0x10003000 0x4c>;
+
+		interrupt-parent = <&intc>;
+		interrupts = <32>;
+
+		clocks = <&cgu JZ4780_CLK_RTCLK>;
+		clock-names = "rtc";
+	};
+
 	pinctrl: pin-controller@10010000 {
 		compatible = "ingenic,jz4780-pinctrl";
 		reg = <0x10010000 0x600>;
Signature · 1 line
2.11.0