summaryrefslogtreecommitdiffstats
path: root/arch/arm/boot/dts/imx6qdl-tqma6.dtsi
blob: 344ea935c7dac7553d7c4f9280bd8f06dad3a94b (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
// SPDX-License-Identifier: GPL-2.0-or-later
/*
 * Copyright 2013 Sascha Hauer, Pengutronix
 * Copyright 2013-2017 Markus Niebel <Markus.Niebel@tq-group.com>
 */

#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/interrupt-controller/irq.h>

/ {
	reg_3p3v: regulator-3p3v {
		compatible = "regulator-fixed";
		regulator-name = "supply-3p3v";
		regulator-min-microvolt = <3300000>;
		regulator-max-microvolt = <3300000>;
		regulator-always-on;
	};
};

&ecspi1 {
	pinctrl-names = "default";
	pinctrl-0 = <&pinctrl_ecspi1>;
	cs-gpios = <&gpio3 19 GPIO_ACTIVE_LOW>;
	status = "okay";

	m25p80: flash@0 {
		compatible = "jedec,spi-nor";
		spi-max-frequency = <50000000>;
		reg = <0>;
		#address-cells = <1>;
		#size-cells = <1>;
		m25p,fast-read;
	};
};

&iomuxc {
	pinctrl_ecspi1: ecspi1grp {
		fsl,pins = <
			/* HYS, SPEED = MED, 100k up, DSE = 011, SRE_FAST */
			MX6QDL_PAD_EIM_D17__ECSPI1_MISO 0x1b099
			MX6QDL_PAD_EIM_D18__ECSPI1_MOSI 0xb099
			MX6QDL_PAD_EIM_D16__ECSPI1_SCLK 0xb099
			 /* eCSPI1 SS1 */
			MX6QDL_PAD_EIM_D19__GPIO3_IO19 0xb099
		>;
	};

	pinctrl_i2c1: i2c1grp {
		fsl,pins = <
			MX6QDL_PAD_CSI0_DAT8__I2C1_SDA 0x4001b899
			MX6QDL_PAD_CSI0_DAT9__I2C1_SCL 0x4001b899
		>;
	};

	pinctrl_i2c1_recovery: i2c1recoverygrp {
		fsl,pins = <
			MX6QDL_PAD_CSI0_DAT8__GPIO5_IO26 0x4001b899
			MX6QDL_PAD_CSI0_DAT9__GPIO5_IO27 0x4001b899
		>;
	};

	pinctrl_i2c3: i2c3grp {
		fsl,pins = <
			MX6QDL_PAD_GPIO_5__I2C3_SCL 0x4001b899
			MX6QDL_PAD_GPIO_6__I2C3_SDA 0x4001b899
		>;
	};

	pinctrl_i2c3_recovery: i2c3recoverygrp {
		fsl,pins = <
			MX6QDL_PAD_GPIO_5__GPIO1_IO05 0x4001b899
			MX6QDL_PAD_GPIO_6__GPIO1_IO06 0x4001b899
		>;
	};

	pinctrl_pmic: pmicgrp {
		fsl,pins = <
			MX6QDL_PAD_NANDF_RB0__GPIO6_IO10 0x1b099 /* PMIC irq */
		>;
	};

	pinctrl_usdhc3: usdhc3grp {
		fsl,pins = <
			MX6QDL_PAD_SD3_CMD__SD3_CMD    0x17059
			MX6QDL_PAD_SD3_CLK__SD3_CLK    0x10059
			MX6QDL_PAD_SD3_DAT0__SD3_DATA0 0x17059
			MX6QDL_PAD_SD3_DAT1__SD3_DATA1 0x17059
			MX6QDL_PAD_SD3_DAT2__SD3_DATA2 0x17059
			MX6QDL_PAD_SD3_DAT3__SD3_DATA3 0x17059
			MX6QDL_PAD_SD3_DAT4__SD3_DATA4 0x17059
			MX6QDL_PAD_SD3_DAT5__SD3_DATA5 0x17059
			MX6QDL_PAD_SD3_DAT6__SD3_DATA6 0x17059
			MX6QDL_PAD_SD3_DAT7__SD3_DATA7 0x17059
		>;
	};
};

&pmic {
	pinctrl-names = "default";
	pinctrl-0 = <&pinctrl_pmic>;
	interrupt-parent = <&gpio6>;
	interrupts = <10 IRQ_TYPE_LEVEL_LOW>;

	regulators {
		reg_vddcore: sw1ab {
			regulator-min-microvolt = <300000>;
			regulator-max-microvolt = <1875000>;
			regulator-always-on;
		};

		reg_vddsoc: sw1c {
			regulator-min-microvolt = <300000>;
			regulator-max-microvolt = <1875000>;
			regulator-always-on;
		};

		reg_gen_3v3: sw2 {
			regulator-min-microvolt = <800000>;
			regulator-max-microvolt = <3300000>;
			regulator-always-on;
		};

		reg_ddr_1v5a: sw3a {
			regulator-min-microvolt = <400000>;
			regulator-max-microvolt = <1975000>;
			regulator-always-on;
		};

		reg_ddr_1v5b: sw3b {
			regulator-min-microvolt = <400000>;
			regulator-max-microvolt = <1975000>;
			regulator-always-on;
		};

		sw4_reg: sw4 {
			regulator-min-microvolt = <800000>;
			regulator-max-microvolt = <3300000>;
			regulator-always-on;
		};

		reg_5v_600mA: swbst {
			regulator-min-microvolt = <5000000>;
			regulator-max-microvolt = <5150000>;
			regulator-always-on;
		};

		reg_snvs_3v: vsnvs {
			regulator-min-microvolt = <1500000>;
			regulator-max-microvolt = <3000000>;
			regulator-always-on;
		};

		reg_vrefddr: vrefddr {
			regulator-boot-on;
			regulator-always-on;
		};

		reg_vgen1_1v5: vgen1 {
			regulator-min-microvolt = <800000>;
			regulator-max-microvolt = <1550000>;
			/* not used */
		};

		reg_vgen2_1v2_eth: vgen2 {
			regulator-min-microvolt = <800000>;
			regulator-max-microvolt = <1550000>;
			regulator-always-on;
		};

		reg_vgen3_2v8: vgen3 {
			regulator-min-microvolt = <1800000>;
			regulator-max-microvolt = <3300000>;
			regulator-always-on;
		};

		reg_vgen4_1v8: vgen4 {
			regulator-min-microvolt = <1800000>;
			regulator-max-microvolt = <3300000>;
			regulator-always-on;
		};

		reg_vgen5_1v8_eth: vgen5 {
			regulator-min-microvolt = <1800000>;
			regulator-max-microvolt = <3300000>;
			regulator-always-on;
		};

		reg_vgen6_3v3: vgen6 {
			regulator-min-microvolt = <1800000>;
			regulator-max-microvolt = <3300000>;
			regulator-always-on;
		};
	};
};

/* eMMC */
&usdhc3 {
	pinctrl-names = "default";
	pinctrl-0 = <&pinctrl_usdhc3>;
	vmmc-supply = <&reg_3p3v>;
	non-removable;
	disable-wp;
	no-sd;
	no-sdio;
	bus-width = <8>;
	#address-cells = <1>;
	#size-cells = <0>;
	status = "okay";

	mmccard: mmccard@0 {
		reg = <0>;
		compatible = "mmc-card";
		broken-hpi;
	};
};