61 lines
1.3 KiB
Diff
61 lines
1.3 KiB
Diff
From 7f770fb3fa862d2a54a4ae42dda6a3889cea67d3 Mon Sep 17 00:00:00 2001
|
|
From: The-going <48602507+The-going@users.noreply.github.com>
|
|
Date: Mon, 24 Jan 2022 14:14:41 +0300
|
|
Subject: [PATCH 056/153] arm:dts: sun8i-h3-nanopi add leds pio pins
|
|
|
|
---
|
|
arch/arm/boot/dts/allwinner/sun8i-h3-nanopi.dtsi | 23 +++++++++++++++++++++++
|
|
1 file changed, 23 insertions(+)
|
|
|
|
diff --git a/arch/arm/boot/dts/allwinner/sun8i-h3-nanopi.dtsi b/arch/arm/boot/dts/allwinner/sun8i-h3-nanopi.dtsi
|
|
index cf8413fba..57d5f7513 100644
|
|
--- a/arch/arm/boot/dts/allwinner/sun8i-h3-nanopi.dtsi
|
|
+++ b/arch/arm/boot/dts/allwinner/sun8i-h3-nanopi.dtsi
|
|
@@ -59,6 +59,8 @@ chosen {
|
|
|
|
leds {
|
|
compatible = "gpio-leds";
|
|
+ pinctrl-names = "default";
|
|
+ pinctrl-0 = <&leds_npi>, <&leds_r_npi>;
|
|
|
|
led-0 {
|
|
label = "nanopi:blue:status";
|
|
@@ -75,6 +77,8 @@ led-1 {
|
|
|
|
gpio-keys {
|
|
compatible = "gpio-keys";
|
|
+ pinctrl-names = "default";
|
|
+ pinctrl-0 = <&sw_r_npi>;
|
|
|
|
key-0 {
|
|
label = "k1";
|
|
@@ -100,6 +104,25 @@ &ohci3 {
|
|
status = "okay";
|
|
};
|
|
|
|
+&pio {
|
|
+ leds_npi: led_pins {
|
|
+ pins = "PA10";
|
|
+ function = "gpio_out";
|
|
+ };
|
|
+};
|
|
+
|
|
+&r_pio {
|
|
+ leds_r_npi: led_pins {
|
|
+ pins = "PL10";
|
|
+ function = "gpio_out";
|
|
+ };
|
|
+
|
|
+ sw_r_npi: key_pins {
|
|
+ pins = "PL3";
|
|
+ function = "gpio_in";
|
|
+ };
|
|
+};
|
|
+
|
|
&uart0 {
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <&uart0_pa_pins>;
|
|
--
|
|
2.35.3
|
|
|