[PATCH 2/4] dt-bindings: PCI: qcom,pcie-x1e80100: Add qcom,pcie-recalibration-thermal-zones

From: Manivannan Sadhasivam via B4 Relay

Date: Wed Nov 25 2026 - 05:18:15 EST


From: Manivannan Sadhasivam <manivannan.sadhasivam@xxxxxxxxxxxxxxxx>

Some PCIe PHY instances on SoCs like Glymur benefit from periodic
recalibration to compensate for temperature-related drift and maintain
stable link operation. Otherwise there is a potential for a link drop. The
recalibration is performed by the hardware during a PCIe link speed
switch, which the driver initiates once the temperature change on a
polled sensor exceeds the defined threshold. For this purpose, the driver
needs to know which sensors track the PHY temperature and the drift
temperature.

So introduce a new property 'qcom,pcie-recalibration-thermal-zones' to
specify the tuples of thermal zone phandle and the drift temperature in
millidegree Celsius to be monitored by the driver, and allow it only for
Glymur, which is the only SoC needing it so far.

Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@xxxxxxxxxxxxxxxx>
---
.../bindings/pci/qcom,pcie-x1e80100.yaml | 31 ++++++++++++++++++++++
1 file changed, 31 insertions(+)

diff --git a/Documentation/devicetree/bindings/pci/qcom,pcie-x1e80100.yaml b/Documentation/devicetree/bindings/pci/qcom,pcie-x1e80100.yaml
index 3d3b9f309a73..389a6bbacaa9 100644
--- a/Documentation/devicetree/bindings/pci/qcom,pcie-x1e80100.yaml
+++ b/Documentation/devicetree/bindings/pci/qcom,pcie-x1e80100.yaml
@@ -78,6 +78,26 @@ properties:
- const: pci # PCIe core reset
- const: link_down # PCIe link down reset

+ qcom,pcie-recalibration-thermal-zones:
+ $ref: /schemas/types.yaml#/definitions/phandle-array
+ minItems: 1
+ maxItems: 16
+ items:
+ items:
+ - description:
+ Phandle to a thermal zone corresponding to the sensor used to
+ monitor the PHY temperature drift.
+ - description:
+ Temperature drift this zone is allowed to accumulate before the
+ PHY needs a fresh calibration, in millidegree Celsius.
+ minimum: 1000
+ maximum: 100000
+ description:
+ Thermal zones whose sensors track the PCIe PHY temperature, along with
+ the temperature drift each zone is allowed to accumulate before the PHY
+ needs a fresh calibration. Applies to PCIe instances that rely on
+ periodic PHY recalibration to maintain stable link operation.
+
required:
- power-domains
- resets
@@ -85,6 +105,17 @@ required:

allOf:
- $ref: qcom,pcie-common.yaml#
+ - if:
+ properties:
+ compatible:
+ contains:
+ const: qcom,glymur-pcie
+ then:
+ properties:
+ qcom,pcie-recalibration-thermal-zones: true
+ else:
+ properties:
+ qcom,pcie-recalibration-thermal-zones: false

unevaluatedProperties: false


--
2.43.0