devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Nishanth Menon <nm-l0cyMroinI0@public.gmane.org>
To: Keerthy <a0393675-l0cyMroinI0@public.gmane.org>,
	Nishanth Menon
	<menon.nishanth-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>,
	Tony Lindgren <tony-4v6yS6AI5VpBDgjK7y7TUQ@public.gmane.org>
Cc: "H. Nikolaus Schaller"
	<hns-xXXSsgcRVICgSpxsJD1C4w@public.gmane.org>,
	"Grygorii Strashko"
	<grygorii.strashko-l0cyMroinI0@public.gmane.org>,
	"Laxman Dewangan"
	<ldewangan-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>,
	"Benoît Cousson"
	<bcousson-rdvid1DuHRBWk0Htik3J/w@public.gmane.org>,
	"Rob Herring" <robh+dt-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>,
	"Pawel Moll" <pawel.moll-5wv7dgnIgG8@public.gmane.org>,
	"Mark Rutland" <mark.rutland-5wv7dgnIgG8@public.gmane.org>,
	"Ian Campbell"
	<ijc+devicetree-KcIKpvwj1kUDXYZnReoRVg@public.gmane.org>,
	"Kumar Gala" <galak-sgV2jX0FEOL9JmXXK+q4OQ@public.gmane.org>,
	"Russell King" <linux-lFZ/pmaqli7XmaaqVzeoHQ@public.gmane.org>,
	linux-omap <linux-omap-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>,
	devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
	LKML <linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>,
	"Marek Belisko" <marek-xXXSsgcRVICgSpxsJD1C4w@public.gmane.org>,
	"Gražvydas Ignotas"
	<notasas-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>,
	Keerthy <j-keerthy-l0cyMroinI0@public.gmane.org>
Subject: Re: [PATCH 1/3] ARM: dts: omap5-board-common: enable rtc and charging of backup battery
Date: Thu, 14 Jan 2016 11:39:24 -0600	[thread overview]
Message-ID: <5697DD4C.8010701@ti.com> (raw)
In-Reply-To: <56977211.8070206-l0cyMroinI0@public.gmane.org>

On 01/14/2016 04:01 AM, Keerthy wrote:
> 
> 
> On Thursday 14 January 2016 04:02 AM, Nishanth Menon wrote:
>> On 01/13/2016 01:40 PM, Tony Lindgren wrote:
>>
>>> Anyways, considering what's been discussed, after the minimal RTC fix
>>> we could also add code to allow the TWL driver optionally configure the
>>> GPIO. This way the TWL driver could also check the GPIO state in case
>>> some out-of-our-control mystery software goes tweak the msecure pin
>>> state.
>>
>> I dont even know how that will work:
>> If you are using MSECURE as it is intended to be, then you'd mux it to
>> msecure, which means that GPIO read is just a waste of time - you dont
>> even mux it to external world. Now, some SoCs like DRA7 has input lines
>> always connected. even assuming this is for such a case:
>> a) when you are running linux, you are already in nonsecure - it needs
>> no read of MSECURE GPIO to figure that out.
>> b)  when you are in secure world, Linux wont be running either.
>>
>> Reading from GPIO is just misguided in my opinion. firewalls are not
>> reconfigured, and muxes are usually done a single time.
>>
>>   Or the RTC driver could just check that the bits really change
>>> after= writing them. Then we would at least know things are not working
>>> right for the TWL related RTC drivers.
>>
>> that is reasonable to check, but just a overhead - anyways, just
>> isolated to palmas-rtc.. fail reason maynot always be issues with
>> MSECURE mux.. it could be very well be 32k clk fail etc.. but yeah -
>> that might give a hint that there is an issue..
>>
> 
> IIRC without configuring the mux mode of gpio234 to msecure mode we were 
> unable to write to the rtc registers. Hence configured it one time at boot.
> 
Looks like you missed the code section that shows that the u-boot
configuration was overridden by kernel as GPIO for the very same reason.!

