-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
180 changed files
with
40,504 additions
and
0 deletions.
There are no files selected for viewing
31 changes: 31 additions & 0 deletions
31
...chive/sunxi-6.13/patches.armbian/ARM-dts-sun8i-nanopiduo2-Use-key-0-as-power-button.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 | ||
From: Gunjan Gupta <viraniac@gmail.com> | ||
Date: Mon, 26 Jun 2023 13:29:46 +0000 | ||
Subject: ARM: dts: sun8i: nanopiduo2: Use key-0 as power button | ||
|
||
The onboard button key-0 was not marked as power button. This meant | ||
that once the board was suspended, there was no way to bring it back | ||
to life. Mark key-0 as power button so that it can be used to bring | ||
the board back to life | ||
--- | ||
arch/arm/boot/dts/allwinner/sun8i-h3-nanopi-duo2.dts | 3 ++- | ||
1 file changed, 2 insertions(+), 1 deletion(-) | ||
|
||
diff --git a/arch/arm/boot/dts/allwinner/sun8i-h3-nanopi-duo2.dts b/arch/arm/boot/dts/allwinner/sun8i-h3-nanopi-duo2.dts | ||
index 111111111111..222222222222 100644 | ||
--- a/arch/arm/boot/dts/allwinner/sun8i-h3-nanopi-duo2.dts | ||
+++ b/arch/arm/boot/dts/allwinner/sun8i-h3-nanopi-duo2.dts | ||
@@ -42,8 +42,9 @@ gpio-keys { | ||
|
||
key-0 { | ||
label = "k1"; | ||
- linux,code = <BTN_0>; | ||
+ linux,code = <KEY_POWER>; | ||
gpios = <&r_pio 0 3 GPIO_ACTIVE_LOW>; /* PL3 */ | ||
+ wakeup-source; | ||
}; | ||
}; | ||
|
||
-- | ||
Armbian | ||
|
31 changes: 31 additions & 0 deletions
31
.../kernel/archive/sunxi-6.13/patches.armbian/ARM-dts-sun8i-nanopiduo2-enable-ethernet.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 | ||
From: Gunjan Gupta <viraniac@gmail.com> | ||
Date: Mon, 26 Jun 2023 13:53:14 +0000 | ||
Subject: ARM: dts: sun8i: nanopiduo2: enable ethernet | ||
|
||
NanoPi Duo2 has pinout for ethernet. Lets enable the same in dts | ||
--- | ||
arch/arm/boot/dts/allwinner/sun8i-h3-nanopi-duo2.dts | 7 +++++++ | ||
1 file changed, 7 insertions(+) | ||
|
||
diff --git a/arch/arm/boot/dts/allwinner/sun8i-h3-nanopi-duo2.dts b/arch/arm/boot/dts/allwinner/sun8i-h3-nanopi-duo2.dts | ||
index 111111111111..222222222222 100644 | ||
--- a/arch/arm/boot/dts/allwinner/sun8i-h3-nanopi-duo2.dts | ||
+++ b/arch/arm/boot/dts/allwinner/sun8i-h3-nanopi-duo2.dts | ||
@@ -105,6 +105,13 @@ &ehci0 { | ||
status = "okay"; | ||
}; | ||
|
||
+&emac { | ||
+ phy-handle = <&int_mii_phy>; | ||
+ phy-mode = "mii"; | ||
+ allwinner,leds-active-low; | ||
+ status = "okay"; | ||
+}; | ||
+ | ||
&mmc0 { | ||
bus-width = <4>; | ||
cd-gpios = <&pio 5 6 GPIO_ACTIVE_LOW>; /* PF6 */ | ||
-- | ||
Armbian | ||
|
42 changes: 42 additions & 0 deletions
42
...chive/sunxi-6.13/patches.armbian/ARM64-dts-sun50i-h616-BigTreeTech-CB1-Enable-EMAC1.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 | ||
From: JohnTheCoolingFan <ivan8215145640@gmail.com> | ||
Date: Thu, 13 Jun 2024 11:50:55 +0000 | ||
Subject: ARM64: dts: sun50i-h616: BigTreeTech CB1: Enable EMAC1 | ||
|
||
Signed-off-by: JohnTheCoolingFan <ivan8215145640@gmail.com> | ||
--- | ||
arch/arm64/boot/dts/allwinner/sun50i-h616-bigtreetech-cb1.dtsi | 18 ++++++++++ | ||
1 file changed, 18 insertions(+) | ||
|
||
diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h616-bigtreetech-cb1.dtsi b/arch/arm64/boot/dts/allwinner/sun50i-h616-bigtreetech-cb1.dtsi | ||
index 111111111111..222222222222 100644 | ||
--- a/arch/arm64/boot/dts/allwinner/sun50i-h616-bigtreetech-cb1.dtsi | ||
+++ b/arch/arm64/boot/dts/allwinner/sun50i-h616-bigtreetech-cb1.dtsi | ||
@@ -149,6 +149,24 @@ &cpu0 { | ||
cpu-supply = <®_dcdc2>; | ||
}; | ||
|
||
+&emac1 { | ||
+ pinctrl-names = "default"; | ||
+ pinctrl-0 = <&rmii_pins>; | ||
+ phy-mode = "rmii"; | ||
+ phy-handle = <&rmii_phy>; | ||
+ phy-supply = <®_dldo1>; | ||
+ allwinner,rx-delay-ps = <3100>; | ||
+ allwinner,tx-delay-ps = <700>; | ||
+ status = "okay"; | ||
+}; | ||
+ | ||
+&mdio1 { | ||
+ rmii_phy: ethernet-phy@1 { | ||
+ compatible = "ethernet-phy-ieee802.3-c22"; | ||
+ reg = <1>; | ||
+ }; | ||
+}; | ||
+ | ||
&mmc0 { | ||
vmmc-supply = <®_dldo1>; | ||
broken-cd; | ||
-- | ||
Armbian | ||
|
57 changes: 57 additions & 0 deletions
57
...rchive/sunxi-6.13/patches.armbian/ARM64-dts-sun50i-h616-BigTreeTech-CB1-Enable-HDMI.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 | ||
From: JohnTheCoolingFan <ivan8215145640@gmail.com> | ||
Date: Thu, 13 Jun 2024 11:07:35 +0000 | ||
Subject: ARM64: dts: sun50i-h616: BigTreeTech CB1: Enable HDMI | ||
|
||
Signed-off-by: JohnTheCoolingFan <ivan8215145640@gmail.com> | ||
--- | ||
arch/arm64/boot/dts/allwinner/sun50i-h616-bigtreetech-cb1.dtsi | 26 ++++++++++ | ||
1 file changed, 26 insertions(+) | ||
|
||
diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h616-bigtreetech-cb1.dtsi b/arch/arm64/boot/dts/allwinner/sun50i-h616-bigtreetech-cb1.dtsi | ||
index 111111111111..222222222222 100644 | ||
--- a/arch/arm64/boot/dts/allwinner/sun50i-h616-bigtreetech-cb1.dtsi | ||
+++ b/arch/arm64/boot/dts/allwinner/sun50i-h616-bigtreetech-cb1.dtsi | ||
@@ -26,6 +26,17 @@ chosen { | ||
stdout-path = "serial0:115200n8"; | ||
}; | ||
|
||
+ connector { | ||
+ compatible = "hdmi-connector"; | ||
+ type = "d"; | ||
+ | ||
+ port { | ||
+ hdmi_con_in: endpoint { | ||
+ remote-endpoint = <&hdmi_out_con>; | ||
+ }; | ||
+ }; | ||
+ }; | ||
+ | ||
leds { | ||
compatible = "gpio-leds"; | ||
|
||
@@ -262,6 +273,21 @@ reg_dldo1: dldo1 { | ||
}; | ||
}; | ||
|
||
+&de { | ||
+ status = "okay"; | ||
+}; | ||
+ | ||
+&hdmi { | ||
+ hvcc-supply = <®_aldo1>; | ||
+ status = "okay"; | ||
+}; | ||
+ | ||
+&hdmi_out { | ||
+ hdmi_out_con: endpoint { | ||
+ remote-endpoint = <&hdmi_con_in>; | ||
+ }; | ||
+}; | ||
+ | ||
&cpu0 { | ||
cpu-supply = <®_dcdc2>; | ||
status = "okay"; | ||
-- | ||
Armbian | ||
|
Oops, something went wrong.