Debian Codegraph @

arch/arm64/boot/dts/freescale/imx8mm-venice-gw71xx.dtsi

raw
1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2 /*
3 * Copyright 2020 Gateworks Corporation
4 */
5
6 #include <dt-bindings/gpio/gpio.h>
7 #include <dt-bindings/leds/common.h>
8 #include <dt-bindings/phy/phy-imx8-pcie.h>
9
10 / {
11 aliases {
12 usb0 = &usbotg1;
13 usb1 = &usbotg2;
14 };
15
16 led-controller {
17 compatible = "gpio-leds";
18 pinctrl-names = "default";
19 pinctrl-0 = <&pinctrl_gpio_leds>;
20
21 led-0 {
22 function = LED_FUNCTION_STATUS;
23 color = <LED_COLOR_ID_GREEN>;
24 gpios = <&gpio5 5 GPIO_ACTIVE_HIGH>;
25 default-state = "on";
26 linux,default-trigger = "heartbeat";
27 };
28
29 led-1 {
30 function = LED_FUNCTION_STATUS;
31 color = <LED_COLOR_ID_RED>;
32 gpios = <&gpio5 4 GPIO_ACTIVE_HIGH>;
33 default-state = "off";
34 };
35 };
36
37 pcie0_refclk: pcie0-refclk {
38 compatible = "fixed-clock";
39 #clock-cells = <0>;
40 clock-frequency = <100000000>;
41 };
42
43 pps {
44 compatible = "pps-gpio";
45 pinctrl-names = "default";
46 pinctrl-0 = <&pinctrl_pps>;
47 gpios = <&gpio1 15 GPIO_ACTIVE_HIGH>;
48 status = "okay";
49 };
50 };
51
52 &ecspi2 {
53 pinctrl-names = "default";
54 pinctrl-0 = <&pinctrl_spi2>;
55 cs-gpios = <&gpio5 13 GPIO_ACTIVE_LOW>,
56 <&gpio1 10 GPIO_ACTIVE_LOW>;
57 status = "okay";
58
59 tpm@1 {
60 compatible = "atmel,attpm20p", "tcg,tpm_tis-spi";
61 reg = <0x1>;
62 spi-max-frequency = <36000000>;
63 };
64 };
65
66 &gpio1 {
67 gpio-line-names = "", "", "", "", "", "", "pci_usb_sel", "dio0",
68 "", "dio1", "", "", "", "", "", "",
69 "", "", "", "", "", "", "", "",
70 "", "", "", "", "", "", "", "";
71 };
72
73 &gpio4 {
74 gpio-line-names = "", "", "", "dio2", "dio3", "", "", "pci_wdis#",
75 "", "", "", "", "", "", "", "",
76 "", "", "", "", "", "", "", "",
77 "", "", "", "", "", "", "", "";
78 };
79
80 &i2c2 {
81 clock-frequency = <400000>;
82 pinctrl-names = "default";
83 pinctrl-0 = <&pinctrl_i2c2>;
84 status = "okay";
85
86 accelerometer@19 {
87 pinctrl-names = "default";
88 pinctrl-0 = <&pinctrl_accel>;
89 compatible = "st,lis2de12";
90 reg = <0x19>;
91 st,drdy-int-pin = <1>;
92 interrupt-parent = <&gpio4>;
93 interrupts = <5 IRQ_TYPE_LEVEL_LOW>;
94 };
95
96 magnetometer@1e {
97 compatible = "st,lis2mdl";
98 reg = <0x1e>;
99 pinctrl-names = "default";
100 pinctrl-0 = <&pinctrl_mag>;
101 interrupt-parent = <&gpio4>;
102 interrupts = <1 IRQ_TYPE_LEVEL_LOW>;
103 };
104 };
105
106 /* off-board header */
107 &i2c3 {
108 clock-frequency = <400000>;
109 pinctrl-names = "default";
110 pinctrl-0 = <&pinctrl_i2c3>;
111 status = "okay";
112 };
113
114 &pcie_phy {
115 fsl,refclk-pad-mode = <IMX8_PCIE_REFCLK_PAD_INPUT>;
116 fsl,clkreq-unsupported;
117 clocks = <&pcie0_refclk>;
118 clock-names = "ref";
119 status = "okay";
120 };
121
122 &pcie0 {
123 pinctrl-names = "default";
124 pinctrl-0 = <&pinctrl_pcie0>;
125 reset-gpio = <&gpio4 6 GPIO_ACTIVE_LOW>;
126 clocks = <&clk IMX8MM_CLK_PCIE1_ROOT>, <&pcie0_refclk>,
127 <&clk IMX8MM_CLK_PCIE1_AUX>;
128 assigned-clocks = <&clk IMX8MM_CLK_PCIE1_AUX>,
129 <&clk IMX8MM_CLK_PCIE1_CTRL>;
130 assigned-clock-rates = <10000000>, <250000000>;
131 assigned-clock-parents = <&clk IMX8MM_SYS_PLL2_50M>,
132 <&clk IMX8MM_SYS_PLL2_250M>;
133 status = "okay";
134 };
135
136 /* GPS */
137 &uart1 {
138 pinctrl-names = "default";
139 pinctrl-0 = <&pinctrl_uart1>;
140 status = "okay";
141 };
142
143 /* off-board header */
144 &uart3 {
145 pinctrl-names = "default";
146 pinctrl-0 = <&pinctrl_uart3>;
147 status = "okay";
148 };
149
150 &usbotg1 {
151 pinctrl-names = "default";
152 pinctrl-0 = <&pinctrl_usbotg1>;
153 dr_mode = "otg";
154 over-current-active-low;
155 status = "okay";
156 };
157
158 &usbotg2 {
159 dr_mode = "host";
160 disable-over-current;
161 status = "okay";
162 };
163
164 &iomuxc {
165 pinctrl-names = "default";
166 pinctrl-0 = <&pinctrl_hog>;
167
168 pinctrl_hog: hoggrp {
169 fsl,pins = <
170 MX8MM_IOMUXC_SPDIF_TX_GPIO5_IO3 0x40000041 /* PLUG_TEST */
171 MX8MM_IOMUXC_GPIO1_IO06_GPIO1_IO6 0x40000041 /* PCI_USBSEL */
172 MX8MM_IOMUXC_SAI1_RXD5_GPIO4_IO7 0x40000041 /* PCIE_WDIS# */
173 MX8MM_IOMUXC_GPIO1_IO07_GPIO1_IO7 0x40000041 /* DIO0 */
174 MX8MM_IOMUXC_GPIO1_IO09_GPIO1_IO9 0x40000041 /* DIO1 */
175 MX8MM_IOMUXC_SAI1_RXD1_GPIO4_IO3 0x40000041 /* DIO2 */
176 MX8MM_IOMUXC_SAI1_RXD2_GPIO4_IO4 0x40000041 /* DIO2 */
177 >;
178 };
179
180 pinctrl_accel: accelgrp {
181 fsl,pins = <
182 MX8MM_IOMUXC_SAI1_RXD3_GPIO4_IO5 0x159
183 >;
184 };
185
186 pinctrl_mag: maggrp {
187 fsl,pins = <
188 MX8MM_IOMUXC_SAI1_RXC_GPIO4_IO1 0x159
189 >;
190 };
191
192 pinctrl_gpio_leds: gpioledgrp {
193 fsl,pins = <
194 MX8MM_IOMUXC_SPDIF_EXT_CLK_GPIO5_IO5 0x19
195 MX8MM_IOMUXC_SPDIF_RX_GPIO5_IO4 0x19
196 >;
197 };
198
199 pinctrl_i2c3: i2c3grp {
200 fsl,pins = <
201 MX8MM_IOMUXC_I2C3_SCL_I2C3_SCL 0x400001c3
202 MX8MM_IOMUXC_I2C3_SDA_I2C3_SDA 0x400001c3
203 >;
204 };
205
206 pinctrl_pcie0: pcie0grp {
207 fsl,pins = <
208 MX8MM_IOMUXC_SAI1_RXD4_GPIO4_IO6 0x41
209 >;
210 };
211
212 pinctrl_pps: ppsgrp {
213 fsl,pins = <
214 MX8MM_IOMUXC_GPIO1_IO15_GPIO1_IO15 0x41
215 >;
216 };
217
218 pinctrl_spi2: spi2grp {
219 fsl,pins = <
220 MX8MM_IOMUXC_ECSPI2_SCLK_ECSPI2_SCLK 0xd6
221 MX8MM_IOMUXC_ECSPI2_MOSI_ECSPI2_MOSI 0xd6
222 MX8MM_IOMUXC_ECSPI2_MISO_ECSPI2_MISO 0xd6
223 MX8MM_IOMUXC_ECSPI2_SS0_GPIO5_IO13 0xd6
224 MX8MM_IOMUXC_GPIO1_IO10_GPIO1_IO10 0xd6
225 >;
226 };
227
228 pinctrl_uart1: uart1grp {
229 fsl,pins = <
230 MX8MM_IOMUXC_UART1_RXD_UART1_DCE_RX 0x140
231 MX8MM_IOMUXC_UART1_TXD_UART1_DCE_TX 0x140
232 >;
233 };
234
235 pinctrl_uart3: uart3grp {
236 fsl,pins = <
237 MX8MM_IOMUXC_UART3_RXD_UART3_DCE_RX 0x140
238 MX8MM_IOMUXC_UART3_TXD_UART3_DCE_TX 0x140
239 >;
240 };
241
242 pinctrl_usbotg1: usbotg1grp {
243 fsl,pins = <
244 MX8MM_IOMUXC_GPIO1_IO12_GPIO1_IO12 0x141
245 MX8MM_IOMUXC_GPIO1_IO13_USB1_OTG_OC 0x41
246 >;
247 };
248 };