arm64: dts: imx8mm-venice-gw73xx-0x: add DT overlays for serial modes
Subsystems (2)
RFC 1/1 arm64: dts: imx8mm-venice-gw73xx-0x: add DT overlays for serial modes
The imx8mm-venice-gw73xx-0x som+baseboard combination has a multi-protocol RS-232/RS-485/RS-422 transceiver to an off-board connector which can be configured in a number of ways via UART and GPIO configuration.
The default configuration per the imx8mm-venice-gw73xx-0x DT is for UART2 TX/RX and UART4 TX/RX to be available as RS-232:
J15.1 UART2 TX out
J15.2 UART2 RX in
J15.3 UART4 TX out
J15.4 UART4 RX in
J15.5 GND
Add dt overlays to allow additional the modes of operation:
rs232-rts (UART2 RS-232 with RTS/CTS hardware flow control)
J15.1 TX out
J15.2 RX in
J15.3 RTS out
J15.4 CTS in
J15.5 GND
rs485 (UART2 RS-485 half duplex)
J15.1 TXRX-
J15.2 N/C
J15.3 TXRX+
J15.4 N/C
J15.5 GND
rs422 (UART2 RS-422 full duplex)
J15.1 TX-
J15.2 RX+
J15.3 TX+
J15.4 RX-
J15.5 GND
This is an RFC as I am not aware of other dt fragments/overlays being added to the kernel yet.
I prefer to have this as an overlay vs creating a full dts including this capability because there are other optional add-on boards for this board including:
- imx219 camera
- rpidsi touchscreen display
--- arch/arm64/boot/dts/freescale/Makefile | 3 ++ .../imx8mm-venice-gw73xx-0x-rs232-rts.dts | 42 +++++++++++++++++ .../imx8mm-venice-gw73xx-0x-rs422.dts | 45 +++++++++++++++++++ .../imx8mm-venice-gw73xx-0x-rs485.dts | 45 +++++++++++++++++++ 4 files changed, 135 insertions(+) create mode 100644 arch/arm64/boot/dts/freescale/imx8mm-venice-gw73xx-0x-rs232-rts.dts create mode 100644 arch/arm64/boot/dts/freescale/imx8mm-venice-gw73xx-0x-rs422.dts create mode 100644 arch/arm64/boot/dts/freescale/imx8mm-venice-gw73xx-0x-rs485.dts
arch/arm64/boot/dts/freescale/Makefile +3 -0
@@ -42,6 +42,9 @@ dtb-$(CONFIG_ARCH_MXC) += imx8mm-var-som-symphony.dtb dtb-$(CONFIG_ARCH_MXC) += imx8mm-venice-gw71xx-0x.dtb dtb-$(CONFIG_ARCH_MXC) += imx8mm-venice-gw72xx-0x.dtb dtb-$(CONFIG_ARCH_MXC) += imx8mm-venice-gw73xx-0x.dtb +dtb-$(CONFIG_ARCH_MXC) += imx8mm-venice-gw73xx-0x-rs232-rts.dtb +dtb-$(CONFIG_ARCH_MXC) += imx8mm-venice-gw73xx-0x-rs422.dtb +dtb-$(CONFIG_ARCH_MXC) += imx8mm-venice-gw73xx-0x-rs485.dtb dtb-$(CONFIG_ARCH_MXC) += imx8mm-venice-gw7901.dtb dtb-$(CONFIG_ARCH_MXC) += imx8mm-venice-gw7902.dtb dtb-$(CONFIG_ARCH_MXC) += imx8mn-beacon-kit.dtb
arch/arm64/boot/dts/freescale/imx8mm-venice-gw73xx-0x-rs232-rts.dts new file +42 -0
42 lines not on this page · raw message
arch/arm64/boot/dts/freescale/imx8mm-venice-gw73xx-0x-rs422.dts new file +45 -0
45 lines not on this page · raw message
arch/arm64/boot/dts/freescale/imx8mm-venice-gw73xx-0x-rs485.dts new file +45 -0
45 lines not on this page · raw message
Signature · 7 lines
2.17.1 _______________________________________________ linux-arm-kernel mailing list [email protected] http://lists.infradead.org/mailman/listinfo/linux-arm-kernel