[PATCH v2 1/3] dt-bindings: iio: magnetometer: Add MEMSIC MMC5603 and MMC5633

From: Gerard Marull-Paretas

Date: Sun Nov 22 2026 - 14:08:52 EST


The MMC5603NJ and MMC5633NJL are listed in trivial-devices.yaml, which
allows no properties besides the register address and interrupts.
Boards need to describe how the sensor is oriented, and the supply it
runs from, which is often switched on wearables.

Give them a binding of their own, covering both the I2C and I3C
connections of the MMC5633NJL.

Signed-off-by: Gerard Marull-Paretas <gerard@xxxxxxxxxxx>
---
.../iio/magnetometer/memsic,mmc5633.yaml | 61 +++++++++++++++++++
.../devicetree/bindings/trivial-devices.yaml | 4 --
2 files changed, 61 insertions(+), 4 deletions(-)
create mode 100644 Documentation/devicetree/bindings/iio/magnetometer/memsic,mmc5633.yaml

diff --git a/Documentation/devicetree/bindings/iio/magnetometer/memsic,mmc5633.yaml b/Documentation/devicetree/bindings/iio/magnetometer/memsic,mmc5633.yaml
new file mode 100644
index 000000000000..423b8ecbb9e5
--- /dev/null
+++ b/Documentation/devicetree/bindings/iio/magnetometer/memsic,mmc5633.yaml
@@ -0,0 +1,61 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/iio/magnetometer/memsic,mmc5633.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: MEMSIC MMC5603 and MMC5633 3-axis magnetic sensors
+
+maintainers:
+ - Gerard Marull-Paretas <gerard@xxxxxxxxxxx>
+
+description:
+ The MMC5603NJ is connected over I2C, the MMC5633NJL over I2C or I3C.
+
+properties:
+ compatible:
+ enum:
+ - memsic,mmc5603
+ - memsic,mmc5633
+
+ reg:
+ maxItems: 1
+
+ vdd-supply: true
+
+ mount-matrix:
+ description: An optional 3x3 mounting rotation matrix.
+
+required:
+ - compatible
+ - reg
+
+additionalProperties: false
+
+examples:
+ - |
+ i2c {
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ magnetometer@30 {
+ compatible = "memsic,mmc5603";
+ reg = <0x30>;
+ vdd-supply = <&vdd_1v8>;
+ mount-matrix = "-1", "0", "0",
+ "0", "1", "0",
+ "0", "0", "-1";
+ };
+ };
+
+ - |
+ i3c {
+ #address-cells = <3>;
+ #size-cells = <0>;
+
+ magnetometer@30,4a20000f000 {
+ compatible = "memsic,mmc5633";
+ reg = <0x30 0x4a2 0xf000>;
+ vdd-supply = <&vdd_1v8>;
+ };
+ };
diff --git a/Documentation/devicetree/bindings/trivial-devices.yaml b/Documentation/devicetree/bindings/trivial-devices.yaml
index a8b2b9deade4..523c205c0880 100644
--- a/Documentation/devicetree/bindings/trivial-devices.yaml
+++ b/Documentation/devicetree/bindings/trivial-devices.yaml
@@ -261,10 +261,6 @@ properties:
- meas,tsys01
# MEMSIC magnetometer
- memsic,mmc35240
- # MEMSIC 3-axis magnetometer
- - memsic,mmc5603
- # MEMSIC 3-axis magnetometer (Support I3C HDR)
- - memsic,mmc5633
# MEMSIC 3-axis accelerometer
- memsic,mxc4005
# MEMSIC 2-axis 8-bit digital accelerometer
--
2.45.2