From patchwork Thu Feb 27 08:46:40 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chris Packham X-Patchwork-Id: 11408013 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 68AF314BC for ; Thu, 27 Feb 2020 08:47:01 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 48C552467B for ; Thu, 27 Feb 2020 08:47:01 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=alliedtelesis.co.nz header.i=@alliedtelesis.co.nz header.b="CjbJo2R2" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728729AbgB0Iqz (ORCPT ); Thu, 27 Feb 2020 03:46:55 -0500 Received: from gate2.alliedtelesis.co.nz ([202.36.163.20]:40272 "EHLO gate2.alliedtelesis.co.nz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728646AbgB0Iqy (ORCPT ); Thu, 27 Feb 2020 03:46:54 -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 2D16A891AD; Thu, 27 Feb 2020 21:46:52 +1300 (NZDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alliedtelesis.co.nz; s=mail181024; t=1582793212; bh=EVlEwiS/TFFN1q66aMSFRrpHv5REOLeczvMuwQi/uGU=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=CjbJo2R2MQonW8SHlpPrWcGrqNEX21yj5DWeIK1/xIJPI4Ya6juJoMDc+VzGgj4fn 8H/pN32ifgz69atfxNnkxKcu3NkikGMsEV6aEf7wkaYdLUdQPkPLYIPYod6iLYfVJF 50ElomjbzXUYZpOQ2b3l82yrSTwOxKwUu5R9Qb5F8OSIa0FjTtXPpB8+SKymPSdv8d TVEOzUdmemh9pEfU42HsUJDqZdcAChfNgQw1lIIKDIHGFN4ZCupwFIJsaZtGCB1ypz m9NXc34Wj+dLi0wouBZaRppFTNOPh9pHnj5LdiGr0qkmLyie5JACws8L1+DPS62OVk Xw6Vduc+4v8lQ== Received: from smtp (Not Verified[10.32.16.33]) by mmarshal3.atlnz.lc with Trustwave SEG (v7,5,8,10121) id ; Thu, 27 Feb 2020 21:46:51 +1300 Received: from chrisp-dl.ws.atlnz.lc (chrisp-dl.ws.atlnz.lc [10.33.22.20]) by smtp (Postfix) with ESMTP id 3F63313EECD; Thu, 27 Feb 2020 21:46:51 +1300 (NZDT) Received: by chrisp-dl.ws.atlnz.lc (Postfix, from userid 1030) id 0581F280072; Thu, 27 Feb 2020 21:46:52 +1300 (NZDT) From: Chris Packham To: jdelvare@suse.com, linux@roeck-us.net, robh+dt@kernel.org, mark.rutland@arm.com Cc: logan.shaw@alliedtelesis.co.nz, linux-hwmon@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Chris Packham Subject: [PATCH v5 3/5] dt-bindings: hwmon: Document adt7475 pwm-active-state property Date: Thu, 27 Feb 2020 21:46:40 +1300 Message-Id: <20200227084642.7057-4-chris.packham@alliedtelesis.co.nz> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200227084642.7057-1-chris.packham@alliedtelesis.co.nz> References: <20200227084642.7057-1-chris.packham@alliedtelesis.co.nz> 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 Add binding information for the adi,pwm-active-state property. Signed-off-by: Chris Packham Reviewed-by: Rob Herring --- Notes: Changes in v5: - change to adi,pwm-active-state - uint32 array Changes in v4: - use $ref uint32 and enum - add adi vendor prefix Cahnges in v3: - new .../devicetree/bindings/hwmon/adt7475.yaml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/Documentation/devicetree/bindings/hwmon/adt7475.yaml b/Documentation/devicetree/bindings/hwmon/adt7475.yaml index e40612ee075f..76985034ea73 100644 --- a/Documentation/devicetree/bindings/hwmon/adt7475.yaml +++ b/Documentation/devicetree/bindings/hwmon/adt7475.yaml @@ -50,6 +50,19 @@ patternProperties: - $ref: /schemas/types.yaml#/definitions/uint32 - enum: [0, 1] + "^adi,pwm-active-state$": + description: | + Integer array, represents the active state of the pwm outputs If set to 0 + the pwm uses a logic low output for 100% duty cycle. If set to 1 the pwm + uses a logic high output for 100% duty cycle. + allOf: + - $ref: /schemas/types.yaml#/definitions/uint32-array + - minItems: 3 + maxItems: 3 + items: + enum: [0, 1] + default: 1 + required: - compatible - reg @@ -65,6 +78,7 @@ examples: reg = <0x2e>; adi,bypass-attenuator-in0 = <1>; adi,bypass-attenuator-in1 = <0>; + adi,pwm-active-state = <1 0 1>; }; };