1 From 87a8e2b9406cc7f8779f02047e0cd1594c570b78 Mon Sep 17 00:00:00 2001
2 From: Michal Sojka <sojkam1@fel.cvut.cz>
3 Date: Thu, 23 Jan 2014 23:44:55 +0100
4 Subject: [PATCH] Shark/ryu board patch
6 This is a new version of the patch. It is not based on historical patches
7 from Michal Hrouda, but on mpc5200_simple. It boots, serial line and
8 Ethernet work. I haven't check whether flash works.
10 arch/powerpc/boot/dts/shark-ryu.dts | 104 +++++++++++++++++++++++++++
11 arch/powerpc/platforms/52xx/mpc5200_simple.c | 1 +
12 2 files changed, 105 insertions(+)
13 create mode 100644 arch/powerpc/boot/dts/shark-ryu.dts
15 diff --git a/arch/powerpc/boot/dts/shark-ryu.dts b/arch/powerpc/boot/dts/shark-ryu.dts
17 index 0000000..63e48a8
19 +++ b/arch/powerpc/boot/dts/shark-ryu.dts
22 + * Shark(MPC5200) board Device Tree Source
24 + * Copyright 2006-2007 Secret Lab Technologies Ltd.
25 + * Grant Likely <grant.likely@secretlab.ca>
27 + * This program is free software; you can redistribute it and/or modify it
28 + * under the terms of the GNU General Public License as published by the
29 + * Free Software Foundation; either version 2 of the License, or (at your
30 + * option) any later version.
33 +/include/ "mpc5200b.dtsi"
37 + compatible = "midam,shark";
40 + reg = <0x00000000 0x08000000>; // 128MB
43 + soc: soc5200@f0000000 {
45 + compatible = "fsl,mpc5200b-psc-uart","fsl,mpc5200-psc-uart";
47 + psc5: psc@2800 { // PSC5
48 + status = "disabled";
52 + phy-handle = <&phy0>;
56 + phy0: ethernet-phy@1f {
57 + device_type = "ethernet-phy";
64 + compatible = "dallas,ds1307";
71 + ranges = <0 0 0xfc000000 0x04000000>;
74 + compatible = "cfi-flash";
75 + reg = <0 0 0x04000000>;
79 + #address-cells = <1>;
83 + reg = <0 0x00100000>;
89 + reg = <0x00100000 0x00300000>;
94 + label = "filesystem";
95 + reg = <0x00400000 0x03c00000>;
100 + pci: pci@f0000d00 {
101 + interrupt-map-mask = <0xf800 0 0 7>;
102 + interrupt-map = <0xc000 0 0 1 &mpc5200_pic 0 0 3 // 1st slot
103 + 0xc000 0 0 2 &mpc5200_pic 1 1 3
104 + 0xc000 0 0 3 &mpc5200_pic 1 2 3
105 + 0xc000 0 0 4 &mpc5200_pic 1 3 3
107 + 0xc800 0 0 1 &mpc5200_pic 1 1 3 // 2nd slot
108 + 0xc800 0 0 2 &mpc5200_pic 1 2 3
109 + 0xc800 0 0 3 &mpc5200_pic 1 3 3
110 + 0xc800 0 0 4 &mpc5200_pic 0 0 3>;
111 + ranges = <0x42000000 0 0x80000000 0x80000000 0 0x20000000
112 + 0x02000000 0 0xa0000000 0xa0000000 0 0x10000000
113 + 0x01000000 0 0x00000000 0xb0000000 0 0x01000000>;
116 + device_type = "motorek";
121 + interrupts = <0 0 1>;
125 diff --git a/arch/powerpc/platforms/52xx/mpc5200_simple.c b/arch/powerpc/platforms/52xx/mpc5200_simple.c
126 index 792a301..82aaa6e 100644
127 --- a/arch/powerpc/platforms/52xx/mpc5200_simple.c
128 +++ b/arch/powerpc/platforms/52xx/mpc5200_simple.c
129 @@ -62,6 +62,7 @@ static const char *board[] __initdata = {