From: alexandre.belloni@free-electrons.com (Alexandre Belloni)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 2/2] ARM: dts: at91: sama5d2: add ETM, ETB and ETMCK node
Date: Fri, 1 Jul 2016 20:32:49 +0200 [thread overview]
Message-ID: <20160701183248.GC2874@piout.net> (raw)
In-Reply-To: <1467383831-6985-2-git-send-email-olivier.schonken@gmail.com>
On 01/07/2016 at 16:37:11 +0200, Olivier Schonken wrote :
> Add node to support SAMA5D2 Embedded Trace Macrocell and Embedded
> Trace Buffer. Add a dummy clock node needed by drivers/amba/bus.c
> for succesfull probe. The coresight clock is always present, and
> can thus not be enabled/disabled by a register write.
>
> This patch depends on coresight-etm3x: Add ARM ETM-A5 peripheral ID
> for proper functionality.
>
> Signed-off-by: Olivier Schonken <olivier.schonken@gmail.com>
> ---
> arch/arm/boot/dts/sama5d2.dtsi | 44 ++++++++++++++++++++++++++++++++++++++++++
> 1 file changed, 44 insertions(+)
>
> diff --git a/arch/arm/boot/dts/sama5d2.dtsi b/arch/arm/boot/dts/sama5d2.dtsi
> index 5d63206..4a3a3fb 100644
> --- a/arch/arm/boot/dts/sama5d2.dtsi
> +++ b/arch/arm/boot/dts/sama5d2.dtsi
> @@ -77,6 +77,37 @@
> interrupts = <2 IRQ_TYPE_LEVEL_HIGH 0>;
> };
>
> + etb: etb at 00740000 {
> + compatible = "arm,coresight-etb10", "arm,primecell";
> + reg = <0x740000 0x1000>;
> + status = "okay";
> +
> + clocks = <&etmck>;
> + clock-names = "apb_pclk";
> +
> + port {
> + etb_in: endpoint {
> + slave-mode;
> + remote-endpoint = <&etm_out>;
> + };
> + };
> + };
> +
> + etm: etm at 0073C000 {
> + compatible = "arm,coresight-etm3x", "arm,primecell";
> + reg = <0x73C000 0x1000>;
> + status = "okay";
> +
> + clocks = <&etmck>;
> + clock-names = "apb_pclk";
> +
> + port {
> + etm_out: endpoint {
> + remote-endpoint = <&etb_in>;
> + };
> + };
> + };
> +
> memory {
> reg = <0x20000000 0x20000000>;
> };
> @@ -474,6 +505,19 @@
> };
> };
>
> + /*
> + * This is a dummy clock needed by
> + * drivers/amba/bus.c when probing
> + * for ETM/ETB. On SAMA5D2 the coresight
> + * clock is always supplied.
> + */
> +
> + etmck: etmck {
> + #clock-cells = <0>;
> + compatible = "fixed-clock";
> + clock-frequency = <0>;
> + };
> +
Hum, maybe you could take mck instead of adding a dummy clock in the
PCM.
Boris, do you have a better idea?
--
Alexandre Belloni, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com
next prev parent reply other threads:[~2016-07-01 18:32 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-07-01 14:37 [PATCH 1/2] coresight-etm3x: Add ARM ETM-A5 peripheral ID Olivier Schonken
2016-07-01 14:37 ` [PATCH 2/2] ARM: dts: at91: sama5d2: add ETM, ETB and ETMCK node Olivier Schonken
2016-07-01 18:32 ` Alexandre Belloni [this message]
2016-07-01 20:07 ` Olivier Schonken
2016-07-02 18:46 ` Boris Brezillon
2016-07-04 8:49 ` Olivier Schonken
[not found] ` <CALdGsk+RO_cxfcTLVyKHP3aVMkSTtzEzQXz2G4ARX7vqxRazSA@mail.gmail.com>
2016-07-04 9:00 ` Boris Brezillon
2016-07-04 9:08 ` Olivier Schonken
2016-07-04 16:02 ` Alexandre Belloni
2016-07-04 20:26 ` Boris Brezillon
2016-07-04 20:47 ` Alexandre Belloni
2016-07-04 20:51 ` Boris Brezillon
2016-07-04 15:38 ` Mathieu Poirier
2016-07-04 15:33 ` [PATCH 1/2] coresight-etm3x: Add ARM ETM-A5 peripheral ID Mathieu Poirier
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20160701183248.GC2874@piout.net \
--to=alexandre.belloni@free-electrons.com \
--cc=linux-arm-kernel@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).