mirror of
https://github.com/armbian/build
synced 2025-09-24 19:47:06 +07:00
* sunxi-5.18: add megous patches: tag: orange-pi-5.18-20220627-1924 * tools: mk_format_patch: ignore-matching-lines git version * sunxi-5.18: re-extracted armbian patches after being applied to 5.18.8 * sunxi-5.18: switch to version tag=v5.18.8
61 lines
1.3 KiB
Diff
61 lines
1.3 KiB
Diff
From 2652980023dfc419e6e59d6b3bb8ac15eb550215 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 070/169] arm:dts: sun8i-h3-nanopi add leds pio pins
|
|
|
|
---
|
|
arch/arm/boot/dts/sun8i-h3-nanopi.dtsi | 23 +++++++++++++++++++++++
|
|
1 file changed, 23 insertions(+)
|
|
|
|
diff --git a/arch/arm/boot/dts/sun8i-h3-nanopi.dtsi b/arch/arm/boot/dts/sun8i-h3-nanopi.dtsi
|
|
index fc45d5aaa..b341dc573 100644
|
|
--- a/arch/arm/boot/dts/sun8i-h3-nanopi.dtsi
|
|
+++ b/arch/arm/boot/dts/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";
|
|
@@ -76,6 +78,8 @@ led-1 {
|
|
r_gpio_keys {
|
|
compatible = "gpio-keys";
|
|
input-name = "k1";
|
|
+ pinctrl-names = "default";
|
|
+ pinctrl-0 = <&sw_r_npi>;
|
|
|
|
k1 {
|
|
label = "k1";
|
|
@@ -101,6 +105,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
|
|
|