Add dt-binding for the hwmon driver of Sensylink's CTF2301 chip.
Signed-off-by: Troy Mitchell <troy.mitchell@linux.dev>
---
.../bindings/hwmon/sensylink,ctf2301.yaml | 49 ++++++++++++++++++++++
1 file changed, 49 insertions(+)
diff --git a/Documentation/devicetree/bindings/hwmon/sensylink,ctf2301.yaml b/Documentation/devicetree/bindings/hwmon/sensylink,ctf2301.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..fe98f5b578320bc1b43ff88f76667990821a88f7
--- /dev/null
+++ b/Documentation/devicetree/bindings/hwmon/sensylink,ctf2301.yaml
@@ -0,0 +1,49 @@
+# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/hwmon/sensylink,ctf2301.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Sensylink CTF2301 system-level thermal management solution chip
+
+maintainers:
+ - Troy Mitchell <troy.mitchell@linux.dev>
+
+allOf:
+ - $ref: hwmon-common.yaml#
+
+description: |
+ The CTF2301B is an I2C/SMBus compatible device featuring:
+ - One local temperature sensor with ±0.5°C accuracy and 0.0625°C resolution.
+ - One remote temperature sensor for external diode-connected transistors, offering ±1°C accuracy and 0.125°C resolution (temperature range: -40°C to +125°C).
+ - An integrated PWM fan controller.
+ - A 1-channel fan speed monitor (TACH input) for RPM measurement.
+
+ Datasheets:
+ https://www.sensylink.com/upload/1/net.sensylink.portal/1689557281035.pdf
+
+properties:
+ compatible:
+ const:
+ - sensylink,ctf2301
+
+ reg:
+ maxItems: 1
+
+required:
+ - compatible
+ - reg
+
+unevaluatedProperties: false
+
+examples:
+ - |
+ i2c {
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ ctf2301@4c {
+ compatible = "sensylink,ctf2301";
+ reg = <0x4c>;
+ };
+ };
--
2.51.0
On Tue, Sep 16, 2025 at 12:46:45PM +0800, Troy Mitchell wrote: > Add dt-binding for the hwmon driver of Sensylink's CTF2301 chip. > > Signed-off-by: Troy Mitchell <troy.mitchell@linux.dev> > --- > .../bindings/hwmon/sensylink,ctf2301.yaml | 49 ++++++++++++++++++++++ > 1 file changed, 49 insertions(+) > > diff --git a/Documentation/devicetree/bindings/hwmon/sensylink,ctf2301.yaml b/Documentation/devicetree/bindings/hwmon/sensylink,ctf2301.yaml > new file mode 100644 > index 0000000000000000000000000000000000000000..fe98f5b578320bc1b43ff88f76667990821a88f7 > --- /dev/null > +++ b/Documentation/devicetree/bindings/hwmon/sensylink,ctf2301.yaml > @@ -0,0 +1,49 @@ > +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/hwmon/sensylink,ctf2301.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Sensylink CTF2301 system-level thermal management solution chip > + > +maintainers: > + - Troy Mitchell <troy.mitchell@linux.dev> > + > +allOf: > + - $ref: hwmon-common.yaml# > + > +description: | > + The CTF2301B is an I2C/SMBus compatible device featuring: > + - One local temperature sensor with ±0.5°C accuracy and 0.0625°C resolution. > + - One remote temperature sensor for external diode-connected transistors, offering ±1°C accuracy and 0.125°C resolution (temperature range: -40°C to +125°C). Wrap at 80 chars. > + - An integrated PWM fan controller. > + - A 1-channel fan speed monitor (TACH input) for RPM measurement. > + > + Datasheets: > + https://www.sensylink.com/upload/1/net.sensylink.portal/1689557281035.pdf > + > +properties: > + compatible: > + const: > + - sensylink,ctf2301 > + > + reg: > + maxItems: 1 > + > +required: > + - compatible > + - reg > + > +unevaluatedProperties: false > + > +examples: > + - | > + i2c { > + #address-cells = <1>; > + #size-cells = <0>; > + > + ctf2301@4c { > + compatible = "sensylink,ctf2301"; > + reg = <0x4c>; > + }; > + }; > > -- > 2.51.0 >
Hi Rob, Thanks for your review. On Tue, Sep 16, 2025 at 08:52:16AM -0500, Rob Herring wrote: > On Tue, Sep 16, 2025 at 12:46:45PM +0800, Troy Mitchell wrote: > > Add dt-binding for the hwmon driver of Sensylink's CTF2301 chip. > > > > Signed-off-by: Troy Mitchell <troy.mitchell@linux.dev> > > --- > > .../bindings/hwmon/sensylink,ctf2301.yaml | 49 ++++++++++++++++++++++ > > 1 file changed, 49 insertions(+) > > +description: | > > + The CTF2301B is an I2C/SMBus compatible device featuring: > > + - One local temperature sensor with ±0.5°C accuracy and 0.0625°C resolution. > > + - One remote temperature sensor for external diode-connected transistors, offering ±1°C accuracy and 0.125°C resolution (temperature range: -40°C to +125°C). > > Wrap at 80 chars. I'll fix it in the next version. > > > + - An integrated PWM fan controller. > > + - A 1-channel fan speed monitor (TACH input) for RPM measurement. > > + > > + Datasheets: > > + https://www.sensylink.com/upload/1/net.sensylink.portal/1689557281035.pdf > > + > > +properties: > > + compatible: > > + const: > > + - sensylink,ctf2301 I will fix this warning in the next version (your robot reported) - Troy > > + > > + reg: > > + maxItems: 1 > > + > > +required: > > + - compatible > > + - reg > > + > > +unevaluatedProperties: false > > + > > +examples: > > + - | > > + i2c { > > + #address-cells = <1>; > > + #size-cells = <0>; > > + > > + ctf2301@4c { > > + compatible = "sensylink,ctf2301"; > > + reg = <0x4c>; > > + }; > > + }; > > > > -- > > 2.51.0 > >
On Tue, 16 Sep 2025 12:46:45 +0800, Troy Mitchell wrote: > Add dt-binding for the hwmon driver of Sensylink's CTF2301 chip. > > Signed-off-by: Troy Mitchell <troy.mitchell@linux.dev> > --- > .../bindings/hwmon/sensylink,ctf2301.yaml | 49 ++++++++++++++++++++++ > 1 file changed, 49 insertions(+) > My bot found errors running 'make dt_binding_check' on your patch: yamllint warnings/errors: ./Documentation/devicetree/bindings/hwmon/sensylink,ctf2301.yaml:18:111: [warning] line too long (161 > 110 characters) (line-length) dtschema/dtc warnings/errors: /builds/robherring/dt-review-ci/linux/Documentation/devicetree/bindings/hwmon/sensylink,ctf2301.yaml: properties:compatible:const: ['sensylink,ctf2301'] is not of type 'integer', 'string' from schema $id: http://devicetree.org/meta-schemas/keywords.yaml# /builds/robherring/dt-review-ci/linux/Documentation/devicetree/bindings/hwmon/sensylink,ctf2301.yaml: properties:compatible:const: ['sensylink,ctf2301'] is not of type 'string' from schema $id: http://devicetree.org/meta-schemas/string-array.yaml# Documentation/devicetree/bindings/hwmon/sensylink,ctf2301.example.dtb: /example-0/i2c/ctf2301@4c: failed to match any schema with compatible: ['sensylink,ctf2301'] doc reference errors (make refcheckdocs): See https://patchwork.ozlabs.org/project/devicetree-bindings/patch/20250916-ctl2301-v1-2-97e7c84f2c47@linux.dev The base for the series is generally the latest rc1. A different dependency should be noted in *this* patch. If you already ran 'make dt_binding_check' and didn't see the above error(s), then make sure 'yamllint' is installed and dt-schema is up to date: pip3 install dtschema --upgrade Please check and re-submit after running the above command yourself. Note that DT_SCHEMA_FILES can be set to your schema file to speed up checking your schema. However, it must be unset to test all examples with your schema.
© 2016 - 2025 Red Hat, Inc.