From patchwork Mon Aug 8 12:04:10 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Crt Mori X-Patchwork-Id: 12938735 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8B6DBC00140 for ; Mon, 8 Aug 2022 12:04:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237284AbiHHMEh (ORCPT ); Mon, 8 Aug 2022 08:04:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35310 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229540AbiHHMEg (ORCPT ); Mon, 8 Aug 2022 08:04:36 -0400 Received: from mail-wm1-x336.google.com (mail-wm1-x336.google.com [IPv6:2a00:1450:4864:20::336]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A74181209F for ; Mon, 8 Aug 2022 05:04:34 -0700 (PDT) Received: by mail-wm1-x336.google.com with SMTP id a11so4673283wmq.3 for ; Mon, 08 Aug 2022 05:04:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=melexis.com; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=plnBWnVwXrE1lhxE5G1pC4DscYe+Aj6YcHEs3iVl5BA=; b=epYC1saHxJBZkzzYKEtkae0XhMlNW/aWmXjFTyiuajUGHOH5oE9VpqewtvXMmYrwDc c5G/p1xe/P8EEWbdZskA+FHo8Kaa++JVnNXFCGX9Wy55OFhsMY7TUrbHjsqmUUQP8SsR sTZY8/VGmYPF0gdgFJ764riXGAF3p07Tzsl3h1BuhNftk6f/uxadx+f0pYYOGMOrATAy AJbLK7x7XVArGMd/zShHShyCsWn6zWFdH8IzFSU2XzVWd3gDcBPhBIvy71rdXG0iAemb Za3i72QIWN6qOUej/CDseah49peD6HxU5YolNjt4rigpRLU3BIKcP5Kh+fIxb+JxNba1 hJag== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=plnBWnVwXrE1lhxE5G1pC4DscYe+Aj6YcHEs3iVl5BA=; b=DJY8sQi+jSeSHe+zu9E4A3ZZgzpTdHFiXVQ4EnFUn5aTEnFbWYznHy1wH8krQpSMMi 3gT6ApsEnZoW8pY0XWXb1KDCpPnpXC/AaSy+QfHx31EKCnoBC4ox6KLSlUcZAT0+BBaX twqQ4Y2gvJ4jU2jOSQo7Bbo2J0LSEgRegtUKA3JGuhmJzzttE6uYSmisxl/u4kCf0OW4 d+bdUBcHyFaxU2S+pIn6TW/LKe12hMGH7Skob0SfN8tbBp912NKRY61xAgcqYWDZ8/N6 prioD2QYe+D4o7of3PVgEFV4HOXxcyY5VjDZGUzZlttzJMeEpFaOfSpHhbXa262semtt ORZA== X-Gm-Message-State: ACgBeo0n8+vnaKY57czYDC9Po+6aYDV/xo0SQXrfP4dBdQgSMqF1jxDz rRFreBug3batQVuMEFDlfbv1Yw== X-Google-Smtp-Source: AA6agR7JaoQKnBjEQaAhj5ksmilu1aeqBCtfchOYfNpkZrsQ+WH1he17WrY84Qy6dqTkGUPd+Jp11w== X-Received: by 2002:a05:600c:1e8a:b0:3a3:20fc:a651 with SMTP id be10-20020a05600c1e8a00b003a320fca651mr12632810wmb.39.1659960273119; Mon, 08 Aug 2022 05:04:33 -0700 (PDT) Received: from localhost.localdomain (ptr-4xh0y3vuv1059rd6h4r.18120a2.ip6.access.telenet.be. [2a02:1810:a44c:8f00:cd22:c517:e143:e53b]) by smtp.gmail.com with ESMTPSA id u10-20020a05600c19ca00b003a31fd05e0fsm35293317wmq.2.2022.08.08.05.04.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Aug 2022 05:04:32 -0700 (PDT) From: Crt Mori To: Jonathan Cameron Cc: linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org, Lars-Peter Clausen , Crt Mori Subject: [PATCH v2 0/2] iio: temperature: mlx90632: Add supply regulator Date: Mon, 8 Aug 2022 14:04:10 +0200 Message-Id: <20220808120410.1543050-1-cmo@melexis.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-iio@vger.kernel.org Add supply regulator to the sensor as initial update before proper power management is presented. This will reduce the diff for the following patches. Changes in v2: - Regulator voltage was removed as per comments from Jonathan Cameron and Lars-Peter Clausen - Style handling for the error reporting of the regulator DT binding was adjusted - NEW: Delay function was created and grouped together with call from the reset command, to ensure consistency and reduce the amount of code. Crt Mori (2): iio: temperature: mlx90632 Add supply regulator to sensor dt-bindings: iio: mlx90632 Add supply regulator documentation .../iio/temperature/melexis,mlx90632.yaml | 4 ++ drivers/iio/temperature/mlx90632.c | 63 +++++++++++++++++-- 2 files changed, 62 insertions(+), 5 deletions(-)