From: Xiubo Li <Li.Xiubo@freescale.com>
To: thierry.reding@gmail.com, linux-pwm@vger.kernel.org
Cc: robh+dt@kernel.org, pawel.moll@arm.com, rdunlap@infradead.org,
devicetree@vger.kernel.org, linux-doc@vger.kernel.org,
Xiubo Li <Li.Xiubo@freescale.com>
Subject: [PATCHv3 3/3] pwm: documentation: Add 'big-endian' property for FTM PWM.
Date: Mon, 18 Aug 2014 11:32:35 +0800 [thread overview]
Message-ID: <1408332755-35102-4-git-send-email-Li.Xiubo@freescale.com> (raw)
In-Reply-To: <1408332755-35102-1-git-send-email-Li.Xiubo@freescale.com>
For the same FTM PWM device, which on different SoCs will in
differrent endian mode, using the same linux device driver need
one boolean properties to distingush this.
For now the FTM PWM is only applied to the ARM SoCs which are all
in LE mode.
So the DT binding for FTM PWM device endian:
SoC | FTM-PWM | 'big-endian' property is needed?
--------|----------|---------------------------------
Vybird | LE | No
LS1 | BE | Yes
LS2 | LE | No
Signed-off-by: Xiubo Li <Li.Xiubo@freescale.com>
---
.../devicetree/bindings/pwm/pwm-fsl-ftm.txt | 22 +++++++++++++++++++++-
1 file changed, 21 insertions(+), 1 deletion(-)
diff --git a/Documentation/devicetree/bindings/pwm/pwm-fsl-ftm.txt b/Documentation/devicetree/bindings/pwm/pwm-fsl-ftm.txt
index 0bda229..67ed8d6 100644
--- a/Documentation/devicetree/bindings/pwm/pwm-fsl-ftm.txt
+++ b/Documentation/devicetree/bindings/pwm/pwm-fsl-ftm.txt
@@ -1,5 +1,23 @@
Freescale FlexTimer Module (FTM) PWM controller
+For the same FTM PWM device, which on different SoCs will in
+differrent endian mode, using the same linux device driver need
+one boolean properties to distingush this.
+
+For now the FTM PWM is only applied to the ARM SoCs which are all
+in LE mode.
+
+So the DT binding for FTM PWM device endian:
+SoC | FTM-PWM | 'big-endian' property is needed?
+--------|----------|---------------------------------
+Vybird | LE | No
+LS1 | BE | Yes
+LS2 | LE | No
+
+Please see "Documentation/devicetree/bindings/regmap/regmap.txt" for more
+detail about the endianness.
+
+
Required properties:
- compatible: Should be "fsl,vf610-ftm-pwm".
- reg: Physical base address and length of the controller's registers
@@ -16,7 +34,8 @@ Required properties:
- pinctrl-names: Must contain a "default" entry.
- pinctrl-NNN: One property must exist for each entry in pinctrl-names.
See pinctrl/pinctrl-bindings.txt for details of the property values.
-
+- big-endian: One boolean property, for all the device registers, the BE mode
+ will be in use if it's present, or the LE mode will be in use.
Example:
@@ -32,4 +51,5 @@ pwm0: pwm@40038000 {
<&clks VF610_CLK_FTM0_EXT_FIX_EN>;
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_pwm0_1>;
+ big-endian;
};
--
1.8.5
next prev parent reply other threads:[~2014-08-18 3:32 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-08-18 3:32 [PATCHv3 0/3] ftm-pwm: Convert to direct regmap API usage Xiubo Li
2014-08-18 3:32 ` [PATCHv3 1/3] pwm: ftm-pwm: Clean up the code Xiubo Li
2014-08-18 3:32 ` [PATCHv3 2/3] pwm: ftm-pwm: Convert to direct regmap API usage Xiubo Li
2014-08-18 8:36 ` Thierry Reding
2014-08-18 8:45 ` Li.Xiubo-KZfg59tc24xl57MIdRCFDg
2014-08-18 3:32 ` Xiubo Li [this message]
2014-08-18 9:59 ` [PATCHv3 3/3] pwm: documentation: Add 'big-endian' property for FTM PWM Mark Rutland
2014-08-18 12:11 ` Li.Xiubo
2014-08-18 8:31 ` [PATCHv3 0/3] ftm-pwm: Convert to direct regmap API usage Thierry Reding
2014-08-18 8:43 ` Li.Xiubo
2014-08-18 8:49 ` Thierry Reding
2014-08-18 8:55 ` Li.Xiubo
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1408332755-35102-4-git-send-email-Li.Xiubo@freescale.com \
--to=li.xiubo@freescale.com \
--cc=devicetree@vger.kernel.org \
--cc=linux-doc@vger.kernel.org \
--cc=linux-pwm@vger.kernel.org \
--cc=pawel.moll@arm.com \
--cc=rdunlap@infradead.org \
--cc=robh+dt@kernel.org \
--cc=thierry.reding@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).