Added device tree binding for TDM and TDM phy
Subsystems (3)
PATCH 1/1 Added device tree binding for TDM and TDM phy
This controller is available on many Freescale SOCs like MPC8315, P1020, P1010 and P1022
--- .../devicetree/bindings/powerpc/fsl/fsl-tdm.txt | 63 ++++++++++++++++++++ .../devicetree/bindings/powerpc/fsl/tdm-phy.txt | 38 ++++++++++++ 2 files changed, 101 insertions(+), 0 deletions(-) create mode 100644 Documentation/devicetree/bindings/powerpc/fsl/fsl-tdm.txt create mode 100644 Documentation/devicetree/bindings/powerpc/fsl/tdm-phy.txt
Documentation/devicetree/bindings/powerpc/fsl/fsl-tdm.txt new file +63 -0
@@ -0,0 +1,63 @@ +TDM Device Tree Binding + +NOTE: The bindings described in this document are preliminary +and subject to change. + +TDM (Time Division Multiplexing) + +Description: + +The TDM is full duplex serial port designed to allow various devices including +digital signal processors (DSPs) to communicate with a variety of serial devices +including industry standard framers, codecs, other DSPs and microprocessors. + +The below properties describe the device tree bindings for Freescale TDM +controller. This TDM controller is available on various Freescale Processors +like MPC8315, P1020, P1022 and P1010. + +Required properties: + +- compatible + Value type: <string> + Definition: Should contain "fsl,tdm1.0". + +- reg + Definition: A standard property. The first reg specifier describes the TDM + registers, and the second describes the TDM DMAC registers. + +- tdm_tx_clk + Value type: <u32 or u64> + Definition: This specifies the value of transmit clock. It should not + exceed 50Mhz. + +- tdm_rx_clk + Value type: <u32 or u64> + Definition: This specifies the value of receive clock. Its value could be + zero, in which case tdm will operate in shared mode. Its value should not + exceed 50Mhz. + +- interrupts + Definition: Two interrupt specifiers. The first is TDM error, and the + second is TDM DMAC. + +- phy-handle + Value type: <phandle> + Definition: Phandle of the line controller node or framer node eg. SLIC, + E1/T1 etc. (Refer Documentation/devicetree/bindings/powerpc/fsl/tdm-phy.txt) + +- fsl,max-time-slots + Value type: <u32> + Definition: Maximum number of 8-bit time slots in one TDM frame. This is + the maximum number which TDM hardware supports. + +Example: + + tdm@16000 { + compatible = "fsl,tdm1.0"; + reg = <0x16000 0x200 0x2c000 0x2000>; + tdm_tx_clk = <2048000>; + tdm_rx_clk = <0>; + interrupts = <16 8 62 8>; + phy-handle = <&tdm-phy>; + fsl,max-time-slots = <128>; + };
Documentation/devicetree/bindings/powerpc/fsl/tdm-phy.txt new file +38 -0
@@ -0,0 +1,38 @@ +TDM PHY Device Tree Binding + +NOTE: The bindings described in this document are preliminary +and subject to change. + +Description: +TDM PHY is the terminal interface of TDM subsystem. It is typically a line +control device like E1/T1 framer or SLIC. A TDM device can have multiple TDM +PHYs. + +Required properties: + +- compatible + Value type: <string> + Definition: Should contain generic compatibility like "tdm-phy-slic" or + "tdm-phy-e1" or "tdm-phy-t1". + +- max-num-ports + Value type: <u32> + Definition: Defines the maximum number of ports supported by the SLIC + device. Only required if the device is SLIC. For E1/T1 devices the number + of ports are predefined i.e. (24 in case of T1 and 32 in case of E1). + +Apart from the above, there may be other properties required because of the +bus/interface this device is connected on. It could be SPI/local bus, etc. + +Example: + + tdm-phy@0 { + compatible = "zarlink,le88266","tdm-phy-slic"; + reg = <0>; + max-num-ports = <4>; + spi-max-frequency = <8000000>; + }; + +In the above example properties "reg" and "spi-max-frequency" are SPI specific +as the SLIC device is connected on SPI interface. These properties might vary +depending on the specific interface the device is using.
Signature · 1 line
1.7.6.GIT
A gentle reminder.
Any comments are appreciated.
Regards,
Sandeep
Quoted 153 lines
-----Original Message-----
From: Singh Sandeep-B37400
Sent: Wednesday, January 02, 2013 6:55 PM
To: [email protected]; [email protected]
Cc: Singh Sandeep-B37400; Aggrwal Poonam-B10812
Subject: [PATCH] Added device tree binding for TDM and TDM phyThis controller is available on many Freescale SOCs like MPC8315, P1020, P1010 and P1022
Signed-off-by Sandeep Singh <[email protected]>Signed-off-by Poonam Aggrwal <[email protected]>--- .../devicetree/bindings/powerpc/fsl/fsl-tdm.txt | 63 ++++++++++++++++++++ .../devicetree/bindings/powerpc/fsl/tdm-phy.txt | 38 ++++++++++++ 2 files changed, 101 insertions(+), 0 deletions(-) create mode 100644 Documentation/devicetree/bindings/powerpc/fsl/fsl-tdm.txt create mode 100644 Documentation/devicetree/bindings/powerpc/fsl/tdm-phy.txt
Documentation/devicetree/bindings/powerpc/fsl/fsl-tdm.txt new file +12
-0@@ -0,0 +1,63 @@ +TDM Device Tree Binding + +NOTE: The bindings described in this document are preliminary and +subject to change. + +TDM (Time Division Multiplexing) + +Description: + +The TDM is full duplex serial port designed to allow various devices +including digital signal processors (DSPs) to communicate with a +variety of serial devices including industry standard framers, codecs,other DSPs and microprocessors.
Documentation/devicetree/bindings/powerpc/fsl/fsl-tdm.txt new file +13
-0+ +The below properties describe the device tree bindings for Freescale +TDM controller. This TDM controller is available on various Freescale +Processors like MPC8315, P1020, P1022 and P1010. + +Required properties: + +- compatible + Value type: <string> + Definition: Should contain "fsl,tdm1.0". + +- reg + Definition: A standard property. The first reg specifier describesthe TDM
Documentation/devicetree/bindings/powerpc/fsl/fsl-tdm.txt new file +5
-0+ registers, and the second describes the TDM DMAC registers. + +- tdm_tx_clk + Value type: <u32 or u64> + Definition: This specifies the value of transmit clock. It shouldnot
Documentation/devicetree/bindings/powerpc/fsl/fsl-tdm.txt new file +5
-0+ exceed 50Mhz. + +- tdm_rx_clk + Value type: <u32 or u64> + Definition: This specifies the value of receive clock. Its valuecould be
+ zero, in which case tdm will operate in shared mode. Its value
should notDocumentation/devicetree/bindings/powerpc/fsl/fsl-tdm.txt new file +4
-0+ exceed 50Mhz. + +- interrupts + Definition: Two interrupt specifiers. The first is TDM error, andthe
Documentation/devicetree/bindings/powerpc/fsl/fsl-tdm.txt new file +5
-0+ second is TDM DMAC. + +- phy-handle + Value type: <phandle> + Definition: Phandle of the line controller node or framer node eg.SLIC,
Documentation/devicetree/bindings/powerpc/fsl/fsl-tdm.txt new file +6
-0+ E1/T1 etc. (Refer +Documentation/devicetree/bindings/powerpc/fsl/tdm-phy.txt) + +- fsl,max-time-slots + Value type: <u32> + Definition: Maximum number of 8-bit time slots in one TDM frame.This is
Documentation/devicetree/bindings/powerpc/fsl/fsl-tdm.txt new file +13
-0+ the maximum number which TDM hardware supports. + +Example: + + tdm@16000 { + compatible = "fsl,tdm1.0"; + reg = <0x16000 0x200 0x2c000 0x2000>; + tdm_tx_clk = <2048000>; + tdm_rx_clk = <0>; + interrupts = <16 8 62 8>; + phy-handle = <&tdm-phy>; + fsl,max-time-slots = <128>; + };Documentation/devicetree/bindings/powerpc/fsl/tdm-phy.txt new file +15
-0@@ -0,0 +1,38 @@ +TDM PHY Device Tree Binding + +NOTE: The bindings described in this document are preliminary and +subject to change. + +Description: +TDM PHY is the terminal interface of TDM subsystem. It is typically a +line control device like E1/T1 framer or SLIC. A TDM device can have +multiple TDM PHYs. + +Required properties: + +- compatible + Value type: <string> + Definition: Should contain generic compatibility like "tdm-phy-slic"or
Documentation/devicetree/bindings/powerpc/fsl/tdm-phy.txt new file +5
-0+ "tdm-phy-e1" or "tdm-phy-t1". + +- max-num-ports + Value type: <u32> + Definition: Defines the maximum number of ports supported by theSLIC
+ device. Only required if the device is SLIC. For E1/T1 devices the
number
+ of ports are predefined i.e. (24 in case of T1 and 32 in case of
E1).Documentation/devicetree/bindings/powerpc/fsl/tdm-phy.txt new file +3
-0+ +Apart from the above, there may be other properties required because of +the bus/interface this device is connected on. It could be SPI/localbus, etc.
Documentation/devicetree/bindings/powerpc/fsl/tdm-phy.txt new file +13
-0+ +Example: + + tdm-phy@0 { + compatible = "zarlink,le88266","tdm-phy-slic"; + reg = <0>; + max-num-ports = <4>; + spi-max-frequency = <8000000>; + }; + +In the above example properties "reg" and "spi-max-frequency" are SPI +specific as the SLIC device is connected on SPI interface. These +properties might vary depending on the specific interface the device isusing.
--
1.7.6.GIT
Quoted 76 lines · On 01/09/2013 01:10:24 AM, Singh Sandeep-B37400 wrote:
A gentle reminder.
Any comments are appreciated.Regards,
SandeepQuoted 8 lines
-----Original Message-----
From: Singh Sandeep-B37400
Sent: Wednesday, January 02, 2013 6:55 PM
To: [email protected]; [email protected]
Cc: Singh Sandeep-B37400; Aggrwal Poonam-B10812
Subject: [PATCH] Added device tree binding for TDM and TDM phyThis controller is available on many Freescale SOCs like MPC8315,
P1020,
Quoted 8 lines
P1010 and P1022
Signed-off-by Sandeep Singh <[email protected]>Signed-off-by Poonam Aggrwal <[email protected]>--- .../devicetree/bindings/powerpc/fsl/fsl-tdm.txt | 63 ++++++++++++++++++++ .../devicetree/bindings/powerpc/fsl/tdm-phy.txt | 38++++++++++++
Quoted 1 line
2 files changed, 101 insertions(+), 0 deletions(-) create mode100644
Quoted 2 lines
Documentation/devicetree/bindings/powerpc/fsl/fsl-tdm.txtcreate mode 100644
Documentation/devicetree/bindings/powerpc/fsl/tdm-Review
Quoted 3 lines
phy.txt
(quoted diff) +0
-0
a/Documentation/devicetree/bindings/powerpc/fsl/fsl-tdm.txtQuoted 6 lines
b/Documentation/devicetree/bindings/powerpc/fsl/fsl-tdm.txtnew file mode 100644
index 0000000..ceb2ef1Documentation/devicetree/bindings/powerpc/fsl/fsl-tdm.txt line 10
Quoted 10 lines
Documentation/devicetree/bindings/powerpc/fsl/fsl-tdm.txt new file +10
-0@@ -0,0 +1,63 @@ +TDM Device Tree Binding + +NOTE: The bindings described in this document are preliminary and +subject to change. + +TDM (Time Division Multiplexing) + +Description: + +The TDM is full duplex serial port designed to allow variousdevices
Documentation/devicetree/bindings/powerpc/fsl/fsl-tdm.txt line 12
Quoted 2 lines
Documentation/devicetree/bindings/powerpc/fsl/fsl-tdm.txt new file +2
-0+including digital signal processors (DSPs) to communicate with a +variety of serial devices including industry standard framers,codecs,
Documentation/devicetree/bindings/powerpc/fsl/fsl-tdm.txt
Quoted 3 lines
other DSPs and microprocessors.
Documentation/devicetree/bindings/powerpc/fsl/fsl-tdm.txt new file +2
-0+ +The below properties describe the device tree bindings forFreescale
Quoted 1 line
+TDM controller. This TDM controller is available on various
Freescale
Documentation/devicetree/bindings/powerpc/fsl/fsl-tdm.txt
Quoted 10 lines
Documentation/devicetree/bindings/powerpc/fsl/fsl-tdm.txt new file +10
-0+Processors like MPC8315, P1020, P1022 and P1010. + +Required properties: + +- compatible + Value type: <string> + Definition: Should contain "fsl,tdm1.0". + +- reg + Definition: A standard property. The first reg specifierdescribes
Documentation/devicetree/bindings/powerpc/fsl/fsl-tdm.txt
Quoted 6 lines
the TDM
Documentation/devicetree/bindings/powerpc/fsl/fsl-tdm.txt new file +5
-0+ registers, and the second describes the TDM DMAC registers. + +- tdm_tx_clk + Value type: <u32 or u64> + Definition: This specifies the value of transmit clock. It
Quoted 12 lines
should
Documentation/devicetree/bindings/powerpc/fsl/fsl-tdm.txt
Quoted 6 lines
not
Documentation/devicetree/bindings/powerpc/fsl/fsl-tdm.txt new file +5
-0+ exceed 50Mhz. + +- tdm_rx_clk + Value type: <u32 or u64> + Definition: This specifies the value of receive clock. Itsvalue
Quoted 4 lines
could be
+ zero, in which case tdm will operate in shared mode. Its value
should not
+ exceed 50Mhz.
Please don't use underscores in property names, and use the vendor prefix: "fsl,tdm-tx-clk" and "fsl,tdm-rx-clk".
Quoted 18 lines
Review
Quoted 1 line
(quoted diff) +0
-0
a/Documentation/devicetree/bindings/powerpc/fsl/tdm-phy.txtDocumentation/devicetree/bindings/powerpc/fsl/tdm-phy.txt line 7
Quoted 13 lines
b/Documentation/devicetree/bindings/powerpc/fsl/tdm-phy.txtnew file mode 100644
index 0000000..2563934Documentation/devicetree/bindings/powerpc/fsl/tdm-phy.txt new file +7
-0@@ -0,0 +1,38 @@ +TDM PHY Device Tree Binding + +NOTE: The bindings described in this document are preliminary and +subject to change. + +Description: +TDM PHY is the terminal interface of TDM subsystem. It istypically a
Documentation/devicetree/bindings/powerpc/fsl/tdm-phy.txt line 8
Quoted 1 line
Documentation/devicetree/bindings/powerpc/fsl/tdm-phy.txt new file +1
-0+line control device like E1/T1 framer or SLIC. A TDM device canhave
Quoted 10 lines
Documentation/devicetree/bindings/powerpc/fsl/tdm-phy.txt line 15
Quoted 7 lines
Documentation/devicetree/bindings/powerpc/fsl/tdm-phy.txt new file +7
-0+multiple TDM PHYs. + +Required properties: + +- compatible + Value type: <string> + Definition: Should contain generic compatibility like"tdm-phy-slic"
Quoted 2 lines
or
+ "tdm-phy-e1" or "tdm-phy-t1".
Does this "generic" string (plus the other properties) tell you all you need to know about the device? If there are other possible "generic" compatibles, they should be listed or else different people will make up different strings for the same thing.
-Scott
Quoted 92 lines
-----Original Message-----
From: Wood Scott-B07421
Sent: Thursday, January 10, 2013 5:37 AM
To: Singh Sandeep-B37400
Cc: [email protected]; [email protected]; Aggrwal Poonam-B10812
Subject: Re: [PATCH] Added device tree binding for TDM and TDM phyQuoted 83 lines · On 01/09/2013 01:10:24 AM, Singh Sandeep-B37400 wrote:
A gentle reminder.
Any comments are appreciated.Regards,
SandeepQuoted 8 lines
-----Original Message-----
From: Singh Sandeep-B37400
Sent: Wednesday, January 02, 2013 6:55 PM
To: [email protected]; [email protected]
Cc: Singh Sandeep-B37400; Aggrwal Poonam-B10812
Subject: [PATCH] Added device tree binding for TDM and TDM phyThis controller is available on many Freescale SOCs like MPC8315,
P1020,
Quoted 8 lines
P1010 and P1022
Signed-off-by Sandeep Singh <[email protected]>Signed-off-by Poonam Aggrwal <[email protected]>--- .../devicetree/bindings/powerpc/fsl/fsl-tdm.txt | 63 ++++++++++++++++++++ .../devicetree/bindings/powerpc/fsl/tdm-phy.txt | 38++++++++++++
Quoted 1 line
2 files changed, 101 insertions(+), 0 deletions(-) create mode100644
Quoted 2 lines
Documentation/devicetree/bindings/powerpc/fsl/fsl-tdm.txtcreate mode 100644
Documentation/devicetree/bindings/powerpc/fsl/tdm-Quoted 3 lines
phy.txt
diff --git
a/Documentation/devicetree/bindings/powerpc/fsl/fsl-tdm.txtQuoted 6 lines
b/Documentation/devicetree/bindings/powerpc/fsl/fsl-tdm.txtnew file mode 100644
index 0000000..ceb2ef1Documentation/devicetree/bindings/powerpc/fsl/fsl-tdm.txt line 10
Quoted 10 lines
Documentation/devicetree/bindings/powerpc/fsl/fsl-tdm.txt new file +10
-0@@ -0,0 +1,63 @@ +TDM Device Tree Binding + +NOTE: The bindings described in this document are preliminary and +subject to change. + +TDM (Time Division Multiplexing) + +Description: + +The TDM is full duplex serial port designed to allow variousdevices
Documentation/devicetree/bindings/powerpc/fsl/fsl-tdm.txt line 12
Quoted 2 lines
Documentation/devicetree/bindings/powerpc/fsl/fsl-tdm.txt new file +2
-0+including digital signal processors (DSPs) to communicate with a +variety of serial devices including industry standard framers,codecs,
Documentation/devicetree/bindings/powerpc/fsl/fsl-tdm.txt
Quoted 3 lines
other DSPs and microprocessors.
Documentation/devicetree/bindings/powerpc/fsl/fsl-tdm.txt new file +2
-0+ +The below properties describe the device tree bindings forFreescale
Quoted 1 line
+TDM controller. This TDM controller is available on various
Freescale
Documentation/devicetree/bindings/powerpc/fsl/fsl-tdm.txt
Quoted 10 lines
Documentation/devicetree/bindings/powerpc/fsl/fsl-tdm.txt new file +10
-0+Processors like MPC8315, P1020, P1022 and P1010. + +Required properties: + +- compatible + Value type: <string> + Definition: Should contain "fsl,tdm1.0". + +- reg + Definition: A standard property. The first reg specifierdescribes
Documentation/devicetree/bindings/powerpc/fsl/fsl-tdm.txt
Quoted 6 lines
the TDM
Documentation/devicetree/bindings/powerpc/fsl/fsl-tdm.txt new file +5
-0+ registers, and the second describes the TDM DMAC registers. + +- tdm_tx_clk + Value type: <u32 or u64> + Definition: This specifies the value of transmit clock. Itshould
Quoted 6 lines
not
Documentation/devicetree/bindings/powerpc/fsl/fsl-tdm.txt new file +5
-0+ exceed 50Mhz. + +- tdm_rx_clk + Value type: <u32 or u64> + Definition: This specifies the value of receive clock. Its
Quoted 8 lines
Quoted 5 lines
value
Quoted 4 lines
could be
+ zero, in which case tdm will operate in shared mode. Its value
should not
+ exceed 50Mhz.Please don't use underscores in property names, and use the vendor
prefix: "fsl,tdm-tx-clk" and "fsl,tdm-rx-clk".
Ok.
Quoted 27 lines
Quoted 27 lines
Quoted 2 lines
diff --git
a/Documentation/devicetree/bindings/powerpc/fsl/tdm-phy.txtDocumentation/devicetree/bindings/powerpc/fsl/tdm-phy.txt line 7
Quoted 13 lines
b/Documentation/devicetree/bindings/powerpc/fsl/tdm-phy.txtnew file mode 100644
index 0000000..2563934Documentation/devicetree/bindings/powerpc/fsl/tdm-phy.txt new file +7
-0@@ -0,0 +1,38 @@ +TDM PHY Device Tree Binding + +NOTE: The bindings described in this document are preliminary and +subject to change. + +Description: +TDM PHY is the terminal interface of TDM subsystem. It istypically a
Documentation/devicetree/bindings/powerpc/fsl/tdm-phy.txt line 8
Quoted 1 line
Documentation/devicetree/bindings/powerpc/fsl/tdm-phy.txt new file +1
-0+line control device like E1/T1 framer or SLIC. A TDM device canhave
Documentation/devicetree/bindings/powerpc/fsl/tdm-phy.txt line 15
Quoted 7 lines
Documentation/devicetree/bindings/powerpc/fsl/tdm-phy.txt new file +7
-0+multiple TDM PHYs. + +Required properties: + +- compatible + Value type: <string> + Definition: Should contain generic compatibility like"tdm-phy-slic"
Quoted 7 lines
Quoted 2 lines
Quoted 2 lines
or
+ "tdm-phy-e1" or "tdm-phy-t1".Does this "generic" string (plus the other properties) tell you all you need to know about the device? If there are other possible "generic" compatibles, they should be listed or else different people will make up different strings for the same thing.
This property will describe the type of device, and will help TDM framework to know if it is E1/T1/SLIC device. Further details can be extracted from other compatible strings.
There are only three generic compatibles field types, which are already mentioned in definition. Do I need to make this thing more clear.
Quoted 2 lines
-Scott
Quoted 12 lines · On 01/10/2013 03:24:21 AM, Singh Sandeep-B37400 wrote:
Quoted 8 lines
Quoted 6 lines
Review
Quoted 3 lines
+- compatible
(quoted diff) +2
-0+ Value type: <string> + Definition: Should contain generic compatibility like"tdm-phy-slic"
Quoted 2 lines
or
+ "tdm-phy-e1" or "tdm-phy-t1".Does this "generic" string (plus the other properties) tell you all
you
Quoted 1 line
need to know about the device? If there are other possible
"generic"
Quoted 1 line
compatibles, they should be listed or else different people will
Quoted 8 lines
make up
Quoted 1 line
different strings for the same thing.
This property will describe the type of device, and will help TDM framework to know if it is E1/T1/SLIC device. Further details can be extracted from other compatible strings.
There are only three generic compatibles field types, which are already mentioned in definition. Do I need to make this thing more clear.
The word "like" suggests that there are other possibilites. It would be clearer as:
Definition: One of "tdm-phy-slic", "tdm-phy-e1", or "tdm-phy-t1".
-Scott
Quoted 31 lines
-----Original Message-----
From: Wood Scott-B07421
Sent: Friday, January 11, 2013 1:19 AM
To: Singh Sandeep-B37400
Cc: Wood Scott-B07421; [email protected]; linuxppc- [email protected]; Aggrwal Poonam-B10812
Subject: Re: [PATCH] Added device tree binding for TDM and TDM phyQuoted 13 lines · On 01/10/2013 03:24:21 AM, Singh Sandeep-B37400 wrote:
Quoted 8 lines
Quoted 6 lines
Review
Quoted 3 lines
+- compatible
(quoted diff) +2
-0+ Value type: <string> + Definition: Should contain generic compatibility like"tdm-phy-slic"
Quoted 2 lines
or
+ "tdm-phy-e1" or "tdm-phy-t1".Does this "generic" string (plus the other properties) tell you all
you
Quoted 1 line
need to know about the device? If there are other possible
"generic"
Quoted 1 line
compatibles, they should be listed or else different people will
make up
Quoted 8 lines
Quoted 1 line
different strings for the same thing.
This property will describe the type of device, and will help TDM framework to know if it is E1/T1/SLIC device. Further details can be extracted from other compatible strings.
There are only three generic compatibles field types, which are already mentioned in definition. Do I need to make this thing more clear.
Quoted 6 lines
The word "like" suggests that there are other possibilites. It would be clearer as:
Definition: One of "tdm-phy-slic", "tdm-phy-e1", or "tdm-phy-t1".
-Scott
Ok, thanks for your comments.