devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCHv2 0/4] reset: socfpga: Add reset driver support for Arria10 platform
@ 2015-07-31 21:03 dinguyen
  2015-07-31 21:03 ` [PATCHv2 1/4] dt-bindings: Add reset manager offsets for Arria10 dinguyen
                   ` (3 more replies)
  0 siblings, 4 replies; 6+ messages in thread
From: dinguyen @ 2015-07-31 21:03 UTC (permalink / raw)
  To: p.zabel
  Cc: dinh.linux, robh+dt, ijc+devicetree, galak, mark.rutland,
	pawel.moll, linux-kernel, devicetree, s.trumtrar, Dinh Nguyen

From: Dinh Nguyen <dinguyen@opensource.altera.com>

v2: For the reset driver, assume a modrst-offset of 0x10 in order to support
    legacy boards that do have the property..

v1:
This patch series adds reset driver support for the SoCFPGA Arria10 SOC. The
reset manager on the Arria10 is very similar to the one on Cyclone5/Arria5,
thus I think it's best to try to re-use the same reset driver.

The biggest difference between the reset manager on Arria10 and Cyclone is
the addition of security features. Since the driver does not support these
security features, it winds down to just a driver that will release IPs from
reset.

The other difference between Arria10 and Cyclone5 are register offsets, and
register bits for different IPs. For the register offset, the main register
offset is the very first register that is needed by the driver for releasing
IPs from reset. To handle this difference, I've introduced a new DTS property,
"altr,modrst-offset", that will represent this register.

The register bits for all the resets are in a new file:

include/dt-bindings/reset/altr,rst-mgr-a10.h

Thanks,

Dinh Nguyen (4):
  dt-bindings: Add reset manager offsets for Arria10
  ARM: socfpga: dts: add "altr,modrst-offset" property
  reset: socfpga: Update reset-socfpga to read the altr,modrst-offset
    property
  ARM: socfpga: dts: Add resets for EMACs on Arria10

 .../devicetree/bindings/reset/socfpga-reset.txt    |   2 +
 arch/arm/boot/dts/socfpga.dtsi                     |   1 +
 arch/arm/boot/dts/socfpga_arria10.dtsi             |   6 ++
 drivers/reset/reset-socfpga.c                      |  19 ++--
 include/dt-bindings/reset/altr,rst-mgr-a10.h       | 110 +++++++++++++++++++++
 5 files changed, 132 insertions(+), 6 deletions(-)
 create mode 100644 include/dt-bindings/reset/altr,rst-mgr-a10.h

-- 
2.4.5

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2015-08-03 11:16 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-07-31 21:03 [PATCHv2 0/4] reset: socfpga: Add reset driver support for Arria10 platform dinguyen
2015-07-31 21:03 ` [PATCHv2 1/4] dt-bindings: Add reset manager offsets for Arria10 dinguyen
     [not found] ` <1438376591-22100-1-git-send-email-dinguyen-yzvPICuk2ABMcg4IHK0kFoH6Mc4MB0Vx@public.gmane.org>
2015-07-31 21:03   ` [PATCHv2 2/4] ARM: socfpga: dts: add "altr,modrst-offset" property dinguyen-yzvPICuk2ABMcg4IHK0kFoH6Mc4MB0Vx
2015-07-31 21:03 ` [PATCHv2 3/4] reset: socfpga: Update reset-socfpga to read the altr,modrst-offset property dinguyen
2015-08-03 11:16   ` Philipp Zabel
2015-07-31 21:03 ` [PATCHv2 4/4] ARM: socfpga: dts: Add resets for EMACs on Arria10 dinguyen

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).