From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-dl1-f51.google.com (mail-dl1-f51.google.com [74.125.82.51]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E24D8221FCD for ; Sat, 27 Jun 2026 09:55:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=74.125.82.51 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782554137; cv=none; b=C2T84BF3YiNiIh0DS1o+0rpMeh2L48reSu6YM/Y2vB/c0a5GOwEcYFVctvOgn7NIiiTnuP584ghPaCSFYEf9tctN4CzU9X0yifscSWgwj1CJaCl2aUX7OK+A0QjCvnP/N5DexJGJKnCDTnLkKfw//oXGimWocgNSlaHYswtOq0Q= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782554137; c=relaxed/simple; bh=jlgT/MtCdgpOB9fnTVDheobw7Szom3eMO6EOHqMHlYI=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=hFiSjf6mDmVgZcxRGwl2vuOLT/3d6xI+/8DMA1wFtrY4GoKfc+RRNxpBsTvFaxzg+A4TKr9JuOAa/dYBBGgoWF+G4tP4KP6rl1vPJ0F484+tXgTlphpYC1mAnUs5Gvmln2vGsxV72+LB/EzI89tW0WhJQ4y1djexygFunXrl99s= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=dgqsmZZz; arc=none smtp.client-ip=74.125.82.51 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="dgqsmZZz" Received: by mail-dl1-f51.google.com with SMTP id a92af1059eb24-13986d61b4eso4499481c88.0 for ; Sat, 27 Jun 2026 02:55:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1782554135; x=1783158935; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=Iqu3QtC3YcpovTQzC1UYwE9fiAF/VlH+zBm0B1Wqv6o=; b=dgqsmZZzdxkLcrOiYgGp2nIHRGBsZByMzce2vvIUaRNciFtJuomrfYMRjnemYmN/J7 CCy+xonv4yUkftAezMAuNI3c9kT5c9Tf92fHX4H3NQWnGXdzRmf7Ew03huWLZ8AoFVUr +x2CpAmM1UTEPRQO1VQZzDqiqim0HOlDEC1UOuuOsmK1NvnbttSBAQ/pcy++9BJcwvye 3jxdZgV2kTmXa2qiOCpRlTPy3grvHzvyhxY2ojJqhwTZFvhFzs2wa8ky9d5p+b+Yd5Hh 5VbGl8M8V79IMcfrBS+mp2PO8WSdrE7MyOK99nQ7dcPDeHJCy5wbMGhAcZrdY+2lJo8+ mORg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1782554135; x=1783158935; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=Iqu3QtC3YcpovTQzC1UYwE9fiAF/VlH+zBm0B1Wqv6o=; b=Nhmcz6B2Hu505y/Oz4+GObzjH2496bAEmcGYWseI5YXjlD+EbNNh7OLcdCMUAvKibv O6swbSYiDMs/7rl3l9gaan6PkgyeI7mGwPHXM8v0Rmrflhcalqjie4JZpTP0eyUBdMtF Fm7hefLkI8N74cmUb75V/Rdcyp3AkNWSDgAJgJMhlPRvSL9LV0VYu84k3TegdEHpTYm2 iNSUk9/M2YV5Jp3XsX178IgiEuxnxwk1GE/XPyETScDsfyEP+l1vqrt74/DXTYT48o+N k1Oa1HzEpzbe5ufABJW6LgzJUwR+xHWnsOKWYlSjRsl9Gu9MzcCXk6tCaGjRueo1NHow o9NQ== X-Forwarded-Encrypted: i=1; AFNElJ8elr1DlN+9m6H8M23nW0iL4/fpQY0xEOh/xGRRwqBnmu18FbqI83EQfelK+f43Wu8XAoAMJ2mu58APiiU=@vger.kernel.org X-Gm-Message-State: AOJu0YwaWkRnYr8+vDng9vQ8fvn13maAVwH2BtVv1rORbMUNHl/3J90k JsDGJpCzqhjGk4RbpEwgVuKUiZEUxvBe3BP4IQo8yPpVTlVzELs+YoU= X-Gm-Gg: AfdE7cnZJW7Lzfk4d4iXuYrViA0MfLGzTvpBIiYgJEc/Qy3ARv26mAXGmp+2nhgPia2 SwepESoYqeG77VSjeOwyd9qKe5H0SFB4aWneZFnXAz2AjDVmEr9PtvtcNStoBNDtaSSIKZZ7UqQ KUdJKVKdsta7O/PQWa2Cz0uZuxBsOkhkwYbQeqeg/TfjzLf3WF81aFo1EMMx7RSGTAPzgy9HB36 rrzIbs8eR8IPUxuIGdh7eAFtuYMFEo9Bu8VQa/Ucyw109x/Nwht4l3orq30EvJivSFSoDs688Ye HM5mYFraG96sVzSOGXub/Nsu/MxMXZDM3xhoq38uZD/98LLTOOS9jMKBwjz511zXT1Q0LI+t1ee TkkZoOyzH5adAYtnZgZl1TmqN/9rv9C990DKK2x7nOTi/f5hUZPgL2PPYgszDVVyeHEG7ksQ7j7 fSpSgnwpZRyx3RxzWzwI7Hjd6UIlLsBBuzVMd6omZcxoht+cdYGwS0 X-Received: by 2002:a05:7022:41a6:b0:128:d4be:7438 with SMTP id a92af1059eb24-139eb3f6ec2mr2858883c88.30.1782554134995; Sat, 27 Jun 2026 02:55:34 -0700 (PDT) Received: from localhost.localdomain ([101.0.62.116]) by smtp.gmail.com with ESMTPSA id a92af1059eb24-139e4c33af7sm12886141c88.5.2026.06.27.02.55.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 27 Jun 2026 02:55:33 -0700 (PDT) From: Nikhil Gautam To: linux-iio@vger.kernel.org Cc: jic23@kernel.org, dlechner@baylibre.com, nuno.sa@analog.com, andy@kernel.org, u.kleine-koenig@baylibre.com, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Nikhil Gautam Subject: [PATCH v4 1/2] dt-bindings: iio: magnetometer: add Melexis MLX90393 Date: Sat, 27 Jun 2026 15:25:18 +0530 Message-Id: <20260627095519.8377-2-nikhilgtr@gmail.com> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20260627095519.8377-1-nikhilgtr@gmail.com> References: <20260627095519.8377-1-nikhilgtr@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Add devicetree bindings for the Melexis MLX90393 3-axis magnetometer and temperature sensor. The device supports magnetic field and temperature measurements over I2C and SPI interfaces. This initial binding documents the I2C interface. Signed-off-by: Nikhil Gautam --- .../iio/magnetometer/melexis,mlx90393.yaml | 63 +++++++++++++++++++ MAINTAINERS | 6 ++ 2 files changed, 69 insertions(+) create mode 100644 Documentation/devicetree/bindings/iio/magnetometer/melexis,mlx90393.yaml diff --git a/Documentation/devicetree/bindings/iio/magnetometer/melexis,mlx90393.yaml b/Documentation/devicetree/bindings/iio/magnetometer/melexis,mlx90393.yaml new file mode 100644 index 000000000000..91e984827786 --- /dev/null +++ b/Documentation/devicetree/bindings/iio/magnetometer/melexis,mlx90393.yaml @@ -0,0 +1,63 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/iio/magnetometer/melexis,mlx90393.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Melexis MLX90393 magnetometer sensor + +maintainers: + - Nikhil Gautam + +description: + Melexis MLX90393 3-axis magnetometer and temperature sensor. + +properties: + compatible: + const: melexis,mlx90393 + + reg: + maxItems: 1 + + vdd-supply: + description: Regulator that provides power to the sensor + + vddio-supply: + description: Regulator that provides power to the bus + + interrupts: + maxItems: 1 + + trigger-gpios: + maxItems: 1 + +required: + - compatible + - reg + - vdd-supply + - vddio-supply + +additionalProperties: false + +examples: + - | + #include + #include + + i2c { + #address-cells = <1>; + #size-cells = <0>; + + magnetometer@c { + compatible = "melexis,mlx90393"; + reg = <0x0c>; + + interrupt-parent = <&gpio>; + interrupts = <17 IRQ_TYPE_EDGE_RISING>; + + trigger-gpios = <&gpio 18 GPIO_ACTIVE_HIGH>; + + vdd-supply = <&vdd>; + vddio-supply = <&vddio>; + }; + }; diff --git a/MAINTAINERS b/MAINTAINERS index a92290fffa16..469ae3f9aa0f 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -15501,6 +15501,12 @@ F: Documentation/scsi/megaraid.rst F: drivers/scsi/megaraid.* F: drivers/scsi/megaraid/ +MELEXIS MLX90393 MAGNETOMETER DRIVER +M: Nikhil Gautam +L: linux-iio@vger.kernel.org +S: Maintained +F: Documentation/devicetree/bindings/iio/magnetometer/melexis,mlx90393.yaml + MELEXIS MLX90614 DRIVER M: Crt Mori L: linux-iio@vger.kernel.org -- 2.39.5