http://git.omapzoom.org/?p=kernel/omap.git;a=blob;f=arch/arm/mach-omap2/board-omap5panda.c;h=6113bc0e04625a1bd794b3f169581c67ad3b42ff;hb=refs/heads/p-linux-omap-3.4#l816

-- 
Regards,
Nishanth Menon
--
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

  parent reply	other threads:[~2016-01-14 17:39 UTC|newest]

Thread overview: 53+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-01-05 12:01 [PATCH 0/3] Enable twl603x-GPADC for some OMAP4/OMAP5 boards and Palmas-RTC for OMAP5 H. Nikolaus Schaller
     [not found] ` <cover.1451995297.git.hns-xXXSsgcRVICgSpxsJD1C4w@public.gmane.org>
2016-01-05 12:01   ` [PATCH 1/3] ARM: dts: omap5-board-common: enable rtc and charging of backup battery H. Nikolaus Schaller
2016-01-05 23:40     ` Nishanth Menon
     [not found]       ` <568C5451.8070709-l0cyMroinI0@public.gmane.org>
2016-01-06  1:00         ` Tony Lindgren
2016-01-06  8:11           ` H. Nikolaus Schaller
     [not found]             ` <8FE6954B-6411-4593-9CE5-717A469A6AA8-xXXSsgcRVICgSpxsJD1C4w@public.gmane.org>
2016-01-06 16:41               ` Tony Lindgren
2016-01-06 16:47                 ` H. Nikolaus Schaller
     [not found]                   ` <2AC46952-3758-458A-B0A5-1794C207BD4C-xXXSsgcRVICgSpxsJD1C4w@public.gmane.org>
2016-01-06 17:09                     ` Tony Lindgren
2016-01-08 17:49                       ` H. Nikolaus Schaller
2016-01-08 18:15                         ` Tony Lindgren
     [not found]                           ` <20160108181551.GX12777-4v6yS6AI5VpBDgjK7y7TUQ@public.gmane.org>
2016-01-08 18:32                             ` H. Nikolaus Schaller
2016-01-08 19:04                               ` Tony Lindgren
2016-01-08 19:31                                 ` H. Nikolaus Schaller
2016-01-11 20:24                                   ` Tony Lindgren
     [not found]                                     ` <20160111202421.GA12777-4v6yS6AI5VpBDgjK7y7TUQ@public.gmane.org>
2016-01-12  0:09                                       ` Tony Lindgren
     [not found]                                         ` <20160112000917.GC12777-4v6yS6AI5VpBDgjK7y7TUQ@public.gmane.org>
2016-01-12 13:30                                           ` H. Nikolaus Schaller
2016-01-12 21:27                                             ` H. Nikolaus Schaller
     [not found]                                               ` <E4C8F6CA-37C1-406F-9804-46055253BED9-xXXSsgcRVICgSpxsJD1C4w@public.gmane.org>
2016-01-12 21:37                                                 ` Nishanth Menon
     [not found]                                                   ` <5695722B.90202-l0cyMroinI0@public.gmane.org>
2016-01-12 22:13                                                     ` Tony Lindgren
2016-01-13 10:25                                               ` H. Nikolaus Schaller
2016-01-13 14:55                                                 ` Nishanth Menon
     [not found]                                                   ` <56966558.1070608-l0cyMroinI0@public.gmane.org>
2016-01-13 15:14                                                     ` Grygorii Strashko
2016-01-13 16:48                                                       ` Tony Lindgren
2016-01-13 17:12                                                         ` Grygorii Strashko
2016-01-13 17:38                                                           ` Nishanth Menon
2016-01-13 18:00                                                             ` H. Nikolaus Schaller
2016-01-13 18:23                                                               ` Nishanth Menon
2016-01-13 17:29                                                         ` Nishanth Menon
2016-01-13 18:00                                                           ` Tony Lindgren
     [not found]                                                             ` <20160113180006.GJ12777-4v6yS6AI5VpBDgjK7y7TUQ@public.gmane.org>
2016-01-13 18:08                                                               ` H. Nikolaus Schaller
     [not found]                                                                 ` <2B99611A-5D2E-4D17-A17D-0150516109FD-xXXSsgcRVICgSpxsJD1C4w@public.gmane.org>
2016-01-13 18:31                                                                   ` Nishanth Menon
     [not found]                                                                     ` <56969800.5010206-l0cyMroinI0@public.gmane.org>
2016-01-13 18:44                                                                       ` H. Nikolaus Schaller
2016-01-13 19:05                                                                         ` Nishanth Menon
2016-01-13 19:22                                                                           ` Grygorii Strashko
2016-01-13 19:40                                                                           ` Tony Lindgren
2016-01-13 22:32                                                                             ` Nishanth Menon
2016-01-14 10:01                                                                               ` Keerthy
     [not found]                                                                                 ` <56977211.8070206-l0cyMroinI0@public.gmane.org>
