blob: 433b62e736771f66dda260825002fd8efbc8df34 [file] [log] [blame]
Peter Robinsonbfa0d042021-04-01 22:17:05 +01001/*
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 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>;
Andrej Rosanoaaac3922021-08-17 11:34:02 +020094 broken-cd;
Peter Robinsonbfa0d042021-04-01 22:17:05 +010095 status = "okay";
96};
97
98&iomuxc {
99 pinctrl_esdhc1: esdhc1grp {
100 fsl,pins = <
101 MX53_PAD_SD1_DATA0__ESDHC1_DAT0 0x1d5
102 MX53_PAD_SD1_DATA1__ESDHC1_DAT1 0x1d5
103 MX53_PAD_SD1_DATA2__ESDHC1_DAT2 0x1d5
104 MX53_PAD_SD1_DATA3__ESDHC1_DAT3 0x1d5
105 MX53_PAD_SD1_CMD__ESDHC1_CMD 0x1d5
106 MX53_PAD_SD1_CLK__ESDHC1_CLK 0x1d5
107 >;
108 };
109
110 pinctrl_i2c1_pmic: i2c1grp {
111 fsl,pins = <
112 MX53_PAD_EIM_D21__I2C1_SCL 0x80
113 MX53_PAD_EIM_D28__I2C1_SDA 0x80
114 >;
115 };
116
117 pinctrl_led: ledgrp {
118 fsl,pins = <
119 MX53_PAD_DISP0_DAT6__GPIO4_27 0x1e4
120 >;
121 };
122
123 /*
124 * UART mode pin header configuration
125 * 3 - GPIO5[26], pull-down 100K
126 * 4 - GPIO5[27], pull-down 100K
127 * 5 - TX, pull-up 100K
128 * 6 - RX, pull-up 100K
129 * 7 - GPIO5[30], pull-down 100K
130 */
131 pinctrl_uart1: uart1grp {
132 fsl,pins = <
133 MX53_PAD_CSI0_DAT8__GPIO5_26 0xc0
134 MX53_PAD_CSI0_DAT9__GPIO5_27 0xc0
135 MX53_PAD_CSI0_DAT10__UART1_TXD_MUX 0x1e4
136 MX53_PAD_CSI0_DAT11__UART1_RXD_MUX 0x1e4
137 MX53_PAD_CSI0_DAT12__GPIO5_30 0xc0
138 >;
139 };
140};
141
142&i2c1 {
143 pinctrl-0 = <&pinctrl_i2c1_pmic>;
144 status = "okay";
145
146 ltc3589: pmic@34 {
147 compatible = "lltc,ltc3589-2";
148 reg = <0x34>;
149
150 regulators {
151 sw1_reg: sw1 {
152 regulator-min-microvolt = <591930>;
153 regulator-max-microvolt = <1224671>;
154 lltc,fb-voltage-divider = <100000 158000>;
155 regulator-ramp-delay = <7000>;
156 regulator-boot-on;
157 regulator-always-on;
158 };
159
160 sw2_reg: sw2 {
161 regulator-min-microvolt = <704123>;
162 regulator-max-microvolt = <1456803>;
163 lltc,fb-voltage-divider = <180000 191000>;
164 regulator-ramp-delay = <7000>;
165 regulator-boot-on;
166 regulator-always-on;
167 };
168
169 sw3_reg: sw3 {
170 regulator-min-microvolt = <1341250>;
171 regulator-max-microvolt = <2775000>;
172 lltc,fb-voltage-divider = <270000 100000>;
173 regulator-ramp-delay = <7000>;
174 regulator-boot-on;
175 regulator-always-on;
176 };
177
178 bb_out_reg: bb-out {
179 regulator-min-microvolt = <3387341>;
180 regulator-max-microvolt = <3387341>;
181 lltc,fb-voltage-divider = <511000 158000>;
182 regulator-boot-on;
183 regulator-always-on;
184 };
185
186 ldo1_reg: ldo1 {
187 regulator-min-microvolt = <1306329>;
188 regulator-max-microvolt = <1306329>;
189 lltc,fb-voltage-divider = <100000 158000>;
190 regulator-boot-on;
191 regulator-always-on;
192 };
193
194 ldo2_reg: ldo2 {
195 regulator-min-microvolt = <704123>;
196 regulator-max-microvolt = <1456806>;
197 lltc,fb-voltage-divider = <180000 191000>;
198 regulator-ramp-delay = <7000>;
199 regulator-boot-on;
200 regulator-always-on;
201 };
202
203 ldo3_reg: ldo3 {
204 regulator-min-microvolt = <2800000>;
205 regulator-max-microvolt = <2800000>;
206 regulator-boot-on;
207 };
208
209 ldo4_reg: ldo4 {
210 regulator-min-microvolt = <1200000>;
211 regulator-max-microvolt = <3200000>;
212 };
213 };
214 };
215};
216
217&uart1 {
218 pinctrl-names = "default";
219 pinctrl-0 = <&pinctrl_uart1>;
220 status = "okay";
221};
222
223&usbotg {
224 dr_mode = "peripheral";
225 status = "okay";
226};