diff options
author | Stefan Roese <sr@denx.de> | 2012-11-19 06:09:40 -0500 |
---|---|---|
committer | Maxime Ripard <maxime.ripard@free-electrons.com> | 2012-11-20 09:36:00 -0500 |
commit | de0bf33fc2b0b1d4b1419adf645fb36e9e52781a (patch) | |
tree | 3692e4eaf3ab21bd4ccbd64b7b10f405232b6415 | |
parent | 1b106699647b56313bac707e12e7ad67180cb147 (diff) |
ARM: sunxi: Restructure sunxi dts/dtsi files
For the new sun4i/Cubieboard (A10) support, lets re-strucure the
sun5i dts files to make it more generic. Those are the new
dts/dtsi files:
sunxi.dtsi - Devices common to all Allwinner sunXi SoC's
sun4i.dtsi - sun4i Devices, will include sunxi.dtsi
sun5i.dtsi - sun5i Devices, will include sunxi.dtsi
board.dts - will include either sun4i.dtsi or sun5i.dtsi
Additionally the "duart" label in the olinuxino.dts is changed to
"uart1".
Signed-off-by: Stefan Roese <sr@denx.de>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
-rw-r--r-- | arch/arm/boot/dts/sun5i-olinuxino.dts | 6 | ||||
-rw-r--r-- | arch/arm/boot/dts/sun5i.dtsi | 56 | ||||
-rw-r--r-- | arch/arm/boot/dts/sunxi.dtsi | 66 |
3 files changed, 72 insertions, 56 deletions
diff --git a/arch/arm/boot/dts/sun5i-olinuxino.dts b/arch/arm/boot/dts/sun5i-olinuxino.dts index 3b1cce3af7cb..d6ff889a5d87 100644 --- a/arch/arm/boot/dts/sun5i-olinuxino.dts +++ b/arch/arm/boot/dts/sun5i-olinuxino.dts | |||
@@ -18,8 +18,12 @@ | |||
18 | model = "Olimex A13-Olinuxino"; | 18 | model = "Olimex A13-Olinuxino"; |
19 | compatible = "olimex,a13-olinuxino", "allwinner,sun5i"; | 19 | compatible = "olimex,a13-olinuxino", "allwinner,sun5i"; |
20 | 20 | ||
21 | chosen { | ||
22 | bootargs = "earlyprintk console=ttyS0,115200"; | ||
23 | }; | ||
24 | |||
21 | soc { | 25 | soc { |
22 | duart: uart@01c28400 { | 26 | uart1: uart@01c28400 { |
23 | status = "okay"; | 27 | status = "okay"; |
24 | }; | 28 | }; |
25 | }; | 29 | }; |
diff --git a/arch/arm/boot/dts/sun5i.dtsi b/arch/arm/boot/dts/sun5i.dtsi index 4bedf3e826e8..59a2d265a98e 100644 --- a/arch/arm/boot/dts/sun5i.dtsi +++ b/arch/arm/boot/dts/sun5i.dtsi | |||
@@ -11,64 +11,10 @@ | |||
11 | * http://www.gnu.org/copyleft/gpl.html | 11 | * http://www.gnu.org/copyleft/gpl.html |
12 | */ | 12 | */ |
13 | 13 | ||
14 | /include/ "skeleton.dtsi" | 14 | /include/ "sunxi.dtsi" |
15 | 15 | ||
16 | / { | 16 | / { |
17 | interrupt-parent = <&intc>; | ||
18 | |||
19 | cpus { | ||
20 | cpu@0 { | ||
21 | compatible = "arm,cortex-a8"; | ||
22 | }; | ||
23 | }; | ||
24 | |||
25 | chosen { | ||
26 | bootargs = "earlyprintk console=ttyS0,115200"; | ||
27 | }; | ||
28 | |||
29 | memory { | 17 | memory { |
30 | reg = <0x40000000 0x20000000>; | 18 | reg = <0x40000000 0x20000000>; |
31 | }; | 19 | }; |
32 | |||
33 | clocks { | ||
34 | #address-cells = <1>; | ||
35 | #size-cells = <0>; | ||
36 | |||
37 | osc: oscillator { | ||
38 | #clock-cells = <0>; | ||
39 | compatible = "fixed-clock"; | ||
40 | clock-frequency = <24000000>; | ||
41 | }; | ||
42 | }; | ||
43 | |||
44 | soc { | ||
45 | compatible = "simple-bus"; | ||
46 | #address-cells = <1>; | ||
47 | #size-cells = <1>; | ||
48 | reg = <0x01c20000 0x300000>; | ||
49 | ranges; | ||
50 | |||
51 | timer@01c20c00 { | ||
52 | compatible = "allwinner,sunxi-timer"; | ||
53 | reg = <0x01c20c00 0x400>; | ||
54 | interrupts = <22>; | ||
55 | clocks = <&osc>; | ||
56 | }; | ||
57 | |||
58 | intc: interrupt-controller@01c20400 { | ||
59 | compatible = "allwinner,sunxi-ic"; | ||
60 | reg = <0x01c20400 0x400>; | ||
61 | interrupt-controller; | ||
62 | #interrupt-cells = <1>; | ||
63 | }; | ||
64 | |||
65 | uart1: uart@01c28400 { | ||
66 | compatible = "ns8250"; | ||
67 | reg = <0x01c28400 0x400>; | ||
68 | interrupts = <2>; | ||
69 | reg-shift = <2>; | ||
70 | clock-frequency = <24000000>; | ||
71 | status = "disabled"; | ||
72 | }; | ||
73 | }; | ||
74 | }; | 20 | }; |
diff --git a/arch/arm/boot/dts/sunxi.dtsi b/arch/arm/boot/dts/sunxi.dtsi new file mode 100644 index 000000000000..9e476deb8809 --- /dev/null +++ b/arch/arm/boot/dts/sunxi.dtsi | |||
@@ -0,0 +1,66 @@ | |||
1 | /* | ||
2 | * Copyright 2012 Maxime Ripard | ||
3 | * | ||
4 | * Maxime Ripard <maxime.ripard@free-electrons.com> | ||
5 | * | ||
6 | * The code contained herein is licensed under the GNU General Public | ||
7 | * License. You may obtain a copy of the GNU General Public License | ||
8 | * Version 2 or later at the following locations: | ||
9 | * | ||
10 | * http://www.opensource.org/licenses/gpl-license.html | ||
11 | * http://www.gnu.org/copyleft/gpl.html | ||
12 | */ | ||
13 | |||
14 | /include/ "skeleton.dtsi" | ||
15 | |||
16 | / { | ||
17 | interrupt-parent = <&intc>; | ||
18 | |||
19 | cpus { | ||
20 | cpu@0 { | ||
21 | compatible = "arm,cortex-a8"; | ||
22 | }; | ||
23 | }; | ||
24 | |||
25 | clocks { | ||
26 | #address-cells = <1>; | ||
27 | #size-cells = <0>; | ||
28 | |||
29 | osc: oscillator { | ||
30 | #clock-cells = <0>; | ||
31 | compatible = "fixed-clock"; | ||
32 | clock-frequency = <24000000>; | ||
33 | }; | ||
34 | }; | ||
35 | |||
36 | soc { | ||
37 | compatible = "simple-bus"; | ||
38 | #address-cells = <1>; | ||
39 | #size-cells = <1>; | ||
40 | reg = <0x01c20000 0x300000>; | ||
41 | ranges; | ||
42 | |||
43 | timer@01c20c00 { | ||
44 | compatible = "allwinner,sunxi-timer"; | ||
45 | reg = <0x01c20c00 0x400>; | ||
46 | interrupts = <22>; | ||
47 | clocks = <&osc>; | ||
48 | }; | ||
49 | |||
50 | intc: interrupt-controller@01c20400 { | ||
51 | compatible = "allwinner,sunxi-ic"; | ||
52 | reg = <0x01c20400 0x400>; | ||
53 | interrupt-controller; | ||
54 | #interrupt-cells = <1>; | ||
55 | }; | ||
56 | |||
57 | uart1: uart@01c28400 { | ||
58 | compatible = "ns8250"; | ||
59 | reg = <0x01c28400 0x400>; | ||
60 | interrupts = <2>; | ||
61 | reg-shift = <2>; | ||
62 | clock-frequency = <24000000>; | ||
63 | status = "disabled"; | ||
64 | }; | ||
65 | }; | ||
66 | }; | ||