xref: /openbmc/linux/arch/arm/boot/dts/nxp/imx/imx6qdl-tqma6.dtsi (revision 2612e3bbc0386368a850140a6c9b990cd496a5ec)
1*724ba675SRob Herring// SPDX-License-Identifier: GPL-2.0-or-later
2*724ba675SRob Herring/*
3*724ba675SRob Herring * Copyright 2013 Sascha Hauer, Pengutronix
4*724ba675SRob Herring * Copyright 2013-2017 Markus Niebel <Markus.Niebel@tq-group.com>
5*724ba675SRob Herring */
6*724ba675SRob Herring
7*724ba675SRob Herring#include <dt-bindings/gpio/gpio.h>
8*724ba675SRob Herring#include <dt-bindings/interrupt-controller/irq.h>
9*724ba675SRob Herring
10*724ba675SRob Herring/ {
11*724ba675SRob Herring	reg_3p3v: regulator-3p3v {
12*724ba675SRob Herring		compatible = "regulator-fixed";
13*724ba675SRob Herring		regulator-name = "supply-3p3v";
14*724ba675SRob Herring		regulator-min-microvolt = <3300000>;
15*724ba675SRob Herring		regulator-max-microvolt = <3300000>;
16*724ba675SRob Herring		regulator-always-on;
17*724ba675SRob Herring	};
18*724ba675SRob Herring};
19*724ba675SRob Herring
20*724ba675SRob Herring&ecspi1 {
21*724ba675SRob Herring	pinctrl-names = "default";
22*724ba675SRob Herring	pinctrl-0 = <&pinctrl_ecspi1>;
23*724ba675SRob Herring	cs-gpios = <&gpio3 19 GPIO_ACTIVE_LOW>;
24*724ba675SRob Herring	status = "okay";
25*724ba675SRob Herring
26*724ba675SRob Herring	m25p80: flash@0 {
27*724ba675SRob Herring		compatible = "jedec,spi-nor";
28*724ba675SRob Herring		spi-max-frequency = <50000000>;
29*724ba675SRob Herring		reg = <0>;
30*724ba675SRob Herring		#address-cells = <1>;
31*724ba675SRob Herring		#size-cells = <1>;
32*724ba675SRob Herring		m25p,fast-read;
33*724ba675SRob Herring	};
34*724ba675SRob Herring};
35*724ba675SRob Herring
36*724ba675SRob Herring&iomuxc {
37*724ba675SRob Herring	pinctrl_ecspi1: ecspi1grp {
38*724ba675SRob Herring		fsl,pins = <
39*724ba675SRob Herring			/* HYS, SPEED = MED, 100k up, DSE = 011, SRE_FAST */
40*724ba675SRob Herring			MX6QDL_PAD_EIM_D17__ECSPI1_MISO 0x1b099
41*724ba675SRob Herring			MX6QDL_PAD_EIM_D18__ECSPI1_MOSI 0xb099
42*724ba675SRob Herring			MX6QDL_PAD_EIM_D16__ECSPI1_SCLK 0xb099
43*724ba675SRob Herring			 /* eCSPI1 SS1 */
44*724ba675SRob Herring			MX6QDL_PAD_EIM_D19__GPIO3_IO19 0xb099
45*724ba675SRob Herring		>;
46*724ba675SRob Herring	};
47*724ba675SRob Herring
48*724ba675SRob Herring	pinctrl_i2c1: i2c1grp {
49*724ba675SRob Herring		fsl,pins = <
50*724ba675SRob Herring			MX6QDL_PAD_CSI0_DAT8__I2C1_SDA 0x4001b899
51*724ba675SRob Herring			MX6QDL_PAD_CSI0_DAT9__I2C1_SCL 0x4001b899
52*724ba675SRob Herring		>;
53*724ba675SRob Herring	};
54*724ba675SRob Herring
55*724ba675SRob Herring	pinctrl_i2c1_recovery: i2c1recoverygrp {
56*724ba675SRob Herring		fsl,pins = <
57*724ba675SRob Herring			MX6QDL_PAD_CSI0_DAT8__GPIO5_IO26 0x4001b899
58*724ba675SRob Herring			MX6QDL_PAD_CSI0_DAT9__GPIO5_IO27 0x4001b899
59*724ba675SRob Herring		>;
60*724ba675SRob Herring	};
61*724ba675SRob Herring
62*724ba675SRob Herring	pinctrl_i2c3: i2c3grp {
63*724ba675SRob Herring		fsl,pins = <
64*724ba675SRob Herring			MX6QDL_PAD_GPIO_5__I2C3_SCL 0x4001b899
65*724ba675SRob Herring			MX6QDL_PAD_GPIO_6__I2C3_SDA 0x4001b899
66*724ba675SRob Herring		>;
67*724ba675SRob Herring	};
68*724ba675SRob Herring
69*724ba675SRob Herring	pinctrl_i2c3_recovery: i2c3recoverygrp {
70*724ba675SRob Herring		fsl,pins = <
71*724ba675SRob Herring			MX6QDL_PAD_GPIO_5__GPIO1_IO05 0x4001b899
72*724ba675SRob Herring			MX6QDL_PAD_GPIO_6__GPIO1_IO06 0x4001b899
73*724ba675SRob Herring		>;
74*724ba675SRob Herring	};
75*724ba675SRob Herring
76*724ba675SRob Herring	pinctrl_pmic: pmicgrp {
77*724ba675SRob Herring		fsl,pins = <
78*724ba675SRob Herring			MX6QDL_PAD_NANDF_RB0__GPIO6_IO10 0x1b099 /* PMIC irq */
79*724ba675SRob Herring		>;
80*724ba675SRob Herring	};
81*724ba675SRob Herring
82*724ba675SRob Herring	pinctrl_usdhc3: usdhc3grp {
83*724ba675SRob Herring		fsl,pins = <
84*724ba675SRob Herring			MX6QDL_PAD_SD3_CMD__SD3_CMD    0x17059
85*724ba675SRob Herring			MX6QDL_PAD_SD3_CLK__SD3_CLK    0x10059
86*724ba675SRob Herring			MX6QDL_PAD_SD3_DAT0__SD3_DATA0 0x17059
87*724ba675SRob Herring			MX6QDL_PAD_SD3_DAT1__SD3_DATA1 0x17059
88*724ba675SRob Herring			MX6QDL_PAD_SD3_DAT2__SD3_DATA2 0x17059
89*724ba675SRob Herring			MX6QDL_PAD_SD3_DAT3__SD3_DATA3 0x17059
90*724ba675SRob Herring			MX6QDL_PAD_SD3_DAT4__SD3_DATA4 0x17059
91*724ba675SRob Herring			MX6QDL_PAD_SD3_DAT5__SD3_DATA5 0x17059
92*724ba675SRob Herring			MX6QDL_PAD_SD3_DAT6__SD3_DATA6 0x17059
93*724ba675SRob Herring			MX6QDL_PAD_SD3_DAT7__SD3_DATA7 0x17059
94*724ba675SRob Herring		>;
95*724ba675SRob Herring	};
96*724ba675SRob Herring};
97*724ba675SRob Herring
98*724ba675SRob Herring&pmic {
99*724ba675SRob Herring	pinctrl-names = "default";
100*724ba675SRob Herring	pinctrl-0 = <&pinctrl_pmic>;
101*724ba675SRob Herring	interrupt-parent = <&gpio6>;
102*724ba675SRob Herring	interrupts = <10 IRQ_TYPE_LEVEL_LOW>;
103*724ba675SRob Herring
104*724ba675SRob Herring	regulators {
105*724ba675SRob Herring		reg_vddcore: sw1ab {
106*724ba675SRob Herring			regulator-min-microvolt = <300000>;
107*724ba675SRob Herring			regulator-max-microvolt = <1875000>;
108*724ba675SRob Herring			regulator-always-on;
109*724ba675SRob Herring		};
110*724ba675SRob Herring
111*724ba675SRob Herring		reg_vddsoc: sw1c {
112*724ba675SRob Herring			regulator-min-microvolt = <300000>;
113*724ba675SRob Herring			regulator-max-microvolt = <1875000>;
114*724ba675SRob Herring			regulator-always-on;
115*724ba675SRob Herring		};
116*724ba675SRob Herring
117*724ba675SRob Herring		reg_gen_3v3: sw2 {
118*724ba675SRob Herring			regulator-min-microvolt = <800000>;
119*724ba675SRob Herring			regulator-max-microvolt = <3300000>;
120*724ba675SRob Herring			regulator-always-on;
121*724ba675SRob Herring		};
122*724ba675SRob Herring
123*724ba675SRob Herring		reg_ddr_1v5a: sw3a {
124*724ba675SRob Herring			regulator-min-microvolt = <400000>;
125*724ba675SRob Herring			regulator-max-microvolt = <1975000>;
126*724ba675SRob Herring			regulator-always-on;
127*724ba675SRob Herring		};
128*724ba675SRob Herring
129*724ba675SRob Herring		reg_ddr_1v5b: sw3b {
130*724ba675SRob Herring			regulator-min-microvolt = <400000>;
131*724ba675SRob Herring			regulator-max-microvolt = <1975000>;
132*724ba675SRob Herring			regulator-always-on;
133*724ba675SRob Herring		};
134*724ba675SRob Herring
135*724ba675SRob Herring		sw4_reg: sw4 {
136*724ba675SRob Herring			regulator-min-microvolt = <800000>;
137*724ba675SRob Herring			regulator-max-microvolt = <3300000>;
138*724ba675SRob Herring			regulator-always-on;
139*724ba675SRob Herring		};
140*724ba675SRob Herring
141*724ba675SRob Herring		reg_5v_600mA: swbst {
142*724ba675SRob Herring			regulator-min-microvolt = <5000000>;
143*724ba675SRob Herring			regulator-max-microvolt = <5150000>;
144*724ba675SRob Herring			regulator-always-on;
145*724ba675SRob Herring		};
146*724ba675SRob Herring
147*724ba675SRob Herring		reg_snvs_3v: vsnvs {
148*724ba675SRob Herring			regulator-min-microvolt = <1500000>;
149*724ba675SRob Herring			regulator-max-microvolt = <3000000>;
150*724ba675SRob Herring			regulator-always-on;
151*724ba675SRob Herring		};
152*724ba675SRob Herring
153*724ba675SRob Herring		reg_vrefddr: vrefddr {
154*724ba675SRob Herring			regulator-boot-on;
155*724ba675SRob Herring			regulator-always-on;
156*724ba675SRob Herring		};
157*724ba675SRob Herring
158*724ba675SRob Herring		reg_vgen1_1v5: vgen1 {
159*724ba675SRob Herring			regulator-min-microvolt = <800000>;
160*724ba675SRob Herring			regulator-max-microvolt = <1550000>;
161*724ba675SRob Herring			/* not used */
162*724ba675SRob Herring		};
163*724ba675SRob Herring
164*724ba675SRob Herring		reg_vgen2_1v2_eth: vgen2 {
165*724ba675SRob Herring			regulator-min-microvolt = <800000>;
166*724ba675SRob Herring			regulator-max-microvolt = <1550000>;
167*724ba675SRob Herring			regulator-always-on;
168*724ba675SRob Herring		};
169*724ba675SRob Herring
170*724ba675SRob Herring		reg_vgen3_2v8: vgen3 {
171*724ba675SRob Herring			regulator-min-microvolt = <1800000>;
172*724ba675SRob Herring			regulator-max-microvolt = <3300000>;
173*724ba675SRob Herring			regulator-always-on;
174*724ba675SRob Herring		};
175*724ba675SRob Herring
176*724ba675SRob Herring		reg_vgen4_1v8: vgen4 {
177*724ba675SRob Herring			regulator-min-microvolt = <1800000>;
178*724ba675SRob Herring			regulator-max-microvolt = <3300000>;
179*724ba675SRob Herring			regulator-always-on;
180*724ba675SRob Herring		};
181*724ba675SRob Herring
182*724ba675SRob Herring		reg_vgen5_1v8_eth: vgen5 {
183*724ba675SRob Herring			regulator-min-microvolt = <1800000>;
184*724ba675SRob Herring			regulator-max-microvolt = <3300000>;
185*724ba675SRob Herring			regulator-always-on;
186*724ba675SRob Herring		};
187*724ba675SRob Herring
188*724ba675SRob Herring		reg_vgen6_3v3: vgen6 {
189*724ba675SRob Herring			regulator-min-microvolt = <1800000>;
190*724ba675SRob Herring			regulator-max-microvolt = <3300000>;
191*724ba675SRob Herring			regulator-always-on;
192*724ba675SRob Herring		};
193*724ba675SRob Herring	};
194*724ba675SRob Herring};
195*724ba675SRob Herring
196*724ba675SRob Herring/* eMMC */
197*724ba675SRob Herring&usdhc3 {
198*724ba675SRob Herring	pinctrl-names = "default";
199*724ba675SRob Herring	pinctrl-0 = <&pinctrl_usdhc3>;
200*724ba675SRob Herring	vmmc-supply = <&reg_3p3v>;
201*724ba675SRob Herring	non-removable;
202*724ba675SRob Herring	disable-wp;
203*724ba675SRob Herring	no-sd;
204*724ba675SRob Herring	no-sdio;
205*724ba675SRob Herring	bus-width = <8>;
206*724ba675SRob Herring	#address-cells = <1>;
207*724ba675SRob Herring	#size-cells = <0>;
208*724ba675SRob Herring	status = "okay";
209*724ba675SRob Herring
210*724ba675SRob Herring	mmccard: mmccard@0 {
211*724ba675SRob Herring		reg = <0>;
212*724ba675SRob Herring		compatible = "mmc-card";
213*724ba675SRob Herring		broken-hpi;
214*724ba675SRob Herring	};
215*724ba675SRob Herring};
216