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

BananaPi BPI-F3: BOARD_MAINTAINER="pyavitz" #7870

Merged
merged 2 commits into from
Feb 23, 2025
Merged
Show file tree
Hide file tree
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
@@ -1,12 +1,12 @@
# SpacemiT K1 octa core RISC-V SoC 2GB/4GB RAM 8GB/16GB eMMC 4x USB3 2x GbE
BOARD_NAME="BananaPi BPI-F3"
BOARDFAMILY="spacemit"
BOARD_MAINTAINER=""
BOARD_MAINTAINER="pyavitz"
KERNEL_TARGET="current"
BOOT_FDT_FILE="spacemit/k1-bananapi-f3.dtb"
BOOTDELAY=1
SRC_EXTLINUX="yes"
SRC_CMDLINE="earlycon=sbi console=tty1 console=ttyS0,115200 clk_ignore_unused"
SRC_CMDLINE="earlycon=sbi console=tty1 console=ttyS0,115200"
PACKAGE_LIST_BOARD="rfkill bluetooth bluez bluez-tools"

function post_config_uboot_target__extra_configs_for_bananapi_f3() {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
From 354b58ea6589cab0bddfba8de26810a3cb6ffb8f Mon Sep 17 00:00:00 2001
From fc0e2955c4564266e632fbe6a800b13357db4c8f Mon Sep 17 00:00:00 2001
From: Patrick Yavitz <pyavitz@gmail.com>
Date: Sat, 15 Feb 2025 11:10:03 -0500
Date: Sun, 23 Feb 2025 10:30:04 -0500
Subject: [PATCH] Add board BananaPi BPI-F3

Signed-off-by: Patrick Yavitz <pyavitz@gmail.com>
Expand All @@ -22,7 +22,7 @@ index fbc35eb25dd1..069722c63e3e 100644
+dtb-$(CONFIG_SOC_SPACEMIT_K1X) += k1-bananapi-f3.dtb
diff --git a/arch/riscv/boot/dts/spacemit/k1-bananapi-f3.dts b/arch/riscv/boot/dts/spacemit/k1-bananapi-f3.dts
new file mode 100644
index 000000000000..3362e31371d2
index 000000000000..1ea4527fffa8
--- /dev/null
+++ b/arch/riscv/boot/dts/spacemit/k1-bananapi-f3.dts
@@ -0,0 +1,1175 @@
Expand Down Expand Up @@ -941,92 +941,6 @@ index 000000000000..3362e31371d2
+ status = "okay";
+};
+
+&spi3 {
+ pinctrl-names = "default";
+ pinctrl-0 = <&pinctrl_ssp3_0>;
+ status = "disabled";
+
+ spidev@0{
+ compatible = "spacemit,k1x-spi";
+ reg = <0>;
+ };
+};
+
+&thermal {
+ sensor_range = <0x1 0x4>;
+};
+
+&thermal_zones {
+ top_thermal {
+ polling-delay = <0>;
+ polling-delay-passive = <0>;
+ thermal-sensors = <&thermal 1>;
+
+ trips {
+ top_trip0: top-trip0 {
+ temperature = <40000>;
+ hysteresis = <5000>;
+ type = "passive";
+ };
+
+ top_trip1: top-trip1 {
+ temperature = <55000>;
+ hysteresis = <5000>;
+ type = "passive";
+ };
+
+ top_trip2: top-trip2 {
+ temperature = <70000>;
+ hysteresis = <5000>;
+ type = "passive";
+ };
+
+ top_trip3: top-trip3 {
+ temperature = <85000>;
+ hysteresis = <5000>;
+ type = "passive";
+ };
+ };
+
+ cooling-maps {
+ map0 {
+ trip = <&top_trip0>;
+ cooling-device = <&fan 0 1>;
+ };
+
+ map1 {
+ trip = <&top_trip1>;
+ cooling-device = <&fan 1 2>;
+ };
+
+ map2 {
+ trip = <&top_trip2>;
+ cooling-device = <&fan 2 3>;
+ };
+
+ map3 {
+ trip = <&top_trip3>;
+ cooling-device = <&fan 3 4>;
+ };
+ };
+ };
+
+ gpu_thermal {
+ polling-delay = <0>;
+ polling-delay-passive = <0>;
+ thermal-sensors = <&thermal 2>;
+
+ /* Just a placeholder */
+ trips {
+ gpu_trip0: gpu-trip0 {
+ temperature = <40000>;
+ hysteresis = <5000>;
+ type = "passive";
+ };
+ };
+ };
+};
+
+/* SD */
+&sdhci0 {
+ pinctrl-names = "default","fast";
Expand Down Expand Up @@ -1130,6 +1044,92 @@ index 000000000000..3362e31371d2
+ };
+};
+
+&spi3 {
+ pinctrl-names = "default";
+ pinctrl-0 = <&pinctrl_ssp3_0>;
+ status = "disabled";
+
+ spidev@0{
+ compatible = "spacemit,k1x-spi";
+ reg = <0>;
+ };
+};
+
+&thermal {
+ sensor_range = <0x1 0x4>;
+};
+
+&thermal_zones {
+ top_thermal {
+ polling-delay = <0>;
+ polling-delay-passive = <0>;
+ thermal-sensors = <&thermal 1>;
+
+ trips {
+ top_trip0: top-trip0 {
+ temperature = <40000>;
+ hysteresis = <5000>;
+ type = "passive";
+ };
+
+ top_trip1: top-trip1 {
+ temperature = <55000>;
+ hysteresis = <5000>;
+ type = "passive";
+ };
+
+ top_trip2: top-trip2 {
+ temperature = <70000>;
+ hysteresis = <5000>;
+ type = "passive";
+ };
+
+ top_trip3: top-trip3 {
+ temperature = <85000>;
+ hysteresis = <5000>;
+ type = "passive";
+ };
+ };
+
+ cooling-maps {
+ map0 {
+ trip = <&top_trip0>;
+ cooling-device = <&fan 0 1>;
+ };
+
+ map1 {
+ trip = <&top_trip1>;
+ cooling-device = <&fan 1 2>;
+ };
+
+ map2 {
+ trip = <&top_trip2>;
+ cooling-device = <&fan 2 3>;
+ };
+
+ map3 {
+ trip = <&top_trip3>;
+ cooling-device = <&fan 3 4>;
+ };
+ };
+ };
+
+ gpu_thermal {
+ polling-delay = <0>;
+ polling-delay-passive = <0>;
+ thermal-sensors = <&thermal 2>;
+
+ /* Just a placeholder */
+ trips {
+ gpu_trip0: gpu-trip0 {
+ temperature = <40000>;
+ hysteresis = <5000>;
+ type = "passive";
+ };
+ };
+ };
+};
+
+&uart0 {
+ pinctrl-names = "default";
+ pinctrl-0 = <&pinctrl_uart0_2>;
Expand Down
Loading