Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 4 Jul 2022 19:32:12 +0300
From:      Nick Kostyria <nick@i11.co>
To:        freebsd-arm@freebsd.org
Subject:   Re: uart1
Message-ID:  <20220704163212.1545af3d@thinkbook>
In-Reply-To: <20220428151142.5c08cdec@thinkbook>
References:  <20220428151142.5c08cdec@thinkbook>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 28 Apr 2022 18:11:42 +0300
Nick Kostirya <nick@i11.co> 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";
		};
	};
};






Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20220704163212.1545af3d>