aboutsummaryrefslogtreecommitdiff
path: root/arch/arm/dts/cn9132-db.dtsi
blob: d51a4d0b30e6c20e6f49ba49d5ed6d9e6301a7d6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
// SPDX-License-Identifier: GPL-2.0+
/*
 * Copyright (C) 2018-2021 Marvell International Ltd.
 */

#undef CP110_NAME
#undef CP110_NUM
#undef CP110_PCIE_MEM_SIZE
#undef CP110_PCIEx_CPU_MEM_BASE
#undef CP110_PCIEx_BUS_MEM_BASE

/* CP110-2 Settings */
#define CP110_NAME			cp2
#define CP110_NUM			2
#define CP110_PCIE_MEM_SIZE(iface)	(0xf00000)
#define CP110_PCIEx_CPU_MEM_BASE(iface)	(0xe5000000 + (iface) *  0x1000000)
#define CP110_PCIEx_BUS_MEM_BASE(iface)	(CP110_PCIEx_CPU_MEM_BASE(iface))

#include "armada-cp110.dtsi"

/ {
	model = "Marvell CN9132 development board";
	compatible = "marvell,cn9132-db";

	aliases {
		gpio5 = &cp2_gpio0;
		gpio6 = &cp2_gpio1;
	};

	cp2 {
		config-space {
			sdhci@780000 {
				vqmmc-supply = <&cp2_reg_sd_vccq>;
			};

			cp2_reg_usb3_vbus0: cp2_usb3_vbus@0 {
				compatible = "regulator-fixed";
				regulator-name = "cp2-xhci0-vbus";
				regulator-min-microvolt = <5000000>;
				regulator-max-microvolt = <5000000>;
				startup-delay-us = <100000>;
				regulator-force-boot-off;
				gpio = <&cp2_gpio0 2 GPIO_ACTIVE_HIGH>;
			};

			cp2_reg_usb3_vbus1: cp2_usb3_vbus@1 {
				compatible = "regulator-fixed";
				regulator-name = "cp2-xhci1-vbus";
				regulator-min-microvolt = <5000000>;
				regulator-max-microvolt = <5000000>;
				startup-delay-us = <100000>;
				regulator-force-boot-off;
				gpio = <&cp2_gpio0 3 GPIO_ACTIVE_HIGH>;
			};
			cp2_reg_sd_vccq: cp2_sd_vccq@0 {
				compatible = "regulator-gpio";
				regulator-name = "cp2_sd_vcc";
				regulator-min-microvolt = <1800000>;
				regulator-max-microvolt = <3300000>;
				/* cp2_mpp49 */
				gpios = <&cp2_gpio1 17 GPIO_ACTIVE_HIGH>;
				states = <1800000 0x1
					  3300000 0x0>;
			};
			cp2_reg_usb3_current_lim0: cp2_usb3_current_limiter@0 {
				compatible = "regulator-fixed";
				regulator-min-microamp = <900000>;
				regulator-max-microamp = <900000>;
				regulator-force-boot-off;
				gpio = <&cp2_gpio0 0 GPIO_ACTIVE_HIGH>;
			};

			cp2_reg_usb3_current_lim1: cp2_usb3_current_limiter@1 {
				compatible = "regulator-fixed";
				regulator-min-microamp = <900000>;
				regulator-max-microamp = <900000>;
				regulator-force-boot-off;
				gpio = <&cp2_gpio0 1 GPIO_ACTIVE_HIGH>;
			};
		};
	};
};

&cp2_i2c0 {
	pinctrl-names = "default";
	pinctrl-0 = <&cp2_i2c0_pins>;
	status = "okay";
	clock-frequency = <100000>;
};

&cp2_pinctl {
	compatible = "marvell,mvebu-pinctrl",
		     "marvell,cp115-standalone-pinctrl";
	bank-name ="cp2-110";

	/* MPP Bus:
	 *	[0-26]		GPIO
	 *	[27]		SATA0_PRESENT_ACTIVEn
	 *	[28]		SATA1_PRESENT_ACTIVEn
	 *	[29-31, 33]	GPIO (Default)
	 *	[32,34]		SMI
	 *	[37-38]		I2C0
	 *	[39-53]		GPIO
	 *	[54]		SD_CRD_RSTn (out)
	 *	[55]		SD_CRD_DT (in)
	 *	[56-62]		SDIO
	 */
		/*   0    1    2    3    4    5    6    7    8    9 */
	pin-func = < 0x0  0x0  0x0  0x0  0x0  0x0  0x0  0x0  0x0  0x0
		     0x0  0x0  0x0  0x0  0x0  0x0  0x0  0x0  0x0  0x0
		     0x0  0x0  0x0  0x0  0x0  0x0  0x0  0x9  0x9  0x0
		     0x0  0x0  0x8  0x0  0x8  0x0  0x0  0x2  0x2  0x0
		     0x0  0x0  0x0  0x0  0x0  0x0  0x0  0x0  0x0  0x0
		     0x0  0x0  0x0  0x0  0xa  0xb  0xe  0xe  0xe  0xe
		     0xe  0xe  0xe >;

	cp2_i2c0_pins: cp2-i2c-pins-0 {
		marvell,pins = < 37 38 >;
		marvell,function = <2>;
	};

	cp2_sdhci_pins: cp2-sdhi-pins-0 {
		marvell,pins = < 56 57 58 59 60 61 >;
		marvell,function = <14>;
	};
};

&cp2_usb3_0 {
	status = "okay";
	vbus-supply = <&cp2_reg_usb3_vbus0>;
	current-limiter = <&cp2_reg_usb3_current_lim0>;
	vbus-disable-delay = <500>;
};

/* SLM-1521-V2, CON11 */
&cp2_usb3_1 {
	status = "okay";
	vbus-supply = <&cp2_reg_usb3_vbus1>;
	current-limiter = <&cp2_reg_usb3_current_lim1>;
	vbus-disable-delay = <500>;
	status = "okay";
};

&cp2_utmi0 {
	status = "okay";
};

&cp2_utmi1 {
	status = "okay";
};

&cp2_comphy {
	phy0 {
		phy-type = <COMPHY_TYPE_PEX0>;
	};

	phy1 {
		phy-type = <COMPHY_TYPE_PEX0>;
	};

	phy2 {
		phy-type = <COMPHY_TYPE_SATA0>;
	};

	phy3 {
		phy-type = <COMPHY_TYPE_USB3_HOST1>;
	};

	phy4 {
		phy-type = <COMPHY_TYPE_SFI0>;
		phy-speed = <COMPHY_SPEED_10_3125G>;
	};

	phy5 {
		phy-type = <COMPHY_TYPE_PEX2>;
	};
};

&cp2_ethernet {
	status = "okay";
};

/* SLM-1521-V2, CON9 */
&cp2_eth0 {
	status = "okay";
	phy-mode = "sfi";
};

/* SLM-1521-V2, CON6 */
&cp2_pcie0 {
	/* non-prefetchable memory */
	ranges =<0x82000000 0 0xe5000000 0 0xe5000000 0 0x1000000>;
	num-lanes = <2>;
	status = "okay";
};

/* SLM-1521-V2, CON8 */
&cp2_pcie2 {
	num-lanes = <1>;
	status = "okay";
};

&cp2_pinctl {
};

/* SLM-1521-V2, CON4 */
&cp2_sata0 {
	status = "okay";
};

/* CON 2 on SLM-1683 - microSD */
&cp2_sdhci0 {
	pinctrl-names = "default";
	pinctrl-0 = <&cp2_sdhci_pins>;
	bus-width = <4>;
	status = "okay";
};