From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-dl1-f43.google.com (mail-dl1-f43.google.com [74.125.82.43]) (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 07D4B1F5821 for ; Sat, 27 Jun 2026 00:58:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=74.125.82.43 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782521938; cv=none; b=Vhda4QOFKikNnIFEQ59le+jPwdfY7thd8sBipSIJReykmwqldlZM4tVytKl2N9wk/HSO0SC2YO8VhuaeT0jXu9v7m4Jj35P+OiohlsODDgOYzPkOdkV/iSWN+1kU19cHGfe1AsosrNIw9c3SFJU/izcUVVt9fbwlhp0Xs0dPVlA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782521938; c=relaxed/simple; bh=y3S1KvtNosafy48tcj/3xMktfz9snr7y2zlr/HxBb4k=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=LksUSvtezLwH+WJoOazUAHa26F0dCAihGc1h0RPUIPC5D5mgHKlByhEtHphj8cIGllAIvHuqaOrmHwX3vbI7rhLv/UABcfMoHfcj4cERkROnwo30ixzWuro4DEx0+yg5jY88tAHVd3jeP+9LTnCq8Tl7HP8CivWQBkZ8TgCUAAM= 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=ibzftLa9; arc=none smtp.client-ip=74.125.82.43 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="ibzftLa9" Received: by mail-dl1-f43.google.com with SMTP id a92af1059eb24-139986373b8so2047974c88.0 for ; Fri, 26 Jun 2026 17:58:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1782521936; x=1783126736; 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=ywpGJ5fE+ty8rvwH5Kr4yHLvcNd7p6MPefLn/FkUlLU=; b=ibzftLa9DBxBS3I5j65YwTJ43Ony0V7ErMrn4zZwFHYh475LcEUqhu+kMh3nFnIdcM bkXKDmLIXmqpo+fqDxQCKdYkJdiLpWqbnn2K76NN9230ASaf4qdg7nCunPBTq9xO5aPd l9Chdva7M0Ufai+rUg+lq9sm5lHI2O1+l450IoPe9laE0nbf9fsVr6S0fOCpJYhFu+kZ gch/rXujlsRQBBZddZIj3GWIvBc5Aegf2G//rNWreLqU2tHYdcIgR8Op/8fAq0rddmal 4jY5h0qe8Ja76n7qqhDrVWJzl6GU2shFOkcrV9SeDYZQ9ibUSG/qiatBWeo05lJvkinQ TOkA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1782521936; x=1783126736; 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=ywpGJ5fE+ty8rvwH5Kr4yHLvcNd7p6MPefLn/FkUlLU=; b=Ut7qqsyAa0xcxJG+OSSWS9VldJLe+Uh1y6qxHd6qho/GuqCEkXL420plzMp0nt2Efo IwWnTCntYR+/dur7zm0YWVLppN+cZ9SOC+wwEtMMgWFMTSkIhwmT5juDTYph6/OAw52f PhFcnWZ8rU69lANFIEfMLg2GH8RGHgV6COLR5Pp1VElpIKql3Hzmd3r6EeltdMOw+a1v VVKWSsP/zAE2wUkIvRXnsXqUyY9ksAAQ5I+2z3KjFbm+dlRPFU2nsOMtr0Sk3yGeF2Rp glW0LtoxANQfUs+AbDSQtewj8xI7w/5s34f946bNdTT3TORiQhXRfkG79MqsbKrYKzgt TFrg== X-Forwarded-Encrypted: i=1; AFNElJ8z6z3PJqTFO6J9DzQjsg0pANC7xTnSC1tTbdR0JavOhWFj84PE8h+rl+36CY45IyvZ+qPh5R0yUPpO@vger.kernel.org X-Gm-Message-State: AOJu0YwAtPE3rhhAYv6EZ/P/G8cy1P+vPGn8RwNMfB5R4rEKdqM5czya my7PLLRLel+t7dgnkgiCrfUArg6x1lvxHMGjI7w6HUePEpuqnGgj3cdeDTl+T4U= X-Gm-Gg: AfdE7cl/rXND65gJ0RSusCjy/aluV/UCn0oJNUCMF9X7uAFiXyguV8FtGAzbhUoL+BK JyblVdDLl5rLDhoohaZmFlstbtI04Y10bXJFj7nyrzeA7R7lK1jfE8ToJ1Du0rwTBlqaCKNUVlg ZGU9hSEcs2XNiFICjv1MxPuBHQ2DG+0AJAEXeFbzal2Sk5oTjKwJY4hvfwVZAdec3E27deXIeBk O3gWEVuaQDR/3MYqk3ONdBjA4HCmDja+FowA3LUNv5DKoua/RsWzEGRlbacZepmETCLrSB+SqyC 37S0j270XyYfbnO7MpPxyKBLYw/p2uo06BaZZvmH5JRrR2VuSKS/y4rT3xfkGN2RxdDnl1XO98V 2n/OeJyykURNJdlYfzSwrZOuBDvLiXtsp+yNcq8vnujCrgU/jq+aBimN2DZoTrL5Ln+dtahdikc wyx9mAGQ4CN4Np7SjBBclym+FM2C1De2CmHo4SOsRdN4P/bzGSpPp1 X-Received: by 2002:a05:7022:ff47:b0:138:4067:e44b with SMTP id a92af1059eb24-139dbb2b4femr7178834c88.12.1782521936031; Fri, 26 Jun 2026 17:58:56 -0700 (PDT) Received: from localhost.localdomain ([101.0.63.254]) by smtp.gmail.com with ESMTPSA id a92af1059eb24-139d8f6d2e4sm22387112c88.7.2026.06.26.17.58.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 26 Jun 2026 17:58:55 -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 v3 1/2] dt-bindings: iio: magnetometer: add Melexis MLX90393 Date: Sat, 27 Jun 2026 06:28:42 +0530 Message-Id: <20260627005843.7786-2-nikhilgtr@gmail.com> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20260627005843.7786-1-nikhilgtr@gmail.com> References: <20260627005843.7786-1-nikhilgtr@gmail.com> Precedence: bulk X-Mailing-List: devicetree@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 | 54 +++++++++++++++++++ MAINTAINERS | 6 +++ 2 files changed, 60 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..33ab0be66345 --- /dev/null +++ b/Documentation/devicetree/bindings/iio/magnetometer/melexis,mlx90393.yaml @@ -0,0 +1,54 @@ +# 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 + + 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>; + }; + }; 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