From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pg1-f171.google.com (mail-pg1-f171.google.com [209.85.215.171]) (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 9BBB43403EF for ; Thu, 18 Jun 2026 16:02:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.215.171 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781798521; cv=none; b=qXzrOynjXeNJIYlv7+KGlhQtV0a+bkUDA30pLAZeZgLJEDoxpTeQ6OqWWKTMiXn7Rj1D2wohcOMxcKg1XC4zZAryEgO26BuOH3njuXjPAaXxQAoYc9BkTbOK2CtWE1B4oATJsugnI2FrWvxXcQusrepCevXtLPGwH6fbPO2SVlg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781798521; c=relaxed/simple; bh=hh25ZcMawAMaZgtcoqBh/Oh0rfApbALMpsiRJY/c4+4=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=cKzlCXquivJPh1GqEsRmIJULxcTEehlP12xxqvrTVq8p9D4vUICpxDsrXFiXsNSEyzZWqSv2YG6AXEMPJSzg0gPQ0wm4qdaqNB/l4vRZVTlmEMXe18eJDQfmgfasqeV/lin5RfI/JYgNx00lXq+JLIvDyJ5Jw355bWYBhFLoPOQ= 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=MYUa2gS5; arc=none smtp.client-ip=209.85.215.171 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="MYUa2gS5" Received: by mail-pg1-f171.google.com with SMTP id 41be03b00d2f7-c8857a27041so553024a12.1 for ; Thu, 18 Jun 2026 09:02:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1781798520; x=1782403320; 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=vjlV8ezwd9YEOGNjCjdtiP5gyg2Bzh5OdyGQbImHytM=; b=MYUa2gS567cG53I6u5bKvfqLKgyLJHDfgAru/utOF485Alo8rAGIBdOeSQMOk/NxLS n1I5rLDJBAi2Hyxqk6jofBw+iGh6MzA/ZVYgHben/xAQR1oi657GS9taeLznUbA9ZB43 NxzKddyRLs3cH5NoJNz6wurAVToNZfH6aKeGmcpxGWR/Z6Jo6W4DxyEJK6OuCXew2TD3 67ItkMlzePuvfSFOYj0ZY7EadmSyUjmztvJhWyX10A96xEXL7WrU2iC7odG4smk+h5/4 pwwG8XH/HR99/+6bf4pz9GTj3iEGanN+TWOVOteEWW1FbWu5zxW+F7W65j4GceEu+ZZH awUw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1781798520; x=1782403320; 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=vjlV8ezwd9YEOGNjCjdtiP5gyg2Bzh5OdyGQbImHytM=; b=ohYqIfnzAIjiTXuA5Anvt3IDMer7wX1GRrPCtbXoOs/RvcWqpDQTD2FiBYEclx9bRm VRe1lPdPyTKLuOl3RutXROEHaBEwzf4zT2D2qv6uLMLbxGvVxAli8DuLBQr1QZMaDq3r 34Fs+XA8Oc+jPqhaJbgsdspiGaccXaLt6Rf4ZfepaekQ0sTPN7d2pBfi6UQr2YZqzL+s lJaxYvOcnJbXG0+D1Gc6lYzZMqF11inkJ5cE9LfF6P24r4Lv/qHta9mscrCrVUDFAsCv nOUsx/XY/Kr6YD1+ZJhRLsXfZGMED6SLU5Knl1vsTbhFjD128v58kQlqKT2r4sJ9CJyz 6oVg== X-Forwarded-Encrypted: i=1; AFNElJ9zarLkt8SBMAmbtzNTxv06mrQHNc48KJ4U2tE5M/TyhLQeOD+eMFc7zSwHq/FGzhmMO/fajVtbycld+xU=@vger.kernel.org X-Gm-Message-State: AOJu0YynDVfXP5c3CMSEevQ6pwGyYy7TmVuLfrEvXnPdk8wjj7ldkMQN Zs2/i8cDpj3S1kI5RYhQxYSYWvWqp1o+7rcu2yobDkQMHKJWhK3JO+M= X-Gm-Gg: AfdE7cmP+yADMhEfpih3cmet/8jveVGpAKo4fef1h3xmNbAyDZn7OQN5qCzu/yBQE5B J4Q71PtL2CNQavRAlRYTHO3feVGG44TEmWfncAqg6Aa0oCfL3Kao/JRMX+kWeDDSsD3GXKwWmVF qNEvUTcF4/mQgHHRI1A2Kw5ts+zwwmN47Xp9BcIEO4Oqs3aWIqZIRVDuOP/elhzHoRJs28ny2Y4 TqZG1g6E+it6BL7582kDKC9MCmc+XFmaRUGJrASnzI13VYdKCIP9tconHiz/6W9qGVaUc3uwgsx 6uGaDOQGOKPpSEHYZllwm31RCJXqrq/zKRQypHSRq+M/MOqG8uZx8XkWWaF95gdmSQml0GSfNuJ RfsbY1ZJXEaQAAI6n1FU7u8W5ntRgg75Q3roSwUe/M7KUfARi+jKXWmL7UthW1NJqp2BCGvL7YE 5JVQJFUn0Pxzx71EIf0UC39GSyiZ+GmWzxmdZioto8Z5eoPVPSjFEt X-Received: by 2002:a17:90b:274d:b0:36a:8240:2477 with SMTP id 98e67ed59e1d1-37d15e8b6bcmr6649a91.19.1781798519763; Thu, 18 Jun 2026 09:01:59 -0700 (PDT) Received: from localhost.localdomain ([101.0.62.180]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-37d15361af5sm53807a91.4.2026.06.18.09.01.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Jun 2026 09:01:58 -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, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Nikhil Gautam Subject: [PATCH v2 1/2] dt-bindings: iio: magnetometer: add Melexis MLX90393 Date: Thu, 18 Jun 2026 21:31:40 +0530 Message-Id: <20260618160141.11409-2-nikhilgtr@gmail.com> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20260618160141.11409-1-nikhilgtr@gmail.com> References: <20260618160141.11409-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 | 55 +++++++++++++++++++ MAINTAINERS | 6 ++ 2 files changed, 61 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..79e7e4a124b6 --- /dev/null +++ b/Documentation/devicetree/bindings/iio/magnetometer/melexis,mlx90393.yaml @@ -0,0 +1,55 @@ +# 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: true + vddio-supply: true + + interrupts: + maxItems: 1 + + trigger-gpios: + maxItems: 1 + +required: + - compatible + - reg + +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>; + }; + }; diff --git a/MAINTAINERS b/MAINTAINERS index a92290fffa16..e9ddcd12feb5 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -24926,6 +24926,12 @@ S: Maintained F: Documentation/devicetree/bindings/iio/magnetometer/ti,tmag5273.yaml F: drivers/iio/magnetometer/tmag5273.c +MELEXIS MLX90393 MAGNETOMETER DRIVER +M: Nikhil Gautam +L: linux-iio@vger.kernel.org +S: Maintained +F: Documentation/devicetree/bindings/iio/magnetometer/melexis,mlx90393.yaml + TI TRF7970A NFC DRIVER M: Mark Greer L: linux-wireless@vger.kernel.org -- 2.39.5