* [PATCH 1/2] MIPS: Ci20: Enable RTC driver
@ 2017-09-05 16:38 Mathieu Malaterre
2017-09-05 16:38 ` [PATCH 2/2] MIPS: jz4780: DTS: Probe the jz4740-rtc driver from devicetree Mathieu Malaterre
0 siblings, 1 reply; 2+ messages in thread
From: Mathieu Malaterre @ 2017-09-05 16:38 UTC (permalink / raw)
Cc: Mathieu Malaterre, Rob Herring, Mark Rutland, Ralf Baechle,
Linus Walleij, Paul Cercueil, Krzysztof Kozlowski, devicetree,
linux-mips, linux-kernel
Update the Ci20's defconfig to enable the JZ4780's RTC driver.
Signed-off-by: Mathieu Malaterre <malat@debian.org>
---
arch/mips/configs/ci20_defconfig | 2 ++
1 file changed, 2 insertions(+)
diff --git a/arch/mips/configs/ci20_defconfig b/arch/mips/configs/ci20_defconfig
index 99719cc4c137..2571045e14df 100644
--- a/arch/mips/configs/ci20_defconfig
+++ b/arch/mips/configs/ci20_defconfig
@@ -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
--
2.11.0
^ permalink raw reply [flat|nested] 2+ messages in thread
* [PATCH 2/2] MIPS: jz4780: DTS: Probe the jz4740-rtc driver from devicetree
2017-09-05 16:38 [PATCH 1/2] MIPS: Ci20: Enable RTC driver Mathieu Malaterre
@ 2017-09-05 16:38 ` Mathieu Malaterre
0 siblings, 0 replies; 2+ messages in thread
From: Mathieu Malaterre @ 2017-09-05 16:38 UTC (permalink / raw)
Cc: Mathieu Malaterre, Rob Herring, Mark Rutland, Ralf Baechle,
Linus Walleij, Paul Cercueil, Krzysztof Kozlowski, devicetree,
linux-mips, linux-kernel
The jz4740-rtc driver supports both jz4740 & jz4780, setup the compatible
string to jz4780.
Signed-off-by: Mathieu Malaterre <malat@debian.org>
---
arch/mips/boot/dts/ingenic/jz4780.dtsi | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/arch/mips/boot/dts/ingenic/jz4780.dtsi b/arch/mips/boot/dts/ingenic/jz4780.dtsi
index 02a752eb6a8e..c338c7d1cbca 100644
--- a/arch/mips/boot/dts/ingenic/jz4780.dtsi
+++ b/arch/mips/boot/dts/ingenic/jz4780.dtsi
@@ -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>;
--
2.11.0
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-09-05 16:39 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-09-05 16:38 [PATCH 1/2] MIPS: Ci20: Enable RTC driver Mathieu Malaterre
2017-09-05 16:38 ` [PATCH 2/2] MIPS: jz4780: DTS: Probe the jz4740-rtc driver from devicetree Mathieu Malaterre
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®