Skip to content

Commit 8553db8

Browse files
committedJan 15, 2025
sunxi-6.13: Add armbian patches
1 parent 4045c7f commit 8553db8

File tree

180 files changed

+40504
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

180 files changed

+40504
-0
lines changed
 
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
2+
From: Gunjan Gupta <viraniac@gmail.com>
3+
Date: Mon, 26 Jun 2023 13:29:46 +0000
4+
Subject: ARM: dts: sun8i: nanopiduo2: Use key-0 as power button
5+
6+
The onboard button key-0 was not marked as power button. This meant
7+
that once the board was suspended, there was no way to bring it back
8+
to life. Mark key-0 as power button so that it can be used to bring
9+
the board back to life
10+
---
11+
arch/arm/boot/dts/allwinner/sun8i-h3-nanopi-duo2.dts | 3 ++-
12+
1 file changed, 2 insertions(+), 1 deletion(-)
13+
14+
diff --git a/arch/arm/boot/dts/allwinner/sun8i-h3-nanopi-duo2.dts b/arch/arm/boot/dts/allwinner/sun8i-h3-nanopi-duo2.dts
15+
index 111111111111..222222222222 100644
16+
--- a/arch/arm/boot/dts/allwinner/sun8i-h3-nanopi-duo2.dts
17+
+++ b/arch/arm/boot/dts/allwinner/sun8i-h3-nanopi-duo2.dts
18+
@@ -42,8 +42,9 @@ gpio-keys {
19+
20+
key-0 {
21+
label = "k1";
22+
- linux,code = <BTN_0>;
23+
+ linux,code = <KEY_POWER>;
24+
gpios = <&r_pio 0 3 GPIO_ACTIVE_LOW>; /* PL3 */
25+
+ wakeup-source;
26+
};
27+
};
28+
29+
--
30+
Armbian
31+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
2+
From: Gunjan Gupta <viraniac@gmail.com>
3+
Date: Mon, 26 Jun 2023 13:53:14 +0000
4+
Subject: ARM: dts: sun8i: nanopiduo2: enable ethernet
5+
6+
NanoPi Duo2 has pinout for ethernet. Lets enable the same in dts
7+
---
8+
arch/arm/boot/dts/allwinner/sun8i-h3-nanopi-duo2.dts | 7 +++++++
9+
1 file changed, 7 insertions(+)
10+
11+
diff --git a/arch/arm/boot/dts/allwinner/sun8i-h3-nanopi-duo2.dts b/arch/arm/boot/dts/allwinner/sun8i-h3-nanopi-duo2.dts
12+
index 111111111111..222222222222 100644
13+
--- a/arch/arm/boot/dts/allwinner/sun8i-h3-nanopi-duo2.dts
14+
+++ b/arch/arm/boot/dts/allwinner/sun8i-h3-nanopi-duo2.dts
15+
@@ -105,6 +105,13 @@ &ehci0 {
16+
status = "okay";
17+
};
18+
19+
+&emac {
20+
+ phy-handle = <&int_mii_phy>;
21+
+ phy-mode = "mii";
22+
+ allwinner,leds-active-low;
23+
+ status = "okay";
24+
+};
25+
+
26+
&mmc0 {
27+
bus-width = <4>;
28+
cd-gpios = <&pio 5 6 GPIO_ACTIVE_LOW>; /* PF6 */
29+
--
30+
Armbian
31+

0 commit comments

Comments
 (0)
Failed to load comments.