Skip to content

Commit fe467ad

Browse files
Chunyan Zhangolofj
authored andcommitted
arm64: dts: sprd: adding ETM entries to Spreadtrum SC9836
Since ETMv4 driver has been merged, this patch adds ETM nodes for SC9836, and four funnel input ports to connect with ETM output ports. Signed-off-by: Chunyan Zhang <[email protected]> Signed-off-by: Olof Johansson <[email protected]>
1 parent bc0195a commit fe467ad

File tree

1 file changed

+94
-5
lines changed

1 file changed

+94
-5
lines changed

arch/arm64/boot/dts/sprd/sc9836.dtsi

Lines changed: 94 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,28 +16,28 @@
1616
#address-cells = <2>;
1717
#size-cells = <0>;
1818

19-
cpu@0 {
19+
cpu0: cpu@0 {
2020
device_type = "cpu";
2121
compatible = "arm,cortex-a53", "arm,armv8";
2222
reg = <0x0 0x0>;
2323
enable-method = "psci";
2424
};
2525

26-
cpu@1 {
26+
cpu1: cpu@1 {
2727
device_type = "cpu";
2828
compatible = "arm,cortex-a53", "arm,armv8";
2929
reg = <0x0 0x1>;
3030
enable-method = "psci";
3131
};
3232

33-
cpu@2 {
33+
cpu2: cpu@2 {
3434
device_type = "cpu";
3535
compatible = "arm,cortex-a53", "arm,armv8";
3636
reg = <0x0 0x2>;
3737
enable-method = "psci";
3838
};
3939

40-
cpu@3 {
40+
cpu3: cpu@3 {
4141
device_type = "cpu";
4242
compatible = "arm,cortex-a53", "arm,armv8";
4343
reg = <0x0 0x3>;
@@ -75,14 +75,103 @@
7575
};
7676
};
7777

78-
/* funnel input port 0~3 is reserved for ETMs */
78+
/* funnel input port 0-4 */
7979
port@1 {
80+
reg = <0>;
81+
funnel_in_port0: endpoint {
82+
slave-mode;
83+
remote-endpoint = <&etm0_out>;
84+
};
85+
};
86+
87+
port@2 {
88+
reg = <1>;
89+
funnel_in_port1: endpoint {
90+
slave-mode;
91+
remote-endpoint = <&etm1_out>;
92+
};
93+
};
94+
95+
port@3 {
96+
reg = <2>;
97+
funnel_in_port2: endpoint {
98+
slave-mode;
99+
remote-endpoint = <&etm2_out>;
100+
};
101+
};
102+
103+
port@4 {
104+
reg = <3>;
105+
funnel_in_port3: endpoint {
106+
slave-mode;
107+
remote-endpoint = <&etm3_out>;
108+
};
109+
};
110+
111+
port@5 {
80112
reg = <4>;
81113
funnel_in_port4: endpoint {
82114
slave-mode;
83115
remote-endpoint = <&stm_out>;
84116
};
85117
};
118+
/* Other input ports aren't connected to anyone */
119+
};
120+
};
121+
122+
etm@10440000 {
123+
compatible = "arm,coresight-etm4x", "arm,primecell";
124+
reg = <0 0x10440000 0 0x1000>;
125+
126+
cpu = <&cpu0>;
127+
clocks = <&clk26mhz>;
128+
clock-names = "apb_pclk";
129+
port {
130+
etm0_out: endpoint {
131+
remote-endpoint = <&funnel_in_port0>;
132+
};
133+
};
134+
};
135+
136+
etm@10540000 {
137+
compatible = "arm,coresight-etm4x", "arm,primecell";
138+
reg = <0 0x10540000 0 0x1000>;
139+
140+
cpu = <&cpu1>;
141+
clocks = <&clk26mhz>;
142+
clock-names = "apb_pclk";
143+
port {
144+
etm1_out: endpoint {
145+
remote-endpoint = <&funnel_in_port1>;
146+
};
147+
};
148+
};
149+
150+
etm@10640000 {
151+
compatible = "arm,coresight-etm4x", "arm,primecell";
152+
reg = <0 0x10640000 0 0x1000>;
153+
154+
cpu = <&cpu2>;
155+
clocks = <&clk26mhz>;
156+
clock-names = "apb_pclk";
157+
port {
158+
etm2_out: endpoint {
159+
remote-endpoint = <&funnel_in_port2>;
160+
};
161+
};
162+
};
163+
164+
etm@10740000 {
165+
compatible = "arm,coresight-etm4x", "arm,primecell";
166+
reg = <0 0x10740000 0 0x1000>;
167+
168+
cpu = <&cpu3>;
169+
clocks = <&clk26mhz>;
170+
clock-names = "apb_pclk";
171+
port {
172+
etm3_out: endpoint {
173+
remote-endpoint = <&funnel_in_port3>;
174+
};
86175
};
87176
};
88177

0 commit comments

Comments
 (0)