[PATCH] arm64: dts: imx8mm-venice-gw73xx-0x: add dt overlays for serial modes
Tim Harvey
tharvey at gateworks.com
Wed Jan 12 11:42:24 PST 2022
On Tue, Jan 11, 2022 at 1:27 AM Lothar Waßmann <LW at karo-electronics.de> wrote:
>
> Hi,
>
> On Mon, 10 Jan 2022 16:00:21 -0800 Tim Harvey wrote:
> > On Tue, Dec 14, 2021 at 1:36 PM Tim Harvey <tharvey at gateworks.com> wrote:
> > >
> [...]
> > > diff --git a/arch/arm64/boot/dts/freescale/imx8mm-venice-gw73xx-0x-rs485.dts b/arch/arm64/boot/dts/freescale/imx8mm-venice-gw73xx-0x-rs485.dts
> > > new file mode 100644
> > > index 000000000000..97f19c15c3d0
> > > --- /dev/null
> > > +++ b/arch/arm64/boot/dts/freescale/imx8mm-venice-gw73xx-0x-rs485.dts
> > > @@ -0,0 +1,61 @@
> > > +// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
> > > +/*
> > > + * Copyright 2021 Gateworks Corporation
> > > + *
> > > + * GW73xx RS485 HD:
> > > + * - 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"
> > > +
> > > +/dts-v1/;
> > > +/plugin/;
> > > +
> > > +&{/} {
> > > + compatible = "gw,imx8mm-gw73xx-0x";
> > > +};
> > > +
> > > +&gpio4 {
> > > + rs485_en {
> > > + gpio-hog;
> > > + gpios = <0 GPIO_ACTIVE_HIGH>;
> > > + output-high;
> > > + line-name = "rs485_en";
> > > + };
> > > +
> > > + rs485_hd {
> > > + gpio-hog;
> > > + gpios = <2 GPIO_ACTIVE_HIGH>;
> > > + output-high;
> > > + line-name = "rs485_hd";
> > > + };
> > > +};
> > > +
> > > +&uart2 {
> > > + pinctrl-names = "default";
> > > + pinctrl-0 = <&pinctrl_uart2>;
> > > + rts-gpios = <&gpio5 29 GPIO_ACTIVE_HIGH>;
> > > + linux,rs485-enabled-at-boot-time;
> > > + status = "okay";
> > > +};
> > > +
> > > +&uart4 {
> > > + status = "disabled";
> > > +};
> > > +
> > > +&iomuxc {
> > > + pinctrl_uart2: uast2grp {
> >
> s/uast/uart/
>
>
Lothar,
Thanks - will fix in v2.
Tim
More information about the linux-arm-kernel
mailing list