BananaPi BPI-F3: Alphabetize DTS

Signed-off-by: Patrick Yavitz <pyavitz@gmail.com>
This commit is contained in:
Patrick Yavitz
2025-02-23 10:32:46 -05:00
committed by Igor
parent 9102accba7
commit a0bc90c360

View File

@@ -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>
@@ -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>;