ARM: dts: at91: sama5d2: add ETM and ETB nodes
authorOlivier Schonken <olivier.schonken@gmail.com>
Tue, 5 Jul 2016 08:05:50 +0000 (10:05 +0200)
committerAlexandre Belloni <alexandre.belloni@free-electrons.com>
Mon, 8 Aug 2016 10:08:00 +0000 (12:08 +0200)
Add node to support SAMA5D2 Embedded Trace Macrocell and Embedded
Trace Buffer.

This patch depends on coresight-etm3x: Add ARM ETM-A5 peripheral ID
for proper coresight functionality.
It also depends on clocksource: timer-atmel-pit: enable mck to not
stall SAMA5D2 on bootup.

Signed-off-by: Olivier Schonken <olivier.schonken@gmail.com>
Acked-by: Mathieu Poirier <mathieu.poirier@linaro.org>
Acked-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
arch/arm/boot/dts/sama5d2.dtsi

index 353d0e5..7173ec9 100644 (file)
                interrupts = <2 IRQ_TYPE_LEVEL_HIGH 0>;
        };
 
+       etb {
+               compatible = "arm,coresight-etb10", "arm,primecell";
+               reg = <0x740000 0x1000>;
+
+               clocks = <&mck>;
+               clock-names = "apb_pclk";
+
+               port {
+                       etb_in: endpoint {
+                               slave-mode;
+                               remote-endpoint = <&etm_out>;
+                       };
+               };
+       };
+
+       etm {
+               compatible = "arm,coresight-etm3x", "arm,primecell";
+               reg = <0x73C000 0x1000>;
+
+               clocks = <&mck>;
+               clock-names = "apb_pclk";
+
+               port {
+                       etm_out: endpoint {
+                               remote-endpoint = <&etb_in>;
+                       };
+               };
+       };
+
        memory {
                reg = <0x20000000 0x20000000>;
        };