[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAJM55Z-bzivMZWUsHiii+2tw2-kdRe7kqtVa+MvPEAVTmOvChg@mail.gmail.com>
Date: Mon, 14 Oct 2024 10:57:20 -0400
From: Emil Renner Berthing <emil.renner.berthing@...onical.com>
To: Michal Wilczynski <m.wilczynski@...sung.com>, drew@...7.com, guoren@...nel.org,
wefu@...hat.com, jassisinghbrar@...il.com, robh@...nel.org,
krzk+dt@...nel.org, conor+dt@...nel.org, paul.walmsley@...ive.com,
palmer@...belt.com, aou@...s.berkeley.edu, m.szyprowski@...sung.com
Cc: linux-riscv@...ts.infradead.org, linux-kernel@...r.kernel.org,
devicetree@...r.kernel.org
Subject: Re: [PATCH v4 3/3] riscv: dts: thead: Add mailbox node
Michal Wilczynski wrote:
> Add mailbox device tree node. This work is based on the vendor kernel [1].
>
> Link: https://github.com/revyos/thead-kernel.git [1]
>
> Signed-off-by: Michal Wilczynski <m.wilczynski@...sung.com>
> ---
> arch/riscv/boot/dts/thead/th1520.dtsi | 12 ++++++++++++
> 1 file changed, 12 insertions(+)
>
> diff --git a/arch/riscv/boot/dts/thead/th1520.dtsi b/arch/riscv/boot/dts/thead/th1520.dtsi
> index 6992060e6a54..435f0ab0174d 100644
> --- a/arch/riscv/boot/dts/thead/th1520.dtsi
> +++ b/arch/riscv/boot/dts/thead/th1520.dtsi
> @@ -555,5 +555,17 @@ portf: gpio-controller@0 {
> interrupts = <55 IRQ_TYPE_LEVEL_HIGH>;
> };
> };
> +
> + mbox_910t: mailbox@...fc38000 {
Hi Michal,
Thanks for your patch! Please sort this by address similar to the other nodes.
> + compatible = "thead,th1520-mbox";
> + reg = <0xff 0xffc38000 0x0 0x4000>,
The documentation[1] calls this area MBOX0_T, but it says it's 24kB long.
[1]: https://git.beagleboard.org/beaglev-ahead/beaglev-ahead/-/blob/main/docs/TH1520%20System%20User%20Manual.pdf
> + <0xff 0xffc44000 0x0 0x1000>,
According to the documentation this is inside the 24kB MBOX1_T area.
> + <0xff 0xffc4c000 0x0 0x1000>,
This is callod MBOX2_T, but is 8kB long.
> + <0xff 0xffc54000 0x0 0x1000>;
This is callod MBOX3_T, but is 8kB long.
> + reg-names = "local", "remote-icu0", "remote-icu1", "remote-icu2";
Maybe these should match the MBOXn_T names in the documentation?
> + interrupt-parent = <&plic>;
> + interrupts = <28 IRQ_TYPE_LEVEL_HIGH>;
You should probably also add the clocks here:
clocks = <&clk CLK_MBOX0>, .., <&clk CLK_MBOX3>;
..and claim them in the driver. Otherwise the clock framework will consider
them unused and turn them off without the clk_ignore_unesed kernel command
line.
/Emil
> + #mbox-cells = <2>;
> + };
> };
> };
> --
> 2.34.1
>
>
> _______________________________________________
> linux-riscv mailing list
> linux-riscv@...ts.infradead.org
> http://lists.infradead.org/mailman/listinfo/linux-riscv
Powered by blists - more mailing lists