From 519799dd4798f79e9773dbb5a5b602068b5f80e8 Mon Sep 17 00:00:00 2001 From: Patrick Yavitz Date: Sun, 23 Feb 2025 10:14:39 -0500 Subject: [PATCH 1/2] BananaPi BPI-F3: `BOARD_MAINTAINER="pyavitz"` Signed-off-by: Patrick Yavitz --- config/boards/{bananapif3.csc => bananapif3.conf} | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) rename config/boards/{bananapif3.csc => bananapif3.conf} (92%) diff --git a/config/boards/bananapif3.csc b/config/boards/bananapif3.conf similarity index 92% rename from config/boards/bananapif3.csc rename to config/boards/bananapif3.conf index 71daaf234e69..972663546a46 100644 --- a/config/boards/bananapif3.csc +++ b/config/boards/bananapif3.conf @@ -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() { From 49a01f85ed14d0de7c6dd097772b1f4297cc4b3e Mon Sep 17 00:00:00 2001 From: Patrick Yavitz Date: Sun, 23 Feb 2025 10:32:46 -0500 Subject: [PATCH 2/2] BananaPi BPI-F3: `Alphabetize DTS` Signed-off-by: Patrick Yavitz --- .../001-Add-board-BananaPi-BPI-F3.patch | 178 +++++++++--------- 1 file changed, 89 insertions(+), 89 deletions(-) diff --git a/patch/kernel/archive/spacemit-6.6/001-Add-board-BananaPi-BPI-F3.patch b/patch/kernel/archive/spacemit-6.6/001-Add-board-BananaPi-BPI-F3.patch index 26d8352089c0..1424b2a92a05 100644 --- a/patch/kernel/archive/spacemit-6.6/001-Add-board-BananaPi-BPI-F3.patch +++ b/patch/kernel/archive/spacemit-6.6/001-Add-board-BananaPi-BPI-F3.patch @@ -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 -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 @@ -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 @@ @@ -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"; @@ -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>;