* [PATCH v2 2/5] dt-bindings: iio: magnetometer: qst: Add QMC5883L device tree binding
@ 2025-05-08 12:08 Brajesh Patil
2025-05-08 12:16 ` Krzysztof Kozlowski
2025-05-11 15:19 ` Jonathan Cameron
0 siblings, 2 replies; 3+ messages in thread
From: Brajesh Patil @ 2025-05-08 12:08 UTC (permalink / raw)
To: jic23, lars, robh, krzk+dt, conor+dt
Cc: linux-iio, devicetree, linux-kernel, marcelo.schmitt1, dlechner,
Brajesh Patil
Signed-off-by: Brajesh Patil <brajeshpatil11@gmail.com>
---
.../iio/magnetometer/qst,qmc5883l.yaml | 52 +++++++++++++++++++
1 file changed, 52 insertions(+)
create mode 100644 Documentation/devicetree/bindings/iio/magnetometer/qst,qmc5883l.yaml
diff --git a/Documentation/devicetree/bindings/iio/magnetometer/qst,qmc5883l.yaml b/Documentation/devicetree/bindings/iio/magnetometer/qst,qmc5883l.yaml
new file mode 100644
index 000000000000..a2e6982a177d
--- /dev/null
+++ b/Documentation/devicetree/bindings/iio/magnetometer/qst,qmc5883l.yaml
@@ -0,0 +1,52 @@
+# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/iio/magnetometer/qst,qmc5883l.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: QST QMC5883L 3-Axis Magnetometer
+
+maintainers:
+ - Brajesh Patil <brajeshpatil11@gmail.com>
+
+description: |
+ The QMC5883L is a 3-axis magnetic sensor with I2C interface. It provides
+ measurements of magnetic field strength along X, Y and Z axes, as well as
+ temperature readings.
+
+properties:
+ compatible:
+ const: qst,qmc5883l
+
+ reg:
+ maxItems: 1
+ description: I2C slave address (0x0d)
+
+ mount-matrix:
+ description: |
+ A 3x3 rotation matrix describing how the magnetometer is mounted
+ on the device. This is used to orient the sensor measurements
+ to match the device's coordinate system.
+
+additionalProperties: false
+
+required:
+ - compatible
+ - reg
+
+examples:
+ - |
+ i2c {
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ magnetometer@0d {
+ compatible = "qst,qmc5883l";
+ reg = <0x0d>;
+ mount-matrix = "1", "0", "0",
+ "0", "1", "0",
+ "0", "0", "1";
+ };
+ };
+...
+
--
2.39.5
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH v2 2/5] dt-bindings: iio: magnetometer: qst: Add QMC5883L device tree binding
2025-05-08 12:08 [PATCH v2 2/5] dt-bindings: iio: magnetometer: qst: Add QMC5883L device tree binding Brajesh Patil
@ 2025-05-08 12:16 ` Krzysztof Kozlowski
2025-05-11 15:19 ` Jonathan Cameron
1 sibling, 0 replies; 3+ messages in thread
From: Krzysztof Kozlowski @ 2025-05-08 12:16 UTC (permalink / raw)
To: Brajesh Patil, jic23, lars, robh, krzk+dt, conor+dt
Cc: linux-iio, devicetree, linux-kernel, marcelo.schmitt1, dlechner
On 08/05/2025 14:08, Brajesh Patil wrote:
> Signed-off-by: Brajesh Patil <brajeshpatil11@gmail.com>
Please run scripts/checkpatch.pl on the patches and fix reported
warnings. After that, run also 'scripts/checkpatch.pl --strict' on the
patches and (probably) fix more warnings. Some warnings can be ignored,
especially from --strict run, but the code here looks like it needs a
fix. Feel free to get in touch if the warning is not clear.
...
> +
> + mount-matrix:
> + description: |
> + A 3x3 rotation matrix describing how the magnetometer is mounted
> + on the device. This is used to orient the sensor measurements
> + to match the device's coordinate system.
No supplies?
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH v2 2/5] dt-bindings: iio: magnetometer: qst: Add QMC5883L device tree binding
2025-05-08 12:08 [PATCH v2 2/5] dt-bindings: iio: magnetometer: qst: Add QMC5883L device tree binding Brajesh Patil
2025-05-08 12:16 ` Krzysztof Kozlowski
@ 2025-05-11 15:19 ` Jonathan Cameron
1 sibling, 0 replies; 3+ messages in thread
From: Jonathan Cameron @ 2025-05-11 15:19 UTC (permalink / raw)
To: Brajesh Patil
Cc: lars, robh, krzk+dt, conor+dt, linux-iio, devicetree,
linux-kernel, marcelo.schmitt1, dlechner
On Thu, 8 May 2025 13:08:46 +0100
Brajesh Patil <brajeshpatil11@gmail.com> wrote:
Needs description. Give us a clue what the device is in a
few lines.
> Signed-off-by: Brajesh Patil <brajeshpatil11@gmail.com>
> ---
> .../iio/magnetometer/qst,qmc5883l.yaml | 52 +++++++++++++++++++
> 1 file changed, 52 insertions(+)
> create mode 100644 Documentation/devicetree/bindings/iio/magnetometer/qst,qmc5883l.yaml
>
> diff --git a/Documentation/devicetree/bindings/iio/magnetometer/qst,qmc5883l.yaml b/Documentation/devicetree/bindings/iio/magnetometer/qst,qmc5883l.yaml
> new file mode 100644
> index 000000000000..a2e6982a177d
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/iio/magnetometer/qst,qmc5883l.yaml
> @@ -0,0 +1,52 @@
> +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
> +%YAML 1.2
> +---
> +$id: http://devicetree.org/schemas/iio/magnetometer/qst,qmc5883l.yaml#
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: QST QMC5883L 3-Axis Magnetometer
> +
> +maintainers:
> + - Brajesh Patil <brajeshpatil11@gmail.com>
> +
> +description: |
No need for | as paragraph that follows doesn't need any specific formatting.
> + The QMC5883L is a 3-axis magnetic sensor with I2C interface. It provides
> + measurements of magnetic field strength along X, Y and Z axes, as well as
> + temperature readings.
There are two supplies that should be listed here and in the required list
(note that doesn't mean we can't reply on the regulator framework supplying
stub regulators if the power is always on - it just documents that the
device requires power to work!)
There is also a drdy pin so I'd expect an optional interrupt.
Note that bindings should be as complete as possible, even if the driver
doesn't make use of a particular feature yet.
> +
> +properties:
> + compatible:
> + const: qst,qmc5883l
> +
> + reg:
> + maxItems: 1
> + description: I2C slave address (0x0d)
> +
> + mount-matrix:
> + description: |
As above.
> + A 3x3 rotation matrix describing how the magnetometer is mounted
> + on the device. This is used to orient the sensor measurements
> + to match the device's coordinate system.
> +
> +additionalProperties: false
> +
> +required:
> + - compatible
> + - reg
> +
> +examples:
> + - |
> + i2c {
> + #address-cells = <1>;
> + #size-cells = <0>;
> +
> + magnetometer@0d {
> + compatible = "qst,qmc5883l";
> + reg = <0x0d>;
> + mount-matrix = "1", "0", "0",
> + "0", "1", "0",
> + "0", "0", "1";
> + };
> + };
> +...
> +
> --
> 2.39.5
>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2025-05-11 15:19 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-05-08 12:08 [PATCH v2 2/5] dt-bindings: iio: magnetometer: qst: Add QMC5883L device tree binding Brajesh Patil
2025-05-08 12:16 ` Krzysztof Kozlowski
2025-05-11 15:19 ` Jonathan Cameron
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).