devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* RFC: Static memory controller node description
@ 2013-01-10 15:40 Michal Simek
       [not found] ` <CAHTX3dJ+ii9dP7w860Or80NWOAPoYZt8ftUwNfAe6WkEoeQJXQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
  0 siblings, 1 reply; 5+ messages in thread
From: Michal Simek @ 2013-01-10 15:40 UTC (permalink / raw)
  To: devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ, Rob Herring,
	Grant Likely, Josh Cartwright, Soren Brinkmann

Hi guys,

we want to add static memory controller driver for xilinx zynq to the
linux kernel. (It will go to drivers/memory/ folder)
Just need to clear dts fragment which describe it.

It is compatible with pl353 with 2 interfaces when only one interface
can be used.
Nand, nor and sram memories are supported. Driver will do additional
setup for NAND and power management.

I am using extended compatible property based on
Documentation/devicetree/bindings/arm/primecell.txt. Is it correct?

Nand case (we have special driver for nand) - interrupts are used only
in connection with nand.

smc@0xe000e000 {
	#address-cells = <1>;
	#size-cells = <1>;
	compatible = "xlnx,ps7-smc", "arm,pl353", "arm,primecell";
	reg = <0xe000e000 0x1000>;
	interrupts = <0 18 4>;
	interrupt-parent = <&ps7_scugic_0>;
	ranges;
	nand@e1000000 {
		compatible = "xlnx,ps7-nand-1.00.a";
		reg = <0xe1000000 0x1000000>;
		xlnx,nand-width = <16>;
	}
}

or this one for NOR

smc@0xe000e000 {
	#address-cells = <1>;
	#size-cells = <1>;
	compatible = "xlnx,ps7-smc", "arm,pl353", "arm,primecell";
	reg = <0xe000e000 0x1000>;
	ranges;
	nor: nor@e2000000 {
		compatible = "cfi-flash";
		reg = <0xE2000000 0x2000000>;
		bank-width = <1>;
	}
}

Can you see any problem with these dts fragments?

Thanks,
Michal

-- 
Michal Simek, Ing. (M.Eng)
w: www.monstr.eu p: +42-0-721842854
Maintainer of Linux kernel - Microblaze cpu - http://www.monstr.eu/fdt/
Maintainer of Linux kernel - Xilinx Zynq ARM architecture
Microblaze U-BOOT custodian

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

end of thread, other threads:[~2013-02-12 13:52 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-01-10 15:40 RFC: Static memory controller node description Michal Simek
     [not found] ` <CAHTX3dJ+ii9dP7w860Or80NWOAPoYZt8ftUwNfAe6WkEoeQJXQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2013-02-08 22:55   ` Grant Likely
2013-02-12 13:30   ` Ezequiel Garcia
     [not found]     ` <CALF0-+V8iJZGW1riVSEXv0PGThOHxRh7P6JZb_ESb9C=+OyPOQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2013-02-12 13:48       ` Michal Simek
     [not found]         ` <CAHTX3dJT40OC1vf-KYLshhiDNigZRKOBh6ieH8qPgbyCMcjwPA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2013-02-12 13:52           ` Ezequiel Garcia

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