Re: uart1

From: Nick Kostyria <nick_at_i11.co>
Date: Mon, 04 Jul 2022 16:32:12 UTC
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";
		};
	};
};