Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

linux: stable: add radxa s0 gpiod label #66

Merged
merged 1 commit into from
Nov 24, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,136 @@
From ac42fc06cd450e5c928c1532ed58a084f6c5f105 Mon Sep 17 00:00:00 2001
From: bsp <[email protected]>
Date: Fri, 24 Nov 2023 16:50:13 +0800
Subject: [PATCH] linux: dts: add radxa s0 gpiod label

Signed-off-by: Nascs <[email protected]>
---
.../boot/dts/rockchip/rk3308-radxa-s0.dts | 115 ++++++++++++++++++
1 file changed, 115 insertions(+)

diff --git a/arch/arm64/boot/dts/rockchip/rk3308-radxa-s0.dts b/arch/arm64/boot/dts/rockchip/rk3308-radxa-s0.dts
index f07543e072..9faa43d5a1 100644
--- a/arch/arm64/boot/dts/rockchip/rk3308-radxa-s0.dts
+++ b/arch/arm64/boot/dts/rockchip/rk3308-radxa-s0.dts
@@ -403,3 +403,118 @@ &usb_host_ehci {
&usb_host_ohci{
status = "okay";
};
+
+&gpio0 {
+ gpio-line-names =
+ /* GPIO0_A0-A3 */
+ "", "PIN_16", "", "",
+ /* GPIO0_A4-A7 */
+ "", "", "", "",
+
+ /* GPIO0_B0-B3 */
+ "", "", "", "PIN_3",
+ /* GPIO0_B4-B7 */
+ "PIN_5", "", "", "PIN_27",
+
+ /* GPIO0_C0-C3 */
+ "", "PIN_15", "PIN_33", "",
+ /* GPIO0_C4-C7 */
+ "", "", "", "",
+
+ /* GPIO0_D0-D3 */
+ "", "", "", "",
+ /* GPIO0_D4-D7 */
+ "", "", "", "";
+};
+
+&gpio1 {
+ gpio-line-names =
+ /* GPIO1_A0-A3 */
+ "", "", "", "",
+ /* GPIO1_A4-A7 */
+ "", "", "", "",
+
+ /* GPIO1_B0-B3 */
+ "", "", "", "",
+ /* GPIO1_B4-B7 */
+ "", "", "", "",
+
+ /* GPIO1_C0-C3 */
+ "PIN_28", "", "", "",
+ /* GPIO1_C4-C7 */
+ "", "", "PIN_21", "PIN_19",
+
+ /* GPIO1_D0-D3 */
+ "PIN_23", "PIN_24", "", "",
+ /* GPIO1_D4-D7 */
+ "", "", "", "";
+};
+
+&gpio2 {
+ gpio-line-names =
+ /* GPIO2_A0-A3 */
+ "PIN_10", "PIN_8", "PIN_37", "PIN_13",
+ /* GPIO2_A4-A7 */
+ "PIN_35", "PIN_38", "PIN_36", "PIN_40",
+
+ /* GPIO2_B0-B3 */
+ "PIN_26", "PIN_12", "PIN_31", "PIN_20",
+ /* GPIO2_B4-B7 */
+ "PIN_32", "PIN_7", "PIN_11", "PIN_18",
+
+ /* GPIO2_C0-C3 */
+ "PIN_29", "", "", "",
+ /* GPIO2_C4-C7 */
+ "", "", "", "",
+
+ /* GPIO2_D0-D3 */
+ "", "", "", "",
+ /* GPIO2_D4-D7 */
+ "", "", "", "";
+};
+
+&gpio3 {
+ gpio-line-names =
+ /* GPIO3_A0-A3 */
+ "", "", "", "",
+ /* GPIO3_A4-A7 */
+ "", "", "", "",
+
+ /* GPIO3_B0-B3 */
+ "", "", "", "",
+ /* GPIO3_B4-B7 */
+ "", "", "", "",
+
+ /* GPIO3_C0-C3 */
+ "", "", "", "",
+ /* GPIO3_C4-C7 */
+ "", "", "", "",
+
+ /* GPIO3_D0-D3 */
+ "", "", "", "",
+ /* GPIO3_D4-D7 */
+ "", "", "", "";
+};
+
+&gpio4 {
+ gpio-line-names =
+ /* GPIO4_A0-A3 */
+ "", "", "", "",
+ /* GPIO4_A4-A7 */
+ "", "", "", "",
+
+ /* GPIO4_B0-B3 */
+ "", "", "", "",
+ /* GPIO4_B4-B7 */
+ "", "", "", "",
+
+ /* GPIO4_C0-C3 */
+ "", "", "", "",
+ /* GPIO4_C4-C7 */
+ "", "", "", "",
+
+ /* GPIO4_D0-D3 */
+ "", "", "", "",
+ /* GPIO4_D4-D7 */
+ "", "", "", "";
+};
--
2.25.1