Debian Codegraph @

arch/arm/boot/dts/nxp/imx/imx53-usbarmory.dts

raw
1 // SPDX-License-Identifier: (GPL-2.0-or-later OR MIT)
2 /*
3 * USB armory MkI device tree file
4 * https://inversepath.com/usbarmory
5 *
6 * Copyright (C) 2015, Inverse Path
7 * Andrej Rosano <[email protected]>
8 */
9
10 /dts-v1/;
11 #include "imx53.dtsi"
12
13 / {
14 model = "Inverse Path USB armory";
15 compatible = "inversepath,imx53-usbarmory", "fsl,imx53";
16 };
17
18 / {
19 chosen {
20 stdout-path = &uart1;
21 };
22
23 memory@70000000 {
24 device_type = "memory";
25 reg = <0x70000000 0x20000000>;
26 };
27
28 leds {
29 compatible = "gpio-leds";
30 pinctrl-names = "default";
31 pinctrl-0 = <&pinctrl_led>;
32
33 led-user {
34 label = "LED";
35 gpios = <&gpio4 27 GPIO_ACTIVE_LOW>;
36 linux,default-trigger = "heartbeat";
37 };
38 };
39 };
40
41 /*
42 * Not every i.MX53 P/N supports clock > 800MHz.
43 * As USB armory does not mount a specific P/N set a safe clock upper limit.
44 */
45 &cpu0 {
46 operating-points = <
47 /* kHz */
48 166666 850000
49 400000 900000
50 800000 1050000
51 >;
52 };
53
54 &esdhc1 {
55 pinctrl-names = "default";
56 pinctrl-0 = <&pinctrl_esdhc1>;
57 status = "okay";
58 };
59
60 &iomuxc {
61 pinctrl_esdhc1: esdhc1grp {
62 fsl,pins = <
63 MX53_PAD_SD1_DATA0__ESDHC1_DAT0 0x1d5
64 MX53_PAD_SD1_DATA1__ESDHC1_DAT1 0x1d5
65 MX53_PAD_SD1_DATA2__ESDHC1_DAT2 0x1d5
66 MX53_PAD_SD1_DATA3__ESDHC1_DAT3 0x1d5
67 MX53_PAD_SD1_CMD__ESDHC1_CMD 0x1d5
68 MX53_PAD_SD1_CLK__ESDHC1_CLK 0x1d5
69 >;
70 };
71
72 pinctrl_i2c1_pmic: i2c1grp {
73 fsl,pins = <
74 MX53_PAD_EIM_D21__I2C1_SCL 0x80
75 MX53_PAD_EIM_D28__I2C1_SDA 0x80
76 >;
77 };
78
79 pinctrl_led: ledgrp {
80 fsl,pins = <
81 MX53_PAD_DISP0_DAT6__GPIO4_27 0x1e4
82 >;
83 };
84
85 /*
86 * UART mode pin header configuration
87 * 3 - GPIO5[26], pull-down 100K
88 * 4 - GPIO5[27], pull-down 100K
89 * 5 - TX, pull-up 100K
90 * 6 - RX, pull-up 100K
91 * 7 - GPIO5[30], pull-down 100K
92 */
93 pinctrl_uart1: uart1grp {
94 fsl,pins = <
95 MX53_PAD_CSI0_DAT8__GPIO5_26 0xc0
96 MX53_PAD_CSI0_DAT9__GPIO5_27 0xc0
97 MX53_PAD_CSI0_DAT10__UART1_TXD_MUX 0x1e4
98 MX53_PAD_CSI0_DAT11__UART1_RXD_MUX 0x1e4
99 MX53_PAD_CSI0_DAT12__GPIO5_30 0xc0
100 >;
101 };
102 };
103
104 &i2c1 {
105 pinctrl-0 = <&pinctrl_i2c1_pmic>;
106 status = "okay";
107
108 ltc3589: pmic@34 {
109 compatible = "lltc,ltc3589-2";
110 reg = <0x34>;
111
112 regulators {
113 sw1_reg: sw1 {
114 regulator-min-microvolt = <591930>;
115 regulator-max-microvolt = <1224671>;
116 lltc,fb-voltage-divider = <100000 158000>;
117 regulator-ramp-delay = <7000>;
118 regulator-boot-on;
119 regulator-always-on;
120 };
121
122 sw2_reg: sw2 {
123 regulator-min-microvolt = <704123>;
124 regulator-max-microvolt = <1456803>;
125 lltc,fb-voltage-divider = <180000 191000>;
126 regulator-ramp-delay = <7000>;
127 regulator-boot-on;
128 regulator-always-on;
129 };
130
131 sw3_reg: sw3 {
132 regulator-min-microvolt = <1341250>;
133 regulator-max-microvolt = <2775000>;
134 lltc,fb-voltage-divider = <270000 100000>;
135 regulator-ramp-delay = <7000>;
136 regulator-boot-on;
137 regulator-always-on;
138 };
139
140 bb_out_reg: bb-out {
141 regulator-min-microvolt = <3387341>;
142 regulator-max-microvolt = <3387341>;
143 lltc,fb-voltage-divider = <511000 158000>;
144 regulator-boot-on;
145 regulator-always-on;
146 };
147
148 ldo1_reg: ldo1 {
149 regulator-min-microvolt = <1306329>;
150 regulator-max-microvolt = <1306329>;
151 lltc,fb-voltage-divider = <100000 158000>;
152 regulator-boot-on;
153 regulator-always-on;
154 };
155
156 ldo2_reg: ldo2 {
157 regulator-min-microvolt = <704123>;
158 regulator-max-microvolt = <1456806>;
159 lltc,fb-voltage-divider = <180000 191000>;
160 regulator-ramp-delay = <7000>;
161 regulator-boot-on;
162 regulator-always-on;
163 };
164
165 ldo3_reg: ldo3 {
166 regulator-min-microvolt = <2800000>;
167 regulator-max-microvolt = <2800000>;
168 regulator-boot-on;
169 };
170
171 ldo4_reg: ldo4 {
172 regulator-min-microvolt = <1200000>;
173 regulator-max-microvolt = <3200000>;
174 };
175 };
176 };
177 };
178
179 &uart1 {
180 pinctrl-names = "default";
181 pinctrl-0 = <&pinctrl_uart1>;
182 status = "okay";
183 };
184
185 &usbotg {
186 dr_mode = "peripheral";
187 status = "okay";
188 };