All of lore.kernel.org
 help / color / mirror / Atom feed
From: Felipe Balbi <balbi@ti.com>
To: Benoit Cousson <b-cousson@ti.com>
Cc: Santosh Shilimkar <santosh.shilimkar@ti.com>,
	linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.or,
	tony@atomide.com
Subject: Re: [PATCH 4/5] ARM: OMAP4: Add L2 Cache Controller in Device Tree
Date: Mon, 20 Aug 2012 18:59:32 +0300	[thread overview]
Message-ID: <20120820155930.GD8786@arwen.pp.htv.fi> (raw)
In-Reply-To: <503240EF.4050805@ti.com>

[-- Attachment #1: Type: text/plain, Size: 1196 bytes --]

On Mon, Aug 20, 2012 at 03:51:43PM +0200, Benoit Cousson wrote:
> > +		compatible = "arm,pl310-cache";
> > +		reg = <0x48242000 0x1000>;
> > +		cache-unified;
> > +		cache-level = <2>;
> > +	};
> > +
> 
> In theory, the L2 cache should be referenced from the CPUs.
> 
> Here is the way it is done for mpc8541cdc.dts for example:
> 
> 	cpus {
> 		#address-cells = <1>;
> 		#size-cells = <0>;
> 
> 		PowerPC,8541@0 {
> 			device_type = "cpu";
> 			reg = <0x0>;
> 			d-cache-line-size = <32>;	// 32 bytes
> 			i-cache-line-size = <32>;	// 32 bytes
> 			d-cache-size = <0x8000>;		// L1, 32K
> 			i-cache-size = <0x8000>;		// L1, 32K
> 			timebase-frequency = <0>;	//  33 MHz, from uboot
> 			bus-frequency = <0>;	// 166 MHz
> 			clock-frequency = <0>;	// 825 MHz, from uboot
> 			next-level-cache = <&L2>;
> 		};
> 	};
> 
> ...
> 
> 		L2: l2-cache-controller@20000 {
> 			compatible = "fsl,mpc8541-l2-cache-controller";
> 			reg = <0x20000 0x1000>;
> 			cache-line-size = <32>;	// 32 bytes
> 			cache-size = <0x40000>;	// L2, 256K
> 			interrupt-parent = <&mpic>;
> 			interrupts = <16 2>;
> 		};

that's actually outside of the cpus {} block.

-- 
balbi

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]

  parent reply	other threads:[~2012-08-20 16:04 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-08-13 11:00 [PATCH 0/5] ARM: OMAP: Few device tree patches for 3.7 Santosh Shilimkar
2012-08-13 11:00 ` [PATCH 1/5] dt: device tree bindings for LPDDR2 memories Santosh Shilimkar
2012-08-13 11:00 ` [PATCH 2/5] dt: emif: device tree bindings for TI's EMIF sdram controller Santosh Shilimkar
2012-08-13 11:00 ` [PATCH 3/5] ARM: dts: EMIF and LPDDR2 device tree data for OMAP4 boards Santosh Shilimkar
2012-08-13 11:00 ` [PATCH 4/5] ARM: OMAP4: Add L2 Cache Controller in Device Tree Santosh Shilimkar
2012-08-20 13:51   ` Benoit Cousson
2012-08-20 15:51     ` Shilimkar, Santosh
2012-08-21  9:41       ` Shilimkar, Santosh
2012-08-21 10:24         ` Felipe Balbi
2012-08-21 10:32           ` Shilimkar, Santosh
2012-08-21 10:29             ` Felipe Balbi
2012-08-21 10:29               ` Felipe Balbi
2012-08-21 10:44             ` Benoit Cousson
2012-08-21 10:46               ` Shilimkar, Santosh
2012-08-20 15:59     ` Felipe Balbi [this message]
2012-08-13 11:00 ` [PATCH 5/5] ARM: OMAP4: Add local timer support for " Santosh Shilimkar
2012-08-23  7:32 ` [PATCH 0/5] ARM: OMAP: Few device tree patches for 3.7 Santosh Shilimkar
2012-09-03 15:04   ` Benoit Cousson
2012-09-04  5:24     ` Shilimkar, Santosh

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20120820155930.GD8786@arwen.pp.htv.fi \
    --to=balbi@ti.com \
    --cc=b-cousson@ti.com \
    --cc=linux-arm-kernel@lists.infradead.or \
    --cc=linux-omap@vger.kernel.org \
    --cc=santosh.shilimkar@ti.com \
    --cc=tony@atomide.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.