Lines Matching +full:rts +full:- +full:gpios

1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
6 * DHCM-iMX8ML8-C160-R204-F1638-SPI16-E2-CAN2-RTC-I-01D2
7 * DHCOM PCB number: 660-100 or newer
8 * DRC02 PCB number: 568-100 or newer
11 /dts-v1/;
13 #include <dt-bindings/leds/common.h>
14 #include <dt-bindings/phy/phy-imx8-pcie.h>
15 #include "imx8mp-dhcom-som.dtsi"
19 compatible = "dh,imx8mp-dhcom-drc02", "dh,imx8mp-dhcom-som",
23 stdout-path = &uart1;
28 pinctrl-0 = <&pinctrl_eqos_rmii>;
29 phy-handle = <&ethphy0f>;
30 phy-mode = "rmii";
32 assigned-clock-parents = <&clk IMX8MP_SYS_PLL1_266M>,
35 assigned-clock-rates = <0>, <100000000>, <50000000>;
47 pinctrl-0 = <&pinctrl_fec_rmii>;
48 phy-handle = <&ethphy1f>;
49 phy-mode = "rmii";
52 assigned-clock-parents = <&clk IMX8MP_SYS_PLL1_266M>,
56 assigned-clock-rates = <0>, <100000000>, <50000000>, <0>;
72 gpio-line-names =
73 "DRC02-In1", "", "", "", "", "DHCOM-I", "DRC02-HW2", "DRC02-HW0",
74 "DHCOM-B", "DHCOM-A", "", "DHCOM-H", "", "", "", "",
84 rs485-rx-en-hog {
85 gpio-hog;
86 gpios = <13 0>; /* GPIO Q */
87 line-name = "rs485-rx-en";
88 output-low;
93 gpio-line-names =
95 "DHCOM-O", "DHCOM-N", "", "SOM-HW1", "", "", "", "",
96 "", "", "", "", "DRC02-In2", "", "", "",
101 gpio-line-names =
103 "", "", "", "", "", "", "SOM-HW0", "",
104 "", "", "", "", "", "", "SOM-MEM0", "SOM-MEM1",
105 "SOM-MEM2", "SOM-HW2", "", "", "", "", "", "";
109 gpio-line-names =
112 "", "", "", "SOM-HW1", "", "", "", "",
113 "", "", "", "DRC02-Out2", "", "", "", "";
117 gpio-line-names =
118 "", "", "DHCOM-C", "", "", "", "", "",
120 "", "", "", "", "", "", "DHCOM-E", "DRC02-Out1",
167 /* No pull-ups on DRC02, enable in-SoC pull-ups */
175 /* No pull-ups on DRC02, enable in-SoC pull-ups */
184 * DHCOM UART1 RTS/CTS pins. Therefore this UART have to use DHCOM GPIOs
185 * for RTS/CTS. So configure DHCOM GPIO I as RTS and GPIO M as CTS.
187 /delete-property/ uart-has-rtscts;
188 cts-gpios = <&gpio5 5 GPIO_ACTIVE_HIGH>; /* GPIO M */
189 pinctrl-0 = <&pinctrl_uart1 &pinctrl_dhcom_i &pinctrl_dhcom_m>;
190 pinctrl-names = "default";
191 rts-gpios = <&gpio1 5 GPIO_ACTIVE_HIGH>; /* GPIO I */
197 * controlled by DHCOM GPIO P. So remove RTS/CTS pins and the property
198 * uart-has-rtscts from this UART and add the DHCOM GPIO P pin via
199 * rts-gpios. The RS485_RX_En is controlled by DHCOM GPIO Q, see gpio1
202 /delete-property/ uart-has-rtscts;
203 linux,rs485-enabled-at-boot-time;
204 pinctrl-0 = <&pinctrl_uart3 &pinctrl_dhcom_p &pinctrl_dhcom_q>;
205 pinctrl-names = "default";
206 rts-gpios = <&gpio2 10 GPIO_ACTIVE_HIGH>; /* GPIO P */
227 fsl,disable-port-power-control;
228 fsl,permanently-attached;
233 maximum-speed = "high-speed";
248 pinctrl-0 = <&pinctrl_hog_base