Skip to content

Commit

Permalink
BananaPi BPI-F3: Alphabetize DTS
Browse files Browse the repository at this point in the history
Signed-off-by: Patrick Yavitz <[email protected]>
  • Loading branch information
pyavitz authored and igorpecovnik committed Feb 23, 2025
1 parent 9102acc commit a0bc90c
Showing 1 changed file with 89 additions and 89 deletions.
178 changes: 89 additions & 89 deletions patch/kernel/archive/spacemit-6.6/001-Add-board-BananaPi-BPI-F3.patch
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 <[email protected]>
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 <[email protected]>
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

0 comments on commit a0bc90c

Please sign in to comment.