Received: by 2002:a05:7412:3784:b0:e2:908c:2ebd with SMTP id jk4csp7187rdb; Fri, 29 Sep 2023 14:36:15 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFibqwo5nZ/pklxECgtjxLHHStq1tuFIs24j8N1bT7hYA062nr3vh5EdIDejc+tgq8kM3wx X-Received: by 2002:a05:6808:3b3:b0:3ad:f525:52be with SMTP id n19-20020a05680803b300b003adf52552bemr5110869oie.11.1696023375240; Fri, 29 Sep 2023 14:36:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696023375; cv=none; d=google.com; s=arc-20160816; b=pOzi/K+8xKg3ry72bSNcibgHNNsOohg16IZeg+dU+MjSTDh0s8XDhVl5OAGgxqHngW 0ysXZQsPWyl+OSSRqa3UzGnQSDVx/0qWJIlycc1gXpSlKsZD4yPbJxI4bjUH5FeBtHc9 +1kjvy8ZH1jMoKLmPXsVRgQcvD7X60YmLyOYbzdijB7ZOr0VV/Hh64h9kdU0oQrin5/J IGZhuncvoU0t0DBt/aQSuEno4nnQ8I+JSaCDyQfHxmCtYHycd8f0+uS1z2MvepmBJ9YO iYqV0OJxsuXxd4CdMa3JWAxVaYO+WeOsW7Qh1JGWmQZMWjkFwFHnSLOosvTlIKO07uw+ l9Yg== 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=uDGRbz3/4C2hmwrNEK5ft/G6qK5MXkxmd0OoDsLxkpo=; fh=gXdKdTzXVpCzUn5wRwZJ/NCMvVwA1kGKWl4i6uq6pzM=; b=IZc5IOv0OKknFqFePDJAWoeY8rpZSUmWAGcU1WnaEUhRQT0+j6aQa3QNQ1ngT1ndwa wj2y0ar/whxoYvLdISXkilYLw2OdSwJY+Vxe7n9BXeABKABZcKg0lDivTgGbVyqZd5Kl x8ThTnJXaQ8UQw11WAh/auexx9BxVbVjV5OKFiBWu4GPV2QF/mSoyyWfbEtQtA013XWt cZRYvgaU8+A6hhog+YfVAhvj7sR3K4jC7oOGpG5FmO5FD1KfYilQ1Jsctb+AUd7hw2o1 IUrPT/Kmm8e0CQmw9l6z8sIztdJxRfT4b7Au5qWq87svf8gRg3hSZfOR1CsKHQjBq8v7 MhbQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=Zzx6DnbB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id y62-20020a638a41000000b005638dc9751csi21831293pgd.0.2023.09.29.14.36.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 Sep 2023 14:36:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=Zzx6DnbB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 46AD08040ECF; Fri, 29 Sep 2023 13:08:59 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233450AbjI2UIx (ORCPT + 99 others); Fri, 29 Sep 2023 16:08:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43486 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233069AbjI2UIw (ORCPT ); Fri, 29 Sep 2023 16:08:52 -0400 Received: from mail-lf1-x12b.google.com (mail-lf1-x12b.google.com [IPv6:2a00:1450:4864:20::12b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1EFB91B2; Fri, 29 Sep 2023 13:08:50 -0700 (PDT) Received: by mail-lf1-x12b.google.com with SMTP id 2adb3069b0e04-50305abe5f0so22435395e87.2; Fri, 29 Sep 2023 13:08:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1696018128; x=1696622928; 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=uDGRbz3/4C2hmwrNEK5ft/G6qK5MXkxmd0OoDsLxkpo=; b=Zzx6DnbBbkptzyIt+sgJvJz3I/jyWjGeXrNB44fAv/548zxUnfISBJMrPlPZUYa9YJ nv7cx+FoU/1IXVfsn/fZFPbsj3i85XAgFzhum2VXtk/a043I7TK5qjTpBYsfGVrOmvjM 85XLwVC7W2XIUODBQWIxYeOmydxabMPkPblMT9/XLPYioPGMiMCLTP3PO117M5ouiesI 76r8lSUEq3ZCG7J4d7piNtq74q14dY7C+AMZz9GEmpp3vnWfEQEC54fzbgHK3L/rxGmk nUIZdWLl+Hu5yFwmJfrHAoiCykcUzXxshsgjTjAusQIsDAr8JGCPgCzq8AcH3huTHoTi 6A7w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696018128; x=1696622928; 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=uDGRbz3/4C2hmwrNEK5ft/G6qK5MXkxmd0OoDsLxkpo=; b=XJzRHhrEv5TdDsdI//ZF5zrCrA5Npjyecy/xDSRGc+6/HcKNjqyNGyxlR8pUO3MuXX R4aevqpqF5yMpBRL9+isURP5JPmlWewqlpyiduvlzFhI06Zj6A/FEG7VzmyFT7rn4f+0 UjR4FN8kVejI2NSsrIipVQyq6MleUaofZ4Kv6ztzncbh2/dox3amFnvkCJMI50L+Eri6 9GlcPsWuQTjo9BgXhGdP58eKz5xbVYs4U2BmD35NfjRnWXI2AoArYHFyOYpDQBzJHW7I go+RdqpLYgcoXAIuZtV5mUAJE8yufSCSjxvmrqlSkNfIB4bI8qevx5C6bjNzWiCeN3wl Y6Mg== X-Gm-Message-State: AOJu0Yyw+eTM7mac9LIOtBqMDGD/q2DcoCTh6kvaypXVcKWnK1cZ+2j3 k+IQPDIMqLuqeUVk9ZdYAg0= X-Received: by 2002:a19:6549:0:b0:500:acf1:b432 with SMTP id c9-20020a196549000000b00500acf1b432mr4377345lfj.63.1696018128022; Fri, 29 Sep 2023 13:08:48 -0700 (PDT) Received: from fr.lan ([46.31.31.132]) by smtp.googlemail.com with ESMTPSA id v12-20020a19740c000000b005056e9b734esm422439lfe.151.2023.09.29.13.08.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 Sep 2023 13:08:47 -0700 (PDT) From: Ivan Mikhaylov To: Jonathan Cameron , Lars-Peter Clausen , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Ivan Mikhaylov Subject: [PATCH v2 0/2] Add maxim max34408/34409 ADC driver and yaml Date: Fri, 29 Sep 2023 23:08:42 +0300 Message-ID: <20230929200844.23316-1-fr0st61te@gmail.com> X-Mailer: git-send-email 2.42.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net 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 (snail.vger.email [0.0.0.0]); Fri, 29 Sep 2023 13:08:59 -0700 (PDT) Add Maxim max34408/34409 ADC driver and yaml for it. Until now it supports only current monitioring function without overcurrent threshold/delay, shutdown delay configuration, alert interrupt. Changes from v1: - minor changes from Rob's comments for yaml - add ena, shtdn and make 4 inputs for R sense from Jonathan's comments for yaml - add _REG suffix and make prefix for bitmasks and statuses - add SCALE/OFFSET instead of AVG/PROCESSED from Jonathan and Lars-Peter comments - add chip data from Jonathan and Lars-Peter comments - minor changes from Lars-Peter and Jonathan comments for driver Ivan Mikhaylov (2): dt-bindings: adc: provide max34408/9 device tree binding document iio: adc: Add driver support for MAX34408/9 .../bindings/iio/adc/maxim,max34408.yaml | 101 ++++++ drivers/iio/adc/Kconfig | 11 + drivers/iio/adc/Makefile | 1 + drivers/iio/adc/max34408.c | 334 ++++++++++++++++++ 4 files changed, 447 insertions(+) create mode 100644 Documentation/devicetree/bindings/iio/adc/maxim,max34408.yaml create mode 100644 drivers/iio/adc/max34408.c -- 2.42.0