From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pj1-f44.google.com (mail-pj1-f44.google.com [209.85.216.44]) (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 2268A33ADB2 for ; Thu, 18 Jun 2026 20:26:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.216.44 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781814414; cv=none; b=Re0+OoSQHiWqAtKrmOyYdAMal1q6XvwcERB5qdLKgMa93QEVzys3IvMkPsSfG9LFzT3i/bZGFXM2OMgv1hMmmusxVKxctsiKRSv5WnNtqTlAMl1ByLcgUy8kf3eFmFR8yaQeAMLPJVTKAzbNEiuTqR1EcX7wHCQAAeyyQyfiu5M= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781814414; c=relaxed/simple; bh=76r3kjz+9Z2QMvQAe7Brgp6OaaRZYG9+O1OD/q5LJyU=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=pIFO7VOqvqMifutRiprFdepPKiuIMcPR4nV6uulmgF5rLwJ9DEfUfzYMPLY5VidSu71JOTkJjdtu7tWuE87owwglbVNx+ALbe3T7yMc/Uo7opW+mHzPIvEsB3F+cXC/yDSJ0cJCEWOdjko3ropGfSnnxiwwo7Yv7vaujMZ9Ww0E= 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=ToW8oEvA; arc=none smtp.client-ip=209.85.216.44 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="ToW8oEvA" Received: by mail-pj1-f44.google.com with SMTP id 98e67ed59e1d1-37cbcf49deaso774813a91.1 for ; Thu, 18 Jun 2026 13:26:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1781814412; x=1782419212; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=k0TnOsVUyZhZEFtMn3lxQN/Z3qhDIQt2PMSD3OahT/M=; b=ToW8oEvAbSYaGQOck3E8JRJEWzxfPj+6xXdhsrT8tjmyDRkh6NYgO5Ql2pOqqNYRdm 7BcNS1npsWCLJPhmmV4RH8zzKYOa6fnB5ih9vut8es0YL/89eszFt8Haq73I7W5WbHpY FQOJ6G5PzCpX+UnMvy/8aMeotjoJr0jRYUSANViKP6+qDBHaVauvNViXud237ybYzzyk Vn++kMlDaqFNJZiEjVEvkt4tWxqdS0i/93Al7le8Lh4FJ6gAqOaE4PqK62S4mVxGMEv8 B3CUILg5p6RXzz91vyyYkqEXrNPEbPCL2UA+8u1YxZbiEz4ArZuWI+sTq4U6G+BU91JR M30g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1781814412; x=1782419212; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=k0TnOsVUyZhZEFtMn3lxQN/Z3qhDIQt2PMSD3OahT/M=; b=GcOYjY5xZw5zoyHuIvhX5WuynmVKa6aOthnQHL8Mt6a+rFyztQJcHKFu4Cu3ImtvdJ yB8fbkwLqX9hZEAp56kq1jGR83MFMMX7fDE7UWCJPBleDvP8mSfZiBb08SWkHfYwVL4Y zgrge0XHVOpX/R4RYwzcFp8STrQjkKPDjui58FCIukZv0hJauaKJlXhUmb5VZIaeYV/q vi2G4ch46DpcJpSlsZBTzb/GNy2Q0iI6NG2KhKMvZWUkYDsRQpiDjr1GG/DnvpEUWYAU n1IhjTtmAa99A0Q8otXVMdzmxzFbGUcmOGjc25QLjHesaLU21OxQzUWV7hDdlZpLVUXO trZQ== X-Forwarded-Encrypted: i=1; AFNElJ91G4GT7I/QUe2SmKKnFqqS1sjt8CBQYncUFRbpBdhU06zn/aK3pmzs2gCyymbE574G5DuTiV1klNEvFpI=@vger.kernel.org X-Gm-Message-State: AOJu0YwJUhvQlmnoQyX7DpTtmFKAqjOFcSPdQ9rPVHkPYzJI+4aVT6g5 YevNL0B3wyXXK1eaNdDvMpY1UezmnLv7oBuErlbCGf/+APvNwFhiuGw= X-Gm-Gg: AfdE7clxY0aQpFb2Z7GnpjAcINGa1hRsFy2fmqlaBmAEFv1ePkhT/q13uSp1PnICKNF RZAsoZ9ScCbeCw/+hSq9FoLKvxWVlIFV30BvjL6HLi3nPx23qVfN9LGdDOfkzl0CU5lF3KO9qFw ywxwtJYPtFL8EZb2ySfo60oDSu6ckwVOeaXezv0vvtvE7bOrDDD3eZO4uPmDcS2cmOmTzzLEb6P 7QAzMdbsRjx23zSdQJedV2bTuR7KQTzOzDnJntC+6vcV8Oyfns17iWOCzcNkSf7hHRL6hUDmIp3 NmzycbxC3eRU2saUJZ2EUKOXwtsM70YNkBcGMnRAojcI/VQygxplUV2HDYXPQfQq5R55+qVJKy2 UEYmSAiuKB1f/Aj+XUWJYg9nzamaTunSBKQcC2kQFL+HzpwFa5uTeJp/2NlzpameXD9i4ksPPmq ys0bnxMn6SoScDT/ckMsIvd2/i4mqxftjXTmHOacuM6T7SRkPbxtYZv198Lg== X-Received: by 2002:a17:90a:d610:b0:37c:607b:2cd9 with SMTP id 98e67ed59e1d1-37d13cc9b69mr1245175a91.0.1781814412328; Thu, 18 Jun 2026 13:26:52 -0700 (PDT) Received: from [192.168.1.45] ([101.0.62.180]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-37d153601e3sm573269a91.1.2026.06.18.13.26.48 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 18 Jun 2026 13:26:51 -0700 (PDT) Message-ID: <9ef6ef71-e2a0-416f-8b49-b8b446f76b78@gmail.com> Date: Fri, 19 Jun 2026 01:56:47 +0530 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2 0/2] iio: magnetometer: add support for Melexis MLX90393 To: Andy Shevchenko Cc: linux-iio@vger.kernel.org, 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 References: <20260618160141.11409-1-nikhilgtr@gmail.com> Content-Language: en-US From: Nikhil Gautam In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 19-06-2026 12:29 am, Andy Shevchenko wrote: > On Thu, Jun 18, 2026 at 09:31:39PM +0530, Nikhil Gautam wrote: >> Hi, >> >> This series adds initial Industrial I/O subsystem support for the >> Melexis MLX90393 3-axis magnetometer and temperature sensor. >> >> The MLX90393 supports both I2C and SPI interfaces. This series >> implements support for the I2C interface while keeping the driver >> structure transport-independent to simplify future SPI support. >> >> Currently supported features: >> >> * Raw magnetic field measurements for X/Y/Z axes >> * Raw temperature measurements >> * Configurable gain/scale selection >> * Configurable oversampling ratio >> * Direct mode operation through the IIO subsystem >> * I2C interface support >> >> The driver has been tested on Raspberry Pi 5 hardware using an >> MLX90393 sensor connected over I2C. Magnetic field and temperature >> measurements were verified through the IIO sysfs interface. > This doesn't answer to two important questions: > - why do we need a brand new driver? > Can't one of the existing be updated to cover this HW? > > - where to find the datasheet? Any Links or other means to get it? Hi Andy, I looked at the existing magnetometer drivers in the IIO subsystem, but none support the MLX90393 or a sufficiently similar register map and command protocol. The MLX90393 uses its own command-based interface and device-specific configuration and conversion logic, so extending an existing driver would require substantial changes with little code reuse. Therefore, I chose to implement it as a separate driver. The datasheet is publicly available from Melexis: Link: https://media.melexis.com/-/media/files/documents/datasheets/mlx90393-datasheet-melexis.pdf I'll include the datasheet link and clarify the rationale for introducing a new driver in the cover letter of the next revision. Thanks, Nikhil