dts/bindings: Add optionnal dmas and dma-names to base.yaml
dmas and dma-names properties could be used by a wide range of potential dma client, hence put them in base.yaml, as optional properties. Since current stm32-i2s driver implementation only support dma, set these properties as required. Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
This commit is contained in:
parent
d4867ff058
commit
f1977aebc4
|
@ -70,3 +70,13 @@ properties:
|
|||
type: int
|
||||
required: false
|
||||
description: number of size cells in reg property
|
||||
|
||||
dmas:
|
||||
required: false
|
||||
type: phandle-array
|
||||
description: DMA channels specifiers
|
||||
|
||||
dma-names:
|
||||
required: false
|
||||
type: string-array
|
||||
description: Provided names of DMA channel specifiers
|
||||
|
|
|
@ -1,16 +0,0 @@
|
|||
# Copyright (c) 2019, Linaro Limited
|
||||
# Copyright (c) 2019, Song Qiang <songqiang1304521@gmail.com>
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
# Common fields for DMA users
|
||||
|
||||
properties:
|
||||
dmas:
|
||||
required: true
|
||||
type: phandle-array
|
||||
description: DMA instances information
|
||||
|
||||
dma-names:
|
||||
required: false
|
||||
type: string-array
|
||||
description: name of each dma instance
|
|
@ -5,7 +5,7 @@ description: STM32 I2S controller
|
|||
|
||||
compatible: "st,stm32-i2s"
|
||||
|
||||
include: [i2s-controller.yaml, dma.yaml]
|
||||
include: [i2s-controller.yaml]
|
||||
|
||||
properties:
|
||||
reg:
|
||||
|
@ -14,5 +14,8 @@ properties:
|
|||
interrupts:
|
||||
required: true
|
||||
|
||||
dmas:
|
||||
required: true
|
||||
|
||||
dma-names:
|
||||
required: true
|
||||
|
|
Loading…
Reference in a new issue