* [PATCH 0/2] ARM: dts: am57xx-beagle-x15: Fixes for RTC
@ 2015-04-08 23:56 Nishanth Menon
2015-04-08 23:56 ` [PATCH 1/2] ARM: dts: am57xx-beagle-x15: Fix IRQ type for mcp7941x Nishanth Menon
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Nishanth Menon @ 2015-04-08 23:56 UTC (permalink / raw)
To: Tony Lindgren, Benoît Cousson
Cc: Grygorii Strashko, linux-kernel, linux-arm-kernel, devicetree,
linux-omap, Nishanth Menon
Couple of fixes for MCP79410 RTC on BeagleBoard-X15 platform. This is
not urgent enough for 4.0 material, but will be good to have it on one
of 4.1 rcs. tested on next-20150407:
http://pastebin.ubuntu.com/10777733/
(NOTE: I believe DRA7 rtc still needs reset driver to be done before it can be fully functional).
Grygorii Strashko (1):
ARM: dts: am57xx-beagle-x15: Fix IRQ type for mcp7941x
Nishanth Menon (1):
ARM: dts: am57xx-beagle-x15: Fix RTC aliases
arch/arm/boot/dts/am57xx-beagle-x15.dts | 3 ++-
arch/arm/boot/dts/dra7.dtsi | 2 +-
2 files changed, 3 insertions(+), 2 deletions(-)
Regards,
Nishanth Menon
--
1.7.9.5
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH 1/2] ARM: dts: am57xx-beagle-x15: Fix IRQ type for mcp7941x
2015-04-08 23:56 [PATCH 0/2] ARM: dts: am57xx-beagle-x15: Fixes for RTC Nishanth Menon
@ 2015-04-08 23:56 ` Nishanth Menon
2015-04-08 23:56 ` [PATCH 2/2] ARM: dts: am57xx-beagle-x15: Fix RTC aliases Nishanth Menon
[not found] ` <1428537387-18776-1-git-send-email-nm-l0cyMroinI0@public.gmane.org>
2 siblings, 0 replies; 4+ messages in thread
From: Nishanth Menon @ 2015-04-08 23:56 UTC (permalink / raw)
To: Tony Lindgren, Benoît Cousson
Cc: Grygorii Strashko, linux-kernel, linux-arm-kernel, devicetree,
linux-omap, Nishanth Menon
From: Grygorii Strashko <Grygorii.Strashko@linaro.org>
The interrupt polarity provided in devicetree is used to configure
the interrupt controller(ARM GIC), however, it seems that we have an
inverter at the GIC boundary inside AM57xx which inverts the signal
input from sys_irq external interrupt source.
Further, as per GIC distributor TRM,
http://infocenter.arm.com/help/topic/com.arm.doc.ddi0438d/BGBHIACJ.html#BABJFCFB
ARM GIC distributor does not support IRQ trigger type
IRQ_TYPE_LEVEL_LOW, and only rising or level high signals.
However, for some reason, the current configuration(which gets ignored
by GIC driver) functions on some platforms, however, on few platforms
results in infinite interrupts hogging the system down.
Switch over to rising edge for GIC configuration which is also aligned
with trigger point from the RTC chip and the internal inversion.
Fixes: 5a0f93c6576a ("ARM: dts: Add am57xx-beagle-x15")
Signed-off-by: Grygorii Strashko <Grygorii.Strashko@linaro.org>
Signed-off-by: Nishanth Menon <nm@ti.com>
---
arch/arm/boot/dts/am57xx-beagle-x15.dts | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/arm/boot/dts/am57xx-beagle-x15.dts b/arch/arm/boot/dts/am57xx-beagle-x15.dts
index fe141c47d647..57279e3b439b 100644
--- a/arch/arm/boot/dts/am57xx-beagle-x15.dts
+++ b/arch/arm/boot/dts/am57xx-beagle-x15.dts
@@ -455,7 +455,7 @@
mcp_rtc: rtc@6f {
compatible = "microchip,mcp7941x";
reg = <0x6f>;
- interrupts = <GIC_SPI 2 IRQ_TYPE_LEVEL_LOW>; /* IRQ_SYS_1N */
+ interrupts = <GIC_SPI 2 IRQ_TYPE_EDGE_RISING>; /* IRQ_SYS_1N */
pinctrl-names = "default";
pinctrl-0 = <&mcp79410_pins_default>;
--
1.7.9.5
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH 2/2] ARM: dts: am57xx-beagle-x15: Fix RTC aliases
2015-04-08 23:56 [PATCH 0/2] ARM: dts: am57xx-beagle-x15: Fixes for RTC Nishanth Menon
2015-04-08 23:56 ` [PATCH 1/2] ARM: dts: am57xx-beagle-x15: Fix IRQ type for mcp7941x Nishanth Menon
@ 2015-04-08 23:56 ` Nishanth Menon
[not found] ` <1428537387-18776-1-git-send-email-nm-l0cyMroinI0@public.gmane.org>
2 siblings, 0 replies; 4+ messages in thread
From: Nishanth Menon @ 2015-04-08 23:56 UTC (permalink / raw)
To: Tony Lindgren, Benoît Cousson
Cc: Grygorii Strashko, linux-kernel, linux-arm-kernel, devicetree,
linux-omap, Nishanth Menon
With commit bc078316d86c ("ARM: dts: DRA7: Add node for RTC"), we now
have AM57xx RTC register itself as alias 0 even before DS1307 or TPS
rtc drivers are loaded up. However, since neither TPS, nor AM57xx RTC
are capable of being backedup by battery, we would like to maintain
the "primary" rtc as mcp79410 rtc device.
This also generates the following warnings in the bootlog highlighting
the issue:
[ 5.895445] rtc-ds1307 2-006f: /aliases ID 0 not available
...
[ 6.476285] palmas-rtc 48070000.i2c:tps659038@58:tps659038_rtc: /aliases ID 1 not available
So, add proper aliases to ensure that RTC order is always consistent
to userspace immaterial of probe order.
Signed-off-by: Nishanth Menon <nm@ti.com>
---
arch/arm/boot/dts/am57xx-beagle-x15.dts | 1 +
arch/arm/boot/dts/dra7.dtsi | 2 +-
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/arch/arm/boot/dts/am57xx-beagle-x15.dts b/arch/arm/boot/dts/am57xx-beagle-x15.dts
index 57279e3b439b..6837f44db534 100644
--- a/arch/arm/boot/dts/am57xx-beagle-x15.dts
+++ b/arch/arm/boot/dts/am57xx-beagle-x15.dts
@@ -18,6 +18,7 @@
aliases {
rtc0 = &mcp_rtc;
rtc1 = &tps659038_rtc;
+ rtc2 = &rtc;
};
memory {
diff --git a/arch/arm/boot/dts/dra7.dtsi b/arch/arm/boot/dts/dra7.dtsi
index 5332b57b4950..0f73fea9f5c3 100644
--- a/arch/arm/boot/dts/dra7.dtsi
+++ b/arch/arm/boot/dts/dra7.dtsi
@@ -1203,7 +1203,7 @@
status = "disabled";
};
- rtc@48838000 {
+ rtc: rtc@48838000 {
compatible = "ti,am3352-rtc";
reg = <0x48838000 0x100>;
interrupts = <GIC_SPI 217 IRQ_TYPE_LEVEL_HIGH>,
--
1.7.9.5
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH 0/2] ARM: dts: am57xx-beagle-x15: Fixes for RTC
[not found] ` <1428537387-18776-1-git-send-email-nm-l0cyMroinI0@public.gmane.org>
@ 2015-05-04 16:17 ` Tony Lindgren
0 siblings, 0 replies; 4+ messages in thread
From: Tony Lindgren @ 2015-05-04 16:17 UTC (permalink / raw)
To: Nishanth Menon
Cc: Benoît Cousson, Grygorii Strashko,
linux-kernel-u79uwXL29TY76Z2rM5mHXA,
linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r,
devicetree-u79uwXL29TY76Z2rM5mHXA,
linux-omap-u79uwXL29TY76Z2rM5mHXA
* Nishanth Menon <nm-l0cyMroinI0@public.gmane.org> [150408 16:57]:
> Couple of fixes for MCP79410 RTC on BeagleBoard-X15 platform. This is
> not urgent enough for 4.0 material, but will be good to have it on one
> of 4.1 rcs. tested on next-20150407:
> http://pastebin.ubuntu.com/10777733/
> (NOTE: I believe DRA7 rtc still needs reset driver to be done before it can be fully functional).
>
> Grygorii Strashko (1):
> ARM: dts: am57xx-beagle-x15: Fix IRQ type for mcp7941x
>
> Nishanth Menon (1):
> ARM: dts: am57xx-beagle-x15: Fix RTC aliases
>
> arch/arm/boot/dts/am57xx-beagle-x15.dts | 3 ++-
> arch/arm/boot/dts/dra7.dtsi | 2 +-
> 2 files changed, 3 insertions(+), 2 deletions(-)
Applying both into omap-for-v4.1/fixes thanks.
Tony
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2015-05-04 16:17 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-04-08 23:56 [PATCH 0/2] ARM: dts: am57xx-beagle-x15: Fixes for RTC Nishanth Menon
2015-04-08 23:56 ` [PATCH 1/2] ARM: dts: am57xx-beagle-x15: Fix IRQ type for mcp7941x Nishanth Menon
2015-04-08 23:56 ` [PATCH 2/2] ARM: dts: am57xx-beagle-x15: Fix RTC aliases Nishanth Menon
[not found] ` <1428537387-18776-1-git-send-email-nm-l0cyMroinI0@public.gmane.org>
2015-05-04 16:17 ` [PATCH 0/2] ARM: dts: am57xx-beagle-x15: Fixes for RTC Tony Lindgren
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).