Skip to content

Commit

Permalink
Merge pull request #69 from RadxaMitchell/main
Browse files Browse the repository at this point in the history
linux: stable: add rock-pi-e gpiod label
  • Loading branch information
RadxaYuntian authored Dec 5, 2023
2 parents 0391fef + c61ee9d commit ad99cda
Show file tree
Hide file tree
Showing 2 changed files with 226 additions and 0 deletions.
113 changes: 113 additions & 0 deletions linux/.stable-6.1/0034-rock-pi-e/0005-Add-rock-pi-e-gpiod-label.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,113 @@
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: RadxaMitchell <[email protected]>
Date: Mon, 4 Dec 2023 18:32:32 +0800
Subject: [PATCH] Add rock-pi-e gpiod label

Signed-off-by: RadxaMitchell <[email protected]>
---
.../boot/dts/rockchip/rk3328-rock-pi-e.dts | 92 +++++++++++++++++++
1 file changed, 92 insertions(+)

diff --git a/arch/arm64/boot/dts/rockchip/rk3328-rock-pi-e.dts b/arch/arm64/boot/dts/rockchip/rk3328-rock-pi-e.dts
index 60a221b4c..eb58edb16 100644
--- a/arch/arm64/boot/dts/rockchip/rk3328-rock-pi-e.dts
+++ b/arch/arm64/boot/dts/rockchip/rk3328-rock-pi-e.dts
@@ -418,3 +418,95 @@ &usbdrd3 {
&usb_host0_ehci {
status = "okay";
};
+
+&gpio0 {
+ gpio-line-names =
+ /* GPIO0_A0-A3 */
+ "", "", "", "",
+ /* GPIO0_A4-A7 */
+ "", "", "", "",
+
+ /* GPIO0_B0-B3 */
+ "", "", "", "",
+ /* GPIO0_B4-B7 */
+ "", "", "", "",
+
+ /* GPIO0_C0-C3 */
+ "", "", "", "",
+ /* GPIO0_C4-C7 */
+ "", "", "", "",
+
+ /* GPIO0_D0-D3 */
+ "", "", "", "PIN_15",
+ /* GPIO0_D4-D7 */
+ "", "", "", "";
+};
+
+&gpio1 {
+ gpio-line-names =
+ /* GPIO1_A0-A3 */
+ "PIN_8", "PIN_10", "", "",
+ /* GPIO1_A4-A7 */
+ "", "", "", "",
+
+ /* GPIO1_B0-B3 */
+ "", "", "", "",
+ /* GPIO1_B4-B7 */
+ "", "", "", "",
+
+ /* GPIO1_C0-C3 */
+ "", "", "", "",
+ /* GPIO1_C4-C7 */
+ "", "", "", "",
+
+ /* GPIO1_D0-D3 */
+ "", "", "", "",
+ /* GPIO1_D4-D7 */
+ "PIN_7", "", "", "";
+};
+
+&gpio2 {
+ gpio-line-names =
+ /* GPIO2_A0-A3 */
+ "", "", "PIN_11", "PIN_13",
+ /* GPIO2_A4-A7 */
+ "PIN_27", "PIN_28", "PIN_33", "",
+
+ /* GPIO2_B0-B3 */
+ "", "", "", "",
+ /* GPIO2_B4-B7 */
+ "PIN_26", "", "", "PIN_36",
+
+ /* GPIO2_C0-C3 */
+ "PIN_32", "PIN_35", "PIN_12", "PIN_38",
+ /* GPIO2_C4-C7 */
+ "PIN_29", "PIN_31", "PIN_37", "PIN_40",
+
+ /* GPIO2_D0-D3 */
+ "", "", "", "",
+ /* GPIO2_D4-D7 */
+ "", "", "", "";
+};
+
+&gpio3 {
+ gpio-line-names =
+ /* GPIO3_A0-A3 */
+ "PIN_23", "PIN_19", "PIN_21", "",
+ /* GPIO3_A4-A7 */
+ "PIN_3", "PIN_5", "", "",
+
+ /* GPIO3_B0-B3 */
+ "PIN_24", "", "", "",
+ /* GPIO3_B4-B7 */
+ "", "", "", "",
+
+ /* GPIO3_C0-C3 */
+ "", "", "", "",
+ /* GPIO3_C4-C7 */
+ "", "", "", "",
+
+ /* GPIO3_D0-D3 */
+ "", "", "", "",
+ /* GPIO3_D4-D7 */
+ "", "", "", "";
+};
--
2.25.1

113 changes: 113 additions & 0 deletions linux/.stable-6.6/0034-rock-pi-e/0005-Add-rock-pi-e-gpiod-label.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,113 @@
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: RadxaMitchell <[email protected]>
Date: Mon, 4 Dec 2023 18:32:32 +0800
Subject: [PATCH] Add rock-pi-e gpiod label

Signed-off-by: RadxaMitchell <[email protected]>
---
.../boot/dts/rockchip/rk3328-rock-pi-e.dts | 92 +++++++++++++++++++
1 file changed, 92 insertions(+)

diff --git a/arch/arm64/boot/dts/rockchip/rk3328-rock-pi-e.dts b/arch/arm64/boot/dts/rockchip/rk3328-rock-pi-e.dts
index 60a221b4c..eb58edb16 100644
--- a/arch/arm64/boot/dts/rockchip/rk3328-rock-pi-e.dts
+++ b/arch/arm64/boot/dts/rockchip/rk3328-rock-pi-e.dts
@@ -418,3 +418,95 @@ &usbdrd3 {
&usb_host0_ehci {
status = "okay";
};
+
+&gpio0 {
+ gpio-line-names =
+ /* GPIO0_A0-A3 */
+ "", "", "", "",
+ /* GPIO0_A4-A7 */
+ "", "", "", "",
+
+ /* GPIO0_B0-B3 */
+ "", "", "", "",
+ /* GPIO0_B4-B7 */
+ "", "", "", "",
+
+ /* GPIO0_C0-C3 */
+ "", "", "", "",
+ /* GPIO0_C4-C7 */
+ "", "", "", "",
+
+ /* GPIO0_D0-D3 */
+ "", "", "", "PIN_15",
+ /* GPIO0_D4-D7 */
+ "", "", "", "";
+};
+
+&gpio1 {
+ gpio-line-names =
+ /* GPIO1_A0-A3 */
+ "PIN_8", "PIN_10", "", "",
+ /* GPIO1_A4-A7 */
+ "", "", "", "",
+
+ /* GPIO1_B0-B3 */
+ "", "", "", "",
+ /* GPIO1_B4-B7 */
+ "", "", "", "",
+
+ /* GPIO1_C0-C3 */
+ "", "", "", "",
+ /* GPIO1_C4-C7 */
+ "", "", "", "",
+
+ /* GPIO1_D0-D3 */
+ "", "", "", "",
+ /* GPIO1_D4-D7 */
+ "PIN_7", "", "", "";
+};
+
+&gpio2 {
+ gpio-line-names =
+ /* GPIO2_A0-A3 */
+ "", "", "PIN_11", "PIN_13",
+ /* GPIO2_A4-A7 */
+ "PIN_27", "PIN_28", "PIN_33", "",
+
+ /* GPIO2_B0-B3 */
+ "", "", "", "",
+ /* GPIO2_B4-B7 */
+ "PIN_26", "", "", "PIN_36",
+
+ /* GPIO2_C0-C3 */
+ "PIN_32", "PIN_35", "PIN_12", "PIN_38",
+ /* GPIO2_C4-C7 */
+ "PIN_29", "PIN_31", "PIN_37", "PIN_40",
+
+ /* GPIO2_D0-D3 */
+ "", "", "", "",
+ /* GPIO2_D4-D7 */
+ "", "", "", "";
+};
+
+&gpio3 {
+ gpio-line-names =
+ /* GPIO3_A0-A3 */
+ "PIN_23", "PIN_19", "PIN_21", "",
+ /* GPIO3_A4-A7 */
+ "PIN_3", "PIN_5", "", "",
+
+ /* GPIO3_B0-B3 */
+ "PIN_24", "", "", "",
+ /* GPIO3_B4-B7 */
+ "", "", "", "",
+
+ /* GPIO3_C0-C3 */
+ "", "", "", "",
+ /* GPIO3_C4-C7 */
+ "", "", "", "",
+
+ /* GPIO3_D0-D3 */
+ "", "", "", "",
+ /* GPIO3_D4-D7 */
+ "", "", "", "";
+};
--
2.25.1

0 comments on commit ad99cda

Please sign in to comment.