summaryrefslogtreecommitdiff
path: root/arch/arm64/boot/dts/freescale/imx8mm-verdin.dtsi
blob: 464b85291db0c3a8ac63c139c63ac7403485e4f4 (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
// SPDX-License-Identifier: GPL-2.0+ OR MIT
/*
 * Copyright 2017-2020 Toradex
 */

#include "imx8mm-verdin-v1.1.dtsi"

/ {
	pcie0_refclk: pcie0-refclk {
		compatible = "gpio-gate-clock";
		#clock-cells = <0>;
		clock-frequency = <100000000>;
		/* on-module ext oscillator */
		enable-gpios = <&gpio2 19 GPIO_ACTIVE_HIGH>;
	};
};

&i2c1 {
	/delete-node/ pca9450@25;

	pmic_v10: bd71837@4b {
		compatible = "rohm,bd71837";
		interrupt-parent = <&gpio1>;
		/* PMIC BD71837 PMIC_nINT GPIO1_IO3 */
		interrupts = <3 GPIO_ACTIVE_LOW>;
		pinctrl-0 = <&pinctrl_pmic>;
		reg = <0x4b>;
		rohm,reset-snvs-powered;

		gpo {
			rohm,drv = <0x0C>;	/* 0b0000_1100 all gpos with cmos output mode */
		};

		regulators {
			buck1_reg: BUCK1 {
				regulator-always-on;
				regulator-boot-on;
				regulator-max-microvolt = <1300000>;
				regulator-min-microvolt = <700000>;
				regulator-name = "BUCK1";
				regulator-ramp-delay = <1250>;
			};

			buck2_reg: BUCK2 {
				regulator-always-on;
				regulator-boot-on;
				regulator-max-microvolt = <1300000>;
				regulator-min-microvolt = <700000>;
				regulator-name = "BUCK2";
				regulator-ramp-delay = <1250>;
			};

			buck5_reg: BUCK5 {
				regulator-always-on;
				regulator-boot-on;
				regulator-max-microvolt = <1350000>;
				regulator-min-microvolt = <700000>;
				regulator-name = "BUCK5";
			};

			buck6_reg: BUCK6 {
				regulator-always-on;
				regulator-boot-on;
				regulator-max-microvolt = <3300000>;
				regulator-min-microvolt = <3000000>;
				regulator-name = "BUCK6";
			};

			buck7_reg: BUCK7 {
				regulator-always-on;
				regulator-boot-on;
				regulator-max-microvolt = <1995000>;
				regulator-min-microvolt = <1605000>;
				regulator-name = "BUCK7";
			};

			buck8_reg: BUCK8 {
				regulator-always-on;
				regulator-boot-on;
				regulator-max-microvolt = <1400000>;
				regulator-min-microvolt = <800000>;
				regulator-name = "BUCK8";
			};

			ldo1_reg: LDO1 {
				regulator-always-on;
				regulator-boot-on;
				regulator-max-microvolt = <1900000>;
				regulator-min-microvolt = <1600000>;
				regulator-name = "LDO1";
			};

			ldo2_reg: LDO2 {
				regulator-always-on;
				regulator-boot-on;
				regulator-max-microvolt = <900000>;
				regulator-min-microvolt = <800000>;
				regulator-name = "LDO2";
			};

			ldo3_reg: LDO3 {
				regulator-always-on;
				regulator-boot-on;
				regulator-max-microvolt = <3300000>;
				regulator-min-microvolt = <1800000>;
				regulator-name = "LDO3";
			};

			ldo4_reg: LDO4 {
				regulator-always-on;
				regulator-boot-on;
				regulator-max-microvolt = <1800000>;
				regulator-min-microvolt = <900000>;
				regulator-name = "LDO4";
			};

			ldo5_reg: LDO5 {
				regulator-max-microvolt = <3300000>;
				regulator-min-microvolt = <3300000>;
				regulator-name = "LDO5";
			};

			ldo6_reg: LDO6 {
				regulator-always-on;
				regulator-boot-on;
				regulator-max-microvolt = <1800000>;
				regulator-min-microvolt = <900000>;
				regulator-name = "LDO6";
			};
		};
	};

	adc: adc@34 {
		compatible = "maxim,max11607";
		reg = <0x34>;
		vcc-supply = <&ldo5_reg>;
	};
};

/* Verdin PCIE_1 */
&pcie0 {
	clocks = <&clk IMX8MM_CLK_PCIE1_ROOT>,
		 <&clk IMX8MM_CLK_PCIE1_AUX>,
		 <&clk IMX8MM_CLK_PCIE1_PHY>,
		 <&pcie0_refclk>;
	ext_osc = <1>;
};

&iomuxc {
	pinctrl_ctrl_force_off_moci: ctrlforceoffgrp {
		fsl,pins = <
			MX8MM_IOMUXC_SAI5_RXC_GPIO3_IO20		0x1c4	/* SODIMM 250 */
		>;
	};

	pinctrl_usdhc1: usdhc1grp {
		fsl,pins = <
			MX8MM_IOMUXC_SD1_CLK_USDHC1_CLK			0x190
			MX8MM_IOMUXC_SD1_CMD_USDHC1_CMD			0x1d0
			MX8MM_IOMUXC_SD1_DATA0_USDHC1_DATA0		0x1d0
			MX8MM_IOMUXC_SD1_DATA1_USDHC1_DATA1		0x1d0
			MX8MM_IOMUXC_SD1_DATA2_USDHC1_DATA2		0x1d0
			MX8MM_IOMUXC_SD1_DATA3_USDHC1_DATA3		0x1d0
			MX8MM_IOMUXC_SD1_DATA4_USDHC1_DATA4		0x1d0
			MX8MM_IOMUXC_SD1_DATA5_USDHC1_DATA5		0x1d0
			MX8MM_IOMUXC_SD1_DATA6_USDHC1_DATA6		0x1d0
			MX8MM_IOMUXC_SD1_DATA7_USDHC1_DATA7		0x1d0
			MX8MM_IOMUXC_SD1_STROBE_USDHC1_STROBE		0x190
		>;
	};

	pinctrl_usdhc1_100mhz: usdhc1grp100mhz {
		fsl,pins = <
			MX8MM_IOMUXC_SD1_CLK_USDHC1_CLK			0x194
			MX8MM_IOMUXC_SD1_CMD_USDHC1_CMD			0x1d4
			MX8MM_IOMUXC_SD1_DATA0_USDHC1_DATA0		0x1d4
			MX8MM_IOMUXC_SD1_DATA1_USDHC1_DATA1		0x1d4
			MX8MM_IOMUXC_SD1_DATA2_USDHC1_DATA2		0x1d4
			MX8MM_IOMUXC_SD1_DATA3_USDHC1_DATA3		0x1d4
			MX8MM_IOMUXC_SD1_DATA4_USDHC1_DATA4		0x1d4
			MX8MM_IOMUXC_SD1_DATA5_USDHC1_DATA5		0x1d4
			MX8MM_IOMUXC_SD1_DATA6_USDHC1_DATA6		0x1d4
			MX8MM_IOMUXC_SD1_DATA7_USDHC1_DATA7		0x1d4
			MX8MM_IOMUXC_SD1_STROBE_USDHC1_STROBE		0x194
		>;
	};

	pinctrl_usdhc1_200mhz: usdhc1grp200mhz {
		fsl,pins = <
			MX8MM_IOMUXC_SD1_CLK_USDHC1_CLK			0x196
			MX8MM_IOMUXC_SD1_CMD_USDHC1_CMD			0x1d6
			MX8MM_IOMUXC_SD1_DATA0_USDHC1_DATA0		0x1d6
			MX8MM_IOMUXC_SD1_DATA1_USDHC1_DATA1		0x1d6
			MX8MM_IOMUXC_SD1_DATA2_USDHC1_DATA2		0x1d6
			MX8MM_IOMUXC_SD1_DATA3_USDHC1_DATA3		0x1d6
			MX8MM_IOMUXC_SD1_DATA4_USDHC1_DATA4		0x1d6
			MX8MM_IOMUXC_SD1_DATA5_USDHC1_DATA5		0x1d6
			MX8MM_IOMUXC_SD1_DATA6_USDHC1_DATA6		0x1d6
			MX8MM_IOMUXC_SD1_DATA7_USDHC1_DATA7		0x1d6
			MX8MM_IOMUXC_SD1_STROBE_USDHC1_STROBE		0x196
		>;
	};

	pinctrl_wifi_ctrl: wifictrlgrp {
		fsl,pins = <
			MX8MM_IOMUXC_NAND_READY_B_GPIO3_IO16		0x1c4		/* WIFI_WKUP_BT */
			MX8MM_IOMUXC_SD1_RESET_B_GPIO2_IO10		0x1c4		/* WIFI_WKUP_WLAN */
			MX8MM_IOMUXC_SAI1_RXD7_GPIO4_IO9		0x1c4		/* WIFI_W_WKUP_HOST */
		>;
	};
};