mbox series

[PATCHv4,0/6] Add initial genpd support for omap PRM driver

Message ID 20200702154513.31859-1-tony@atomide.com (mailing list archive)
Headers show
Series Add initial genpd support for omap PRM driver | expand

Message

Tony Lindgren July 2, 2020, 3:45 p.m. UTC
Hi all,

Here's v4 set of patches to add genpd support to the PRM (Power and Reset
Module) driver.

Initially we just add one hardware accelerator power domain for sgx,
and one interconnect instance for l4_abe. The rest of the SoC specific
domain data is probably best added one SoC at a time based on generated
data.

Regards,

Tony

Changes since v3:
- Drop the unnecessary __maybe_unused as that's no longer needed

Changes since v2:

- Update binding to clarify a single power domain provider

- Unwrap generic domain configrations for __maybe_unused

Changes since v1:

- Dropped clocks from the binding and prm driver as there's no need
  for them as pointed out by Tero

- Add checking for domain transition bit in pwrstst register as
  pointed out by Tero

- Add omap_prm_domain_show_state() for CONFIG_DEBUG


Tony Lindgren (6):
  dt-bindings: omap: Update PRM binding for genpd
  soc: ti: omap-prm: Add basic power domain support
  soc: ti: omap-prm: Configure sgx power domain for am3 and am4
  soc: ti: omap-prm: Configure omap4 and 5 l4_abe power domain
  ARM: dts: Configure am3 and am4 sgx for genpd and drop platform data
  ARM: dts: Configure omap4 and 5 l4_abe for genpd and drop platform
    data

 .../devicetree/bindings/arm/omap/prm-inst.txt |   2 +
 arch/arm/boot/dts/am33xx.dtsi                 |   2 +
 arch/arm/boot/dts/am4372.dtsi                 |   2 +
 arch/arm/boot/dts/omap4-l4-abe.dtsi           |   6 +-
 arch/arm/boot/dts/omap4.dtsi                  |   6 +
 arch/arm/boot/dts/omap5-l4-abe.dtsi           |   6 +-
 arch/arm/boot/dts/omap5.dtsi                  |   6 +
 arch/arm/mach-omap2/Kconfig                   |   1 +
 .../omap_hwmod_33xx_43xx_interconnect_data.c  |  16 -
 .../omap_hwmod_33xx_43xx_ipblock_data.c       |  40 ---
 arch/arm/mach-omap2/omap_hwmod_33xx_data.c    |   2 -
 arch/arm/mach-omap2/omap_hwmod_43xx_data.c    |   2 -
 arch/arm/mach-omap2/omap_hwmod_44xx_data.c    |  33 ---
 arch/arm/mach-omap2/omap_hwmod_54xx_data.c    |  31 --
 drivers/soc/ti/omap_prm.c                     | 274 +++++++++++++++++-
 15 files changed, 298 insertions(+), 131 deletions(-)

Comments

Tony Lindgren Aug. 17, 2020, 6:53 a.m. UTC | #1
Hi Santosh,

* Tony Lindgren <tony@atomide.com> [200702 18:46]:
> Hi all,
> 
> Here's v4 set of patches to add genpd support to the PRM (Power and Reset
> Module) driver.
> 
> Initially we just add one hardware accelerator power domain for sgx,
> and one interconnect instance for l4_abe. The rest of the SoC specific
> domain data is probably best added one SoC at a time based on generated
> data.

Care to ack some of these patches? I'd like to get this into Linux next
for v5.10 :)

Regards,

Tony


