lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CAOwMV_yFukOeH9k3DDWJv3RWYV3-VEgQR=xS7art2VR421Ynjw@mail.gmail.com>
Date:   Wed, 9 Dec 2020 12:48:42 +0100
From:   Fabien Parent <fparent@...libre.com>
To:     Rob Herring <robh+dt@...nel.org>,
        Matthias Brugger <matthias.bgg@...il.com>
Cc:     DTML <devicetree@...r.kernel.org>,
        Linux ARM <linux-arm-kernel@...ts.infradead.org>,
        "moderated list:ARM/Mediatek SoC support" 
        <linux-mediatek@...ts.infradead.org>,
        linux-kernel <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH v2 2/2] 📤 arm64: dts: mediatek: mt8516: add support for APDMA

Sorry, resending without the unicode symbol in the title

On Wed, Dec 9, 2020 at 12:44 PM Fabien Parent <fparent@...libre.com> wrote:
>
> Add support the APDMA IP on MT8516. APDMA is a DMA controller
> for UARTs.
>
> Signed-off-by: Fabien Parent <fparent@...libre.com>
> ---
>
> V2: Add missing dma-names properties on uart nodes
>
>  arch/arm64/boot/dts/mediatek/mt8516.dtsi | 30 ++++++++++++++++++++++++
>  1 file changed, 30 insertions(+)
>
> diff --git a/arch/arm64/boot/dts/mediatek/mt8516.dtsi b/arch/arm64/boot/dts/mediatek/mt8516.dtsi
> index e6e4d9d60094..b80e95574bef 100644
> --- a/arch/arm64/boot/dts/mediatek/mt8516.dtsi
> +++ b/arch/arm64/boot/dts/mediatek/mt8516.dtsi
> @@ -276,6 +276,27 @@ gic: interrupt-controller@...10000 {
>                                 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>;
>                 };
>
> +               apdma: dma-controller@...00480 {
> +                       compatible = "mediatek,mt8516-uart-dma",
> +                                    "mediatek,mt6577-uart-dma";
> +                       reg = <0 0x11000480 0 0x80>,
> +                             <0 0x11000500 0 0x80>,
> +                             <0 0x11000580 0 0x80>,
> +                             <0 0x11000600 0 0x80>,
> +                             <0 0x11000980 0 0x80>,
> +                             <0 0x11000a00 0 0x80>;
> +                       interrupts = <GIC_SPI 96 IRQ_TYPE_LEVEL_LOW>,
> +                                    <GIC_SPI 97 IRQ_TYPE_LEVEL_LOW>,
> +                                    <GIC_SPI 98 IRQ_TYPE_LEVEL_LOW>,
> +                                    <GIC_SPI 99 IRQ_TYPE_LEVEL_LOW>,
> +                                    <GIC_SPI 100 IRQ_TYPE_LEVEL_LOW>,
> +                                    <GIC_SPI 101 IRQ_TYPE_LEVEL_LOW>;
> +                       dma-requests = <6>;
> +                       clocks = <&topckgen CLK_TOP_APDMA>;
> +                       clock-names = "apdma";
> +                       #dma-cells = <1>;
> +               };
> +
>                 uart0: serial@...05000 {
>                         compatible = "mediatek,mt8516-uart",
>                                      "mediatek,mt6577-uart";
> @@ -284,6 +305,9 @@ uart0: serial@...05000 {
>                         clocks = <&topckgen CLK_TOP_UART0_SEL>,
>                                  <&topckgen CLK_TOP_UART0>;
>                         clock-names = "baud", "bus";
> +                       dmas = <&apdma 0
> +                               &apdma 1>;
> +                       dma-names = "tx", "rx";
>                         status = "disabled";
>                 };
>
> @@ -295,6 +319,9 @@ uart1: serial@...06000 {
>                         clocks = <&topckgen CLK_TOP_UART1_SEL>,
>                                  <&topckgen CLK_TOP_UART1>;
>                         clock-names = "baud", "bus";
> +                       dmas = <&apdma 2
> +                               &apdma 3>;
> +                       dma-names = "tx", "rx";
>                         status = "disabled";
>                 };
>
> @@ -306,6 +333,9 @@ uart2: serial@...07000 {
>                         clocks = <&topckgen CLK_TOP_UART2_SEL>,
>                                  <&topckgen CLK_TOP_UART2>;
>                         clock-names = "baud", "bus";
> +                       dmas = <&apdma 4
> +                               &apdma 5>;
> +                       dma-names = "tx", "rx";
>                         status = "disabled";
>                 };
>
> --
> 2.29.2
>

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