Received: by 10.223.185.116 with SMTP id b49csp1839283wrg; Thu, 22 Feb 2018 04:06:28 -0800 (PST) X-Google-Smtp-Source: AH8x227xkRg+fwBRvo5Gg0eamDX4xqcPMfm5OU0nchEBfD66LdLZDEqnkfnvUD0hnMGBBsL7jzOK X-Received: by 10.98.64.146 with SMTP id f18mr6781685pfd.30.1519301188241; Thu, 22 Feb 2018 04:06:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519301188; cv=none; d=google.com; s=arc-20160816; b=o7kdc2GM0JNbNrcEITjnHDxpKcZEp92Xg2VWJmk9BMWBMY+qj5Z9Ga0J7zcRp6a674 H7OhKgpxAobV41Am2MKlX1CjBcnw+/sE7KYIxKl3sbwUrlnJn33hcDwXbr+pd+jJeGOp YY9Ft8uZ6PnxUAMk7g3aZcPAszCjZ/c/Hb8eoTI289F+S4GPz6RaBVOCqCrrsbFHqUC+ P+1MyAi9o2guS2iGjoefDYnbVvK3qkS0YU9mMIVJY+LgZ1ixNXdgN8L//PRdAZ7JJlc5 IGeuIOCTPtXEEuaeGRoGqdrNmNNzE+i11KOlnJGjlTWK6UbOIWMTbhgzmn6BGJI42GZy ioLQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:arc-authentication-results; bh=DhCxvPh1R10el9wu/DN2yn7XRjc89/IigcqaPd9gNeo=; b=Lc++0tXPY/5KgrVkAnzP+EANL1bxTs3NwlwxPpWZhMcW60/LqGdhT+2pLK/ZKLTvC3 /DmPsRohgMPnjqA5rvXdhVNFWtkzkqdpGNxGJzWfxTezH9H0nEJEUM0lJSM9emcvR3qI NSfrI896D5PdW3hQ3/2V4e4avbuLCZA4rBNyOlyuxHbGPgZN7uXW/K01KI+L9OIYcEAA DpXUMEr+5JNiVtD2BfaXkJDEMadhwYwcrOWSbdDKmkXME9IcsVc/NHqROcfkGKyfB+8o 2XzrLypwoDj1iIGVAflk8u1ZbNPfZZFbCTvPDWOyydQhjuJnN5d5840JGkgRgqrlfYa5 xuqw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t1si3900924pgs.618.2018.02.22.04.06.13; Thu, 22 Feb 2018 04:06:28 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932420AbeBVMEL (ORCPT + 99 others); Thu, 22 Feb 2018 07:04:11 -0500 Received: from esa1.microchip.iphmx.com ([68.232.147.91]:62262 "EHLO esa1.microchip.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932103AbeBVMEE (ORCPT ); Thu, 22 Feb 2018 07:04:04 -0500 X-IronPort-AV: E=Sophos;i="5.47,377,1515481200"; d="scan'208";a="12246004" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa1.microchip.iphmx.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 22 Feb 2018 05:04:01 -0700 Received: from m18063-ThinkPad-T460p.microchip.com (10.10.76.4) by chn-sv-exch05.mchp-main.com (10.10.76.106) with Microsoft SMTP Server id 14.3.352.0; Thu, 22 Feb 2018 05:04:00 -0700 From: Claudiu Beznea To: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , CC: , , , , , , , , , , , , , , Claudiu Beznea Subject: [PATCH v3 09/10] pwm: add documentation for pwm push-pull mode Date: Thu, 22 Feb 2018 14:01:20 +0200 Message-ID: <1519300881-8136-10-git-send-email-claudiu.beznea@microchip.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1519300881-8136-1-git-send-email-claudiu.beznea@microchip.com> References: <1519300881-8136-1-git-send-email-claudiu.beznea@microchip.com> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add documentation for PWM push-pull mode. Signed-off-by: Claudiu Beznea Reviewed-by: Rob Herring --- Documentation/devicetree/bindings/pwm/pwm.txt | 2 ++ Documentation/pwm.txt | 16 ++++++++++++++++ include/dt-bindings/pwm/pwm.h | 1 + 3 files changed, 19 insertions(+) diff --git a/Documentation/devicetree/bindings/pwm/pwm.txt b/Documentation/devicetree/bindings/pwm/pwm.txt index c2b4b9ba0e3f..968dd786ad7c 100644 --- a/Documentation/devicetree/bindings/pwm/pwm.txt +++ b/Documentation/devicetree/bindings/pwm/pwm.txt @@ -49,6 +49,8 @@ Optionally, the pwm-specifier can encode a number of flags (defined in - PWM_DTMODE_COMPLEMENTARY: PWM complementary working mode (for PWM channels two outputs); if not specified, the default for PWM channel will be used +- PWM_DTMODE_PUSH_PULL: PWM push-pull working modes (for PWM channels with +two outputs); if not specified the default for PWM channel will be used Example with optional PWM specifier for inverse polarity and complementary mode: diff --git a/Documentation/pwm.txt b/Documentation/pwm.txt index 59592f8cc381..174c371583b6 100644 --- a/Documentation/pwm.txt +++ b/Documentation/pwm.txt @@ -128,6 +128,22 @@ channel that was exported. The following properties will then be available: PWML1 |__| |__| |__| |__| <--T--> + Push-pull mode - for PWM channels with two outputs; output waveforms + for a PWM channel with 2 outputs, in push-pull mode, with normal + polarity looks like this: + __ __ + PWMH __| |________| |________ + __ __ + PWML ________| |________| |__ + <--T--> + + If polarity is inversed: + __ ________ ________ + PWMH |__| |__| + ________ ________ __ + PWML |__| |__| + <--T--> + Where T is the signal period. Implementing a PWM driver diff --git a/include/dt-bindings/pwm/pwm.h b/include/dt-bindings/pwm/pwm.h index b4d61269aced..674dfdd59595 100644 --- a/include/dt-bindings/pwm/pwm.h +++ b/include/dt-bindings/pwm/pwm.h @@ -12,5 +12,6 @@ #define PWM_POLARITY_INVERTED (1 << 0) #define PWM_DTMODE_COMPLEMENTARY (1 << 1) +#define PWM_DTMODE_PUSH_PULL (1 << 2) #endif -- 2.7.4