Skip to content

Commit

Permalink
BananaPi BPI-M4-Zero: Add pinctrl x32clk_fanout_pin
Browse files Browse the repository at this point in the history
and fixup Makefile

Signed-off-by: Patrick Yavitz <[email protected]>
  • Loading branch information
pyavitz committed Oct 9, 2024
1 parent 006bd4d commit fa3eade
Showing 1 changed file with 38 additions and 9 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
From a2634d287d04829aa03fe9fbf555c0ad86f30cda Mon Sep 17 00:00:00 2001
From 320165c2a023740c4175106364a1065257333b2a Mon Sep 17 00:00:00 2001
From: Patrick Yavitz <[email protected]>
Date: Wed, 9 Oct 2024 08:49:02 -0400
Date: Wed, 9 Oct 2024 09:07:46 -0400
Subject: [PATCH] Add board BananaPi BPI-M4-ZERO

sun50i-h618-bananapi-m4-zero.dts
Expand All @@ -16,17 +16,17 @@ Signed-off-by: Patrick Yavitz <[email protected]>
create mode 100644 arch/arm64/boot/dts/allwinner/sun50i-h618-bananapi-m4.dtsi

diff --git a/arch/arm64/boot/dts/allwinner/Makefile b/arch/arm64/boot/dts/allwinner/Makefile
index 9fa6a3f1acd1..3256c7616897 100644
index 040f735b47aa..2d50381b3665 100644
--- a/arch/arm64/boot/dts/allwinner/Makefile
+++ b/arch/arm64/boot/dts/allwinner/Makefile
@@ -51,6 +51,7 @@ dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h6-tanix-tx6.dtb
dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h6-inovato-quadra.dtb
dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h6-tanix-tx6-mini.dtb
dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h616-orangepi-zero2.dtb
+dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h618-bananapi-m4-zero.dtb
dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h618-cherryba-m1.dtb
@@ -54,6 +54,7 @@ dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h616-orangepi-zero2.dtb
dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h616-x96-mate.dtb
dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h616-bigtreetech-cb1-sd.dtb
dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h616-bigtreetech-cb1-emmc.dtb
+dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h618-bananapi-m4-zero.dtb
dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h618-orangepi-zero3.dtb
dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h618-orangepi-zero2w.dtb

diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h618-bananapi-m4-zero.dts b/arch/arm64/boot/dts/allwinner/sun50i-h618-bananapi-m4-zero.dts
new file mode 100644
index 000000000000..d7c6e0fdf2ff
Expand Down Expand Up @@ -395,3 +395,32 @@ index 000000000000..f52470634b22
--
2.39.5

From 989d9024453b002f3be88d52747447fc68f47b2b Mon Sep 17 00:00:00 2001
From: Patrick Yavitz <[email protected]>
Date: Wed, 9 Oct 2024 09:13:02 -0400
Subject: [PATCH] Add pinctrl: x32clk_fanout_pin

Signed-off-by: Patrick Yavitz <[email protected]>
---
arch/arm64/boot/dts/allwinner/sun50i-h618-bananapi-m4.dtsi | 5 +++++
1 file changed, 5 insertions(+)

diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h618-bananapi-m4.dtsi b/arch/arm64/boot/dts/allwinner/sun50i-h618-bananapi-m4.dtsi
index f52470634b22..f0f9c95f4a0d 100644
--- a/arch/arm64/boot/dts/allwinner/sun50i-h618-bananapi-m4.dtsi
+++ b/arch/arm64/boot/dts/allwinner/sun50i-h618-bananapi-m4.dtsi
@@ -184,6 +184,11 @@ &pio {
vcc-pg-supply = <&reg_dldo1>;
vcc-ph-supply = <&reg_dldo1>;
vcc-pi-supply = <&reg_dldo1>;
+
+ x32clk_fanout_pin: x32clk-fanout-pin {
+ pins = "PG10";
+ function = "clock";
+ };
};

&r_i2c {
--
2.39.5

0 comments on commit fa3eade

Please sign in to comment.