Skip to content

Commit 6b7e0f1

Browse files
pwojtaszczyk-tsvzapolskiy
authored andcommitted
ARM: dts: lpc32xx: Add missing DMA properties
Add properties declared in the new DT binding nxp,lpc3220-dmamux.yaml and corresponding phandles. [vzapolskiy]: 1. rebased the change, 2. dmamux unit address shall be 0x78 instead of 0x7c, 3. removed unsupported 'dmas' properties from sd, ssp0, ssp1 and HS UARTs, 4. more non-functional updates by reordering properies, 5. minor updates to the commit message. Link to the original change: * https://lore.kernel.org/linux-arm-kernel/20240627150046.258795-6-piotr.wojtaszczyk@timesys.com/ Signed-off-by: Piotr Wojtaszczyk <piotr.wojtaszczyk@timesys.com> Signed-off-by: Vladimir Zapolskiy <vz@mleia.com>
1 parent 8754c6e commit 6b7e0f1

1 file changed

Lines changed: 25 additions & 0 deletions

File tree

arch/arm/boot/dts/nxp/lpc/lpc32xx.dtsi

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,8 @@
6767
reg = <0x20020000 0x1000>;
6868
interrupts = <11 IRQ_TYPE_LEVEL_HIGH>;
6969
clocks = <&clk LPC32XX_CLK_SLC>;
70+
dmas = <&dma 1 1>;
71+
dma-names = "rx-tx";
7072
status = "disabled";
7173
};
7274

@@ -75,6 +77,8 @@
7577
reg = <0x200a8000 0x11000>;
7678
interrupts = <11 IRQ_TYPE_LEVEL_HIGH>;
7779
clocks = <&clk LPC32XX_CLK_MLC>;
80+
dmas = <&dma 12 1>;
81+
dma-names = "rx-tx";
7882
status = "disabled";
7983
};
8084

@@ -84,6 +88,12 @@
8488
interrupts = <28 IRQ_TYPE_LEVEL_HIGH>;
8589
clocks = <&clk LPC32XX_CLK_DMA>;
8690
clock-names = "apb_pclk";
91+
dma-channels = <8>;
92+
dma-requests = <16>;
93+
lli-bus-interface-ahb1;
94+
mem-bus-interface-ahb1;
95+
memcpy-burst-size = <256>;
96+
memcpy-bus-width = <32>;
8797
#dma-cells = <2>;
8898
};
8999

@@ -184,6 +194,8 @@
184194
compatible = "nxp,lpc3220-spi";
185195
reg = <0x20088000 0x1000>;
186196
clocks = <&clk LPC32XX_CLK_SPI1>;
197+
dmas = <&dmamux 11 1 0>;
198+
dma-names = "rx-tx";
187199
#address-cells = <1>;
188200
#size-cells = <0>;
189201
status = "disabled";
@@ -208,6 +220,8 @@
208220
compatible = "nxp,lpc3220-spi";
209221
reg = <0x20090000 0x1000>;
210222
clocks = <&clk LPC32XX_CLK_SPI2>;
223+
dmas = <&dmamux 3 1 0>;
224+
dma-names = "rx-tx";
211225
#address-cells = <1>;
212226
#size-cells = <0>;
213227
status = "disabled";
@@ -216,6 +230,8 @@
216230
i2s0: i2s@20094000 {
217231
compatible = "nxp,lpc3220-i2s";
218232
reg = <0x20094000 0x1000>;
233+
dmas = <&dma 0 1>, <&dma 13 1>;
234+
dma-names = "rx", "tx";
219235
status = "disabled";
220236
};
221237

@@ -232,6 +248,8 @@
232248
i2s1: i2s@2009c000 {
233249
compatible = "nxp,lpc3220-i2s";
234250
reg = <0x2009c000 0x1000>;
251+
dmas = <&dma 2 1>, <&dmamux 10 1 1>;
252+
dma-names = "rx", "tx";
235253
status = "disabled";
236254
};
237255

@@ -322,6 +340,13 @@
322340
clocks = <&xtal_32k>, <&xtal>;
323341
clock-names = "xtal_32k", "xtal";
324342
};
343+
344+
dmamux: dma-router@78 {
345+
compatible = "nxp,lpc3220-dmamux";
346+
reg = <0x78 0x8>;
347+
dma-masters = <&dma>;
348+
#dma-cells = <3>;
349+
};
325350
};
326351

327352
mic: interrupt-controller@40008000 {

0 commit comments

Comments
 (0)