From: <Claudiu.Beznea@microchip.com>
To: <Durai.ManickamKR@microchip.com>, <Hari.PrasathGE@microchip.com>,
<Balamanikandan.Gunasundar@microchip.com>,
<Manikandan.M@microchip.com>, <Varshini.Rajendran@microchip.com>,
<Dharma.B@microchip.com>, <Nayabbasha.Sayed@microchip.com>,
<Balakrishnan.S@microchip.com>, <Cristian.Birsan@microchip.com>,
<Nicolas.Ferre@microchip.com>, <krzysztof.kozlowski@linaro.org>,
<alexandre.belloni@bootlin.com>, <davem@davemloft.net>,
<arnd@arndb.de>, <olof@lixom.net>, <soc@kernel.org>,
<devicetree@vger.kernel.org>,
<linux-arm-kernel@lists.infradead.org>,
<linux-kernel@vger.kernel.org>,
<Kavyasree.Kotagiri@microchip.com>,
<Horatiu.Vultur@microchip.com>, <robh+dt@kernel.org>,
<andrew@lunn.ch>, <michael@walle.cc>, <Jerry.Ray@microchip.com>
Subject: Re: [PATCH v4 5/8] ARM: dts: at91: sam9x60: Add DMA bindings for the flexcom nodes
Date: Mon, 16 Jan 2023 09:56:09 +0000 [thread overview]
Message-ID: <62154915-69b1-d8ee-db2a-b70a313946a7@microchip.com> (raw)
In-Reply-To: <20230112110208.97946-6-durai.manickamkr@microchip.com>
On 12.01.2023 13:02, Durai Manickam KR wrote:
> From: Manikandan Muralidharan <manikandan.m@microchip.com>
>
> Add dma bindings for flexcom nodes in the soc dtsi file. Users those who
> don't wish to use the DMA function for their flexcom functions can
> overwrite the dma bindings in the board device tree file.
>
> Signed-off-by: Manikandan Muralidharan <manikandan.m@microchip.com>
> [durai.manickamkr@microchip.com: fixed code indentation and updated commit log]
> Signed-off-by: Durai Manickam KR <durai.manickamkr@microchip.com>
Reviewed-by: Claudiu Beznea <claudiu.beznea@microchip.com>
> ---
> arch/arm/boot/dts/at91-sam9x60ek.dts | 3 +++
> arch/arm/boot/dts/sam9x60.dtsi | 27 +++++++++++++++++++++++++++
> 2 files changed, 30 insertions(+)
>
> diff --git a/arch/arm/boot/dts/at91-sam9x60ek.dts b/arch/arm/boot/dts/at91-sam9x60ek.dts
> index 6b6391d5041e..180e4b1aa2f6 100644
> --- a/arch/arm/boot/dts/at91-sam9x60ek.dts
> +++ b/arch/arm/boot/dts/at91-sam9x60ek.dts
> @@ -209,6 +209,7 @@ &flx0 {
> i2c0: i2c@600 {
> #address-cells = <1>;
> #size-cells = <0>;
> + dmas = <0>, <0>;
> pinctrl-names = "default";
> pinctrl-0 = <&pinctrl_flx0_default>;
> i2c-analog-filter;
> @@ -230,6 +231,7 @@ &flx4 {
> status = "disabled";
>
> spi4: spi@400 {
> + dmas = <0>, <0>;
> pinctrl-names = "default";
> pinctrl-0 = <&pinctrl_flx4_default>;
> status = "disabled";
> @@ -254,6 +256,7 @@ &flx6 {
> i2c6: i2c@600 {
> #address-cells = <1>;
> #size-cells = <0>;
> + dmas = <0>, <0>;
> pinctrl-names = "default";
> pinctrl-0 = <&pinctrl_flx6_default>;
> i2c-analog-filter;
> diff --git a/arch/arm/boot/dts/sam9x60.dtsi b/arch/arm/boot/dts/sam9x60.dtsi
> index fbdde3ab1086..8f44854dd8fa 100644
> --- a/arch/arm/boot/dts/sam9x60.dtsi
> +++ b/arch/arm/boot/dts/sam9x60.dtsi
> @@ -177,6 +177,15 @@ spi4: spi@400 {
> interrupts = <13 IRQ_TYPE_LEVEL_HIGH 7>;
> clocks = <&pmc PMC_TYPE_PERIPHERAL 13>;
> clock-names = "spi_clk";
> + dmas = <&dma0
> + (AT91_XDMAC_DT_MEM_IF(0) |
> + AT91_XDMAC_DT_PER_IF(1) |
> + AT91_XDMAC_DT_PERID(8))>,
> + <&dma0
> + (AT91_XDMAC_DT_MEM_IF(0) |
> + AT91_XDMAC_DT_PER_IF(1) |
> + AT91_XDMAC_DT_PERID(9))>;
> + dma-names = "tx", "rx";
> atmel,fifo-size = <16>;
> status = "disabled";
> };
> @@ -417,6 +426,15 @@ i2c6: i2c@600 {
> reg = <0x600 0x200>;
> interrupts = <9 IRQ_TYPE_LEVEL_HIGH 7>;
> clocks = <&pmc PMC_TYPE_PERIPHERAL 9>;
> + dmas = <&dma0
> + (AT91_XDMAC_DT_MEM_IF(0) |
> + AT91_XDMAC_DT_PER_IF(1) |
> + AT91_XDMAC_DT_PERID(12))>,
> + <&dma0
> + (AT91_XDMAC_DT_MEM_IF(0) |
> + AT91_XDMAC_DT_PER_IF(1) |
> + AT91_XDMAC_DT_PERID(13))>;
> + dma-names = "tx", "rx";
> atmel,fifo-size = <16>;
> status = "disabled";
> };
> @@ -456,6 +474,15 @@ i2c0: i2c@600 {
> reg = <0x600 0x200>;
> interrupts = <5 IRQ_TYPE_LEVEL_HIGH 7>;
> clocks = <&pmc PMC_TYPE_PERIPHERAL 5>;
> + dmas = <&dma0
> + (AT91_XDMAC_DT_MEM_IF(0) |
> + AT91_XDMAC_DT_PER_IF(1) |
> + AT91_XDMAC_DT_PERID(0))>,
> + <&dma0
> + (AT91_XDMAC_DT_MEM_IF(0) |
> + AT91_XDMAC_DT_PER_IF(1) |
> + AT91_XDMAC_DT_PERID(1))>;
> + dma-names = "tx", "rx";
> atmel,fifo-size = <16>;
> status = "disabled";
> };
next prev parent reply other threads:[~2023-01-16 9:56 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-01-12 11:02 [PATCH v4 0/8] Add support for sam9x60 curiosity board Durai Manickam KR
2023-01-12 11:02 ` [PATCH v4 1/8] ARM: dts: at91: sam9x60: Fix the label numbering for the flexcom functions Durai Manickam KR
2023-01-16 9:52 ` Claudiu.Beznea
2023-01-12 11:02 ` [PATCH v4 2/8] ARM: dts: at91: sam9x60: move flexcom definitions Durai Manickam KR
2023-01-16 9:50 ` Claudiu.Beznea
2023-01-12 11:02 ` [PATCH v4 3/8] ARM: dts: at91: sam9x60: fix spi4 node Durai Manickam KR
2023-01-16 9:52 ` Claudiu.Beznea
2023-01-12 11:02 ` [PATCH v4 4/8] ARM: dts: at91: sam9x60: Specify the FIFO size for the Flexcom UART Durai Manickam KR
2023-01-16 9:53 ` Claudiu.Beznea
2023-01-12 11:02 ` [PATCH v4 5/8] ARM: dts: at91: sam9x60: Add DMA bindings for the flexcom nodes Durai Manickam KR
2023-01-16 9:56 ` Claudiu.Beznea [this message]
2023-01-12 11:02 ` [PATCH v4 6/8] ARM: dts: at91: sam9x60: Add missing flexcom definitions Durai Manickam KR
2023-01-12 11:02 ` [PATCH v4 7/8] dt-bindings: arm: at91: Add info on sam9x60 curiosity Durai Manickam KR
2023-01-12 11:37 ` Krzysztof Kozlowski
2023-01-12 11:02 ` [PATCH v4 8/8] ARM: dts: at91: sam9x60_curiosity: Add device tree for sam9x60 curiosity board Durai Manickam KR
2023-01-16 10:49 ` Claudiu.Beznea
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=62154915-69b1-d8ee-db2a-b70a313946a7@microchip.com \
--to=claudiu.beznea@microchip.com \
--cc=Balakrishnan.S@microchip.com \
--cc=Balamanikandan.Gunasundar@microchip.com \
--cc=Cristian.Birsan@microchip.com \
--cc=Dharma.B@microchip.com \
--cc=Durai.ManickamKR@microchip.com \
--cc=Hari.PrasathGE@microchip.com \
--cc=Horatiu.Vultur@microchip.com \
--cc=Jerry.Ray@microchip.com \
--cc=Kavyasree.Kotagiri@microchip.com \
--cc=Manikandan.M@microchip.com \
--cc=Nayabbasha.Sayed@microchip.com \
--cc=Nicolas.Ferre@microchip.com \
--cc=Varshini.Rajendran@microchip.com \
--cc=alexandre.belloni@bootlin.com \
--cc=andrew@lunn.ch \
--cc=arnd@arndb.de \
--cc=davem@davemloft.net \
--cc=devicetree@vger.kernel.org \
--cc=krzysztof.kozlowski@linaro.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=michael@walle.cc \
--cc=olof@lixom.net \
--cc=robh+dt@kernel.org \
--cc=soc@kernel.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).