Let device-tree thermal zones use the temperature sensor of Realtek
PHYs. Patch 1 allows #thermal-sensor-cells in PHY nodes, patch 2 stops
failed MDIO reads from being reported as temperatures, and patch 3
registers the sensor with the thermal framework.
This series was prepared with AI assistance; each patch says how.
---
Changes in v2:
- Add #thermal-sensor-cells to the ethernet-phy binding (patch 1).
- Return MDIO read errors from the hwmon read (patch 2).
- Patch 3: name the mainline PHYs it affects and say that the RTL8261N
test relied on OpenWrt's out-of-tree support. Code unchanged, so I
kept Andrew's Reviewed-by.
- Link to v1: https://patch.msgid.link/20261103-realtek-hwmon-tz-v1-1-e672723c58cb@marleb.org (local)
---
Hleb Shauchenka (3):
dt-bindings: net: ethernet-phy: add property #thermal-sensor-cells
net: phy: realtek: return MDIO read errors from hwmon
net: phy: realtek: register hwmon thermal zones
Documentation/devicetree/bindings/net/ethernet-phy.yaml | 6 ++++++
drivers/net/phy/realtek/realtek_hwmon.c | 13 +++++++++----
2 files changed, 15 insertions(+), 4 deletions(-)
---
base-commit: fa5196392691051963726787944db872420dfa75
change-id: 20261103-realtek-hwmon-tz-95237a921bf9
Best regards,
--
Hleb Shauchenka [off-list ref]