[PATCH net-next v2 1/3] dt-bindings: net: ethernet-phy: add property #thermal-sensor-cells

From: Hleb Shauchenka via B4 Relay

Date: Sat Nov 07 2026 - 13:59:32 EST


From: Hleb Shauchenka <me@xxxxxxxxxx>

The Aquantia and Marvell PHY drivers register their hwmon temperature
sensor with the thermal framework, and a following patch does the same
for Realtek PHYs, so a thermal zone can reference the PHY node through
thermal-sensors. That requires #thermal-sensor-cells in the PHY node,
which no PHY binding allows: dtbs_check rejects it under MDIO buses
whose PHY children use unevaluatedProperties: false, such as
realtek,rtl9301-mdio.

Allow it in the common PHY binding.

This patch was prepared with AI assistance (Claude Opus 5.5), after an
AI review of the previous posting pointed out the missing property.

Signed-off-by: Hleb Shauchenka <me@xxxxxxxxxx>
---
Documentation/devicetree/bindings/net/ethernet-phy.yaml | 6 ++++++
1 file changed, 6 insertions(+)

diff --git a/Documentation/devicetree/bindings/net/ethernet-phy.yaml b/Documentation/devicetree/bindings/net/ethernet-phy.yaml
index df50c4c33..e2e9e615f 100644
--- a/Documentation/devicetree/bindings/net/ethernet-phy.yaml
+++ b/Documentation/devicetree/bindings/net/ethernet-phy.yaml
@@ -269,6 +269,12 @@ properties:
have to be placed on board. When omitted, the PHYs default will be left as
is.

+ '#thermal-sensor-cells':
+ const: 0
+ description:
+ Present when the PHY has a temperature sensor that thermal zones can
+ reference.
+
marvell,reg-init:
$ref: /schemas/types.yaml#/definitions/uint32-matrix
deprecated: true

--
2.56.0