Message ID | 20221020090257.1717053-1-demonsingur@gmail.com |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4ac7:0:0:0:0:0 with SMTP id y7csp144896wrs; Thu, 20 Oct 2022 02:03:54 -0700 (PDT) X-Google-Smtp-Source: AMsMyM74rkL9V+hBWOm09dVGeKck1qo58K113XAWi5C0Rafu99YaEJxwuMwbcrgSkcn7FHRVtOR4 X-Received: by 2002:a05:6402:1d86:b0:457:e84:f0e with SMTP id dk6-20020a0564021d8600b004570e840f0emr11157939edb.241.1666256634676; Thu, 20 Oct 2022 02:03:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666256634; cv=none; d=google.com; s=arc-20160816; b=sXIH2l81t59Fe/9pg+ZWreTsPOAeqt7kWHOqBOznSdWXEh1/9FC1hOiSfVT0X0zhJq qeMziKtULIilm4eYXEzfMlPDWDEYDsVgslFXPx8PTuDLvEk31Fygh19RG0yJdUd71h4i rMYxtlsZgSoc3NSN95LJpDp8tE6zDIZe2O39JS4vkBhAoEbZYZt3mT4XkMeIU4+KWCQn wQP1U4hGIwEyS/IX78H+F9oi1lu8WA0MbCHQdXZQRT/pMzj8fcSWaCndRrVweil50BVT 9B8frnntzRcRT/N2B7WdOqb0C2HsCXYQoj5//PHadzaXDfj78hqlvjiX8muFoHx9BKCa b3og== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:content-transfer-encoding:mime-version :message-id:date:subject:cc:from:dkim-signature; bh=xaQSKWVE6qiruRKoc8l3Jo2/FxtS7lXQP1OjBQL4RMM=; b=KfYa8aL4acQytXKO1S1C10sSfVd5UFCiQ/D8+9jpalIHETtVS09K2zWdrqpE4LstDr 2+8SRg8jPfpQ3FQqFWSGk2K63nXa5Se4CnRbmnUl35fpoK58ND/3nRPPEZg1bCEjKM53 /PraP4tsTQcsW8NMBGkTQim/Wi6CeipXY7Tc6ZLVbzIA9YlZbYXpxHKjw+IRgVWY/CGE DmmDtTuNC3IgTO8VmbJIDBp0m9pcb/0Q8ALbOa4t8yjCRQMsGpRE3mQUoq6ccIod6MiG fKM17EVdefBb1fZbxvcMt/nhcfZuXvYO1cGckegrk0uQJTfRGF74uLCrswRwOH75iHPG cepQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20210112 header.b=kUmjEk4Z; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id oz30-20020a1709077d9e00b0078e18bd3256si16608906ejc.291.2022.10.20.02.03.28; Thu, 20 Oct 2022 02:03:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=fail header.i=@gmail.com header.s=20210112 header.b=kUmjEk4Z; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229880AbiJTJDM (ORCPT <rfc822;realc9580@gmail.com> + 99 others); Thu, 20 Oct 2022 05:03:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58830 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229799AbiJTJDL (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Thu, 20 Oct 2022 05:03:11 -0400 Received: from mail-ed1-x52e.google.com (mail-ed1-x52e.google.com [IPv6:2a00:1450:4864:20::52e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E331B1960B8; Thu, 20 Oct 2022 02:03:09 -0700 (PDT) Received: by mail-ed1-x52e.google.com with SMTP id q19so28903475edd.10; Thu, 20 Oct 2022 02:03:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=xaQSKWVE6qiruRKoc8l3Jo2/FxtS7lXQP1OjBQL4RMM=; b=kUmjEk4ZQUk4+YGNsUmKOxDXcS40zP3tI1LKysIXI+VhsQMt49TnX5mflLP/gaw06t dcgJ6ZyDFAgEvPOdvAhssoTMZIBAXVVQPDA9KnobElvmtyu8No0ws/YE2IWBgkWShprD m1+xt3o2zp9bg6zMO5pxfgNnOhAORA+J3GGIroc7x5/FOs5LGUgOWDJ4ijxdw9lS/EGB 47TWrex2A8kRFo0AKxBAi9mfYotXvCNnPUW44ahaCNJCFnhgBgb3RVG9cpK1BeFuWAaS V/CU4bKYj2G9w0d7FeAK02bBVexbPFaMqp2TgpGPA3Ho6IjIzFQAcVIEo5Kz3muxjbBB j1xA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=xaQSKWVE6qiruRKoc8l3Jo2/FxtS7lXQP1OjBQL4RMM=; b=Ka/xo/Nig30U9OP6cdS/TAqsL2QuTKbFFZK9O3bujVnNujiFSWgZz/SbMGUBEiSOsf zrEEvEUcv8CE15v2WZ4BdMAPdMy8oKQOHxIehSSpeJs8QhH1SNbKdXYo5wnaV1fEXy3x uG7WJ8kq31YkgquUNVBT8ARCnG8qc/dRaqC4HXCVq7/wk+GEXWZ3Ks7RxZxQvjL8nMIC +QA28rBO98TOMVRJ+vUwfhl6noKCes7xn9nuwNO/efxS1emIhdWDOnY2yLXskOqCGpKp ERMriEaivgkRFQ1rN6s+EqOG5/tX10nxJXMM0ccGRKAJZ+JVx3j/z/jI5of3/deDDdsV 6Flw== X-Gm-Message-State: ACrzQf1GfT3+iWhRprd6ctlIh+6CgFZgFQ73U1iNeazj6APy6YrPMNMN O8ba82xRNMSaVjhk9EN09Tw= X-Received: by 2002:a05:6402:524a:b0:45c:e2c6:6ef7 with SMTP id t10-20020a056402524a00b0045ce2c66ef7mr11624214edd.421.1666256588053; Thu, 20 Oct 2022 02:03:08 -0700 (PDT) Received: from localhost.localdomain ([5.2.194.157]) by smtp.gmail.com with ESMTPSA id c2-20020a17090618a200b007933047f923sm1668381ejf.118.2022.10.20.02.03.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 20 Oct 2022 02:03:07 -0700 (PDT) From: Cosmin Tanislav <demonsingur@gmail.com> Cc: =?utf-8?q?Nuno_S=C3=A1?= <nuno.sa@analog.com>, Lars-Peter Clausen <lars@metafoo.de>, Michael Hennerich <Michael.Hennerich@analog.com>, Jonathan Cameron <jic23@kernel.org>, Rob Herring <robh+dt@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Cosmin Tanislav <demonsingur@gmail.com> Subject: [PATCH v2 0/5] Support more parts in LTC2983 Date: Thu, 20 Oct 2022 12:02:52 +0300 Message-Id: <20221020090257.1717053-1-demonsingur@gmail.com> X-Mailer: git-send-email 2.38.1 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_NONE,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 To: unlisted-recipients:; (no To-header on input) Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1747196717052270816?= X-GMAIL-MSGID: =?utf-8?q?1747196717052270816?= |
Series |
Support more parts in LTC2983
|
|
Message
Cosmin Tanislav
Oct. 20, 2022, 9:02 a.m. UTC
Add support for the following parts: * LTC2984 * LTC2986 * LTM2985 The LTC2984 is a variant of the LTC2983 with EEPROM. The LTC2986 is a variant of the LTC2983 with only 10 channels, EEPROM and support for active analog temperature sensors. The LTM2985 is software-compatible with the LTC2986. Also, remove excessive allocations on resume. V1 -> V2: * add Fixes tag * add patch that fixes the regmap_bulk_write() call with stack allocated buffer * add patch that refines the binding in preperation for adding new parts support to it * do not use stack allocated buffer for writing the EEPROM key Cosmin Tanislav (5): iio: temperature: ltc2983: allocate iio channels once iio: temperature: ltc2983: make bulk write buffer DMA-safe dt-bindings: iio: temperature: ltc2983: refine dt-bindings: iio: temperature: ltc2983: support more parts iio: temperature: ltc2983: support more parts .../bindings/iio/temperature/adi,ltc2983.yaml | 378 ++++++++++++------ drivers/iio/temperature/ltc2983.c | 206 +++++++++- 2 files changed, 434 insertions(+), 150 deletions(-)