Add scripts to setup environment for automated tests
[can-benchmark.git] / continuous / steps / shark-ryu-board-patch.patch
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
5
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.
9 ---
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
14
15 diff --git a/arch/powerpc/boot/dts/shark-ryu.dts b/arch/powerpc/boot/dts/shark-ryu.dts
16 new file mode 100644
17 index 0000000..63e48a8
18 --- /dev/null
19 +++ b/arch/powerpc/boot/dts/shark-ryu.dts
20 @@ -0,0 +1,104 @@
21 +/*
22 + * Shark(MPC5200) board Device Tree Source
23 + *
24 + * Copyright 2006-2007 Secret Lab Technologies Ltd.
25 + * Grant Likely <grant.likely@secretlab.ca>
26 + *
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.
31 + */
32 +
33 +/include/ "mpc5200b.dtsi"
34 +
35 +/ {
36 +       model = "cvut,ryu";
37 +       compatible = "midam,shark";
38 +
39 +       memory {
40 +               reg = <0x00000000 0x08000000>;  // 128MB
41 +       };
42 +
43 +       soc: soc5200@f0000000 {
44 +               psc@2000 {                      // PSC1
45 +                       compatible = "fsl,mpc5200b-psc-uart","fsl,mpc5200-psc-uart";
46 +               };
47 +               psc5: psc@2800 {                // PSC5
48 +                       status = "disabled";
49 +               };
50 +
51 +               ethernet@3000 {
52 +                       phy-handle = <&phy0>;
53 +               };
54 +
55 +               mdio@3000 {
56 +                       phy0: ethernet-phy@1f {
57 +                               device_type = "ethernet-phy";
58 +                               reg = <0x1f>;
59 +                       };
60 +               };
61 +
62 +               i2c@3d40 {
63 +                       rtc@68 {
64 +                               compatible = "dallas,ds1307";
65 +                               reg = <0x68>;
66 +                       };
67 +               };
68 +       };
69 +
70 +       localbus {
71 +               ranges = <0 0 0xfc000000 0x04000000>;
72 +
73 +               flash@0,0 {
74 +                       compatible = "cfi-flash";
75 +                       reg = <0 0 0x04000000>;
76 +                       bank-width = <2>;
77 +                       device-width = <2>;
78 +                       #size-cells = <1>;
79 +                       #address-cells = <1>;
80 +
81 +                       uboot@0 {
82 +                               label = "u-boot";
83 +                               reg = <0 0x00100000>;
84 +                               read-only;
85 +                       };
86 +
87 +                       kernel@100000 {
88 +                               label = "kernel";
89 +                               reg = <0x00100000 0x00300000>;
90 +                               read-only;
91 +                       };
92 +
93 +                       filesystem@400000 {
94 +                               label = "filesystem";
95 +                               reg = <0x00400000 0x03c00000>;
96 +                       };
97 +               };
98 +       };
99 +
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
106 +
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>;
114 +       };
115 +       motorek@0 {
116 +               device_type = "motorek";
117 +               pwmf = <&gpt2>;
118 +               pwmb = <&gpt3>;
119 +               irca = <&gpt5>;
120 +               ircb = <&gpt4>;
121 +               interrupts = <0 0 1>;
122 +               //gpios = <&gpio_a
123 +       };
124 +};
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 = {
130         "promess,motionpro",
131         "schindler,cm5200",
132         "tqc,tqm5200",
133 +       "midam,shark",
134         NULL
135  };
136  
137 -- 
138 1.8.5.2
139