Received: by 2002:a05:7412:40d:b0:e2:908c:2ebd with SMTP id 13csp985627rdf; Wed, 22 Nov 2023 02:24:22 -0800 (PST) X-Google-Smtp-Source: AGHT+IHMN6oNfYgKAoN6yPNjhn13xqWgbHJd5LXfAGZ7t8rYpteW9huxIXVueOnq6gdm6DVDNuiv X-Received: by 2002:a17:90a:ce8b:b0:27d:47b4:785f with SMTP id g11-20020a17090ace8b00b0027d47b4785fmr1955507pju.18.1700648661992; Wed, 22 Nov 2023 02:24:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700648661; cv=none; d=google.com; s=arc-20160816; b=HXRzsx1fGbmNqcqPDLe9CtDW9Sd8caBmESIVYJbEkkiGeKNcSlE5umoXJT7SSMOVpm JmcDB1EkgG6HcJLUJIUtW66k/3dw4Ym/0LDNxVXlNj9K8dX5B8jzDxsoHDQjwimd7ZPA dxT+XEr1wxJrwLjhMVWrrw9HE+ELOjol0ALfnhysomkUwhhNBstapExAGgfelqtANd6x fEjqeqQ2/1GPGIEOimRQ+8K3ipMvf7g/KTM/whoHltBUYOE6ZdsUEBwAcDJpJ8AGz0u1 TOGRPpzkQTzrLW3w7twj/f+LmAkcef0MjE7R6nQoAD7VpLQ+yQ7ciaASi5lvsW6Zipaw Fr1g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=24ax012WMEMM4FUonPPNS9MbOgLZBi9d6mGqyl9IrhI=; fh=B+IPMIUUreGZhzsEnOMCcV0+UcNpDtB/JxPc4z9Wstg=; b=j7bRtaTK3wHelZzq57Q4TM4BHXOo6ONSBTkKuAPgCfPcUu14lK24UjKZjQQuNsHPaZ B5NIr6i4VtJ1gsHUgVnENQBYat6goyNW1g9S/nY539+p2VQxubSSqYDLmnuPeHv6SzQX A7Jquw2VMdBqIMHArupaTbJbNhPMSMH35Pt7FepWISr7bqJgamvDglJRJ+QU3aA/GU44 ovfG75GJ5bIiysNepyvGmM+gI4TBZk3eK/DsiBD5/gP1ojXlKWixhW2DdfSqhkTf8JxF nXJnJcO+kwS87pibm/X/Kt2tIQ0So9hlRdksLlwzHroUtrmURFaG/72qtx/A4gTLOUl3 FMtQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@melexis.com header.s=google header.b=BZ1nnaTS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=melexis.com Return-Path: Received: from fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id k12-20020a17090a9d8c00b002850da514f1si1157396pjp.181.2023.11.22.02.24.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Nov 2023 02:24:21 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; dkim=pass header.i=@melexis.com header.s=google header.b=BZ1nnaTS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=melexis.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 0F7EB81BDB92; Wed, 22 Nov 2023 02:24:15 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1343856AbjKVKXc (ORCPT + 99 others); Wed, 22 Nov 2023 05:23:32 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52144 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1343841AbjKVKXa (ORCPT ); Wed, 22 Nov 2023 05:23:30 -0500 Received: from mail-wm1-x32a.google.com (mail-wm1-x32a.google.com [IPv6:2a00:1450:4864:20::32a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5805B197 for ; Wed, 22 Nov 2023 02:23:25 -0800 (PST) Received: by mail-wm1-x32a.google.com with SMTP id 5b1f17b1804b1-40b2979a74eso12441325e9.0 for ; Wed, 22 Nov 2023 02:23:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=melexis.com; s=google; t=1700648604; x=1701253404; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=24ax012WMEMM4FUonPPNS9MbOgLZBi9d6mGqyl9IrhI=; b=BZ1nnaTScFhP9Gw03T9ExH9f7p+9HZllkhs1lO+S7zr3IRjzmm2hV86241+xhEjO9y bROCHxQxx7uHBJYY59x757Z4rJgabfcVR2DvNaPaM9eELcsYNRKsWlR/gw/ru3Cn/LoA GYmxuJw7+FV59qB4DcvxJBJUkAswH33O6hnZ78iCSIYIuDlda5HaMDmsn4FZG3kz6CH4 aD2Oa4bMWu5FkHGPUWrlX1KveDwc4M1P1OCfm7bNPbiG7jTwP91a04VcX/mY4WJcgIFY i2sI2AOP4W8FiDbfacbOpjEtJSH0CibSx99YflORSssRi/gdsxaRahqkJUUDyy5U5Gwv iGwA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700648604; x=1701253404; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=24ax012WMEMM4FUonPPNS9MbOgLZBi9d6mGqyl9IrhI=; b=XmphwTTkLbXiHuvDsnyU4X7bJ1Uv0h31y/Jzv72X3GnjTOYlFl0AMliJAXe1D9Nuks NDbRzRMcOfyFcSYlNwZLpIKY/vf088OzjtLwc1hXwOS6254cSLUdULSYhaIq3nCwY7PG hQmYcimiWlS/Xi4sbvC3F65CjnOqw2/24xJBuAKlp9qm0cCnRjhY0jBy+U4cDWgPB0+9 tWjhUO3XHYpfq6pzwpCVSXsGXq7t7oW3iR8/+twvfE/AVgAYqgGknWvBYlyFI6Gcwild UX325NXZ6CqT/dC/3qfl6BW16AtuRbsJsmcSrtPwjB3lojEach7VNMQbPij/sq9GqNbw lPog== X-Gm-Message-State: AOJu0YymePeisApKs2hJp3UvmsVOq7SfIYMRYXV3jReZZug/KaEsCnJx +NgaSEYagKkBa1xurCVfpF+btw== X-Received: by 2002:a05:600c:510b:b0:40b:32fa:d8a3 with SMTP id o11-20020a05600c510b00b0040b32fad8a3mr685774wms.18.1700648603635; Wed, 22 Nov 2023 02:23:23 -0800 (PST) Received: from localhost.localdomain (d54C3956F.access.telenet.be. [84.195.149.111]) by smtp.gmail.com with ESMTPSA id l8-20020a05600c4f0800b004060f0a0fd5sm1729282wmq.13.2023.11.22.02.23.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Nov 2023 02:23:23 -0800 (PST) From: Crt Mori To: Jonathan Cameron , Rob Herring Cc: linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Crt Mori Subject: [PATCH 0/2] iio: temperature: mlx90635 Driver for MLX90635 IR temperature sensor Date: Wed, 22 Nov 2023 11:20:39 +0100 Message-Id: X-Mailer: git-send-email 2.40.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Wed, 22 Nov 2023 02:24:15 -0800 (PST) Hi everybody, There is a new contactless sensor in Melexis portfolio. MLX90635 is just 1.8x1.8mm in size, but with factory calibration offers instant usage in every project. It offers wide refresh rate range that is configurable between 100ms and 4s. Driver currently provides temperature calculations, power management and changes to the refresh rate. Since sensor is aimed towards the consumer market there is really low number of EEPROM write cycles available, so driver changes refresh rate only in run time registers to avoid writing to EEPROM. Reading EEPROM is not available in Sleep Step mode, so I am using caching at the driver initialization to ensure that measurements can still be taken in Sleep Step mode. Crt Mori (2): iio: temperature: mlx90635 MLX90635 IR Temperature sensor dt-bindings: iio: temperature: add MLX90635 device bindings .../iio/temperature/melexis,mlx90635.yaml | 60 + MAINTAINERS | 7 + drivers/iio/temperature/Kconfig | 12 + drivers/iio/temperature/Makefile | 1 + drivers/iio/temperature/mlx90635.c | 1099 +++++++++++++++++ 5 files changed, 1179 insertions(+) create mode 100644 Documentation/devicetree/bindings/iio/temperature/melexis,mlx90635.yaml create mode 100644 drivers/iio/temperature/mlx90635.c -- 2.40.1