[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20200317123231.2843297-5-oleksandr.suvorov@toradex.com>
Date: Tue, 17 Mar 2020 14:32:28 +0200
From: Oleksandr Suvorov <oleksandr.suvorov@...adex.com>
To: devicetree@...r.kernel.org, linux-pwm@...r.kernel.org
Cc: Paul Barker <pbarker@...sulko.com>,
Uwe Kleine-König
<u.kleine-koenig@...gutronix.de>,
Laurent Pinchart <laurent.pinchart@...asonboard.com>,
Marcel Ziswiler <marcel.ziswiler@...adex.com>,
Igor Opaniuk <igor.opaniuk@...adex.com>,
Philippe Schenker <philippe.schenker@...adex.com>,
Oleksandr Suvorov <oleksandr.suvorov@...adex.com>,
Rob Herring <robh+dt@...nel.org>, linux-kernel@...r.kernel.org
Subject: [RFC PATCH 4/7] dt-bindings: pwm: add description of PWM polarity
Move the description of the PWM signal polarity from
<linux/pwm.h>, prepare for removing the polarity
definition from <linux/pwm.h>.
Signed-off-by: Oleksandr Suvorov <oleksandr.suvorov@...adex.com>
---
include/dt-bindings/pwm/pwm.h | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/include/dt-bindings/pwm/pwm.h b/include/dt-bindings/pwm/pwm.h
index 6b58caa6385e..c07da2088a61 100644
--- a/include/dt-bindings/pwm/pwm.h
+++ b/include/dt-bindings/pwm/pwm.h
@@ -10,7 +10,16 @@
#ifndef _DT_BINDINGS_PWM_PWM_H
#define _DT_BINDINGS_PWM_PWM_H
+/**
+ * a high signal for the duration of the duty-cycle, followed by a low signal
+ * for the remainder of the pulse period.
+ */
#define PWM_POLARITY_NORMAL 0
+
+/**
+ * a low signal for the duration of the duty-cycle, followed by a high signal
+ * for the remainder of the pulse period.
+ */
#define PWM_POLARITY_INVERTED (1 << 0)
#endif
--
2.24.1
Powered by blists - more mailing lists