blob: ee67c70bf02efc2396b3a02065b719d7cf68816e [file] [log] [blame]
Gregory CLEMENT292816a2018-02-14 13:17:20 +01001// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
Gregory CLEMENTae701b62017-06-12 17:34:58 +02002/*
3 * Copyright (C) 2017 Marvell Technology Group Ltd.
4 *
Gregory CLEMENTae701b62017-06-12 17:34:58 +02005 * Device Tree file for the Armada 80x0 SoC family
6 */
7
Gregory CLEMENT63dac0f2017-06-12 17:35:00 +02008/ {
9 aliases {
Thomas Petazzoni91f1be92018-01-02 15:55:58 +010010 gpio1 = &cp1_gpio1;
11 gpio2 = &cp0_gpio2;
12 spi1 = &cp0_spi0;
13 spi2 = &cp0_spi1;
14 spi3 = &cp1_spi0;
15 spi4 = &cp1_spi1;
Gregory CLEMENT63dac0f2017-06-12 17:35:00 +020016 };
17};
18
Thomas Petazzoni72a37132018-01-02 15:55:57 +010019/*
20 * Instantiate the master CP110
21 */
Miquel Raynal47cf40a2019-10-04 16:27:29 +020022#define CP11X_NAME cp0
23#define CP11X_BASE f2000000
Miquel Raynal5f07b262019-10-04 16:27:31 +020024#define CP11X_PCIEx_MEM_BASE(iface) (0xf6000000 + (iface * 0x1000000))
25#define CP11X_PCIEx_MEM_SIZE(iface) 0xf00000
Miquel Raynal47cf40a2019-10-04 16:27:29 +020026#define CP11X_PCIE0_BASE f2600000
27#define CP11X_PCIE1_BASE f2620000
28#define CP11X_PCIE2_BASE f2640000
Thomas Petazzoni72a37132018-01-02 15:55:57 +010029
30#include "armada-cp110.dtsi"
31
Miquel Raynal47cf40a2019-10-04 16:27:29 +020032#undef CP11X_NAME
33#undef CP11X_BASE
Miquel Raynal5f07b262019-10-04 16:27:31 +020034#undef CP11X_PCIEx_MEM_BASE
35#undef CP11X_PCIEx_MEM_SIZE
Miquel Raynal47cf40a2019-10-04 16:27:29 +020036#undef CP11X_PCIE0_BASE
37#undef CP11X_PCIE1_BASE
38#undef CP11X_PCIE2_BASE
Thomas Petazzoni72a37132018-01-02 15:55:57 +010039
40/*
41 * Instantiate the slave CP110
42 */
Miquel Raynal47cf40a2019-10-04 16:27:29 +020043#define CP11X_NAME cp1
44#define CP11X_BASE f4000000
Miquel Raynal5f07b262019-10-04 16:27:31 +020045#define CP11X_PCIEx_MEM_BASE(iface) (0xfa000000 + (iface * 0x1000000))
46#define CP11X_PCIEx_MEM_SIZE(iface) 0xf00000
Miquel Raynal47cf40a2019-10-04 16:27:29 +020047#define CP11X_PCIE0_BASE f4600000
48#define CP11X_PCIE1_BASE f4620000
49#define CP11X_PCIE2_BASE f4640000
Thomas Petazzoni72a37132018-01-02 15:55:57 +010050
51#include "armada-cp110.dtsi"
52
Miquel Raynal47cf40a2019-10-04 16:27:29 +020053#undef CP11X_NAME
54#undef CP11X_BASE
Miquel Raynal5f07b262019-10-04 16:27:31 +020055#undef CP11X_PCIEx_MEM_BASE
56#undef CP11X_PCIEx_MEM_SIZE
Miquel Raynal47cf40a2019-10-04 16:27:29 +020057#undef CP11X_PCIE0_BASE
58#undef CP11X_PCIE1_BASE
59#undef CP11X_PCIE2_BASE
Thomas Petazzoni72a37132018-01-02 15:55:57 +010060
Gregory CLEMENT63dac0f2017-06-12 17:35:00 +020061/* The 80x0 has two CP blocks, but uses only one block from each. */
Thomas Petazzoni91f1be92018-01-02 15:55:58 +010062&cp1_gpio1 {
Gregory CLEMENT63dac0f2017-06-12 17:35:00 +020063 status = "okay";
64};
65
Thomas Petazzoni91f1be92018-01-02 15:55:58 +010066&cp0_gpio2 {
Gregory CLEMENT63dac0f2017-06-12 17:35:00 +020067 status = "okay";
68};
69
Thomas Petazzoni91f1be92018-01-02 15:55:58 +010070&cp0_syscon0 {
71 cp0_pinctrl: pinctrl {
Gregory CLEMENTf9a0c272018-01-12 11:00:02 +010072 compatible = "marvell,armada-8k-cpm-pinctrl";
Gregory CLEMENTae701b62017-06-12 17:34:58 +020073 };
74};
75
Thomas Petazzoni91f1be92018-01-02 15:55:58 +010076&cp1_syscon0 {
77 cp1_pinctrl: pinctrl {
Gregory CLEMENTf9a0c272018-01-12 11:00:02 +010078 compatible = "marvell,armada-8k-cps-pinctrl";
Miquel Raynal7b31e3a2017-10-30 14:31:07 +010079
80 nand_pins: nand-pins {
81 marvell,pins =
82 "mpp0", "mpp1", "mpp2", "mpp3",
83 "mpp4", "mpp5", "mpp6", "mpp7",
84 "mpp8", "mpp9", "mpp10", "mpp11",
85 "mpp15", "mpp16", "mpp17", "mpp18",
86 "mpp19", "mpp20", "mpp21", "mpp22",
87 "mpp23", "mpp24", "mpp25", "mpp26",
88 "mpp27";
89 marvell,function = "dev";
90 };
91
92 nand_rb: nand-rb {
93 marvell,pins = "mpp13", "mpp12";
94 marvell,function = "nf";
95 };
Gregory CLEMENTae701b62017-06-12 17:34:58 +020096 };
97};
Thomas Petazzoni72a37132018-01-02 15:55:57 +010098
Thomas Petazzoni91f1be92018-01-02 15:55:58 +010099&cp1_crypto {
Thomas Petazzoni72a37132018-01-02 15:55:57 +0100100 /*
101 * The cryptographic engine found on the cp110
102 * master is enabled by default at the SoC
103 * level. Because it is not possible as of now
104 * to enable two cryptographic engines in
105 * parallel, disable this one by default.
106 */
107 status = "disabled";
108};