From patchwork Mon Feb 4 20:19:02 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jeremy Gebben X-Patchwork-Id: 10796525 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 13A14922 for ; Mon, 4 Feb 2019 20:19:31 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 04AF72AE58 for ; Mon, 4 Feb 2019 20:19:31 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0304C2BE59; Mon, 4 Feb 2019 20:19:30 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 93D3F2C1C1 for ; Mon, 4 Feb 2019 20:19:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727869AbfBDUTa (ORCPT ); Mon, 4 Feb 2019 15:19:30 -0500 Received: from mail-it1-f193.google.com ([209.85.166.193]:39917 "EHLO mail-it1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727645AbfBDUT3 (ORCPT ); Mon, 4 Feb 2019 15:19:29 -0500 Received: by mail-it1-f193.google.com with SMTP id a6so2920024itl.4 for ; Mon, 04 Feb 2019 12:19:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sweptlaser-com.20150623.gappssmtp.com; s=20150623; h=from:to:subject:date:message-id; bh=t0PM0LA03GPZtzLwsNF/LkFyfHcnbucWv2OXGS0MmVA=; b=RCSnBHseI1V85Qv59/aWG+h91o1HFeTrd9Y9/HfrVoTQCIx56KbQ8cpDpffsQ05j5a MzxpuUMnoJpqYPMCzKRNpPmjIwIzafri5utjvDxKivc7ZW3tA9AM0ESe77QRqhVXQ1+Y aIQiW20QPDW3/q47P/mlbfOig/He9GaEC+KzCAVI6jbAJYxslsb8K17Q/9fuNSWO65KP fM7SJG4A9rZQIO3l7iISIvfS4DDuVIGwrccy3kf0pEgm4+EQu2VYapYJ9TSRvZpFBz4o EX4TA496/EAQh5O28eHyJqpzLhpcdVfFoYkwUPZ5Owr4szmKGW7VMKouJK74yyuIEvDV oNkA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id; bh=t0PM0LA03GPZtzLwsNF/LkFyfHcnbucWv2OXGS0MmVA=; b=lbnlVVGat9W4RsvRfcku62GmcOsTNOJQIA90d27nBxX29wEQhXK7SDsoBkXk/5P8/B xiwnLl/Zpm0NO4cs/194Ro+e6nGyFL6Yka/aJo2LMp8CIp1dikDVbJDdceBViAtRTRt0 BvLJ8v9V0D4rUy7TtBIJWOdqP2eiYT7F51EuxpoIXNg/rG4jdx3MZxO2JvIOpF3Pqmm5 zzpIzQJPLmfORU0x6yUekt6XzPu2dSdj0qTDS+UagkjI67bB9hCsaT3QEokGmpgM0veg jYVsEveZAz8It2U6ZpZBgoGMKY6LlydYCdA3BZzbS00fEGTrZPytJbC4eAxCWTXxRGoA mXWg== X-Gm-Message-State: AHQUAuZQPGKILV+lSc7nSxb4JsaSaLGdTk3hHFKso9wGFzIyAnk2K575 r+fiY7aT8hfabbGkbYggtsTsew== X-Google-Smtp-Source: AHgI3IYlfALHXe10y0WK8D+b8jqVTn38tHYRaP1C9OWEhGkAOOd5n52LOMYgXESVEQvdMfsvQH98Hg== X-Received: by 2002:a24:d745:: with SMTP id y66mr643051itg.18.1549311568912; Mon, 04 Feb 2019 12:19:28 -0800 (PST) Received: from yngvi.hq.sweptlaser.com ([63.147.146.226]) by smtp.googlemail.com with ESMTPSA id x79sm470003ita.34.2019.02.04.12.19.28 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 04 Feb 2019 12:19:28 -0800 (PST) From: Jeremy Gebben To: Jean Delvare , Guenter Roeck , linux-hwmon@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v3 0/4] hwmon: (lm85) add LM96000 high freqency pwm support Date: Mon, 4 Feb 2019 13:19:02 -0700 Message-Id: <20190204201906.8859-1-jgebben@sweptlaser.com> X-Mailer: git-send-email 2.17.1 Sender: linux-hwmon-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-hwmon@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Hi, This patch set adds support for the PWM frequencies from 22.5 to 30 kHz available on the LM96000. It looks like this chip has been supported for a long time, but wasn't mentioned in the docs (which I have updated). I stumbled on to a 10 year old thread discussing a patch which looks like an early attempt to add support for this chip, which may be of interest: https://lm-sensors.lm-sensors.narkive.com/1SIwaMDT/patch-hwmon-lm96000-support Thanks for reviewing, Jeremy Changes since v1: - replace freq_map_mask with freq_map_size Changes since v2: - add lm96000 type instead of continuing to use lm85 Jeremy Gebben (4): hwmon: (lm85) remove freq_map size hardcodes dt-bindings: Add LM96000 as a trivial device hwmon: (lm85) support the LM96000 hwmon: (lm85) add support for LM96000 high frequencies .../devicetree/bindings/trivial-devices.yaml | 2 + Documentation/hwmon/lm85 | 9 +++- drivers/hwmon/lm85.c | 43 +++++++++++++------ 3 files changed, 41 insertions(+), 13 deletions(-)