Skip to contentSkip to conversation

dt-bindings: hwmon: convert lantiq-cputemp to yaml

PATCH Superseded Aleksander Jan Bajkowski 2 participants 5 messages Aug 13, 2025 – Aug 14, 2025 1 message not in the archive

Subsystems (2)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 dt-bindings: hwmon: convert lantiq-cputemp to yaml

Convert the Lantiq cpu temperature sensor bindings to yaml format.

---
 .../bindings/hwmon/lantiq,cputemp.yaml        | 25 +++++++++++++++++++
 .../devicetree/bindings/hwmon/ltq-cputemp.txt | 10 --------
 2 files changed, 25 insertions(+), 10 deletions(-)
 create mode 100644 Documentation/devicetree/bindings/hwmon/lantiq,cputemp.yaml
 delete mode 100644 Documentation/devicetree/bindings/hwmon/ltq-cputemp.txt
Documentation/devicetree/bindings/hwmon/lantiq,cputemp.yaml new file +25 -0
new file mode 100644
index 000000000000..5dbe1c631a34
@@ -0,0 +1,25 @@
+# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/hwmon/lantiq,cputemp.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Lantiq cpu temperature sensor
+
+maintainers:
+  - Florian Eckert <[email protected]>
+
+properties:
+  compatible:
+    const: lantiq,cputemp
+
+required:
+  - compatible
+
+additionalProperties: false
+
+examples:
+  - |
+    cputemp {
+        compatible = "lantiq,cputemp";
+    };
Documentation/devicetree/bindings/hwmon/ltq-cputemp.txt deleted +0 -10
deleted file mode 100644
index 473b34c876dd..000000000000
@@ -1,10 +0,0 @@
-Lantiq cpu temperature sensor
-
-Requires node properties:
-- compatible value :
-	"lantiq,cputemp"
-
-Example:
-	cputemp@0 {
-		compatible = "lantiq,cputemp";
-	};
Signature · 1 line
2.47.2
#1 lore raw
Quoted 6 lines · Aleksander Jan Bajkowski

+---
+$id: http://devicetree.org/schemas/hwmon/lantiq,cputemp.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#

Documentation/devicetree/bindings/hwmon/lantiq,cputemp.yaml new file +3 -0
+
+title: Lantiq cpu temperature sensor
+

Documentation/devicetree/bindings/hwmon/lantiq,cputemp.yaml line 18

Quoted 10 lines
Documentation/devicetree/bindings/hwmon/lantiq,cputemp.yaml new file +10 -0
+maintainers:
+  - Florian Eckert <[email protected]>
+
+properties:
+  compatible:
+    const: lantiq,cputemp
+
+required:
+  - compatible
+

I think this reads and writs to some IOMEM space, so you really need here 'reg'. That's the problem with such old bindings... binding is broken, DTS is half-baked or non-existing, driver has 20 years.

BTW, why converting this old binding? Do you have any interest in actually running MIPS?

I assume you did not check Rob's dt-convert branch to avoid duplicated... because he did convert EXACTLY this binding. And more from Lantiq.

Best regards,
Krzysztof

#2 lore raw

Hi Krzysztof,

Quoted 12 lines · Krzysztof Kozlowski
Quoted 11 lines · Aleksander Jan Bajkowski

+---
+$id: http://devicetree.org/schemas/hwmon/lantiq,cputemp.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#

Documentation/devicetree/bindings/hwmon/lantiq,cputemp.yaml new file +8 -0
+
+title: Lantiq cpu temperature sensor
+
+maintainers:
+  - Florian Eckert <[email protected]>
+
+properties:
+  compatible:
Quoted 8 lines

Documentation/devicetree/bindings/hwmon/lantiq,cputemp.yaml line 18

Quoted 5 lines
Documentation/devicetree/bindings/hwmon/lantiq,cputemp.yaml new file +5 -0
+    const: lantiq,cputemp
+
+required:
+  - compatible
+

I think this reads and writs to some IOMEM space, so you really need here 'reg'. That's the problem with such old bindings... binding is broken, DTS is half-baked or non-existing, driver has 20 years.

These devices are not so old. They support multithreading. In the case of NAT, they can process up to 700Mbps of traffic.

Quoted 3 lines

BTW, why converting this old binding? Do you have any interest in actually running MIPS?

I have several devices with Lantiq SoC (xRX100, xRX200 and xRX330). They are supported by OpenWRT. These are the only devices with mainline Linux that support ADSL2+ and VDSL2. I would like to add the missing dts files for the xRX200 and xRX330 families. I have started fixing the errors reported by the dtbs_check script.

Downstream dts:
https://github.com/openwrt/openwrt/blob/main/target/linux/lantiq/files/arch/mips/boot/dts/lantiq/vr9.dtsi#L29

Quoted 4 lines

I assume you did not check Rob's dt-convert branch to avoid duplicated... because he did convert EXACTLY this binding. And more from Lantiq.

Thanks, I didn't know that.

Quoted 5 lines

Best regards,
Krzysztof

#3 lore raw
Quoted 22 lines · Aleksander Jan Bajkowski

Hi Krzysztof,

Quoted 19 lines · Krzysztof Kozlowski
Quoted 6 lines · Aleksander Jan Bajkowski

+---
+$id: http://devicetree.org/schemas/hwmon/lantiq,cputemp.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#

Documentation/devicetree/bindings/hwmon/lantiq,cputemp.yaml new file +3 -0
+
+title: Lantiq cpu temperature sensor
+

Documentation/devicetree/bindings/hwmon/lantiq,cputemp.yaml line 18

Quoted 10 lines
Documentation/devicetree/bindings/hwmon/lantiq,cputemp.yaml new file +10 -0
+maintainers:
+  - Florian Eckert <[email protected]>
+
+properties:
+  compatible:
+    const: lantiq,cputemp
+
+required:
+  - compatible
+

I think this reads and writs to some IOMEM space, so you really need here 'reg'. That's the problem with such old bindings... binding is

Please address this. Driver on first glance tells me it accesses MMIO.

Best regards,
Krzysztof

A message that is not in the archive (sent off-list or not yet received): [email protected]

#5 lore raw
Quoted 10 lines · Aleksander Jan Bajkowski

        };

        cputemp@103040 {
            compatible = "lantiq,cputemp";
            reg = <0x103040 0x4>;
        };
...

Best regards, Aleksander Jan Bajkowski

Yes

Best regards,
Krzysztof