-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Copy BTT CB1 hdmi and eth patches to 6.7
- Loading branch information
1 parent
b6ca773
commit 315e0e3
Showing
4 changed files
with
119 additions
and
0 deletions.
There are no files selected for viewing
48 changes: 48 additions & 0 deletions
48
...rchive/sunxi-6.7/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,48 @@ | ||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 | ||
From: JohnTheCoolingFan <[email protected]> | ||
Date: Thu, 13 Jun 2024 11:50:55 +0000 | ||
Subject: Patching kernel sunxi64 files | ||
arch/arm64/boot/dts/allwinner/sun50i-h616-bigtreetech-cb1.dtsiBigTreeTech CB1 | ||
enable emac1 | ||
|
||
Signed-off-by: JohnTheCoolingFan <[email protected]> | ||
--- | ||
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 bbff30ccf..b98e85a51 100644 | ||
--- a/arch/arm64/boot/dts/allwinner/sun50i-h616-bigtreetech-cb1.dtsi | ||
+++ b/arch/arm64/boot/dts/allwinner/sun50i-h616-bigtreetech-cb1.dtsi | ||
@@ -142,10 +142,28 @@ mcp2515_clock: mcp2515_clock { | ||
#clock-cells = <0>; | ||
clock-frequency = <12000000>; | ||
}; | ||
}; | ||
|
||
+&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; | ||
bus-width = <4>; | ||
max-frequency = <50000000>; | ||
-- | ||
Created with Armbian build tools https://github.com/armbian/build | ||
|
67 changes: 67 additions & 0 deletions
67
...archive/sunxi-6.7/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,67 @@ | ||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 | ||
From: JohnTheCoolingFan <[email protected]> | ||
Date: Thu, 13 Jun 2024 11:07:35 +0000 | ||
Subject: Patching kernel sunxi64 files | ||
arch/arm64/boot/dts/allwinner/sun50i-h616-bigtreetech-cb1.dtsiBigTreeTech CB1 | ||
enable hdmi | ||
|
||
Signed-off-by: JohnTheCoolingFan <[email protected]> | ||
--- | ||
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 e82da4b6e..bbff30ccf 100644 | ||
--- a/arch/arm64/boot/dts/allwinner/sun50i-h616-bigtreetech-cb1.dtsi | ||
+++ b/arch/arm64/boot/dts/allwinner/sun50i-h616-bigtreetech-cb1.dtsi | ||
@@ -23,10 +23,21 @@ aliases { | ||
|
||
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"; | ||
|
||
act_led: led-0 { | ||
gpios = <&pio 7 5 GPIO_ACTIVE_LOW>; /* PH5 */ | ||
@@ -255,10 +266,25 @@ 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"; | ||
}; | ||
|
||
-- | ||
Created with Armbian build tools https://github.com/armbian/build | ||
|
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
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