forked from armbian/build
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create board-rock3a-0003-add-gpio-names.patch
- Loading branch information
1 parent
4e94c05
commit 8fc6534
Showing
1 changed file
with
87 additions
and
0 deletions.
There are no files selected for viewing
87 changes: 87 additions & 0 deletions
87
patch/kernel/archive/rockchip64-6.11/board-rock3a-0003-add-gpio-names.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,87 @@ | ||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 | ||
From: Werner <[email protected]> | ||
Date: Wed, 23 Oct 2024 12:27:21 +0200 | ||
Subject: add gpio names for rock-3a | ||
|
||
Signed-off-by: Werner <[email protected]> | ||
--- | ||
arch/arm64/boot/dts/rockchip/rk3568-rock-3a.dts | 60 ++++++++++ | ||
1 file changed, 60 insertions(+) | ||
|
||
diff --git a/arch/arm64/boot/dts/rockchip/rk3568-rock-3a.dts b/arch/arm64/boot/dts/rockchip/rk3568-rock-3a.dts | ||
index bb9bdabf1b8e..9536f14b66d9 100644 | ||
--- a/arch/arm64/boot/dts/rockchip/rk3568-rock-3a.dts | ||
+++ b/arch/arm64/boot/dts/rockchip/rk3568-rock-3a.dts | ||
@@ -275,10 +275,70 @@ &gmac1m1_clkinout | ||
&gpu { | ||
mali-supply = <&vdd_gpu>; | ||
status = "okay"; | ||
}; | ||
|
||
+&gpio0 { | ||
+ gpio-line-names = | ||
+ /* GPIO0_A0 - A7 */ | ||
+ "", "", "", "", "", "", "", "", | ||
+ /* GPIO0_B0 - B7 */ | ||
+ "", "", "", "pin-28 [GPIO0_B3]", "pin-27 [GPIO0_B4]", "pin-7 [GPIO0_B5]", "pin-16 [GPIO0_B6]", "", | ||
+ /* GPIO0_C0 - C7 */ | ||
+ "", "pin-22 [GPIO0_C1]", "", "", "", "", "", "", | ||
+ /* GPIO0_D0 - D7 */ | ||
+ "pin-10 [GPIO0_D0]", "pin-8 [GPIO0_D1]", "", "", "", "", "", ""; | ||
+}; | ||
+ | ||
+&gpio1 { | ||
+ gpio-line-names = | ||
+ /* GPIO1_A0 - A7 */ | ||
+ "pin-3 [GPIO1_A0]", "pin-5 [GPIO1_A1]", "", "", "", "", "", "", | ||
+ /* GPIO1_B0 - B7 */ | ||
+ "", "", "", "", "", "", "", "", | ||
+ /* GPIO1_C0 - C7 */ | ||
+ "pin-15 [GPIO0_C0]", "", "", "", "", "", "", "", | ||
+ /* GPIO1_D0 - D7 */ | ||
+ "", "", "", "", "", "", "", ""; | ||
+}; | ||
+ | ||
+&gpio2 { | ||
+ gpio-line-names = | ||
+ /* GPIO2_A0 - A7 */ | ||
+ "", "", "", "", "", "", "", "", | ||
+ /* GPIO2_B0 - B7 */ | ||
+ "", "", "", "", "", "", "", "", | ||
+ /* GPIO2_C0 - C7 */ | ||
+ "", "", "", "", "", "", "", "", | ||
+ /* GPIO2_D0 - D7 */ | ||
+ "", "", "", "", "", "", "", "pin-29 [GPIO2_D7]"; | ||
+}; | ||
+ | ||
+&gpio3 { | ||
+ gpio-line-names = | ||
+ /* GPIO3_A0 - A7 */ | ||
+ "pin-31 [GPIO3_A0]", "", "pin-36 [GPIO3_A2]", "pin-12 [GPIO3_A3]", "pin-35 [GPIO3_A4]", "pin-40 [GPIO3_A5]", "pin-38 [GPIO3_A6]", "", | ||
+ /* GPIO3_B0 - B7 */ | ||
+ "", "", "pin-18 [GPIO3_B2]", "", "", "", "", "", | ||
+ /* GPIO3_C0 - C7 */ | ||
+ "", "", "pin-32 [GPIO3_C2]", "pin-33 [GPIO3_C3]", "pin-11 [GPIO3_C4]", "pin-13 [GPIO3_C5]", "", "", | ||
+ /* GPIO3_D0 - D7 */ | ||
+ "", "", "", "", "", "", "", ""; | ||
+}; | ||
+ | ||
+&gpio4 { | ||
+ gpio-line-names = | ||
+ /* GPIO4_A0 - A7 */ | ||
+ "", "", "", "", "", "", "", "", | ||
+ /* GPIO4_B0 - B7 */ | ||
+ "", "", "", "", "", "", "", "", | ||
+ /* GPIO4_C0 - C7 */ | ||
+ "", "", "pin-21 [GPIO4_C2]", "pin-19 [GPIO4_C3]", "", "pin-21 [GPIO4_C5]", "pin-24 [GPIO4_C6]", "", | ||
+ /* GPIO4_D0 - D7 */ | ||
+ "", "pin-26 [GPIO4_D1]", "", "", "", "", "", ""; | ||
+}; | ||
+ | ||
&hdmi { | ||
avdd-0v9-supply = <&vdda0v9_image>; | ||
avdd-1v8-supply = <&vcca1v8_image>; | ||
pinctrl-names = "default"; | ||
pinctrl-0 = <&hdmitx_scl &hdmitx_sda &hdmitxm1_cec>; | ||
-- | ||
Created with Armbian build tools https://github.com/armbian/build |