| // SPDX-License-Identifier: (GPL-2.0+ OR MIT) |
| * Copyright 2022 Gateworks Corporation |
| * - GPIO1_0 rs485_term selects on-chip termination |
| * - GPIO4_0 rs485_en needs to be driven high (active) |
| * - GPIO4_2 rs485_hd needs to be driven high (active) |
| * - UART4_TX is DE for RS485 transmitter |
| * - RS485_EN needs to be pulled high |
| * - RS485_HALF needs to be pulled high |
| #include <dt-bindings/gpio/gpio.h> |
| #include "imx8mm-pinfunc.h" |
| compatible = "gw,imx8mm-gw72xx-0x"; |
| gpios = <0 GPIO_ACTIVE_HIGH>; |
| gpios = <2 GPIO_ACTIVE_HIGH>; |
| pinctrl-names = "default"; |
| pinctrl-0 = <&pinctrl_uart2>; |
| rts-gpios = <&gpio5 29 GPIO_ACTIVE_HIGH>; |
| linux,rs485-enabled-at-boot-time; |
| pinctrl_uart2: uart2grp { |
| MX8MM_IOMUXC_UART2_RXD_UART2_DCE_RX 0x140 |
| MX8MM_IOMUXC_UART2_TXD_UART2_DCE_TX 0x140 |
| MX8MM_IOMUXC_UART4_TXD_GPIO5_IO29 0x140 |