* [PATCH 1/3 v2] Add StorCenter DTS first draft.
@ 2008-01-08 22:06 Jon Loeliger
2008-01-08 22:11 ` Scott Wood
0 siblings, 1 reply; 4+ messages in thread
From: Jon Loeliger @ 2008-01-08 22:06 UTC (permalink / raw)
To: linuxppc-dev
Based on the Kurobox DTS files.
Signed-off-by: Andy Wilcox <andy@protium.com>
Signed-off-by: Jon Loeliger <jdl@jdl.com>
---
Pulled PCI node out.
Fixed flash node.
arch/powerpc/boot/dts/storcenter.dts | 155 ++++++++++++++++++++++++++++++++++
1 files changed, 155 insertions(+), 0 deletions(-)
create mode 100644 arch/powerpc/boot/dts/storcenter.dts
diff --git a/arch/powerpc/boot/dts/storcenter.dts b/arch/powerpc/boot/dts/storcenter.dts
new file mode 100644
index 0000000..93aa5a1
--- /dev/null
+++ b/arch/powerpc/boot/dts/storcenter.dts
@@ -0,0 +1,155 @@
+/*
+ * Device Tree Source for IOMEGA StorCenter
+ *
+ * Copyright 2007 Oyvind Repvik
+ * Copyright 2007 Jon Loeliger
+ *
+ * Based on the Kurobox DTS by G. Liakhovetski <g.liakhovetski@gmx.de>
+ *
+ * This file is licensed under the terms of the GNU General Public
+ * License version 2. This program is licensed "as is" without any
+ * warranty of any kind, whether express or implied.
+ */
+
+/ {
+ model = "StorCenter";
+ compatible = "storcenter";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ aliases {
+ serial0 = &serial0;
+ serial1 = &serial1;
+ pci0 = &pci0;
+ };
+
+ cpus {
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ PowerPC,8241@0 {
+ device_type = "cpu";
+ reg = <0>;
+ clock-frequency = <d# 200000000>; /* Hz */
+ timebase-frequency = <d# 25000000>; /* Hz */
+ bus-frequency = <0>; /* from bootwrapper */
+ i-cache-line-size = <d# 32>; /* bytes */
+ d-cache-line-size = <d# 32>; /* bytes */
+ i-cache-size = <4000>;
+ d-cache-size = <4000>;
+ };
+ };
+
+ memory {
+ device_type = "memory";
+ reg = <00000000 04000000>; /* 64MB @ 0x0 */
+ };
+
+ flash@ff800000 {
+ compatible = "cfi-flash";
+ reg = <ff800000 800000>;
+ bank-width = <4>;
+ #address-cells = <1>;
+ #size-cells = <1>;
+ partion@0 {
+ label = "kernel";
+ reg = <0 170000>;
+ };
+ partion@1 {
+ label = "rootfs";
+ reg = <170000 590000>;
+ };
+ partion@2 {
+ label = "uboot";
+ reg = <700000 40000>;
+ };
+ partion@3 {
+ label = "config";
+ reg = <740000 c0000>;
+ };
+ };
+
+ soc@80000000 {
+ #address-cells = <1>;
+ #size-cells = <1>;
+ device_type = "soc";
+ compatible = "fsl,mpc8241", "mpc10x";
+ store-gathering = <0>; /* 0 == off, !0 == on */
+ ranges = <0 fdf00000 00100000>;
+ reg = <fdf00000 10000>; /* EUMB */
+
+ i2c@3000 {
+ #address-cells = <1>;
+ #size-cells = <0>;
+ compatible = "fsl-i2c";
+ reg = <3000 1000>;
+ interrupts = <5 2>;
+ interrupt-parent = <&mpic>;
+
+ rtc@68 {
+ compatible = "dallas,ds1337";
+ reg = <68>;
+ };
+ };
+
+ serial0: serial@4500 {
+ cell-index = <0>;
+ device_type = "serial";
+ compatible = "ns16550";
+ reg = <4500 8>;
+ clock-frequency = <d# 97553800>; /* Hz */
+ current-speed = <d# 115200>;
+ interrupts = <9 2>;
+ interrupt-parent = <&mpic>;
+ };
+
+ serial1: serial@4600 {
+ cell-index = <1>;
+ device_type = "serial";
+ compatible = "ns16550";
+ reg = <4600 8>;
+ clock-frequency = <d# 97553800>; /* Hz */
+ current-speed = <d# 9600>;
+ interrupts = <a 2>;
+ interrupt-parent = <&mpic>;
+ };
+
+ mpic: interrupt-controller@fdf40000 {
+ #interrupt-cells = <2>;
+ #address-cells = <0>;
+ device_type = "open-pic";
+ compatible = "chrp,open-pic";
+ interrupt-controller;
+ reg = <fdf40000 40000>;
+ };
+
+ };
+
+ pci0: pci@fe800000 {
+ #address-cells = <3>;
+ #size-cells = <2>;
+ #interrupt-cells = <1>;
+ device_type = "pci";
+ compatible = "mpc10x-pci";
+ reg = <fe800000 1000>;
+ ranges = <01000000 0 0 fe000000 0 00c00000
+ 02000000 0 80000000 80000000 0 70000000>;
+ bus-range = <0 ff>;
+ clock-frequency = <d# 97553800>; /* Hz */
+ interrupt-parent = <&mpic>;
+ interrupt-map-mask = <f800 0 0 7>;
+ interrupt-map = <
+ /* IDSEL 15 - ETH */
+ 7800 0 0 1 &mpic 0 1
+ 7800 0 0 2 &mpic 0 1
+ 7800 0 0 3 &mpic 0 1
+ 7800 0 0 4 &mpic 0 1
+ >;
+ };
+
+ chosen {
+ linux,stdout-path = "/soc@80000000/serial@4500";
+ bootargs = "console=ttyS0,115200";
+ };
+
+};
--
1.5.4.rc0
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH 1/3 v2] Add StorCenter DTS first draft.
2008-01-08 22:06 [PATCH 1/3 v2] Add StorCenter DTS first draft Jon Loeliger
@ 2008-01-08 22:11 ` Scott Wood
2008-01-08 22:13 ` Jon Loeliger
0 siblings, 1 reply; 4+ messages in thread
From: Scott Wood @ 2008-01-08 22:11 UTC (permalink / raw)
To: Jon Loeliger; +Cc: linuxppc-dev
On Tue, Jan 08, 2008 at 04:06:56PM -0600, Jon Loeliger wrote:
> +/ {
> + model = "StorCenter";
> + compatible = "storcenter";
> + #address-cells = <1>;
> + #size-cells = <1>;
> +
> + aliases {
> + serial0 = &serial0;
> + serial1 = &serial1;
> + pci0 = &pci0;
> + };
These should be tabs, not spaces. Likewise in some other parts of the file.
-Scott
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH 1/3 v2] Add StorCenter DTS first draft.
2008-01-08 22:11 ` Scott Wood
@ 2008-01-08 22:13 ` Jon Loeliger
2008-01-08 22:16 ` Scott Wood
0 siblings, 1 reply; 4+ messages in thread
From: Jon Loeliger @ 2008-01-08 22:13 UTC (permalink / raw)
To: Scott Wood; +Cc: linuxppc-dev
So, like, the other day Scott Wood mumbled:
> On Tue, Jan 08, 2008 at 04:06:56PM -0600, Jon Loeliger wrote:
> > +/ {
> > + model = "StorCenter";
> > + compatible = "storcenter";
> > + #address-cells = <1>;
> > + #size-cells = <1>;
> > +
> > + aliases {
> > + serial0 = &serial0;
> > + serial1 = &serial1;
> > + pci0 = &pci0;
> > + };
>
> These should be tabs, not spaces. Likewise in some other parts of the file.
>
> -Scott
Shoot me now.
jdl
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH 1/3 v2] Add StorCenter DTS first draft.
2008-01-08 22:13 ` Jon Loeliger
@ 2008-01-08 22:16 ` Scott Wood
0 siblings, 0 replies; 4+ messages in thread
From: Scott Wood @ 2008-01-08 22:16 UTC (permalink / raw)
To: Jon Loeliger; +Cc: linuxppc-dev
Jon Loeliger wrote:
> So, like, the other day Scott Wood mumbled:
>> On Tue, Jan 08, 2008 at 04:06:56PM -0600, Jon Loeliger wrote:
>>> +/ {
>>> + model = "StorCenter";
>>> + compatible = "storcenter";
>>> + #address-cells = <1>;
>>> + #size-cells = <1>;
>>> +
>>> + aliases {
>>> + serial0 = &serial0;
>>> + serial1 = &serial1;
>>> + pci0 = &pci0;
>>> + };
>> These should be tabs, not spaces. Likewise in some other parts of the file.
>>
>> -Scott
>
> Shoot me now.
Bullet, camera, or heroin?
-Scott
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2008-01-08 22:16 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-01-08 22:06 [PATCH 1/3 v2] Add StorCenter DTS first draft Jon Loeliger
2008-01-08 22:11 ` Scott Wood
2008-01-08 22:13 ` Jon Loeliger
2008-01-08 22:16 ` Scott Wood
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).