> Changes since v3:
> - Drop the unnecessary __maybe_unused as that's no longer needed
> 
> Changes since v2:
> 
> - Update binding to clarify a single power domain provider
> 
> - Unwrap generic domain configrations for __maybe_unused
> 
> Changes since v1:
> 
> - Dropped clocks from the binding and prm driver as there's no need
>   for them as pointed out by Tero
> 
> - Add checking for domain transition bit in pwrstst register as
>   pointed out by Tero
> 
> - Add omap_prm_domain_show_state() for CONFIG_DEBUG
> 
> 
> Tony Lindgren (6):
>   dt-bindings: omap: Update PRM binding for genpd
>   soc: ti: omap-prm: Add basic power domain support
>   soc: ti: omap-prm: Configure sgx power domain for am3 and am4
>   soc: ti: omap-prm: Configure omap4 and 5 l4_abe power domain
>   ARM: dts: Configure am3 and am4 sgx for genpd and drop platform data
>   ARM: dts: Configure omap4 and 5 l4_abe for genpd and drop platform
>     data
> 
>  .../devicetree/bindings/arm/omap/prm-inst.txt |   2 +
>  arch/arm/boot/dts/am33xx.dtsi                 |   2 +
>  arch/arm/boot/dts/am4372.dtsi                 |   2 +
>  arch/arm/boot/dts/omap4-l4-abe.dtsi           |   6 +-
>  arch/arm/boot/dts/omap4.dtsi                  |   6 +
>  arch/arm/boot/dts/omap5-l4-abe.dtsi           |   6 +-
>  arch/arm/boot/dts/omap5.dtsi                  |   6 +
>  arch/arm/mach-omap2/Kconfig                   |   1 +
>  .../omap_hwmod_33xx_43xx_interconnect_data.c  |  16 -
>  .../omap_hwmod_33xx_43xx_ipblock_data.c       |  40 ---
>  arch/arm/mach-omap2/omap_hwmod_33xx_data.c    |   2 -
>  arch/arm/mach-omap2/omap_hwmod_43xx_data.c    |   2 -
>  arch/arm/mach-omap2/omap_hwmod_44xx_data.c    |  33 ---
>  arch/arm/mach-omap2/omap_hwmod_54xx_data.c    |  31 --
>  drivers/soc/ti/omap_prm.c                     | 274 +++++++++++++++++-
>  15 files changed, 298 insertions(+), 131 deletions(-)
> 
> -- 
> 2.27.0
>
Santosh Shilimkar Aug. 17, 2020, 3:25 p.m. UTC | #2
On 8/16/20 11:53 PM, Tony Lindgren wrote:
> Hi Santosh,
> 
> * Tony Lindgren <tony@atomide.com> [200702 18:46]:
>> Hi all,
>>
>> Here's v4 set of patches to add genpd support to the PRM (Power and Reset
>> Module) driver.
>>
>> Initially we just add one hardware accelerator power domain for sgx,
>> and one interconnect instance for l4_abe. The rest of the SoC specific
>> domain data is probably best added one SoC at a time based on generated
>> data.
> 
> Care to ack some of these patches? I'd like to get this into Linux next
> for v5.10 :)
> 
Sure,
Acked-by: Santosh Shilimkar <ssantosh@kernel.org>
Tony Lindgren Aug. 18, 2020, 8:26 a.m. UTC | #3
* santosh.shilimkar@oracle.com <santosh.shilimkar@oracle.com> [200817 15:25]:
> On 8/16/20 11:53 PM, Tony Lindgren wrote:
> > Hi Santosh,
> > 
> > * Tony Lindgren <tony@atomide.com> [200702 18:46]:
> > > Hi all,
> > > 
> > > Here's v4 set of patches to add genpd support to the PRM (Power and Reset
> > > Module) driver.
> > > 
> > > Initially we just add one hardware accelerator power domain for sgx,
> > > and one interconnect instance for l4_abe. The rest of the SoC specific
> > > domain data is probably best added one SoC at a time based on generated
> > > data.
> > 
> > Care to ack some of these patches? I'd like to get this into Linux next
> > for v5.10 :)
> > 
> Sure,
> Acked-by: Santosh Shilimkar <ssantosh@kernel.org>

Thanks, I've pushed out this series into omap-for-v5.10/prm-genpd and
for-next branches.

Regards,

Tony