diff mbox series

ARM: dts: orange-pi-zero: enable uart

Message ID 20211120225903.28937-1-kuzminov.sergey81@gmail.com
State Accepted
Headers show
Series ARM: dts: orange-pi-zero: enable uart | expand

Commit Message

Sergey Kuzminov Nov. 20, 2021, 10:59 p.m. UTC
Enable uart1 and uart2 on orange-pi-zero board.

Signed-off-by: Sergey Kuzminov <kuzminov.sergey81@gmail.com>
---
 ...4-ARM-dts-orange-pi-zero-enable-uart.patch | 35 +++++++++++++++++++
 1 file changed, 35 insertions(+)
 create mode 100644 board/orangepi/orangepi-zero/patches/linux/0004-ARM-dts-orange-pi-zero-enable-uart.patch

Comments

Arnout Vandecappelle Dec. 11, 2021, 10:01 a.m. UTC | #1
Hi Sergey,

  The summary line should mention the file (or most important file) that is 
being modified. In this case, I changed it to:

board/orangepi/orangepi-zero: enable uart

  Applied to master with that change.

On 20/11/2021 23:59, Sergey Kuzminov wrote:
> Enable uart1 and uart2 on orange-pi-zero board.
> 
> Signed-off-by: Sergey Kuzminov <kuzminov.sergey81@gmail.com>
> ---
>   ...4-ARM-dts-orange-pi-zero-enable-uart.patch | 35 +++++++++++++++++++
>   1 file changed, 35 insertions(+)
>   create mode 100644 board/orangepi/orangepi-zero/patches/linux/0004-ARM-dts-orange-pi-zero-enable-uart.patch
> 
> diff --git a/board/orangepi/orangepi-zero/patches/linux/0004-ARM-dts-orange-pi-zero-enable-uart.patch b/board/orangepi/orangepi-zero/patches/linux/0004-ARM-dts-orange-pi-zero-enable-uart.patch
> new file mode 100644
> index 0000000000..839bc16087
> --- /dev/null
> +++ b/board/orangepi/orangepi-zero/patches/linux/0004-ARM-dts-orange-pi-zero-enable-uart.patch
> @@ -0,0 +1,35 @@
> +From e8768cc1f0f1231cbd4864417de629330e21222d Mon Sep 17 00:00:00 2001
> +From: Sergey Kuzminov <kuzminov.sergey81@gmail.com>
> +Date: Sun, 21 Nov 2021 00:58:32 +0300
> +Subject: [PATCH] ARM: dts: orange-pi-zero: enable uart
> +
> +Enable uart1 and uart2 on orange-pi-zero board.
> +
> +Signed-off-by: Sergey Kuzminov <kuzminov.sergey81@gmail.com>

  Ideally you should reference the upstream submission here. I was too lazy to 
look it up so I left it as is for now.

  Regards,
  Arnout

> +---
> + arch/arm/boot/dts/sun8i-h2-plus-orangepi-zero.dts | 4 ++--
> + 1 file changed, 2 insertions(+), 2 deletions(-)
> +
> +diff --git a/arch/arm/boot/dts/sun8i-h2-plus-orangepi-zero.dts b/arch/arm/boot/dts/sun8i-h2-plus-orangepi-zero.dts
> +index f19ed981da9d..03acf166ab70 100644
> +--- a/arch/arm/boot/dts/sun8i-h2-plus-orangepi-zero.dts
> ++++ b/arch/arm/boot/dts/sun8i-h2-plus-orangepi-zero.dts
> +@@ -184,13 +184,13 @@ &uart0 {
> + &uart1 {
> + 	pinctrl-names = "default";
> + 	pinctrl-0 = <&uart1_pins>;
> +-	status = "disabled";
> ++	status = "okay";
> + };
> +
> + &uart2 {
> + 	pinctrl-names = "default";
> + 	pinctrl-0 = <&uart2_pins>;
> +-	status = "disabled";
> ++	status = "okay";
> + };
> +
> + &usb_otg {
> +--
> +2.32.0
> +
>
diff mbox series

Patch

diff --git a/board/orangepi/orangepi-zero/patches/linux/0004-ARM-dts-orange-pi-zero-enable-uart.patch b/board/orangepi/orangepi-zero/patches/linux/0004-ARM-dts-orange-pi-zero-enable-uart.patch
new file mode 100644
index 0000000000..839bc16087
--- /dev/null
+++ b/board/orangepi/orangepi-zero/patches/linux/0004-ARM-dts-orange-pi-zero-enable-uart.patch
@@ -0,0 +1,35 @@ 
+From e8768cc1f0f1231cbd4864417de629330e21222d Mon Sep 17 00:00:00 2001
+From: Sergey Kuzminov <kuzminov.sergey81@gmail.com>
+Date: Sun, 21 Nov 2021 00:58:32 +0300
+Subject: [PATCH] ARM: dts: orange-pi-zero: enable uart
+
+Enable uart1 and uart2 on orange-pi-zero board.
+
+Signed-off-by: Sergey Kuzminov <kuzminov.sergey81@gmail.com>
+---
+ arch/arm/boot/dts/sun8i-h2-plus-orangepi-zero.dts | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/arch/arm/boot/dts/sun8i-h2-plus-orangepi-zero.dts b/arch/arm/boot/dts/sun8i-h2-plus-orangepi-zero.dts
+index f19ed981da9d..03acf166ab70 100644
+--- a/arch/arm/boot/dts/sun8i-h2-plus-orangepi-zero.dts
++++ b/arch/arm/boot/dts/sun8i-h2-plus-orangepi-zero.dts
+@@ -184,13 +184,13 @@ &uart0 {
+ &uart1 {
+ 	pinctrl-names = "default";
+ 	pinctrl-0 = <&uart1_pins>;
+-	status = "disabled";
++	status = "okay";
+ };
+ 
+ &uart2 {
+ 	pinctrl-names = "default";
+ 	pinctrl-0 = <&uart2_pins>;
+-	status = "disabled";
++	status = "okay";
+ };
+ 
+ &usb_otg {
+-- 
+2.32.0
+