diff options
| author | Bjørn Mork | 2025-02-14 09:58:39 +0000 |
|---|---|---|
| committer | Sander Vanheule | 2025-02-27 18:24:45 +0000 |
| commit | f29b57dc68cbb6617f687db6f22ac3adf2d68a72 (patch) | |
| tree | 75b3d5257a61a73480884b68fc3f3ffdaffd2283 | |
| parent | 864d6743ee3fe8ab649ee1e9455c7e0de212ea3c (diff) | |
| download | openwrt-f29b57dc68cbb6617f687db6f22ac3adf2d68a72.tar.gz | |
realtek: add thermal zones for SFP sensors on GS1900-10HP
Create thermal zones for SFP internal sensors, enabling shutdown
on critical temperatures.
Signed-off-by: Bjørn Mork <bjorn@mork.no>
Link: https://github.com/openwrt/openwrt/pull/17967
Signed-off-by: Sander Vanheule <sander@svanheule.net>
| -rw-r--r-- | target/linux/realtek/dts/rtl8380_zyxel_gs1900-10hp.dts | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/target/linux/realtek/dts/rtl8380_zyxel_gs1900-10hp.dts b/target/linux/realtek/dts/rtl8380_zyxel_gs1900-10hp.dts index d21b748392..5e9aac0aef 100644 --- a/target/linux/realtek/dts/rtl8380_zyxel_gs1900-10hp.dts +++ b/target/linux/realtek/dts/rtl8380_zyxel_gs1900-10hp.dts @@ -24,6 +24,7 @@ tx-fault-gpio = <&gpio1 22 GPIO_ACTIVE_HIGH>; mod-def0-gpio = <&gpio1 26 GPIO_ACTIVE_LOW>; tx-disable-gpio = <&gpio1 23 GPIO_ACTIVE_HIGH>; + #thermal-sensor-cells = <0>; }; /* i2c of the right SFP cage: port 10 */ @@ -43,6 +44,7 @@ tx-fault-gpio = <&gpio1 28 GPIO_ACTIVE_HIGH>; mod-def0-gpio = <&gpio1 32 GPIO_ACTIVE_LOW>; tx-disable-gpio = <&gpio1 29 GPIO_ACTIVE_HIGH>; + #thermal-sensor-cells = <0>; }; }; @@ -74,3 +76,18 @@ }; }; }; + +&thermal_zones { + sfp-thermal { + polling-delay-passive = <10000>; + polling-delay = <10000>; + thermal-sensors = <&sfp0>, <&sfp1>; + trips { + sfp-crit { + temperature = <110000>; + hysteresis = <1000>; + type = "critical"; + }; + }; + }; +}; |