* [PATCH V2] ARM: davinci: da850: add RTC DT entries
@ 2013-01-28 7:47 Mrugesh Katepallewar
2013-01-28 16:02 ` Sekhar Nori
0 siblings, 1 reply; 4+ messages in thread
From: Mrugesh Katepallewar @ 2013-01-28 7:47 UTC (permalink / raw)
To: devicetree-discuss, davinci-linux-open-source, linux-doc,
linux-arm-kernel, linux-kernel
Cc: grant.likely, rob.herring, rob, nsekhar, hs
Add RTC DT entries in da850 dts file.
Signed-off-by: Mrugesh Katepallewar <mrugesh.mk@ti.com>
---
Applies on top of v3.8-rc4 of linus tree.
This patch is depending on
"ARM: davinci: da850: add interrupt-parent property in soc node"
https://patchwork.kernel.org/patch/2044101/
Tested on da850-evm device.
Test Procedure:
date 2013.01.28-10:00:00 (usage: date[YYYY.]MM.DD-hh:mm[:ss])
hwclock -w
reset board and check system time.
Changes Since V1:
Remove interrupt-parent property from RTC node.
Change RTC node name in dts and dtsi file.
:100644 100644 37dc5a3... af4b7cc... M arch/arm/boot/dts/da850-evm.dts
:100644 100644 640ab75... 90be701... M arch/arm/boot/dts/da850.dtsi
arch/arm/boot/dts/da850-evm.dts | 3 +++
arch/arm/boot/dts/da850.dtsi | 7 +++++++
2 files changed, 10 insertions(+)
diff --git a/arch/arm/boot/dts/da850-evm.dts b/arch/arm/boot/dts/da850-evm.dts
index 37dc5a3..af4b7cc 100644
--- a/arch/arm/boot/dts/da850-evm.dts
+++ b/arch/arm/boot/dts/da850-evm.dts
@@ -24,5 +24,8 @@
serial2: serial@1d0d000 {
status = "okay";
};
+ rtc0: rtc@1c23000 {
+ status = "okay";
+ };
};
};
diff --git a/arch/arm/boot/dts/da850.dtsi b/arch/arm/boot/dts/da850.dtsi
index 640ab75..90be701 100644
--- a/arch/arm/boot/dts/da850.dtsi
+++ b/arch/arm/boot/dts/da850.dtsi
@@ -56,5 +56,12 @@
interrupt-parent = <&intc>;
status = "disabled";
};
+ rtc0: rtc@1c23000 {
+ compatible = "ti,da830-rtc";
+ reg = <0x23000 0x1000>;
+ interrupts = <19
+ 19>;
+ status = "disabled";
+ };
};
};
--
1.7.9.5
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH V2] ARM: davinci: da850: add RTC DT entries
2013-01-28 7:47 [PATCH V2] ARM: davinci: da850: add RTC DT entries Mrugesh Katepallewar
@ 2013-01-28 16:02 ` Sekhar Nori
2013-01-29 7:35 ` Katepallewar, Mrugesh
0 siblings, 1 reply; 4+ messages in thread
From: Sekhar Nori @ 2013-01-28 16:02 UTC (permalink / raw)
To: Mrugesh Katepallewar
Cc: devicetree-discuss, davinci-linux-open-source, linux-doc,
linux-arm-kernel, linux-kernel, grant.likely, rob.herring, rob,
hs
Hi Mrugesh,
On 1/28/2013 1:17 PM, Mrugesh Katepallewar wrote:
> Add RTC DT entries in da850 dts file.
>
> Signed-off-by: Mrugesh Katepallewar <mrugesh.mk@ti.com>
> ---
> Applies on top of v3.8-rc4 of linus tree.
>
> This patch is depending on
> "ARM: davinci: da850: add interrupt-parent property in soc node"
> https://patchwork.kernel.org/patch/2044101/
> Tested on da850-evm device.
>
> Test Procedure:
> date 2013.01.28-10:00:00 (usage: date[YYYY.]MM.DD-hh:mm[:ss])
> hwclock -w
> reset board and check system time.
Queuing this for v3.9. The testing information above is useful and
should be part of the changelog. I moved it there while committing.
It will be nice to check the alarm functionality as well. Can you check
that and let me know that works as well?
Thanks,
Sekhar
^ permalink raw reply [flat|nested] 4+ messages in thread
* RE: [PATCH V2] ARM: davinci: da850: add RTC DT entries
2013-01-28 16:02 ` Sekhar Nori
@ 2013-01-29 7:35 ` Katepallewar, Mrugesh
2013-01-29 8:01 ` Sekhar Nori
0 siblings, 1 reply; 4+ messages in thread
From: Katepallewar, Mrugesh @ 2013-01-29 7:35 UTC (permalink / raw)
To: Nori, Sekhar
Cc: devicetree-discuss@lists.ozlabs.org,
davinci-linux-open-source@linux.davincidsp.com,
linux-doc@vger.kernel.org, linux-arm-kernel@lists.infradead.org,
linux-kernel@vger.kernel.org, grant.likely@secretlab.ca,
rob.herring@calxeda.com, rob@landley.net, hs@denx.de
On Mon, Jan 28, 2013 at 21:32:13, Nori, Sekhar wrote:
> Hi Mrugesh,
>
> On 1/28/2013 1:17 PM, Mrugesh Katepallewar wrote:
> > Add RTC DT entries in da850 dts file.
> >
> > Signed-off-by: Mrugesh Katepallewar <mrugesh.mk@ti.com>
> > ---
> > Applies on top of v3.8-rc4 of linus tree.
> >
> > This patch is depending on
> > "ARM: davinci: da850: add interrupt-parent property in soc node"
> > https://patchwork.kernel.org/patch/2044101/
>
> > Tested on da850-evm device.
> >
> > Test Procedure:
> > date 2013.01.28-10:00:00 (usage: date[YYYY.]MM.DD-hh:mm[:ss]) hwclock
> > -w reset board and check system time.
>
> Queuing this for v3.9. The testing information above is useful and should be part of the changelog. I moved it there while committing.
>
> It will be nice to check the alarm functionality as well. Can you check that and let me know that works as well?
I tried to test RTC alarm using "rtcwake" command, however it is not working and returning following error
"rtcwake: /dev/rtc0 not enabled for wakeup events"
This is coming because we have not registered RTC device as a wakeup source yet.
For checking RTC alarm interrupt, I developed one simple program which opens RTC device, set alarm and exits.
Then by entering "cat /proc/interrupts" checked RTC interrupt count.
Using above test it confirms that RTC alarm functionality is working fine.
>
> Thanks,
> Sekhar
>
Regards,
Mrugesh
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH V2] ARM: davinci: da850: add RTC DT entries
2013-01-29 7:35 ` Katepallewar, Mrugesh
@ 2013-01-29 8:01 ` Sekhar Nori
0 siblings, 0 replies; 4+ messages in thread
From: Sekhar Nori @ 2013-01-29 8:01 UTC (permalink / raw)
To: Katepallewar, Mrugesh
Cc: devicetree-discuss@lists.ozlabs.org,
davinci-linux-open-source@linux.davincidsp.com,
linux-doc@vger.kernel.org, linux-arm-kernel@lists.infradead.org,
linux-kernel@vger.kernel.org, grant.likely@secretlab.ca,
rob.herring@calxeda.com, rob@landley.net, hs@denx.de
On 1/29/2013 1:05 PM, Katepallewar, Mrugesh wrote:
> On Mon, Jan 28, 2013 at 21:32:13, Nori, Sekhar wrote:
>> Hi Mrugesh,
>>
>> On 1/28/2013 1:17 PM, Mrugesh Katepallewar wrote:
>>> Add RTC DT entries in da850 dts file.
>>>
>>> Signed-off-by: Mrugesh Katepallewar <mrugesh.mk@ti.com>
>>> ---
>>> Applies on top of v3.8-rc4 of linus tree.
>>>
>>> This patch is depending on
>>> "ARM: davinci: da850: add interrupt-parent property in soc node"
>>> https://patchwork.kernel.org/patch/2044101/
>>
>>> Tested on da850-evm device.
>>>
>>> Test Procedure:
>>> date 2013.01.28-10:00:00 (usage: date[YYYY.]MM.DD-hh:mm[:ss]) hwclock
>>> -w reset board and check system time.
>>
>> Queuing this for v3.9. The testing information above is useful and should be part of the changelog. I moved it there while committing.
>>
>> It will be nice to check the alarm functionality as well. Can you check that and let me know that works as well?
>
> I tried to test RTC alarm using "rtcwake" command, however it is not working and returning following error
> "rtcwake: /dev/rtc0 not enabled for wakeup events"
> This is coming because we have not registered RTC device as a wakeup source yet.
rtcwake is too much to use if the purpose is just to test the alarm
functionality.
> For checking RTC alarm interrupt, I developed one simple program which opens RTC device, set alarm and exits.
> Then by entering "cat /proc/interrupts" checked RTC interrupt count.
No need of writing your own. Simply use the one in Documentation/rtc.txt
> Using above test it confirms that RTC alarm functionality is working fine.
Okay. Thanks for confirming.
Regards,
Sekhar
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2013-01-29 8:01 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-01-28 7:47 [PATCH V2] ARM: davinci: da850: add RTC DT entries Mrugesh Katepallewar
2013-01-28 16:02 ` Sekhar Nori
2013-01-29 7:35 ` Katepallewar, Mrugesh
2013-01-29 8:01 ` Sekhar Nori
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).