Re: uart1
Nick Kostyria <[email protected]>
| Newsgroups | gmane.os.freebsd.devel.arm |
|---|---|
| Message-ID | <20220704163212.1545af3d@thinkbook> |
On Thu, 28 Apr 2022 18:11:42 +0300 Nick Kostirya <[email protected]> wrote: > Hello. > > How use uart1 ? > > I want use MCU wiht UART interface on NanoPI NEO. > > I use overlay: > > /dts-v1/; > /plugin/; > > / { > compatible = "allwinner,sun8i-h3"; > }; > > &uart1 { > status = "okay"; > }; > It is bad overlay. It works with the following overlay: /dts-v1/; /plugin/; / { compatible = "allwinner,sun8i-h3"; fragment@0 { target-path = "/aliases"; __overlay__ { serial1 = "/soc/serial@01c28400"; }; }; fragment@1 { target = <&uart1>; __overlay__ { pinctrl-names = "default"; pinctrl-0 = <&uart1_pins>; status = "okay"; }; }; };