1*39ce725eSGuodong Xu# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2*39ce725eSGuodong Xu%YAML 1.2 3*39ce725eSGuodong Xu--- 4*39ce725eSGuodong Xu$id: http://devicetree.org/schemas/dma/spacemit,k1-pdma.yaml# 5*39ce725eSGuodong Xu$schema: http://devicetree.org/meta-schemas/core.yaml# 6*39ce725eSGuodong Xu 7*39ce725eSGuodong Xutitle: SpacemiT K1 PDMA Controller 8*39ce725eSGuodong Xu 9*39ce725eSGuodong Xumaintainers: 10*39ce725eSGuodong Xu - Guodong Xu <guodong@riscstar.com> 11*39ce725eSGuodong Xu 12*39ce725eSGuodong XuallOf: 13*39ce725eSGuodong Xu - $ref: dma-controller.yaml# 14*39ce725eSGuodong Xu 15*39ce725eSGuodong Xuproperties: 16*39ce725eSGuodong Xu compatible: 17*39ce725eSGuodong Xu const: spacemit,k1-pdma 18*39ce725eSGuodong Xu 19*39ce725eSGuodong Xu reg: 20*39ce725eSGuodong Xu maxItems: 1 21*39ce725eSGuodong Xu 22*39ce725eSGuodong Xu interrupts: 23*39ce725eSGuodong Xu description: Shared interrupt for all DMA channels 24*39ce725eSGuodong Xu maxItems: 1 25*39ce725eSGuodong Xu 26*39ce725eSGuodong Xu clocks: 27*39ce725eSGuodong Xu maxItems: 1 28*39ce725eSGuodong Xu 29*39ce725eSGuodong Xu resets: 30*39ce725eSGuodong Xu maxItems: 1 31*39ce725eSGuodong Xu 32*39ce725eSGuodong Xu dma-channels: 33*39ce725eSGuodong Xu maximum: 16 34*39ce725eSGuodong Xu 35*39ce725eSGuodong Xu '#dma-cells': 36*39ce725eSGuodong Xu const: 1 37*39ce725eSGuodong Xu description: 38*39ce725eSGuodong Xu The DMA request number for the peripheral device. 39*39ce725eSGuodong Xu 40*39ce725eSGuodong Xurequired: 41*39ce725eSGuodong Xu - compatible 42*39ce725eSGuodong Xu - reg 43*39ce725eSGuodong Xu - interrupts 44*39ce725eSGuodong Xu - clocks 45*39ce725eSGuodong Xu - resets 46*39ce725eSGuodong Xu - dma-channels 47*39ce725eSGuodong Xu - '#dma-cells' 48*39ce725eSGuodong Xu 49*39ce725eSGuodong XuunevaluatedProperties: false 50*39ce725eSGuodong Xu 51*39ce725eSGuodong Xuexamples: 52*39ce725eSGuodong Xu - | 53*39ce725eSGuodong Xu #include <dt-bindings/clock/spacemit,k1-syscon.h> 54*39ce725eSGuodong Xu 55*39ce725eSGuodong Xu soc { 56*39ce725eSGuodong Xu #address-cells = <2>; 57*39ce725eSGuodong Xu #size-cells = <2>; 58*39ce725eSGuodong Xu 59*39ce725eSGuodong Xu dma-controller@d4000000 { 60*39ce725eSGuodong Xu compatible = "spacemit,k1-pdma"; 61*39ce725eSGuodong Xu reg = <0x0 0xd4000000 0x0 0x4000>; 62*39ce725eSGuodong Xu interrupts = <72>; 63*39ce725eSGuodong Xu clocks = <&syscon_apmu CLK_DMA>; 64*39ce725eSGuodong Xu resets = <&syscon_apmu RESET_DMA>; 65*39ce725eSGuodong Xu dma-channels = <16>; 66*39ce725eSGuodong Xu #dma-cells = <1>; 67*39ce725eSGuodong Xu }; 68*39ce725eSGuodong Xu }; 69