[openwrt/openwrt] mediatek: update mt7987 SoC device tree

LEDE Commits lede-commits at lists.infradead.org
Tue Nov 25 08:53:41 PST 2025


dangole pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/21fe2a8e4366066b6e8ab912f98e98ae0a8ecebb

commit 21fe2a8e4366066b6e8ab912f98e98ae0a8ecebb
Author: Chukun Pan <amadeus at jmu.edu.cn>
AuthorDate: Sat Nov 8 23:10:16 2025 +0800

    mediatek: update mt7987 SoC device tree
    
    mt7987b.dtsi:
      Enabled lvts (for CPU thermal) and trng by default.
      Remove non-existent netsys include headers, fix build.
    
    mt7987.dtsi:
      Remove unused rt5190a include headers
      Fix pwm-fan errors: binding cdev pwm-fan to trip 3 failed: -22
    
    Fixes: 9de7189ed ("mediatek: build image for MT7987 RFB")
    Signed-off-by: Chukun Pan <amadeus at jmu.edu.cn>
---
 target/linux/mediatek/dts/mt7987.dtsi  | 7 +------
 target/linux/mediatek/dts/mt7987b.dtsi | 9 ++++++++-
 2 files changed, 9 insertions(+), 7 deletions(-)

diff --git a/target/linux/mediatek/dts/mt7987.dtsi b/target/linux/mediatek/dts/mt7987.dtsi
index 9180659a5e..6a905603fe 100644
--- a/target/linux/mediatek/dts/mt7987.dtsi
+++ b/target/linux/mediatek/dts/mt7987.dtsi
@@ -13,7 +13,6 @@
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/thermal/thermal.h>
 #include <dt-bindings/reset/mediatek,mt7987-resets.h>
-#include <dt-bindings/regulator/richtek,rt5190a-regulator.h>
 
 /* TOPRGU resets */
 #define MT7987_TOPRGU_SGMII0_GRST		1
@@ -45,7 +44,6 @@
 		optee {
 			method = "smc";
 			compatible = "linaro,optee-tz";
-			status = "okay";
 		};
 	};
 
@@ -237,7 +235,7 @@
 
 	fan: pwm-fan {
 		compatible = "pwm-fan";
-		cooling-levels = <0 128 255>;
+		cooling-levels = <0 128 192 255>;
 		#cooling-cells = <2>;
 		#thermal-sensor-cells = <1>;
 		status = "disabled";
@@ -1002,9 +1000,6 @@
 				#interrupt-cells = <1>;
 				interrupt-controller;
 			};
-			slot1: pcie at 0,0 {
-				reg = <0x0000 0 0 0 0>;
-			};
 		};
 
 		topmisc: topmisc at 10021000 {
diff --git a/target/linux/mediatek/dts/mt7987b.dtsi b/target/linux/mediatek/dts/mt7987b.dtsi
index 7d159a8053..329a868356 100644
--- a/target/linux/mediatek/dts/mt7987b.dtsi
+++ b/target/linux/mediatek/dts/mt7987b.dtsi
@@ -6,7 +6,6 @@
 
 /dts-v1/;
 #include "mt7987a.dtsi"
-#include "mt7987-netsys-eth2-usb.dtsi"
 
 / {
 	compatible = "mediatek,mt7987b", "mediatek,mt7987";
@@ -29,3 +28,11 @@
 		};
 	};
 };
+
+&lvts {
+	status = "okay";
+};
+
+&trng {
+	status = "okay";
+};




More information about the lede-commits mailing list