162306a36Sopenharmony_ci===================================================================
262306a36Sopenharmony_ciDebug Control and Status Register (DCSR) Binding
362306a36Sopenharmony_ciCopyright 2011 Freescale Semiconductor Inc.
462306a36Sopenharmony_ci
562306a36Sopenharmony_ciNOTE: The bindings described in this document are preliminary and subject
662306a36Sopenharmony_cito change.  Some of the compatible strings that contain only generic names
762306a36Sopenharmony_cimay turn out to be inappropriate, or need additional properties to describe
862306a36Sopenharmony_cithe integration of the block with the rest of the chip.
962306a36Sopenharmony_ci
1062306a36Sopenharmony_ci=====================================================================
1162306a36Sopenharmony_ciDebug Control and Status Register Memory Map
1262306a36Sopenharmony_ci
1362306a36Sopenharmony_ciDescription
1462306a36Sopenharmony_ci
1562306a36Sopenharmony_ciThis node defines the base address and range for the
1662306a36Sopenharmony_cidefined DCSR Memory Map. Child nodes will describe the individual
1762306a36Sopenharmony_cidebug blocks defined within this memory space.
1862306a36Sopenharmony_ci
1962306a36Sopenharmony_ciPROPERTIES
2062306a36Sopenharmony_ci
2162306a36Sopenharmony_ci	- compatible
2262306a36Sopenharmony_ci	Usage: required
2362306a36Sopenharmony_ci	Value type: <string>
2462306a36Sopenharmony_ci	Definition: Must include "fsl,dcsr" and "simple-bus".
2562306a36Sopenharmony_ci	The DCSR space exists in the memory-mapped bus.
2662306a36Sopenharmony_ci
2762306a36Sopenharmony_ci	- #address-cells
2862306a36Sopenharmony_ci	Usage: required
2962306a36Sopenharmony_ci	Value type: <u32>
3062306a36Sopenharmony_ci	Definition: A standard property.  Defines the number of cells
3162306a36Sopenharmony_ci	or representing physical addresses in child nodes.
3262306a36Sopenharmony_ci
3362306a36Sopenharmony_ci	- #size-cells
3462306a36Sopenharmony_ci	Usage: required
3562306a36Sopenharmony_ci	Value type: <u32>
3662306a36Sopenharmony_ci	Definition: A standard property.  Defines the number of cells
3762306a36Sopenharmony_ci	or representing the size of physical addresses in
3862306a36Sopenharmony_ci	child nodes.
3962306a36Sopenharmony_ci
4062306a36Sopenharmony_ci	- ranges
4162306a36Sopenharmony_ci	Usage: required
4262306a36Sopenharmony_ci	Value type: <prop-encoded-array>
4362306a36Sopenharmony_ci	Definition: A standard property. Specifies the physical address
4462306a36Sopenharmony_ci	range of the DCSR space.
4562306a36Sopenharmony_ci
4662306a36Sopenharmony_ciEXAMPLE
4762306a36Sopenharmony_ci	dcsr: dcsr@f00000000 {
4862306a36Sopenharmony_ci		#address-cells = <1>;
4962306a36Sopenharmony_ci		#size-cells = <1>;
5062306a36Sopenharmony_ci		compatible = "fsl,dcsr", "simple-bus";
5162306a36Sopenharmony_ci		ranges = <0x00000000 0xf 0x00000000 0x01008000>;
5262306a36Sopenharmony_ci	};
5362306a36Sopenharmony_ci
5462306a36Sopenharmony_ci=====================================================================
5562306a36Sopenharmony_ciEvent Processing Unit
5662306a36Sopenharmony_ci
5762306a36Sopenharmony_ciThis node represents the region of DCSR space allocated to the EPU
5862306a36Sopenharmony_ci
5962306a36Sopenharmony_ciPROPERTIES
6062306a36Sopenharmony_ci
6162306a36Sopenharmony_ci	- compatible
6262306a36Sopenharmony_ci	Usage: required
6362306a36Sopenharmony_ci	Value type: <string>
6462306a36Sopenharmony_ci	Definition: Must include "fsl,dcsr-epu"
6562306a36Sopenharmony_ci
6662306a36Sopenharmony_ci	- interrupts
6762306a36Sopenharmony_ci	Usage: required
6862306a36Sopenharmony_ci	Value type: <prop_encoded-array>
6962306a36Sopenharmony_ci	Definition:  Specifies the interrupts generated by the EPU.
7062306a36Sopenharmony_ci	The value of the interrupts property consists of three
7162306a36Sopenharmony_ci	interrupt specifiers. The format of the specifier is defined
7262306a36Sopenharmony_ci	by the binding document describing the node's interrupt parent.
7362306a36Sopenharmony_ci
7462306a36Sopenharmony_ci	The EPU counters can be configured to assert the performance
7562306a36Sopenharmony_ci	monitor interrupt signal based on either counter overflow or value
7662306a36Sopenharmony_ci	match. Which counter asserted the interrupt is captured in an EPU
7762306a36Sopenharmony_ci	Counter Interrupt Status Register (EPCPUISR).
7862306a36Sopenharmony_ci
7962306a36Sopenharmony_ci	The EPU unit can also be configured to assert either or both of
8062306a36Sopenharmony_ci	two interrupt signals based on debug event sources within the SoC.
8162306a36Sopenharmony_ci	The interrupt signals are epu_xt_int0 and epu_xt_int1.
8262306a36Sopenharmony_ci	Which event source asserted the interrupt is captured in an EPU
8362306a36Sopenharmony_ci	Interrupt Status Register (EPISR0,EPISR1).
8462306a36Sopenharmony_ci
8562306a36Sopenharmony_ci	Interrupt numbers are listed in order (perfmon, event0, event1).
8662306a36Sopenharmony_ci
8762306a36Sopenharmony_ci	- reg
8862306a36Sopenharmony_ci	Usage: required
8962306a36Sopenharmony_ci	Value type: <prop-encoded-array>
9062306a36Sopenharmony_ci	Definition: A standard property.  Specifies the physical address
9162306a36Sopenharmony_ci	offset and length of the DCSR space registers of the device
9262306a36Sopenharmony_ci	configuration block.
9362306a36Sopenharmony_ci
9462306a36Sopenharmony_ciEXAMPLE
9562306a36Sopenharmony_ci	dcsr-epu@0 {
9662306a36Sopenharmony_ci		compatible = "fsl,dcsr-epu";
9762306a36Sopenharmony_ci		interrupts = <52 2 0 0
9862306a36Sopenharmony_ci			      84 2 0 0
9962306a36Sopenharmony_ci			      85 2 0 0>;
10062306a36Sopenharmony_ci		interrupt-parent = <&mpic>;
10162306a36Sopenharmony_ci		reg = <0x0 0x1000>;
10262306a36Sopenharmony_ci	};
10362306a36Sopenharmony_ci
10462306a36Sopenharmony_ci=======================================================================
10562306a36Sopenharmony_ciNexus Port Controller
10662306a36Sopenharmony_ci
10762306a36Sopenharmony_ciThis node represents the region of DCSR space allocated to the NPC
10862306a36Sopenharmony_ci
10962306a36Sopenharmony_ciPROPERTIES
11062306a36Sopenharmony_ci
11162306a36Sopenharmony_ci	- compatible
11262306a36Sopenharmony_ci	Usage: required
11362306a36Sopenharmony_ci	Value type: <string>
11462306a36Sopenharmony_ci	Definition: Must include "fsl,dcsr-npc"
11562306a36Sopenharmony_ci
11662306a36Sopenharmony_ci	- reg
11762306a36Sopenharmony_ci	Usage: required
11862306a36Sopenharmony_ci	Value type: <prop-encoded-array>
11962306a36Sopenharmony_ci	Definition: A standard property.  Specifies the physical address
12062306a36Sopenharmony_ci	offset and length of the DCSR space registers of the device
12162306a36Sopenharmony_ci	configuration block.
12262306a36Sopenharmony_ci	The Nexus Port controller occupies two regions in the DCSR space
12362306a36Sopenharmony_ci	with distinct functionality.
12462306a36Sopenharmony_ci
12562306a36Sopenharmony_ci	The first register range describes the Nexus Port Controller
12662306a36Sopenharmony_ci	control and status registers.
12762306a36Sopenharmony_ci
12862306a36Sopenharmony_ci	The second register range describes the Nexus Port Controller
12962306a36Sopenharmony_ci	internal trace buffer. The NPC trace buffer is a small memory buffer
13062306a36Sopenharmony_ci	which stages the nexus trace data for transmission via the Aurora port
13162306a36Sopenharmony_ci	or to a DDR based trace buffer. In some configurations the NPC trace
13262306a36Sopenharmony_ci	buffer can be the only trace buffer used.
13362306a36Sopenharmony_ci
13462306a36Sopenharmony_ci
13562306a36Sopenharmony_ciEXAMPLE
13662306a36Sopenharmony_ci		dcsr-npc {
13762306a36Sopenharmony_ci			compatible = "fsl,dcsr-npc";
13862306a36Sopenharmony_ci			reg = <0x1000 0x1000 0x1000000 0x8000>;
13962306a36Sopenharmony_ci		};
14062306a36Sopenharmony_ci
14162306a36Sopenharmony_ci=======================================================================
14262306a36Sopenharmony_ciNexus Concentrator
14362306a36Sopenharmony_ci
14462306a36Sopenharmony_ciThis node represents the region of DCSR space allocated to the NXC
14562306a36Sopenharmony_ci
14662306a36Sopenharmony_ciPROPERTIES
14762306a36Sopenharmony_ci
14862306a36Sopenharmony_ci	- compatible
14962306a36Sopenharmony_ci	Usage: required
15062306a36Sopenharmony_ci	Value type: <string>
15162306a36Sopenharmony_ci	Definition: Must include "fsl,dcsr-nxc"
15262306a36Sopenharmony_ci
15362306a36Sopenharmony_ci	- reg
15462306a36Sopenharmony_ci	Usage: required
15562306a36Sopenharmony_ci	Value type: <prop-encoded-array>
15662306a36Sopenharmony_ci	Definition: A standard property.  Specifies the physical address
15762306a36Sopenharmony_ci	offset and length of the DCSR space registers of the device
15862306a36Sopenharmony_ci	configuration block.
15962306a36Sopenharmony_ci
16062306a36Sopenharmony_ciEXAMPLE
16162306a36Sopenharmony_ci		dcsr-nxc@2000 {
16262306a36Sopenharmony_ci			compatible = "fsl,dcsr-nxc";
16362306a36Sopenharmony_ci			reg = <0x2000 0x1000>;
16462306a36Sopenharmony_ci		};
16562306a36Sopenharmony_ci=======================================================================
16662306a36Sopenharmony_ciCoreNet Debug Controller
16762306a36Sopenharmony_ci
16862306a36Sopenharmony_ciThis node represents the region of DCSR space allocated to
16962306a36Sopenharmony_cithe CoreNet Debug controller.
17062306a36Sopenharmony_ci
17162306a36Sopenharmony_ciPROPERTIES
17262306a36Sopenharmony_ci
17362306a36Sopenharmony_ci	- compatible
17462306a36Sopenharmony_ci	Usage: required
17562306a36Sopenharmony_ci	Value type: <string>
17662306a36Sopenharmony_ci	Definition: Must include "fsl,dcsr-corenet"
17762306a36Sopenharmony_ci
17862306a36Sopenharmony_ci	- reg
17962306a36Sopenharmony_ci	Usage: required
18062306a36Sopenharmony_ci	Value type: <prop-encoded-array>
18162306a36Sopenharmony_ci	Definition: A standard property.  Specifies the physical address
18262306a36Sopenharmony_ci	offset and length of the DCSR space registers of the device
18362306a36Sopenharmony_ci	configuration block.
18462306a36Sopenharmony_ci	The CoreNet Debug controller occupies two regions in the DCSR space
18562306a36Sopenharmony_ci	with distinct functionality.
18662306a36Sopenharmony_ci
18762306a36Sopenharmony_ci	The first register range describes the CoreNet Debug Controller
18862306a36Sopenharmony_ci	functionality to perform transaction and transaction attribute matches.
18962306a36Sopenharmony_ci
19062306a36Sopenharmony_ci	The second register range describes the CoreNet Debug Controller
19162306a36Sopenharmony_ci	functionality to trigger event notifications and debug traces.
19262306a36Sopenharmony_ci
19362306a36Sopenharmony_ciEXAMPLE
19462306a36Sopenharmony_ci		dcsr-corenet {
19562306a36Sopenharmony_ci			compatible = "fsl,dcsr-corenet";
19662306a36Sopenharmony_ci			reg = <0x8000 0x1000 0xB0000 0x1000>;
19762306a36Sopenharmony_ci		};
19862306a36Sopenharmony_ci
19962306a36Sopenharmony_ci=======================================================================
20062306a36Sopenharmony_ciData Path Debug controller
20162306a36Sopenharmony_ci
20262306a36Sopenharmony_ciThis node represents the region of DCSR space allocated to
20362306a36Sopenharmony_cithe DPAA Debug Controller. This controller controls debug configuration
20462306a36Sopenharmony_cifor the QMAN and FMAN blocks.
20562306a36Sopenharmony_ci
20662306a36Sopenharmony_ciPROPERTIES
20762306a36Sopenharmony_ci
20862306a36Sopenharmony_ci	- compatible
20962306a36Sopenharmony_ci	Usage: required
21062306a36Sopenharmony_ci	Value type: <string>
21162306a36Sopenharmony_ci	Definition: Must include both an identifier specific to the SoC
21262306a36Sopenharmony_ci	or Debug IP of the form "fsl,<soc>-dcsr-dpaa" in addition to the
21362306a36Sopenharmony_ci	generic compatible string "fsl,dcsr-dpaa".
21462306a36Sopenharmony_ci
21562306a36Sopenharmony_ci	- reg
21662306a36Sopenharmony_ci	Usage: required
21762306a36Sopenharmony_ci	Value type: <prop-encoded-array>
21862306a36Sopenharmony_ci	Definition: A standard property.  Specifies the physical address
21962306a36Sopenharmony_ci	offset and length of the DCSR space registers of the device
22062306a36Sopenharmony_ci	configuration block.
22162306a36Sopenharmony_ci
22262306a36Sopenharmony_ciEXAMPLE
22362306a36Sopenharmony_ci		dcsr-dpaa@9000 {
22462306a36Sopenharmony_ci			compatible = "fsl,p4080-dcsr-dpaa", "fsl,dcsr-dpaa";
22562306a36Sopenharmony_ci			reg = <0x9000 0x1000>;
22662306a36Sopenharmony_ci		};
22762306a36Sopenharmony_ci
22862306a36Sopenharmony_ci=======================================================================
22962306a36Sopenharmony_ciOCeaN Debug controller
23062306a36Sopenharmony_ci
23162306a36Sopenharmony_ciThis node represents the region of DCSR space allocated to
23262306a36Sopenharmony_cithe OCN Debug Controller.
23362306a36Sopenharmony_ci
23462306a36Sopenharmony_ciPROPERTIES
23562306a36Sopenharmony_ci
23662306a36Sopenharmony_ci	- compatible
23762306a36Sopenharmony_ci	Usage: required
23862306a36Sopenharmony_ci	Value type: <string>
23962306a36Sopenharmony_ci	Definition: Must include both an identifier specific to the SoC
24062306a36Sopenharmony_ci	or Debug IP of the form "fsl,<soc>-dcsr-ocn" in addition to the
24162306a36Sopenharmony_ci	generic compatible string "fsl,dcsr-ocn".
24262306a36Sopenharmony_ci
24362306a36Sopenharmony_ci	- reg
24462306a36Sopenharmony_ci	Usage: required
24562306a36Sopenharmony_ci	Value type: <prop-encoded-array>
24662306a36Sopenharmony_ci	Definition: A standard property.  Specifies the physical address
24762306a36Sopenharmony_ci	offset and length of the DCSR space registers of the device
24862306a36Sopenharmony_ci	configuration block.
24962306a36Sopenharmony_ci
25062306a36Sopenharmony_ciEXAMPLE
25162306a36Sopenharmony_ci		dcsr-ocn@11000 {
25262306a36Sopenharmony_ci			compatible = "fsl,p4080-dcsr-ocn", "fsl,dcsr-ocn";
25362306a36Sopenharmony_ci			reg = <0x11000 0x1000>;
25462306a36Sopenharmony_ci		};
25562306a36Sopenharmony_ci
25662306a36Sopenharmony_ci=======================================================================
25762306a36Sopenharmony_ciDDR Controller Debug controller
25862306a36Sopenharmony_ci
25962306a36Sopenharmony_ciThis node represents the region of DCSR space allocated to
26062306a36Sopenharmony_cithe OCN Debug Controller.
26162306a36Sopenharmony_ci
26262306a36Sopenharmony_ciPROPERTIES
26362306a36Sopenharmony_ci
26462306a36Sopenharmony_ci	- compatible
26562306a36Sopenharmony_ci	Usage: required
26662306a36Sopenharmony_ci	Value type: <string>
26762306a36Sopenharmony_ci	Definition: Must include "fsl,dcsr-ddr"
26862306a36Sopenharmony_ci
26962306a36Sopenharmony_ci	- dev-handle
27062306a36Sopenharmony_ci	Usage: required
27162306a36Sopenharmony_ci	Definition: A phandle to associate this debug node with its
27262306a36Sopenharmony_ci	component controller.
27362306a36Sopenharmony_ci
27462306a36Sopenharmony_ci	- reg
27562306a36Sopenharmony_ci	Usage: required
27662306a36Sopenharmony_ci	Value type: <prop-encoded-array>
27762306a36Sopenharmony_ci	Definition: A standard property.  Specifies the physical address
27862306a36Sopenharmony_ci	offset and length of the DCSR space registers of the device
27962306a36Sopenharmony_ci	configuration block.
28062306a36Sopenharmony_ci
28162306a36Sopenharmony_ciEXAMPLE
28262306a36Sopenharmony_ci		dcsr-ddr@12000 {
28362306a36Sopenharmony_ci			compatible = "fsl,dcsr-ddr";
28462306a36Sopenharmony_ci			dev-handle = <&ddr1>;
28562306a36Sopenharmony_ci			reg = <0x12000 0x1000>;
28662306a36Sopenharmony_ci		};
28762306a36Sopenharmony_ci
28862306a36Sopenharmony_ci=======================================================================
28962306a36Sopenharmony_ciNexus Aurora Link Controller
29062306a36Sopenharmony_ci
29162306a36Sopenharmony_ciThis node represents the region of DCSR space allocated to
29262306a36Sopenharmony_cithe NAL Controller.
29362306a36Sopenharmony_ci
29462306a36Sopenharmony_ciPROPERTIES
29562306a36Sopenharmony_ci
29662306a36Sopenharmony_ci	- compatible
29762306a36Sopenharmony_ci	Usage: required
29862306a36Sopenharmony_ci	Value type: <string>
29962306a36Sopenharmony_ci	Definition: Must include both an identifier specific to the SoC
30062306a36Sopenharmony_ci	or Debug IP of the form "fsl,<soc>-dcsr-nal" in addition to the
30162306a36Sopenharmony_ci	generic compatible string "fsl,dcsr-nal".
30262306a36Sopenharmony_ci
30362306a36Sopenharmony_ci	- reg
30462306a36Sopenharmony_ci	Usage: required
30562306a36Sopenharmony_ci	Value type: <prop-encoded-array>
30662306a36Sopenharmony_ci	Definition: A standard property.  Specifies the physical address
30762306a36Sopenharmony_ci	offset and length of the DCSR space registers of the device
30862306a36Sopenharmony_ci	configuration block.
30962306a36Sopenharmony_ci
31062306a36Sopenharmony_ciEXAMPLE
31162306a36Sopenharmony_ci		dcsr-nal@18000 {
31262306a36Sopenharmony_ci			compatible = "fsl,p4080-dcsr-nal", "fsl,dcsr-nal";
31362306a36Sopenharmony_ci			reg = <0x18000 0x1000>;
31462306a36Sopenharmony_ci		};
31562306a36Sopenharmony_ci
31662306a36Sopenharmony_ci
31762306a36Sopenharmony_ci=======================================================================
31862306a36Sopenharmony_ciRun Control and Power Management
31962306a36Sopenharmony_ci
32062306a36Sopenharmony_ciThis node represents the region of DCSR space allocated to
32162306a36Sopenharmony_cithe RCPM Debug Controller. This functionlity is limited to the
32262306a36Sopenharmony_cicontrol the debug operations of the SoC and cores.
32362306a36Sopenharmony_ci
32462306a36Sopenharmony_ciPROPERTIES
32562306a36Sopenharmony_ci
32662306a36Sopenharmony_ci	- compatible
32762306a36Sopenharmony_ci	Usage: required
32862306a36Sopenharmony_ci	Value type: <string>
32962306a36Sopenharmony_ci	Definition: Must include both an identifier specific to the SoC
33062306a36Sopenharmony_ci	or Debug IP of the form "fsl,<soc>-dcsr-rcpm" in addition to the
33162306a36Sopenharmony_ci	generic compatible string "fsl,dcsr-rcpm".
33262306a36Sopenharmony_ci
33362306a36Sopenharmony_ci	- reg
33462306a36Sopenharmony_ci	Usage: required
33562306a36Sopenharmony_ci	Value type: <prop-encoded-array>
33662306a36Sopenharmony_ci	Definition: A standard property.  Specifies the physical address
33762306a36Sopenharmony_ci	offset and length of the DCSR space registers of the device
33862306a36Sopenharmony_ci	configuration block.
33962306a36Sopenharmony_ci
34062306a36Sopenharmony_ciEXAMPLE
34162306a36Sopenharmony_ci		dcsr-rcpm@22000 {
34262306a36Sopenharmony_ci			compatible = "fsl,p4080-dcsr-rcpm", "fsl,dcsr-rcpm";
34362306a36Sopenharmony_ci			reg = <0x22000 0x1000>;
34462306a36Sopenharmony_ci		};
34562306a36Sopenharmony_ci
34662306a36Sopenharmony_ci=======================================================================
34762306a36Sopenharmony_ciCore Service Bridge Proxy
34862306a36Sopenharmony_ci
34962306a36Sopenharmony_ciThis node represents the region of DCSR space allocated to
35062306a36Sopenharmony_cithe Core Service Bridge Proxies.
35162306a36Sopenharmony_ciThere is one Core Service Bridge Proxy device for each CPU in the system.
35262306a36Sopenharmony_ciThis functionlity provides access to the debug operations of the CPU.
35362306a36Sopenharmony_ci
35462306a36Sopenharmony_ciPROPERTIES
35562306a36Sopenharmony_ci
35662306a36Sopenharmony_ci	- compatible
35762306a36Sopenharmony_ci	Usage: required
35862306a36Sopenharmony_ci	Value type: <string>
35962306a36Sopenharmony_ci	Definition: Must include both an identifier specific to the cpu
36062306a36Sopenharmony_ci	of the form "fsl,dcsr-<cpu>-sb-proxy" in addition to the
36162306a36Sopenharmony_ci	generic compatible string "fsl,dcsr-cpu-sb-proxy".
36262306a36Sopenharmony_ci
36362306a36Sopenharmony_ci	- cpu-handle
36462306a36Sopenharmony_ci	Usage: required
36562306a36Sopenharmony_ci	Definition: A phandle to associate this debug node with its cpu.
36662306a36Sopenharmony_ci
36762306a36Sopenharmony_ci	- reg
36862306a36Sopenharmony_ci	Usage: required
36962306a36Sopenharmony_ci	Value type: <prop-encoded-array>
37062306a36Sopenharmony_ci	Definition: A standard property.  Specifies the physical address
37162306a36Sopenharmony_ci	offset and length of the DCSR space registers of the device
37262306a36Sopenharmony_ci	configuration block.
37362306a36Sopenharmony_ci
37462306a36Sopenharmony_ciEXAMPLE
37562306a36Sopenharmony_ci		dcsr-cpu-sb-proxy@40000 {
37662306a36Sopenharmony_ci			compatible = "fsl,dcsr-e500mc-sb-proxy",
37762306a36Sopenharmony_ci				     "fsl,dcsr-cpu-sb-proxy";
37862306a36Sopenharmony_ci			cpu-handle = <&cpu0>;
37962306a36Sopenharmony_ci			reg = <0x40000 0x1000>;
38062306a36Sopenharmony_ci		};
38162306a36Sopenharmony_ci		dcsr-cpu-sb-proxy@41000 {
38262306a36Sopenharmony_ci			compatible = "fsl,dcsr-e500mc-sb-proxy",
38362306a36Sopenharmony_ci				     "fsl,dcsr-cpu-sb-proxy";
38462306a36Sopenharmony_ci			cpu-handle = <&cpu1>;
38562306a36Sopenharmony_ci			reg = <0x41000 0x1000>;
38662306a36Sopenharmony_ci		};
38762306a36Sopenharmony_ci
38862306a36Sopenharmony_ci=======================================================================
389