2016-01-14 17:39                                                                                   ` Nishanth Menon [this message]
     [not found]                                                                                     ` <5697DD4C.8010701-l0cyMroinI0@public.gmane.org>
2016-01-14 18:35                                                                                       ` Tony Lindgren
2016-01-15 14:33                                                                                         ` H. Nikolaus Schaller
2016-01-15 15:47                                                                                           ` Tony Lindgren
     [not found]                                                                                             ` <20160115154645.GA3904-4v6yS6AI5VpBDgjK7y7TUQ@public.gmane.org>
2016-01-15 17:10                                                                                               ` Tony Lindgren
2016-01-15 18:11                                                                                             ` H. Nikolaus Schaller
2016-08-25  2:43                                                                           ` Matthijs van Duin
2016-01-13 18:18                                                             ` Nishanth Menon
2016-01-06  7:42       ` H. Nikolaus Schaller
     [not found]         ` <B2CEA92E-5F60-43C1-8265-F7C66FBD90D6-xXXSsgcRVICgSpxsJD1C4w@public.gmane.org>
2016-01-06  8:13           ` Laxman Dewangan
2016-01-06 14:36             ` Nishanth Menon
     [not found]               ` <568D2657.6050400-l0cyMroinI0@public.gmane.org>
2016-01-06 19:34                 ` Rob Herring
     [not found]                   ` <CAL_Jsq+rfU0EuoRi1Jkq2QYQjK0_LOW8PALatYccpbJiPPZh-g-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2016-01-06 19:53                     ` Nishanth Menon
2016-01-08 19:33                       ` Rob Herring
2016-01-05 12:01   ` [PATCH 2/3] ARM: dts: omap5-board-common: enable iio gpadc for Palmas H. Nikolaus Schaller
2016-01-05 12:01   ` [PATCH 3/3] ARM: dts: twl6030: add gpadc H. Nikolaus Schaller

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5697DD4C.8010701@ti.com \
    --to=nm-l0cymroini0@public.gmane.org \
    --cc=a0393675-l0cyMroinI0@public.gmane.org \
    --cc=bcousson-rdvid1DuHRBWk0Htik3J/w@public.gmane.org \
    --cc=devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=galak-sgV2jX0FEOL9JmXXK+q4OQ@public.gmane.org \
    --cc=grygorii.strashko-l0cyMroinI0@public.gmane.org \
    --cc=hns-xXXSsgcRVICgSpxsJD1C4w@public.gmane.org \
    --cc=ijc+devicetree-KcIKpvwj1kUDXYZnReoRVg@public.gmane.org \
    --cc=j-keerthy-l0cyMroinI0@public.gmane.org \
    --cc=ldewangan-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org \
    --cc=linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=linux-lFZ/pmaqli7XmaaqVzeoHQ@public.gmane.org \
    --cc=linux-omap-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=marek-xXXSsgcRVICgSpxsJD1C4w@public.gmane.org \
    --cc=mark.rutland-5wv7dgnIgG8@public.gmane.org \
    --cc=menon.nishanth-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
    --cc=notasas-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
    --cc=pawel.moll-5wv7dgnIgG8@public.gmane.org \
    --cc=robh+dt-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org \
    --cc=tony-4v6yS6AI5VpBDgjK7y7TUQ@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).