diff options
author | Grzegorz Jaszczyk <jaz@semihalf.com> | 2016-08-04 06:14:20 -0400 |
---|---|---|
committer | Gregory CLEMENT <gregory.clement@free-electrons.com> | 2016-08-08 10:36:48 -0400 |
commit | 35664512358115f2ddefbff2769af5d3cbe554f1 (patch) | |
tree | 19e77f69fd0fe0bc29e8ab3c4be51540783c01e5 | |
parent | 0c2123a69e06488f9328aec9f3ee99948002483d (diff) |
ARM: dts: mvebu: armada-395-gp: add support for the Armada 395 GP Board
This commit adds description for the following features for this board:
- Serial port
- PCIe interfaces
- USB2.0
- USB3.0
- SDIO
- 1024 MiB NAND-FLASH
- SATA
- I2C buses
Signed-off-by: Grzegorz Jaszczyk <jaz@semihalf.com>
Acked-by: Gregory CLEMENT <gregory.clement@free-electrons.com>
Acked-by: Rob Herring <robh@kernel.org>
Signed-off-by: Gregory CLEMENT <gregory.clement@free-electrons.com>
-rw-r--r-- | Documentation/devicetree/bindings/arm/marvell/armada-39x.txt | 4 | ||||
-rw-r--r-- | arch/arm/boot/dts/armada-395-gp.dts | 163 |
2 files changed, 167 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/arm/marvell/armada-39x.txt b/Documentation/devicetree/bindings/arm/marvell/armada-39x.txt index 2d922126cbcc..89468664f6ea 100644 --- a/Documentation/devicetree/bindings/arm/marvell/armada-39x.txt +++ b/Documentation/devicetree/bindings/arm/marvell/armada-39x.txt | |||
@@ -15,6 +15,10 @@ Required root node property: | |||
15 | 15 | ||
16 | compatible: must contain "marvell,armada395" | 16 | compatible: must contain "marvell,armada395" |
17 | 17 | ||
18 | Example: | ||
19 | |||
20 | compatible = "marvell,a395-gp", "marvell,armada395", "marvell,armada390"; | ||
21 | |||
18 | Boards using the Marvell Armada 398 SoC shall have the following | 22 | Boards using the Marvell Armada 398 SoC shall have the following |
19 | property before the common "marvell,armada390" one: | 23 | property before the common "marvell,armada390" one: |
20 | 24 | ||
diff --git a/arch/arm/boot/dts/armada-395-gp.dts b/arch/arm/boot/dts/armada-395-gp.dts new file mode 100644 index 000000000000..2cdbba804c1e --- /dev/null +++ b/arch/arm/boot/dts/armada-395-gp.dts | |||
@@ -0,0 +1,163 @@ | |||
1 | /* | ||
2 | * Device Tree file for Marvell Armada 395 GP board | ||
3 | * | ||
4 | * Copyright (C) 2016 Marvell | ||
5 | * | ||
6 | * Grzegorz Jaszczyk <jaz@semihalf.com> | ||
7 | * | ||
8 | * This file is dual-licensed: you can use it either under the terms | ||
9 | * of the GPL or the X11 license, at your option. Note that this dual | ||
10 | * licensing only applies to this file, and not this project as a | ||
11 | * whole. | ||
12 | * | ||
13 | * a) This file is licensed under the terms of the GNU General Public | ||
14 | * License version 2. This program is licensed "as is" without | ||
15 | * any warranty of any kind, whether express or implied. | ||
16 | * | ||
17 | * Or, alternatively, | ||
18 | * | ||
19 | * b) Permission is hereby granted, free of charge, to any person | ||
20 | * obtaining a copy of this software and associated documentation | ||
21 | * files (the "Software"), to deal in the Software without | ||
22 | * restriction, including without limitation the rights to use, | ||
23 | * copy, modify, merge, publish, distribute, sublicense, and/or | ||
24 | * sell copies of the Software, and to permit persons to whom the | ||
25 | * Software is furnished to do so, subject to the following | ||
26 | * conditions: | ||
27 | * | ||
28 | * The above copyright notice and this permission notice shall be | ||
29 | * included in all copies or substantial portions of the Software. | ||
30 | * | ||
31 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, | ||
32 | * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES | ||
33 | * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND | ||
34 | * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT | ||
35 | * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, | ||
36 | * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING | ||
37 | * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR | ||
38 | * OTHER DEALINGS IN THE SOFTWARE. | ||
39 | */ | ||
40 | |||
41 | /dts-v1/; | ||
42 | #include "armada-395.dtsi" | ||
43 | |||
44 | / { | ||
45 | model = "Marvell Armada 395 GP Board"; | ||
46 | compatible = "marvell,a395-gp", "marvell,armada395", | ||
47 | "marvell,armada390"; | ||
48 | |||
49 | chosen { | ||
50 | stdout-path = "serial0:115200n8"; | ||
51 | }; | ||
52 | |||
53 | memory { | ||
54 | device_type = "memory"; | ||
55 | reg = <0x00000000 0x40000000>; /* 1 GB */ | ||
56 | }; | ||
57 | |||
58 | soc { | ||
59 | ranges = <MBUS_ID(0xf0, 0x01) 0 0xf1000000 0x100000 | ||
60 | MBUS_ID(0x01, 0x1d) 0 0xfff00000 0x100000>; | ||
61 | |||
62 | internal-regs { | ||
63 | i2c@11000 { | ||
64 | status = "okay"; | ||
65 | clock-frequency = <100000>; | ||
66 | |||
67 | eeprom@57 { | ||
68 | compatible = "atmel,24c64"; | ||
69 | reg = <0x57>; | ||
70 | }; | ||
71 | }; | ||
72 | |||
73 | serial@12000 { | ||
74 | /* | ||
75 | * Exported on the micro USB connector CON17 | ||
76 | * through an FTDI | ||
77 | */ | ||
78 | status = "okay"; | ||
79 | }; | ||
80 | |||
81 | /* CON1 */ | ||
82 | usb@58000 { | ||
83 | status = "okay"; | ||
84 | }; | ||
85 | |||
86 | /* CON2 */ | ||
87 | sata@a8000 { | ||
88 | status = "okay"; | ||
89 | }; | ||
90 | |||
91 | flash@d0000 { | ||
92 | status = "okay"; | ||
93 | pinctrl-0 = <&nand_pins>; | ||
94 | pinctrl-names = "default"; | ||
95 | num-cs = <1>; | ||
96 | marvell,nand-keep-config; | ||
97 | marvell,nand-enable-arbiter; | ||
98 | nand-on-flash-bbt; | ||
99 | nand-ecc-strength = <4>; | ||
100 | nand-ecc-step-size = <512>; | ||
101 | |||
102 | partitions { | ||
103 | compatible = "fixed-partitions"; | ||
104 | #address-cells = <1>; | ||
105 | #size-cells = <1>; | ||
106 | |||
107 | partition@0 { | ||
108 | label = "U-Boot"; | ||
109 | reg = <0x00000000 0x00600000>; | ||
110 | read-only; | ||
111 | }; | ||
112 | |||
113 | partition@800000 { | ||
114 | label = "uImage"; | ||
115 | reg = <0x00600000 0x00400000>; | ||
116 | read-only; | ||
117 | }; | ||
118 | |||
119 | partition@1000000 { | ||
120 | label = "Root"; | ||
121 | reg = <0x00a00000 0x3f600000>; | ||
122 | }; | ||
123 | }; | ||
124 | }; | ||
125 | |||
126 | /* CON18 */ | ||
127 | sdhci@d8000 { | ||
128 | clock-frequency = <200000000>; | ||
129 | broken-cd; | ||
130 | wp-inverted; | ||
131 | bus-width = <8>; | ||
132 | status = "okay"; | ||
133 | no-1-8-v; | ||
134 | }; | ||
135 | |||
136 | /* CON4 */ | ||
137 | usb3@f0000 { | ||
138 | status = "okay"; | ||
139 | }; | ||
140 | }; | ||
141 | |||
142 | pcie-controller { | ||
143 | status = "okay"; | ||
144 | |||
145 | /* | ||
146 | * The two PCIe units are accessible through | ||
147 | * mini PCIe slot on the board. | ||
148 | */ | ||
149 | |||
150 | /* CON7 */ | ||
151 | pcie@2,0 { | ||
152 | /* Port 1, Lane 0 */ | ||
153 | status = "okay"; | ||
154 | }; | ||
155 | |||
156 | /* CON8 */ | ||
157 | pcie@4,0 { | ||
158 | /* Port 3, Lane 0 */ | ||
159 | status = "okay"; | ||
160 | }; | ||
161 | }; | ||
162 | }; | ||
163 | }; | ||