linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] ARM: dts: zynq: Add OCM node
@ 2015-02-12 10:22 Michal Simek
  2015-02-12 10:26 ` Mark Rutland
  0 siblings, 1 reply; 4+ messages in thread
From: Michal Simek @ 2015-02-12 10:22 UTC (permalink / raw)
  To: linux-arm-kernel

Add OCM node for all zynq boards. OCM location
can changed but for all current boards this
is the location where OCM is.`

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
---

This patch is done based on discussion here.
https://lkml.org/lkml/2014/12/1/396

There are some ways how to do it.
OCM location can be changed but board DTS files
can easily rewrite it.
The problem which there is that node has address
in it but maybe someone can suggest better solution.
---
 arch/arm/boot/dts/zynq-7000.dtsi | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/arch/arm/boot/dts/zynq-7000.dtsi b/arch/arm/boot/dts/zynq-7000.dtsi
index a5cd2eda3edf..d55a8b365a6c 100644
--- a/arch/arm/boot/dts/zynq-7000.dtsi
+++ b/arch/arm/boot/dts/zynq-7000.dtsi
@@ -150,6 +150,11 @@
 			reg = <0xf8006000 0x1000>;
 		};
 
+		ocm: sram at fffc0000 {
+			compatible = "mmio-sram";
+			reg = <0xfffc0000 0x10000>;
+		};
+
 		uart0: serial at e0000000 {
 			compatible = "xlnx,xuartps", "cdns,uart-r1p8";
 			status = "disabled";
-- 
1.8.2.3

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

* [PATCH] ARM: dts: zynq: Add OCM node
  2015-02-12 10:22 [PATCH] ARM: dts: zynq: Add OCM node Michal Simek
@ 2015-02-12 10:26 ` Mark Rutland
  2015-02-12 10:40   ` Michal Simek
  2015-02-12 14:31   ` Josh Cartwright
  0 siblings, 2 replies; 4+ messages in thread
From: Mark Rutland @ 2015-02-12 10:26 UTC (permalink / raw)
  To: linux-arm-kernel

On Thu, Feb 12, 2015 at 10:22:07AM +0000, Michal Simek wrote:
> Add OCM node for all zynq boards. OCM location
> can changed but for all current boards this
> is the location where OCM is.`
> 
> Signed-off-by: Michal Simek <michal.simek@xilinx.com>
> ---
> 
> This patch is done based on discussion here.
> https://lkml.org/lkml/2014/12/1/396
> 
> There are some ways how to do it.
> OCM location can be changed but board DTS files
> can easily rewrite it.
> The problem which there is that node has address
> in it but maybe someone can suggest better solution.

Given that the node is so simple, can't this be pushed down into the
board files? So long as the label is consistent anything else that's
referring to it should still work.

Thanks,
Mark.

> ---
>  arch/arm/boot/dts/zynq-7000.dtsi | 5 +++++
>  1 file changed, 5 insertions(+)
> 
> diff --git a/arch/arm/boot/dts/zynq-7000.dtsi b/arch/arm/boot/dts/zynq-7000.dtsi
> index a5cd2eda3edf..d55a8b365a6c 100644
> --- a/arch/arm/boot/dts/zynq-7000.dtsi
> +++ b/arch/arm/boot/dts/zynq-7000.dtsi
> @@ -150,6 +150,11 @@
>  			reg = <0xf8006000 0x1000>;
>  		};
>  
> +		ocm: sram at fffc0000 {
> +			compatible = "mmio-sram";
> +			reg = <0xfffc0000 0x10000>;
> +		};
> +
>  		uart0: serial at e0000000 {
>  			compatible = "xlnx,xuartps", "cdns,uart-r1p8";
>  			status = "disabled";
> -- 
> 1.8.2.3
> 
> 

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

* [PATCH] ARM: dts: zynq: Add OCM node
  2015-02-12 10:26 ` Mark Rutland
@ 2015-02-12 10:40   ` Michal Simek
  2015-02-12 14:31   ` Josh Cartwright
  1 sibling, 0 replies; 4+ messages in thread
From: Michal Simek @ 2015-02-12 10:40 UTC (permalink / raw)
  To: linux-arm-kernel

Hi Mark,

On 02/12/2015 11:26 AM, Mark Rutland wrote:
> On Thu, Feb 12, 2015 at 10:22:07AM +0000, Michal Simek wrote:
>> Add OCM node for all zynq boards. OCM location
>> can changed but for all current boards this
>> is the location where OCM is.`
>>
>> Signed-off-by: Michal Simek <michal.simek@xilinx.com>
>> ---
>>
>> This patch is done based on discussion here.
>> https://lkml.org/lkml/2014/12/1/396
>>
>> There are some ways how to do it.
>> OCM location can be changed but board DTS files
>> can easily rewrite it.
>> The problem which there is that node has address
>> in it but maybe someone can suggest better solution.
> 
> Given that the node is so simple, can't this be pushed down into the
> board files? So long as the label is consistent anything else that's
> referring to it should still work.

ok. Let me send v2 with moving stuff to board file and reference bus.
(I expect you will want to use different solution but will see).

Thanks,
Michal

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

* [PATCH] ARM: dts: zynq: Add OCM node
  2015-02-12 10:26 ` Mark Rutland
  2015-02-12 10:40   ` Michal Simek
@ 2015-02-12 14:31   ` Josh Cartwright
  1 sibling, 0 replies; 4+ messages in thread
From: Josh Cartwright @ 2015-02-12 14:31 UTC (permalink / raw)
  To: linux-arm-kernel

On Thu, Feb 12, 2015 at 10:26:16AM +0000, Mark Rutland wrote:
> On Thu, Feb 12, 2015 at 10:22:07AM +0000, Michal Simek wrote:
> > Add OCM node for all zynq boards. OCM location
> > can changed but for all current boards this
> > is the location where OCM is.`
> > 
> > Signed-off-by: Michal Simek <michal.simek@xilinx.com>
> > ---
> > 
> > This patch is done based on discussion here.
> > https://lkml.org/lkml/2014/12/1/396
> > 
> > There are some ways how to do it.
> > OCM location can be changed but board DTS files
> > can easily rewrite it.
> > The problem which there is that node has address
> > in it but maybe someone can suggest better solution.
> 
> Given that the node is so simple, can't this be pushed down into the
> board files? So long as the label is consistent anything else that's
> referring to it should still work.

Not that I have a strong opinion, but I've found that sometimes it's
nice to be able to just glance at the SoC dtsi file to get an
understanding of all of the hardware currently being modeled.

  Josh

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

end of thread, other threads:[~2015-02-12 14:31 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-02-12 10:22 [PATCH] ARM: dts: zynq: Add OCM node Michal Simek
2015-02-12 10:26 ` Mark Rutland
2015-02-12 10:40   ` Michal Simek
2015-02-12 14:31   ` Josh Cartwright

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