* [PATCH 2/2] ARM: am33xx.dtsi: Added syscon compatible prcm_dev device @ 2016-11-15 8:44 Cor Peters 2016-11-15 17:35 ` Tony Lindgren 0 siblings, 1 reply; 7+ messages in thread From: Cor Peters @ 2016-11-15 8:44 UTC (permalink / raw) To: linux-omap-u79uwXL29TY76Z2rM5mHXA; +Cc: linux-watchdog-u79uwXL29TY76Z2rM5mHXA This patch adds the PRM_DEV as a syscon compatible device to am33xx.dtsi. This is needed for the watchdog bootstatus patch. Signed-off-by: Cor Peters <cpeters-JQzsJ8WnmGqc6Wr4J9gsBQC/G2K4zDHf@public.gmane.org> --- arch/arm/boot/dts/am33xx.dtsi | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/boot/dts/am33xx.dtsi b/arch/arm/boot/dts/am33xx.dtsi index 194d884..e8faf19 100644 --- a/arch/arm/boot/dts/am33xx.dtsi +++ b/arch/arm/boot/dts/am33xx.dtsi @@ -115,6 +115,7 @@ prcm: prcm@200000 { compatible = "ti,am3-prcm"; reg = <0x200000 0x4000>; + ranges = <0 0x200000 0x4000>; prcm_clocks: clocks { #address-cells = <1>; @@ -123,6 +124,11 @@ prcm_clockdomains: clockdomains { }; + + prcm_wkup: prcm-wkup@f00 { + compatible = "ti,omap3-prcm-dev", "syscon"; + reg = <0xf00 0xff>; + }; }; scm: scm@210000 { -- 1.9.1 -- To unsubscribe from this list: send the line "unsubscribe linux-watchdog" 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 related [flat|nested] 7+ messages in thread
* Re: [PATCH 2/2] ARM: am33xx.dtsi: Added syscon compatible prcm_dev device 2016-11-15 8:44 [PATCH 2/2] ARM: am33xx.dtsi: Added syscon compatible prcm_dev device Cor Peters @ 2016-11-15 17:35 ` Tony Lindgren [not found] ` <20161115173515.GL4082-4v6yS6AI5VpBDgjK7y7TUQ@public.gmane.org> 0 siblings, 1 reply; 7+ messages in thread From: Tony Lindgren @ 2016-11-15 17:35 UTC (permalink / raw) To: Cor Peters, Tero Kristo Cc: linux-omap-u79uwXL29TY76Z2rM5mHXA, linux-watchdog-u79uwXL29TY76Z2rM5mHXA * Cor Peters <cpeters-JQzsJ8WnmGqc6Wr4J9gsBQC/G2K4zDHf@public.gmane.org> [161115 01:00]: > This patch adds the PRM_DEV as a syscon compatible device to > am33xx.dtsi. This is needed for the watchdog bootstatus patch. We somehow need to see the bootreason for sure.. But we need to check with Tero on the reset driver work too. Tero, does setting up of PRM_DEVICE as syscon cause issues for your reset driver work? Regards, Tony > > Signed-off-by: Cor Peters <cpeters-JQzsJ8WnmGqc6Wr4J9gsBQC/G2K4zDHf@public.gmane.org> > --- > arch/arm/boot/dts/am33xx.dtsi | 6 ++++++ > 1 file changed, 6 insertions(+) > > diff --git a/arch/arm/boot/dts/am33xx.dtsi b/arch/arm/boot/dts/am33xx.dtsi > index 194d884..e8faf19 100644 > --- a/arch/arm/boot/dts/am33xx.dtsi > +++ b/arch/arm/boot/dts/am33xx.dtsi > @@ -115,6 +115,7 @@ > prcm: prcm@200000 { > compatible = "ti,am3-prcm"; > reg = <0x200000 0x4000>; > + ranges = <0 0x200000 0x4000>; > > prcm_clocks: clocks { > #address-cells = <1>; > @@ -123,6 +124,11 @@ > > prcm_clockdomains: clockdomains { > }; > + > + prcm_wkup: prcm-wkup@f00 { > + compatible = "ti,omap3-prcm-dev", "syscon"; > + reg = <0xf00 0xff>; > + }; > }; > > scm: scm@210000 { > -- > 1.9.1 > -- > To unsubscribe from this list: send the line "unsubscribe linux-omap" in > the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org > More majordomo info at http://vger.kernel.org/majordomo-info.html -- To unsubscribe from this list: send the line "unsubscribe linux-watchdog" 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] 7+ messages in thread
[parent not found: <20161115173515.GL4082-4v6yS6AI5VpBDgjK7y7TUQ@public.gmane.org>]
* Re: [PATCH 2/2] ARM: am33xx.dtsi: Added syscon compatible prcm_dev device [not found] ` <20161115173515.GL4082-4v6yS6AI5VpBDgjK7y7TUQ@public.gmane.org> @ 2016-11-15 17:38 ` Tony Lindgren [not found] ` <20161115173816.GM4082-4v6yS6AI5VpBDgjK7y7TUQ@public.gmane.org> 2016-11-15 18:38 ` Guenter Roeck 1 sibling, 1 reply; 7+ messages in thread From: Tony Lindgren @ 2016-11-15 17:38 UTC (permalink / raw) To: Cor Peters, Tero Kristo Cc: linux-omap-u79uwXL29TY76Z2rM5mHXA, linux-watchdog-u79uwXL29TY76Z2rM5mHXA * Tony Lindgren <tony-4v6yS6AI5VpBDgjK7y7TUQ@public.gmane.org> [161115 09:35]: > * Cor Peters <cpeters-JQzsJ8WnmGqc6Wr4J9gsBQC/G2K4zDHf@public.gmane.org> [161115 01:00]: > > This patch adds the PRM_DEV as a syscon compatible device to > > am33xx.dtsi. This is needed for the watchdog bootstatus patch. > > We somehow need to see the bootreason for sure.. But we need to > check with Tero on the reset driver work too. > > Tero, does setting up of PRM_DEVICE as syscon cause issues for > your reset driver work? The nightmare scenario is that we have drivers calling random syscon areas across various interconnect targets and then we have zero chance of getting genpd to ever to work properly. Do the reset drivers offer some way of exporting the reset status? Regards, Tony -- To unsubscribe from this list: send the line "unsubscribe linux-watchdog" 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] 7+ messages in thread
[parent not found: <20161115173816.GM4082-4v6yS6AI5VpBDgjK7y7TUQ@public.gmane.org>]
* Re: [PATCH 2/2] ARM: am33xx.dtsi: Added syscon compatible prcm_dev device [not found] ` <20161115173816.GM4082-4v6yS6AI5VpBDgjK7y7TUQ@public.gmane.org> @ 2016-11-15 19:18 ` Tero Kristo [not found] ` <6861ab40-8727-86ab-17bc-6bb7dc3de30a-l0cyMroinI0@public.gmane.org> 0 siblings, 1 reply; 7+ messages in thread From: Tero Kristo @ 2016-11-15 19:18 UTC (permalink / raw) To: Tony Lindgren, Cor Peters Cc: linux-omap-u79uwXL29TY76Z2rM5mHXA, linux-watchdog-u79uwXL29TY76Z2rM5mHXA On 15/11/16 19:38, Tony Lindgren wrote: > * Tony Lindgren <tony-4v6yS6AI5VpBDgjK7y7TUQ@public.gmane.org> [161115 09:35]: >> * Cor Peters <cpeters-JQzsJ8WnmGqc6Wr4J9gsBQC/G2K4zDHf@public.gmane.org> [161115 01:00]: >>> This patch adds the PRM_DEV as a syscon compatible device to >>> am33xx.dtsi. This is needed for the watchdog bootstatus patch. >> >> We somehow need to see the bootreason for sure.. But we need to >> check with Tero on the reset driver work too. >> >> Tero, does setting up of PRM_DEVICE as syscon cause issues for >> your reset driver work? Good question, currently the reset driver is on hold waiting for hwmod / interconnect work to nudge forward. We could probably try to even re-use the syscon reset driver for OMAPs (drivers/reset/reset-ti-syscon.c); reset handling is not performance critical as such, and we only have few sources for these so... > > The nightmare scenario is that we have drivers calling random > syscon areas across various interconnect targets and then we have > zero chance of getting genpd to ever to work properly. Exporting this specific area exposes a few interesting features, like performing a system wide reset or tweaking SRAM PM configs (preventing SRAM LDOs from idling for example.) > Do the reset drivers offer some way of exporting the reset status? reset_control_status() can be used to read the reset status, this is however mostly meant for checking if reset line is currently asserted or not. We could in theory overload this for checking if reset has been asserted previously or not (checking current status for watchdog reset doesn't make much sense for example.) -Tero -- To unsubscribe from this list: send the line "unsubscribe linux-watchdog" 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] 7+ messages in thread
[parent not found: <6861ab40-8727-86ab-17bc-6bb7dc3de30a-l0cyMroinI0@public.gmane.org>]
* Re: [PATCH 2/2] ARM: am33xx.dtsi: Added syscon compatible prcm_dev device [not found] ` <6861ab40-8727-86ab-17bc-6bb7dc3de30a-l0cyMroinI0@public.gmane.org> @ 2016-11-16 17:14 ` Tony Lindgren [not found] ` <20161116171442.GR4082-4v6yS6AI5VpBDgjK7y7TUQ@public.gmane.org> 0 siblings, 1 reply; 7+ messages in thread From: Tony Lindgren @ 2016-11-16 17:14 UTC (permalink / raw) To: Tero Kristo Cc: Cor Peters, linux-omap-u79uwXL29TY76Z2rM5mHXA, linux-watchdog-u79uwXL29TY76Z2rM5mHXA * Tero Kristo <t-kristo-l0cyMroinI0@public.gmane.org> [161115 11:18]: > On 15/11/16 19:38, Tony Lindgren wrote: > > * Tony Lindgren <tony-4v6yS6AI5VpBDgjK7y7TUQ@public.gmane.org> [161115 09:35]: > > > * Cor Peters <cpeters-JQzsJ8WnmGqc6Wr4J9gsBQC/G2K4zDHf@public.gmane.org> [161115 01:00]: > > > > This patch adds the PRM_DEV as a syscon compatible device to > > > > am33xx.dtsi. This is needed for the watchdog bootstatus patch. > > > > > > We somehow need to see the bootreason for sure.. But we need to > > > check with Tero on the reset driver work too. > > > > > > Tero, does setting up of PRM_DEVICE as syscon cause issues for > > > your reset driver work? > > Good question, currently the reset driver is on hold waiting for hwmod / > interconnect work to nudge forward. We could probably try to even re-use the > syscon reset driver for OMAPs (drivers/reset/reset-ti-syscon.c); reset > handling is not performance critical as such, and we only have few sources > for these so... > > > > > The nightmare scenario is that we have drivers calling random > > syscon areas across various interconnect targets and then we have > > zero chance of getting genpd to ever to work properly. > > Exporting this specific area exposes a few interesting features, like > performing a system wide reset or tweaking SRAM PM configs (preventing SRAM > LDOs from idling for example.) > > > Do the reset drivers offer some way of exporting the reset status? > > reset_control_status() can be used to read the reset status, this is however > mostly meant for checking if reset line is currently asserted or not. We > could in theory overload this for checking if reset has been asserted > previously or not (checking current status for watchdog reset doesn't make > much sense for example.) OK in that case I'd prefer that we get the status from a reset driver. I think a minimal reset driver could be already done as a regular device driver that works also as a loadable module. It probably still needs some callback functions passed to it in platform_data via pdata-quirks.c though. Regards, Tony -- To unsubscribe from this list: send the line "unsubscribe linux-watchdog" 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] 7+ messages in thread
[parent not found: <20161116171442.GR4082-4v6yS6AI5VpBDgjK7y7TUQ@public.gmane.org>]
* Re: [PATCH 2/2] ARM: am33xx.dtsi: Added syscon compatible prcm_dev device [not found] ` <20161116171442.GR4082-4v6yS6AI5VpBDgjK7y7TUQ@public.gmane.org> @ 2016-11-16 18:58 ` Tero Kristo 0 siblings, 0 replies; 7+ messages in thread From: Tero Kristo @ 2016-11-16 18:58 UTC (permalink / raw) To: Tony Lindgren Cc: Cor Peters, linux-omap-u79uwXL29TY76Z2rM5mHXA, linux-watchdog-u79uwXL29TY76Z2rM5mHXA On 16/11/16 19:14, Tony Lindgren wrote: > * Tero Kristo <t-kristo-l0cyMroinI0@public.gmane.org> [161115 11:18]: >> On 15/11/16 19:38, Tony Lindgren wrote: >>> * Tony Lindgren <tony-4v6yS6AI5VpBDgjK7y7TUQ@public.gmane.org> [161115 09:35]: >>>> * Cor Peters <cpeters-JQzsJ8WnmGqc6Wr4J9gsBQC/G2K4zDHf@public.gmane.org> [161115 01:00]: >>>>> This patch adds the PRM_DEV as a syscon compatible device to >>>>> am33xx.dtsi. This is needed for the watchdog bootstatus patch. >>>> >>>> We somehow need to see the bootreason for sure.. But we need to >>>> check with Tero on the reset driver work too. >>>> >>>> Tero, does setting up of PRM_DEVICE as syscon cause issues for >>>> your reset driver work? >> >> Good question, currently the reset driver is on hold waiting for hwmod / >> interconnect work to nudge forward. We could probably try to even re-use the >> syscon reset driver for OMAPs (drivers/reset/reset-ti-syscon.c); reset >> handling is not performance critical as such, and we only have few sources >> for these so... >> >>> >>> The nightmare scenario is that we have drivers calling random >>> syscon areas across various interconnect targets and then we have >>> zero chance of getting genpd to ever to work properly. >> >> Exporting this specific area exposes a few interesting features, like >> performing a system wide reset or tweaking SRAM PM configs (preventing SRAM >> LDOs from idling for example.) >> >>> Do the reset drivers offer some way of exporting the reset status? >> >> reset_control_status() can be used to read the reset status, this is however >> mostly meant for checking if reset line is currently asserted or not. We >> could in theory overload this for checking if reset has been asserted >> previously or not (checking current status for watchdog reset doesn't make >> much sense for example.) > > OK in that case I'd prefer that we get the status from a reset driver. > I think a minimal reset driver could be already done as a regular > device driver that works also as a loadable module. It probably still > needs some callback functions passed to it in platform_data via > pdata-quirks.c though. Yea I think this should be doable. The driver can be extended later with support for other features also once those are actually required. -Tero -- To unsubscribe from this list: send the line "unsubscribe linux-watchdog" 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] 7+ messages in thread
* Re: [PATCH 2/2] ARM: am33xx.dtsi: Added syscon compatible prcm_dev device [not found] ` <20161115173515.GL4082-4v6yS6AI5VpBDgjK7y7TUQ@public.gmane.org> 2016-11-15 17:38 ` Tony Lindgren @ 2016-11-15 18:38 ` Guenter Roeck 1 sibling, 0 replies; 7+ messages in thread From: Guenter Roeck @ 2016-11-15 18:38 UTC (permalink / raw) To: Tony Lindgren Cc: Cor Peters, Tero Kristo, linux-omap-u79uwXL29TY76Z2rM5mHXA, linux-watchdog-u79uwXL29TY76Z2rM5mHXA On Tue, Nov 15, 2016 at 09:35:15AM -0800, Tony Lindgren wrote: > * Cor Peters <cpeters-JQzsJ8WnmGqc6Wr4J9gsBQC/G2K4zDHf@public.gmane.org> [161115 01:00]: > > This patch adds the PRM_DEV as a syscon compatible device to > > am33xx.dtsi. This is needed for the watchdog bootstatus patch. > > We somehow need to see the bootreason for sure.. But we need to > check with Tero on the reset driver work too. > Another problem is that the boot reason bit is not well defined and, if I understand correctly, can change with different SoCs. So this would also need a means to select the actual register bit to use. Thanks, Guenter > Tero, does setting up of PRM_DEVICE as syscon cause issues for > your reset driver work? > > Regards, > > Tony > > > > > Signed-off-by: Cor Peters <cpeters-JQzsJ8WnmGqc6Wr4J9gsBQC/G2K4zDHf@public.gmane.org> > > --- > > arch/arm/boot/dts/am33xx.dtsi | 6 ++++++ > > 1 file changed, 6 insertions(+) > > > > diff --git a/arch/arm/boot/dts/am33xx.dtsi b/arch/arm/boot/dts/am33xx.dtsi > > index 194d884..e8faf19 100644 > > --- a/arch/arm/boot/dts/am33xx.dtsi > > +++ b/arch/arm/boot/dts/am33xx.dtsi > > @@ -115,6 +115,7 @@ > > prcm: prcm@200000 { > > compatible = "ti,am3-prcm"; > > reg = <0x200000 0x4000>; > > + ranges = <0 0x200000 0x4000>; > > > > prcm_clocks: clocks { > > #address-cells = <1>; > > @@ -123,6 +124,11 @@ > > > > prcm_clockdomains: clockdomains { > > }; > > + > > + prcm_wkup: prcm-wkup@f00 { > > + compatible = "ti,omap3-prcm-dev", "syscon"; > > + reg = <0xf00 0xff>; > > + }; > > }; > > > > scm: scm@210000 { > > -- > > 1.9.1 > > -- > > To unsubscribe from this list: send the line "unsubscribe linux-omap" in > > the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org > > More majordomo info at http://vger.kernel.org/majordomo-info.html > -- > To unsubscribe from this list: send the line "unsubscribe linux-watchdog" in > the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org > More majordomo info at http://vger.kernel.org/majordomo-info.html -- To unsubscribe from this list: send the line "unsubscribe linux-watchdog" 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] 7+ messages in thread
end of thread, other threads:[~2016-11-16 18:58 UTC | newest] Thread overview: 7+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2016-11-15 8:44 [PATCH 2/2] ARM: am33xx.dtsi: Added syscon compatible prcm_dev device Cor Peters 2016-11-15 17:35 ` Tony Lindgren [not found] ` <20161115173515.GL4082-4v6yS6AI5VpBDgjK7y7TUQ@public.gmane.org> 2016-11-15 17:38 ` Tony Lindgren [not found] ` <20161115173816.GM4082-4v6yS6AI5VpBDgjK7y7TUQ@public.gmane.org> 2016-11-15 19:18 ` Tero Kristo [not found] ` <6861ab40-8727-86ab-17bc-6bb7dc3de30a-l0cyMroinI0@public.gmane.org> 2016-11-16 17:14 ` Tony Lindgren [not found] ` <20161116171442.GR4082-4v6yS6AI5VpBDgjK7y7TUQ@public.gmane.org> 2016-11-16 18:58 ` Tero Kristo 2016-11-15 18:38 ` Guenter Roeck
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).