From patchwork Wed Nov 7 04:00:08 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chris Packham X-Patchwork-Id: 10671763 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 718101709 for ; Wed, 7 Nov 2018 04:00:26 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 57B582B00B for ; Wed, 7 Nov 2018 04:00:26 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4AFC82B015; Wed, 7 Nov 2018 04:00:26 +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 A0A8C2B00B for ; Wed, 7 Nov 2018 04:00:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727246AbeKGN26 (ORCPT ); Wed, 7 Nov 2018 08:28:58 -0500 Received: from gate2.alliedtelesis.co.nz ([202.36.163.20]:40128 "EHLO gate2.alliedtelesis.co.nz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726552AbeKGN26 (ORCPT ); Wed, 7 Nov 2018 08:28:58 -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 65B4B8448C; Wed, 7 Nov 2018 17:00:22 +1300 (NZDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alliedtelesis.co.nz; s=mail181024; t=1541563222; bh=H/NuuLjzodFqvNBqqf/E1B4tF3RN4NvUcKT9Kbs5tHY=; h=From:To:Cc:Subject:Date; b=GaVe497FPu3OLy95v6QuplP7/VFg5YT6nbwqPK0QH+HLRuEhlr4rwXfrqdlVI5EyX x0MgZIboV3dA1wzaesRBI5sfZ8LGMEfzP2Y1h5k4G7G1znyom9ZPpBCWJfm0vk/63E P9B2fCk3l+btJLlMKItYNsQ1GY7CowfdH58LwmsrjVE/M2oX5sRRhgWfgST2NEkB1M 1KN+5D75Kb6Sx3YTunLr650OqE2Kshh9NSFugp02/3PICUwjRfeF44lgtOWisrWp32 WkArPGyHDnj7vpy8ZSOiYHd28t3NQFg4X5GYBt6/2gb8O25l8gKMUKIn7RrvnFflz8 m2/JknuwjNgnQ== Received: from smtp (Not Verified[10.32.16.33]) by mmarshal3.atlnz.lc with Trustwave SEG (v7,5,8,10121) id ; Wed, 07 Nov 2018 17:00:21 +1300 Received: from chrisp-dl.ws.atlnz.lc (chrisp-dl.ws.atlnz.lc [10.33.22.30]) by smtp (Postfix) with ESMTP id 416D313EEA1; Wed, 7 Nov 2018 17:00:27 +1300 (NZDT) Received: by chrisp-dl.ws.atlnz.lc (Postfix, from userid 1030) id 1EEC11E220B; Wed, 7 Nov 2018 17:00:21 +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 0/2] hwmon: (adt7475): inverted PWM output Date: Wed, 7 Nov 2018 17:00:08 +1300 Message-Id: <20181107040010.27436-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 | 22 +++++++++++++++++++ .../devicetree/bindings/trivial-devices.txt | 4 ---- drivers/hwmon/adt7475.c | 17 ++++++++++++++ 3 files changed, 39 insertions(+), 4 deletions(-) create mode 100644 Documentation/devicetree/bindings/hwmon/adt7475.txt