On Fri, Oct 09, 2026 at 05:19:32PM +0800, Binbin Zhou wrote: > Add DT binding constants for the Loongson-2 DMA mux. > > The header defines the peripheral request IDs used in the DMA specifier > for Loongson-2K0300, covering UART0-9, I2C0-3, > SPI2/3, I2S, ADC and CAN0-3. It also documents the channel-pair semantics > for peripherals that use paired DMA channels. > > Signed-off-by: Binbin Zhou Squash this with the binding patch please. If checkpatch told you to split this, binding headers are bindings and such that warning is a false positive. pw-bot: changes-requested Thanks, Conor. > --- > MAINTAINERS | 1 + > .../dt-bindings/dma/loongson,ls2k-dmamux.h | 53 +++++++++++++++++++ > 2 files changed, 54 insertions(+) > create mode 100644 include/dt-bindings/dma/loongson,ls2k-dmamux.h > > diff --git a/MAINTAINERS b/MAINTAINERS > index 42f5165019ee..172dde21275f 100644 > --- a/MAINTAINERS > +++ b/MAINTAINERS > @@ -15354,6 +15354,7 @@ F: Documentation/devicetree/bindings/dma/loongson,ls2k0300-dma.yaml > F: Documentation/devicetree/bindings/dma/loongson,ls2x-apbdma.yaml > F: drivers/dma/loongson/loongson2-apb-cmc-dma.c > F: drivers/dma/loongson/loongson2-apb-dma.c > +F: include/dt-bindings/dma/loongson,ls2k-dmamux.h > > LOONGSON LS2X I2C DRIVER > M: Binbin Zhou > diff --git a/include/dt-bindings/dma/loongson,ls2k-dmamux.h b/include/dt-bindings/dma/loongson,ls2k-dmamux.h > new file mode 100644 > index 000000000000..1e2907ab069d > --- /dev/null > +++ b/include/dt-bindings/dma/loongson,ls2k-dmamux.h > @@ -0,0 +1,53 @@ > +/* SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) */ > +/* > + * Loongson-2 SoC DMA Mux dt-bindings > + * > + * DMA specifier format: > + * dmas = <&dma_mux >; > + * > + * The cell selects a physical CMC DMA channel (0-7) > + * For peripherals using channel pairs (UART, I2C, SPI2/3, I2S), > + * the channel number selects the pair: 0/1 -> pair 0, 2/3 -> pair 1, > + * 4/5 -> pair 2, 6/7 -> pair 3. > + * > + * Copyright (C) 2026 Loongson Technology Corporation Limited > + */ > + > +#ifndef _DT_BINDINGS_DMA_LOONGSON_LS2K_DMAMUX_H > +#define _DT_BINDINGS_DMA_LOONGSON_LS2K_DMAMUX_H > + > +/* UART controllers */ > +#define LS2K0300_DMA_UART0 0 > +#define LS2K0300_DMA_UART1 1 > +#define LS2K0300_DMA_UART2 2 > +#define LS2K0300_DMA_UART3 3 > +#define LS2K0300_DMA_UART4 4 > +#define LS2K0300_DMA_UART5 5 > +#define LS2K0300_DMA_UART6 6 > +#define LS2K0300_DMA_UART7 7 > +#define LS2K0300_DMA_UART8 8 > +#define LS2K0300_DMA_UART9 9 > + > +/* I2C controllers */ > +#define LS2K0300_DMA_I2C0 10 > +#define LS2K0300_DMA_I2C1 11 > +#define LS2K0300_DMA_I2C2 12 > +#define LS2K0300_DMA_I2C3 13 > + > +/* SPI controllers (IO mode) */ > +#define LS2K0300_DMA_SPI2 14 > +#define LS2K0300_DMA_SPI3 15 > + > +/* I2S controller */ > +#define LS2K0300_DMA_I2S 16 > + > +/* ADC controller */ > +#define LS2K0300_DMA_ADC 17 > + > +/* CAN-FD controllers */ > +#define LS2K0300_DMA_CAN0 18 > +#define LS2K0300_DMA_CAN1 19 > +#define LS2K0300_DMA_CAN2 20 > +#define LS2K0300_DMA_CAN3 21 > + > +#endif /* _DT_BINDINGS_DMA_LOONGSON_LS2K_DMAMUX_H */ > -- > 2.52.0 >