Document the bindings for Infineon TLV493D Low-Power 3D Magnetic Sensor
controlled by I2C interface. Main applications includes joysticks, control
elements (white goods, multifunction knops), or electric meters (anti-
tampering).
Drop duplicated entry for infineon,tlv493d from trivial-devices.yaml as
its documented in infineon,tlv493d.yaml now.
Datasheet: https://www.infineon.com/assets/row/public/documents/24/49/infineon-tlv493d-a1b6-datasheet-en.pdf
Signed-off-by: Dixit Parmar <dixitparmar19@gmail.com>
---
.../iio/magnetometer/infineon,tlv493d.yaml | 45 ++++++++++++++++++++++
.../devicetree/bindings/trivial-devices.yaml | 2 -
2 files changed, 45 insertions(+), 2 deletions(-)
diff --git a/Documentation/devicetree/bindings/iio/magnetometer/infineon,tlv493d.yaml b/Documentation/devicetree/bindings/iio/magnetometer/infineon,tlv493d.yaml
new file mode 100644
index 000000000000..ebcf29067a16
--- /dev/null
+++ b/Documentation/devicetree/bindings/iio/magnetometer/infineon,tlv493d.yaml
@@ -0,0 +1,45 @@
+# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/iio/magnetometer/infineon,tlv493d.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Infineon Technologies TLV493D Low-Power 3D Magnetic Sensor
+
+maintainers:
+ - Dixit Parmar <dixitparmar19@gmail.com>
+
+properties:
+ $nodename:
+ pattern: '^magnetometer@[0-9a-f]+$'
+
+ compatible:
+ const: infineon,tlv493d-a1b6
+
+ reg:
+ maxItems: 1
+
+ vdd:
+ description: 2.8V to 3.5V VDD supply
+
+ interrupts:
+ maxItems: 1
+
+required:
+ - compatible
+ - reg
+ - vdd
+
+additionalProperties: false
+
+example:
+ - |
+ i2c {
+ #address-cells = <1>;
+ #size-cells = <0>;
+ magnetometer@5e {
+ compatible = "infineon,tlv493d-a1b6";
+ reg = <0x5e>;
+ vdd = <&hall_vcc>;
+ };
+ };
diff --git a/Documentation/devicetree/bindings/trivial-devices.yaml b/Documentation/devicetree/bindings/trivial-devices.yaml
index 27930708ccd5..9e0eb5c873d2 100644
--- a/Documentation/devicetree/bindings/trivial-devices.yaml
+++ b/Documentation/devicetree/bindings/trivial-devices.yaml
@@ -125,8 +125,6 @@ properties:
- infineon,ir36021
# Infineon IRPS5401 Voltage Regulator (PMIC)
- infineon,irps5401
- # Infineon TLV493D-A1B6 I2C 3D Magnetic Sensor
- - infineon,tlv493d-a1b6
# Infineon Hot-swap controller xdp710
- infineon,xdp710
# Infineon Multi-phase Digital VR Controller xdpe11280
--
2.43.0
On 02/08/2025 08:44, Dixit Parmar wrote: > Document the bindings for Infineon TLV493D Low-Power 3D Magnetic Sensor > controlled by I2C interface. Main applications includes joysticks, control > elements (white goods, multifunction knops), or electric meters (anti- > tampering). > Drop duplicated entry for infineon,tlv493d from trivial-devices.yaml as > its documented in infineon,tlv493d.yaml now. > > Datasheet: https://www.infineon.com/assets/row/public/documents/24/49/infineon-tlv493d-a1b6-datasheet-en.pdf > Signed-off-by: Dixit Parmar <dixitparmar19@gmail.com> > --- > .../iio/magnetometer/infineon,tlv493d.yaml | 45 ++++++++++++++++++++++ > .../devicetree/bindings/trivial-devices.yaml | 2 - > 2 files changed, 45 insertions(+), 2 deletions(-) > > diff --git a/Documentation/devicetree/bindings/iio/magnetometer/infineon,tlv493d.yaml b/Documentation/devicetree/bindings/iio/magnetometer/infineon,tlv493d.yaml > new file mode 100644 > index 000000000000..ebcf29067a16 > --- /dev/null > +++ b/Documentation/devicetree/bindings/iio/magnetometer/infineon,tlv493d.yaml Filename should match compatible. Otherwise a1b6 is just confusing. Best regards, Krzysztof
On Sat, Aug 02, 2025 at 09:45:29AM +0200, Krzysztof Kozlowski wrote: > On 02/08/2025 08:44, Dixit Parmar wrote: > > Document the bindings for Infineon TLV493D Low-Power 3D Magnetic Sensor > > controlled by I2C interface. Main applications includes joysticks, control > > elements (white goods, multifunction knops), or electric meters (anti- > > tampering). > > Drop duplicated entry for infineon,tlv493d from trivial-devices.yaml as > > its documented in infineon,tlv493d.yaml now. > > > > Datasheet: https://www.infineon.com/assets/row/public/documents/24/49/infineon-tlv493d-a1b6-datasheet-en.pdf > > Signed-off-by: Dixit Parmar <dixitparmar19@gmail.com> > > --- > > .../iio/magnetometer/infineon,tlv493d.yaml | 45 ++++++++++++++++++++++ > > .../devicetree/bindings/trivial-devices.yaml | 2 - > > 2 files changed, 45 insertions(+), 2 deletions(-) > > > > diff --git a/Documentation/devicetree/bindings/iio/magnetometer/infineon,tlv493d.yaml b/Documentation/devicetree/bindings/iio/magnetometer/infineon,tlv493d.yaml > > new file mode 100644 > > index 000000000000..ebcf29067a16 > > --- /dev/null > > +++ b/Documentation/devicetree/bindings/iio/magnetometer/infineon,tlv493d.yaml > > > Filename should match compatible. Otherwise a1b6 is just confusing. > Idea behind having a1b6 is that the TLV493D is sensor series and this a1b6 is one of the models. As this driver is intended, developed and validated on a1b6 I kept it in compatible, though the file name contains only the sensor series. In my undertanding, this same file & driver can be reused for other drivers from same family with new compatible fields. Does that make sense? > Best regards, > Krzysztof
On 04/08/2025 04:44, Dixit Parmar wrote: > On Sat, Aug 02, 2025 at 09:45:29AM +0200, Krzysztof Kozlowski wrote: >> On 02/08/2025 08:44, Dixit Parmar wrote: >>> Document the bindings for Infineon TLV493D Low-Power 3D Magnetic Sensor >>> controlled by I2C interface. Main applications includes joysticks, control >>> elements (white goods, multifunction knops), or electric meters (anti- >>> tampering). >>> Drop duplicated entry for infineon,tlv493d from trivial-devices.yaml as >>> its documented in infineon,tlv493d.yaml now. >>> >>> Datasheet: https://www.infineon.com/assets/row/public/documents/24/49/infineon-tlv493d-a1b6-datasheet-en.pdf >>> Signed-off-by: Dixit Parmar <dixitparmar19@gmail.com> >>> --- >>> .../iio/magnetometer/infineon,tlv493d.yaml | 45 ++++++++++++++++++++++ >>> .../devicetree/bindings/trivial-devices.yaml | 2 - >>> 2 files changed, 45 insertions(+), 2 deletions(-) >>> >>> diff --git a/Documentation/devicetree/bindings/iio/magnetometer/infineon,tlv493d.yaml b/Documentation/devicetree/bindings/iio/magnetometer/infineon,tlv493d.yaml >>> new file mode 100644 >>> index 000000000000..ebcf29067a16 >>> --- /dev/null >>> +++ b/Documentation/devicetree/bindings/iio/magnetometer/infineon,tlv493d.yaml >> >> >> Filename should match compatible. Otherwise a1b6 is just confusing. >> > Idea behind having a1b6 is that the TLV493D is sensor series and this > a1b6 is one of the models. As this driver is intended, developed and > validated on a1b6 I kept it in compatible, though the file name contains > only the sensor series. In my undertanding, this same file & driver can > be reused for other drivers from same family with new compatible fields. > Does that make sense? No, because I did not speak about drivers at all. Please follow kernel/DT conventions. Best regards, Krzysztof
On 04/08/2025 08:03, Krzysztof Kozlowski wrote: >>>> >>>> diff --git a/Documentation/devicetree/bindings/iio/magnetometer/infineon,tlv493d.yaml b/Documentation/devicetree/bindings/iio/magnetometer/infineon,tlv493d.yaml >>>> new file mode 100644 >>>> index 000000000000..ebcf29067a16 >>>> --- /dev/null >>>> +++ b/Documentation/devicetree/bindings/iio/magnetometer/infineon,tlv493d.yaml >>> >>> >>> Filename should match compatible. Otherwise a1b6 is just confusing. >>> >> Idea behind having a1b6 is that the TLV493D is sensor series and this >> a1b6 is one of the models. As this driver is intended, developed and >> validated on a1b6 I kept it in compatible, though the file name contains >> only the sensor series. In my undertanding, this same file & driver can >> be reused for other drivers from same family with new compatible fields. >> Does that make sense? > > No, because I did not speak about drivers at all. Please follow > kernel/DT conventions. > And now I see this wasn't ever tested. :/ Best regards, Krzysztof
On Mon, Aug 04, 2025 at 08:16:36AM +0200, Krzysztof Kozlowski wrote: > On 04/08/2025 08:03, Krzysztof Kozlowski wrote: > >>>> > >>>> diff --git a/Documentation/devicetree/bindings/iio/magnetometer/infineon,tlv493d.yaml b/Documentation/devicetree/bindings/iio/magnetometer/infineon,tlv493d.yaml > >>>> new file mode 100644 > >>>> index 000000000000..ebcf29067a16 > >>>> --- /dev/null > >>>> +++ b/Documentation/devicetree/bindings/iio/magnetometer/infineon,tlv493d.yaml > >>> > >>> > >>> Filename should match compatible. Otherwise a1b6 is just confusing. > >>> > >> Idea behind having a1b6 is that the TLV493D is sensor series and this > >> a1b6 is one of the models. As this driver is intended, developed and > >> validated on a1b6 I kept it in compatible, though the file name contains > >> only the sensor series. In my undertanding, this same file & driver can > >> be reused for other drivers from same family with new compatible fields. > >> Does that make sense? > > > > No, because I did not speak about drivers at all. Please follow > > kernel/DT conventions. > > > > And now I see this wasn't ever tested. :/ > You're right. I just learned about the devicetree binding validation process post your comment, make dt_binding_check. This is my first time contributing to DT bindings, so I wasn't aware of the requirement to validate the schema before submission. There was mention of this in the bot error reported, now I see. Apologies for the oversight. I'll make sure this does not get repeated. > Best regards, > Krzysztof
On Sat, 02 Aug 2025 12:14:28 +0530, Dixit Parmar wrote: > Document the bindings for Infineon TLV493D Low-Power 3D Magnetic Sensor > controlled by I2C interface. Main applications includes joysticks, control > elements (white goods, multifunction knops), or electric meters (anti- > tampering). > Drop duplicated entry for infineon,tlv493d from trivial-devices.yaml as > its documented in infineon,tlv493d.yaml now. > > Datasheet: https://www.infineon.com/assets/row/public/documents/24/49/infineon-tlv493d-a1b6-datasheet-en.pdf > Signed-off-by: Dixit Parmar <dixitparmar19@gmail.com> > --- > .../iio/magnetometer/infineon,tlv493d.yaml | 45 ++++++++++++++++++++++ > .../devicetree/bindings/trivial-devices.yaml | 2 - > 2 files changed, 45 insertions(+), 2 deletions(-) > My bot found errors running 'make dt_binding_check' on your patch: yamllint warnings/errors: dtschema/dtc warnings/errors: /builds/robherring/dt-review-ci/linux/Documentation/devicetree/bindings/iio/magnetometer/infineon,tlv493d.yaml: vdd: missing type definition /builds/robherring/dt-review-ci/linux/Documentation/devicetree/bindings/iio/magnetometer/infineon,tlv493d.yaml: 'example' is not one of ['$id', '$schema', 'title', 'description', 'examples', 'required', 'allOf', 'anyOf', 'oneOf', 'definitions', '$defs', 'additionalProperties', 'dependencies', 'dependentRequired', 'dependentSchemas', 'patternProperties', 'properties', 'not', 'if', 'then', 'else', 'unevaluatedProperties', 'deprecated', 'maintainers', 'select', '$ref'] from schema $id: http://devicetree.org/meta-schemas/base.yaml# doc reference errors (make refcheckdocs): See https://patchwork.ozlabs.org/project/devicetree-bindings/patch/20250802-tlv493d-sensor-v6_16-rc5-v2-2-e867df86ad93@gmail.com 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.
On Sun, Aug 03, 2025 at 11:20:40AM -0500, Rob Herring (Arm) wrote: > > On Sat, 02 Aug 2025 12:14:28 +0530, Dixit Parmar wrote: > > Document the bindings for Infineon TLV493D Low-Power 3D Magnetic Sensor > > controlled by I2C interface. Main applications includes joysticks, control > > elements (white goods, multifunction knops), or electric meters (anti- > > tampering). > > Drop duplicated entry for infineon,tlv493d from trivial-devices.yaml as > > its documented in infineon,tlv493d.yaml now. > > > > Datasheet: https://www.infineon.com/assets/row/public/documents/24/49/infineon-tlv493d-a1b6-datasheet-en.pdf > > Signed-off-by: Dixit Parmar <dixitparmar19@gmail.com> > > --- > > .../iio/magnetometer/infineon,tlv493d.yaml | 45 ++++++++++++++++++++++ > > .../devicetree/bindings/trivial-devices.yaml | 2 - > > 2 files changed, 45 insertions(+), 2 deletions(-) > > > > My bot found errors running 'make dt_binding_check' on your patch: > > yamllint warnings/errors: > > dtschema/dtc warnings/errors: > /builds/robherring/dt-review-ci/linux/Documentation/devicetree/bindings/iio/magnetometer/infineon,tlv493d.yaml: vdd: missing type definition > /builds/robherring/dt-review-ci/linux/Documentation/devicetree/bindings/iio/magnetometer/infineon,tlv493d.yaml: 'example' is not one of ['$id', '$schema', 'title', 'description', 'examples', 'required', 'allOf', 'anyOf', 'oneOf', 'definitions', '$defs', 'additionalProperties', 'dependencies', 'dependentRequired', 'dependentSchemas', 'patternProperties', 'properties', 'not', 'if', 'then', 'else', 'unevaluatedProperties', 'deprecated', 'maintainers', 'select', '$ref'] > from schema $id: http://devicetree.org/meta-schemas/base.yaml# > Ack. > doc reference errors (make refcheckdocs): > > See https://patchwork.ozlabs.org/project/devicetree-bindings/patch/20250802-tlv493d-sensor-v6_16-rc5-v2-2-e867df86ad93@gmail.com > > The base for the series is generally the latest rc1. A different dependency > should be noted in *this* patch. > I did not get this fully, is this concerning? > 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. > Thanks, Dixit
On 8/3/25 9:41 PM, Dixit Parmar wrote: > On Sun, Aug 03, 2025 at 11:20:40AM -0500, Rob Herring (Arm) wrote: >> >> On Sat, 02 Aug 2025 12:14:28 +0530, Dixit Parmar wrote: >>> Document the bindings for Infineon TLV493D Low-Power 3D Magnetic Sensor >>> controlled by I2C interface. Main applications includes joysticks, control >>> elements (white goods, multifunction knops), or electric meters (anti- >>> tampering). >>> Drop duplicated entry for infineon,tlv493d from trivial-devices.yaml as >>> its documented in infineon,tlv493d.yaml now. >>> >>> Datasheet: https://www.infineon.com/assets/row/public/documents/24/49/infineon-tlv493d-a1b6-datasheet-en.pdf >>> Signed-off-by: Dixit Parmar <dixitparmar19@gmail.com> >>> --- >>> .../iio/magnetometer/infineon,tlv493d.yaml | 45 ++++++++++++++++++++++ >>> .../devicetree/bindings/trivial-devices.yaml | 2 - >>> 2 files changed, 45 insertions(+), 2 deletions(-) >>> >> >> My bot found errors running 'make dt_binding_check' on your patch: >> >> yamllint warnings/errors: >> >> dtschema/dtc warnings/errors: >> /builds/robherring/dt-review-ci/linux/Documentation/devicetree/bindings/iio/magnetometer/infineon,tlv493d.yaml: vdd: missing type definition >> /builds/robherring/dt-review-ci/linux/Documentation/devicetree/bindings/iio/magnetometer/infineon,tlv493d.yaml: 'example' is not one of ['$id', '$schema', 'title', 'description', 'examples', 'required', 'allOf', 'anyOf', 'oneOf', 'definitions', '$defs', 'additionalProperties', 'dependencies', 'dependentRequired', 'dependentSchemas', 'patternProperties', 'properties', 'not', 'if', 'then', 'else', 'unevaluatedProperties', 'deprecated', 'maintainers', 'select', '$ref'] >> from schema $id: http://devicetree.org/meta-schemas/base.yaml# >> > Ack. >> doc reference errors (make refcheckdocs): >> >> See https://patchwork.ozlabs.org/project/devicetree-bindings/patch/20250802-tlv493d-sensor-v6_16-rc5-v2-2-e867df86ad93@gmail.com >> >> The base for the series is generally the latest rc1. A different dependency >> should be noted in *this* patch. >> > I did not get this fully, is this concerning? Nothing to worry about in this case. This is a new binding with nothing unusual, so there are no dependencies. >> 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. >> > Thanks, > Dixit
© 2016 - 2025 Red Hat, Inc.