From patchwork Wed Mar 23 03:40:53 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chris Packham X-Patchwork-Id: 12789426 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 D597CC43217 for ; Wed, 23 Mar 2022 03:41:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239156AbiCWDmh (ORCPT ); Tue, 22 Mar 2022 23:42:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39286 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241619AbiCWDmf (ORCPT ); Tue, 22 Mar 2022 23:42:35 -0400 Received: from gate2.alliedtelesis.co.nz (gate2.alliedtelesis.co.nz [IPv6:2001:df5:b000:5::4]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 940096C1FF for ; Tue, 22 Mar 2022 20:41:04 -0700 (PDT) Received: from svr-chch-seg1.atlnz.lc (mmarshal3.atlnz.lc [10.32.18.43]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by gate2.alliedtelesis.co.nz (Postfix) with ESMTPS id 479252C01AE; Wed, 23 Mar 2022 03:41:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alliedtelesis.co.nz; s=mail181024; t=1648006861; bh=26SGwJ/wxmtbYPSw7i0ckq0vlLega9pTWHQvr0/h3s4=; h=From:To:Cc:Subject:Date:From; b=Pqc91LE5lnd1WJDoNclxM5xXtZR7DJnXzsHPAgBtm9UjnLCgbaJyIib74lbnvpNgi VQJgy9Z9UM9Nd9+GrT8uCrJQH2JedJ38/jAmPIgzZ79rtzzZq1/yeVSLznJPbjsaN5 LABwCikgupzM0grIfEQX+HPNmezej9Mhg/B6xm9uz96WzvXu0jBo9q1bAtcXJz4T+c L9bVga/Cx4VWZ1aD7IAKLrrgmdOknxdEkyXkO05EtfM1vSiw/EfDHNPD7y/RfT5s5c BfOFJaA80RADh3DnTId5kXWA6NC5NbzflDEfq05RamRV2cRlCQ3fqSjzGBuI4efkVL CaXsDbJlpdlfg== Received: from pat.atlnz.lc (Not Verified[10.32.16.33]) by svr-chch-seg1.atlnz.lc with Trustwave SEG (v8,2,6,11305) id ; Wed, 23 Mar 2022 16:41:00 +1300 Received: from chrisp-dl.ws.atlnz.lc (chrisp-dl.ws.atlnz.lc [10.33.22.30]) by pat.atlnz.lc (Postfix) with ESMTP id DAE7C13EDD7; Wed, 23 Mar 2022 16:41:00 +1300 (NZDT) Received: by chrisp-dl.ws.atlnz.lc (Postfix, from userid 1030) id 1ED062A2679; Wed, 23 Mar 2022 16:40:59 +1300 (NZDT) From: Chris Packham To: jdelvare@suse.com, linux@roeck-us.net, robh+dt@kernel.org Cc: linux-hwmon@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Chris Packham Subject: [PATCH v3 0/3] hwmon: (adt7475) pin configuration Date: Wed, 23 Mar 2022 16:40:53 +1300 Message-Id: <20220323034056.260455-1-chris.packham@alliedtelesis.co.nz> X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 X-SEG-SpamProfiler-Analysis: v=2.3 cv=Cfh2G4jl c=1 sm=1 tr=0 a=KLBiSEs5mFS1a/PbTCJxuA==:117 a=o8Y5sQTvuykA:10 a=QSAjq9e1Lu4SObBBDI8A:9 X-SEG-SpamProfiler-Score: 0 x-atlnz-ls: pat Precedence: bulk List-ID: X-Mailing-List: linux-hwmon@vger.kernel.org This series adds support for configuring the ADT7475 based on the hardware description provided. The ADT7475 driver has always supported detecting the configuration. This adds support for configuring the chip based on the hardware design. Chris Packham (3): dt-bindings: hwmon: Document adt7475 pin-function properties hwmon: (adt7475) Add support for pin configuration hwmon: (adt7475) Use enum chips when loading attenuator settings .../devicetree/bindings/hwmon/adt7475.yaml | 22 ++++ drivers/hwmon/adt7475.c | 119 ++++++++++++++++-- 2 files changed, 128 insertions(+), 13 deletions(-)