xref: /linux/arch/arm/boot/dts/nxp/imx/imx53-usbarmory.dts (revision c532de5a67a70f8533d495f8f2aaa9a0491c3ad0)
1/*
2 * USB armory MkI device tree file
3 * https://inversepath.com/usbarmory
4 *
5 * Copyright (C) 2015, Inverse Path
6 * Andrej Rosano <andrej@inversepath.com>
7 *
8 * This file is dual-licensed: you can use it either under the terms
9 * of the GPL or the X11 license, at your option. Note that this dual
10 * licensing only applies to this file, and not this project as a
11 * whole.
12 *
13 *  a) This file is free software; you can redistribute it and/or
14 *     modify it under the terms of the GNU General Public License as
15 *     published by the Free Software Foundation; either version 2 of the
16 *     License, or (at your option) any later version.
17 *
18 *     This file is distributed in the hope that it will be useful,
19 *     but WITHOUT ANY WARRANTY; without even the implied warranty of
20 *     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
21 *     GNU General Public License for more details.
22 *
23 * Or, alternatively,
24 *
25 *  b) Permission is hereby granted, free of charge, to any person
26 *     obtaining a copy of this software and associated documentation
27 *     files (the "Software"), to deal in the Software without
28 *     restriction, including without limitation the rights to use,
29 *     copy, modify, merge, publish, distribute, sublicense, and/or
30 *     sell copies of the Software, and to permit persons to whom the
31 *     Software is furnished to do so, subject to the following
32 *     conditions:
33 *
34 *     The above copyright notice and this permission notice shall be
35 *     included in all copies or substantial portions of the Software.
36 *
37 *     THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
38 *     EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
39 *     OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
40 *     NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
41 *     HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
42 *     WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
43 *     FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
44 *     OTHER DEALINGS IN THE SOFTWARE.
45 */
46
47/dts-v1/;
48#include "imx53.dtsi"
49
50/ {
51	model = "Inverse Path USB armory";
52	compatible = "inversepath,imx53-usbarmory", "fsl,imx53";
53};
54
55/ {
56	chosen {
57		stdout-path = &uart1;
58	};
59
60	memory@70000000 {
61		device_type = "memory";
62		reg = <0x70000000 0x20000000>;
63	};
64
65	leds {
66		compatible = "gpio-leds";
67		pinctrl-names = "default";
68		pinctrl-0 = <&pinctrl_led>;
69
70		led-user {
71			label = "LED";
72			gpios = <&gpio4 27 GPIO_ACTIVE_LOW>;
73			linux,default-trigger = "heartbeat";
74		};
75	};
76};
77
78/*
79 * Not every i.MX53 P/N supports clock > 800MHz.
80 * As USB armory does not mount a specific P/N set a safe clock upper limit.
81 */
82&cpu0 {
83	operating-points = <
84		/* kHz */
85		166666  850000
86		400000  900000
87		800000 1050000
88	>;
89};
90
91&esdhc1 {
92	pinctrl-names = "default";
93	pinctrl-0 = <&pinctrl_esdhc1>;
94	status = "okay";
95};
96
97&iomuxc {
98	pinctrl_esdhc1: esdhc1grp {
99		fsl,pins = <
100			MX53_PAD_SD1_DATA0__ESDHC1_DAT0		0x1d5
101			MX53_PAD_SD1_DATA1__ESDHC1_DAT1		0x1d5
102			MX53_PAD_SD1_DATA2__ESDHC1_DAT2		0x1d5
103			MX53_PAD_SD1_DATA3__ESDHC1_DAT3		0x1d5
104			MX53_PAD_SD1_CMD__ESDHC1_CMD		0x1d5
105			MX53_PAD_SD1_CLK__ESDHC1_CLK		0x1d5
106		>;
107	};
108
109	pinctrl_i2c1_pmic: i2c1grp {
110		fsl,pins = <
111			MX53_PAD_EIM_D21__I2C1_SCL	0x80
112			MX53_PAD_EIM_D28__I2C1_SDA	0x80
113		>;
114	};
115
116	pinctrl_led: ledgrp {
117		fsl,pins = <
118			MX53_PAD_DISP0_DAT6__GPIO4_27 0x1e4
119		>;
120	};
121
122	/*
123	 * UART mode pin header configuration
124	 * 3 - GPIO5[26], pull-down 100K
125	 * 4 - GPIO5[27], pull-down 100K
126	 * 5 - TX, pull-up 100K
127	 * 6 - RX, pull-up 100K
128	 * 7 - GPIO5[30], pull-down 100K
129	 */
130	pinctrl_uart1: uart1grp {
131		fsl,pins = <
132			MX53_PAD_CSI0_DAT8__GPIO5_26		0xc0
133			MX53_PAD_CSI0_DAT9__GPIO5_27		0xc0
134			MX53_PAD_CSI0_DAT10__UART1_TXD_MUX	0x1e4
135			MX53_PAD_CSI0_DAT11__UART1_RXD_MUX	0x1e4
136			MX53_PAD_CSI0_DAT12__GPIO5_30		0xc0
137		>;
138	};
139};
140
141&i2c1 {
142	pinctrl-0 = <&pinctrl_i2c1_pmic>;
143	status = "okay";
144
145	ltc3589: pmic@34 {
146		compatible = "lltc,ltc3589-2";
147		reg = <0x34>;
148
149		regulators {
150			sw1_reg: sw1 {
151				regulator-min-microvolt = <591930>;
152				regulator-max-microvolt = <1224671>;
153				lltc,fb-voltage-divider = <100000 158000>;
154				regulator-ramp-delay = <7000>;
155				regulator-boot-on;
156				regulator-always-on;
157			};
158
159			sw2_reg: sw2 {
160				regulator-min-microvolt = <704123>;
161				regulator-max-microvolt = <1456803>;
162				lltc,fb-voltage-divider = <180000 191000>;
163				regulator-ramp-delay = <7000>;
164				regulator-boot-on;
165				regulator-always-on;
166			};
167
168			sw3_reg: sw3 {
169				regulator-min-microvolt = <1341250>;
170				regulator-max-microvolt = <2775000>;
171				lltc,fb-voltage-divider = <270000 100000>;
172				regulator-ramp-delay = <7000>;
173				regulator-boot-on;
174				regulator-always-on;
175			};
176
177			bb_out_reg: bb-out {
178				regulator-min-microvolt = <3387341>;
179				regulator-max-microvolt = <3387341>;
180				lltc,fb-voltage-divider = <511000 158000>;
181				regulator-boot-on;
182				regulator-always-on;
183			};
184
185			ldo1_reg: ldo1 {
186				regulator-min-microvolt = <1306329>;
187				regulator-max-microvolt = <1306329>;
188				lltc,fb-voltage-divider = <100000 158000>;
189				regulator-boot-on;
190				regulator-always-on;
191			};
192
193			ldo2_reg: ldo2 {
194				regulator-min-microvolt = <704123>;
195				regulator-max-microvolt = <1456806>;
196				lltc,fb-voltage-divider = <180000 191000>;
197				regulator-ramp-delay = <7000>;
198				regulator-boot-on;
199				regulator-always-on;
200			};
201
202			ldo3_reg: ldo3 {
203				regulator-min-microvolt = <2800000>;
204				regulator-max-microvolt = <2800000>;
205				regulator-boot-on;
206			};
207
208			ldo4_reg: ldo4 {
209				regulator-min-microvolt = <1200000>;
210				regulator-max-microvolt = <3200000>;
211			};
212		};
213	};
214};
215
216&uart1 {
217	pinctrl-names = "default";
218	pinctrl-0 = <&pinctrl_uart1>;
219	status = "okay";
220};
221
222&usbotg {
223	dr_mode = "peripheral";
224	status = "okay";
225};
226