Thread (19 messages) flat view 19 messages, 3 authors, 2016-02-25

RE: [PATCH v2 2/7] QE: Add ucc hdlc document to bindings

From: Qiang Zhao <qiang.zhao@nxp.com>
Date: 2016-02-25 05:11:05
Also in: linux-devicetree, lkml

On Wen, Feb 24, 2016 at 04:22AM, Rob Herring wrote:
-----Original Message-----
From: Rob Herring [mailto:robh@kernel.org]
Sent: Wednesday, February 24, 2016 4:22 AM
To: Qiang Zhao <qiang.zhao@nxp.com>
Cc: oss@buserror.net; Yang-Leo Li <redacted>; linux-
kernel@vger.kernel.org; devicetree@vger.kernel.org; linuxppc-
dev@lists.ozlabs.org
Subject: Re: [PATCH v2 2/7] QE: Add ucc hdlc document to bindings
=20
On Thu, Feb 18, 2016 at 09:06:07AM +0800, Zhao Qiang wrote:
quoted
Add ucc hdlc document to
Documentation/devicetree/bindings/powerpc/fsl/cpm_qe/network.txt
=20
Not a very useful description.
Could you give a example for me?
=20
quoted
Signed-off-by: Zhao Qiang <qiang.zhao@nxp.com>
---
Changes for v2
	- use ucc-hdlc instead of ucc_hdlc
	- add more information to properties.

 .../bindings/powerpc/fsl/cpm_qe/network.txt        | 93
++++++++++++++++++++++
quoted
 1 file changed, 93 insertions(+)

diff --git
a/Documentation/devicetree/bindings/powerpc/fsl/cpm_qe/network.txt
b/Documentation/devicetree/bindings/powerpc/fsl/cpm_qe/network.txt
index 29b28b8..936158c 100644
--- a/Documentation/devicetree/bindings/powerpc/fsl/cpm_qe/network.txt
+++
b/Documentation/devicetree/bindings/powerpc/fsl/cpm_qe/network.txt
quoted
@@ -41,3 +41,96 @@ Example:
 		fsl,mdio-pin =3D <12>;
 		fsl,mdc-pin =3D <13>;
 	};
+
+* HDLC
+
+Currently defined compatibles:
+- fsl,ucc-hdlc
+
+Properties for fsl,ucc-hdlc:
+- rx-clock-name
+- tx-clock-name
+	Usage: required
+	Value type: <string>
+	Definition : should be "brg1"-"brg16" for internal clock source,
+		     should be "clk1"-"clk28" for external clock source.
+
+- fsl,rx-sync-clock
+	Usage: required
+	Value type: <string>
+	Definition : should be "none" when using internal clock source,
+		     should be "rsync_pin" when using external clock source.
=20
Why not a boolean property here?
fsl,rx-sync-clock should have other values.
But now we just use rsync_pin and none.
quoted
+
+- fsl,tx-timeslot
+- fsl,rx-timeslot
=20
Perhaps append "-mask"
Agree, I will modify in next version.
=20
quoted
+	Usage: required
+	Value type: <u32>
+	Definition : time slot for TDM operation. Indicates which time slots
+		     used for transmitting and receiving.
+
+- fsl,tdm-framer-type
+	Usage: required
+	Value type: <string>
+	Definition : "e1" or "t1"
=20
Boolean?
We just support e1 and t1, in fact, there are more TDM framer types.
=20
quoted
+
+- fsl,tdm-mode
+	Usage: required
+	Value type: <string>
+	Definition : "normal" or "internal-loopback"
=20
Boolean?
It can be Boolean.

BR
-Zhao
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help