From patchwork Thu Nov 8 22:56:05 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chris Packham X-Patchwork-Id: 10675081 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 362801709 for ; Thu, 8 Nov 2018 22:56:16 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 28AB529334 for ; Thu, 8 Nov 2018 22:56:16 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1CBC128C5C; Thu, 8 Nov 2018 22:56:16 +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=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,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 6D55329334 for ; Thu, 8 Nov 2018 22:56:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727020AbeKIIeA (ORCPT ); Fri, 9 Nov 2018 03:34:00 -0500 Received: from gate2.alliedtelesis.co.nz ([202.36.163.20]:44357 "EHLO gate2.alliedtelesis.co.nz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727252AbeKIIeA (ORCPT ); Fri, 9 Nov 2018 03:34:00 -0500 Received: from mmarshal3.atlnz.lc (mmarshal3.atlnz.lc [10.32.18.43]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by gate2.alliedtelesis.co.nz (Postfix) with ESMTPS id D471980237; Fri, 9 Nov 2018 11:56:11 +1300 (NZDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alliedtelesis.co.nz; s=mail181024; t=1541717771; bh=ExT/PN9JkDT6hwZnsva5Y2QhllqZxrOcKW75pyNiaTI=; h=From:To:Cc:Subject:Date; b=RwS3Q+utAk0i0ttxzfuEIs3QLDyqU/JhNvWpKzIYFUEI0Q3mh+WrqkM8r6JqWHACV kecxnhiBe+2b3GIoiLjufg7YyOJn8ClIV2LWxrOIH5fS0n0WllzcwMut6Tc+WoK922 PbltNidHO5k8r3ZNH+6UJLLhqnguX9vkgkDj/UWba+seJJPz669qRhF4l138Mjl3C3 JD7pJoiGs3lDKeA67OCL+7ceAhsXDxGd0U9c/wZLNYb2Ld9kXCJTwoNUzow50Wj/is 1l9PLmEA2Lz4wnShLVJqa1w6rfKLLILEVPbSBrcoXgcvFPR/aOR9poLkLCi/CNUmZ6 CTgAsEg4czbTg== Received: from smtp (Not Verified[10.32.16.33]) by mmarshal3.atlnz.lc with Trustwave SEG (v7,5,8,10121) id ; Fri, 09 Nov 2018 11:56:12 +1300 Received: from chrisp-dl.ws.atlnz.lc (chrisp-dl.ws.atlnz.lc [10.33.22.30]) by smtp (Postfix) with ESMTP id 9971413EEA1; Fri, 9 Nov 2018 11:56:16 +1300 (NZDT) Received: by chrisp-dl.ws.atlnz.lc (Postfix, from userid 1030) id 6F59A1E0968; Fri, 9 Nov 2018 11:56:11 +1300 (NZDT) From: Chris Packham To: linux@roeck-us.net, robh+dt@kernel.org, jdelvare@suse.com Cc: linux-hwmon@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Chris Packham Subject: [PATCH v2 0/2] hwmon: (adt7475): inverted PWM output Date: Fri, 9 Nov 2018 11:56:05 +1300 Message-Id: <20181108225607.7521-1-chris.packham@alliedtelesis.co.nz> X-Mailer: git-send-email 2.19.1 MIME-Version: 1.0 x-atlnz-ls: pat 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, I have a hardware design that requires logic low PWM output. The adt7475 supports this but the current driver does not have any way of configuring this. I've gone with a device-tree property as this is an artifact of the hardware design and not something that might be configured via sysfs. Chris Packham (2): dt-bindings: hwmon: add binding documentation for adt7475 hwmon: (adt7475): add support for inverting the pwm output .../devicetree/bindings/hwmon/adt7475.txt | 24 ++++++++++++++++ .../devicetree/bindings/trivial-devices.txt | 4 --- drivers/hwmon/adt7475.c | 28 +++++++++++++++++++ 3 files changed, 52 insertions(+), 4 deletions(-) create mode 100644 Documentation/devicetree/bindings/hwmon/adt7475.txt