dts: bindings: add audio related dts bindings for imx-rt
add anatop, i2s and pinmux dts Signed-off-by: Hake Huang <hake.huang@oss.nxp.com>
This commit is contained in:
parent
5ef63d8313
commit
f417678e6d
4 changed files with 131 additions and 1 deletions
38
dts/bindings/clock/nxp,imx-anatop.yaml
Normal file
38
dts/bindings/clock/nxp,imx-anatop.yaml
Normal file
|
@ -0,0 +1,38 @@
|
|||
# Copyright (c) 2021, NXP
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
description: i.MX ANATOP (Analog Clock Controller Module) IP node
|
||||
|
||||
compatible: "nxp,imx-anatop"
|
||||
|
||||
include: [clock-controller.yaml, base.yaml]
|
||||
|
||||
properties:
|
||||
reg:
|
||||
required: true
|
||||
|
||||
label:
|
||||
required: true
|
||||
|
||||
"#clock-cells":
|
||||
type: int
|
||||
const: 4
|
||||
required: true
|
||||
description: Number of items to expect in a clock specifier
|
||||
|
||||
"#pll-clock-cells":
|
||||
type: int
|
||||
const: 3
|
||||
required: true
|
||||
description: Number of items to expect in a PLL specifier
|
||||
|
||||
clock-cells:
|
||||
- name
|
||||
- offset
|
||||
- bits
|
||||
- value
|
||||
|
||||
pll-clock-cells:
|
||||
- offset
|
||||
- bits
|
||||
- value
|
70
dts/bindings/i2s/nxp,mcux-i2s.yaml
Normal file
70
dts/bindings/i2s/nxp,mcux-i2s.yaml
Normal file
|
@ -0,0 +1,70 @@
|
|||
# Copyright (c) 2021, NXP
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
description: NXP mcux SAI-I2S controller
|
||||
|
||||
compatible: "nxp,mcux-i2s"
|
||||
|
||||
include: [i2s-controller.yaml]
|
||||
|
||||
properties:
|
||||
reg:
|
||||
required: true
|
||||
|
||||
interrupts:
|
||||
required: true
|
||||
|
||||
dma-names:
|
||||
required: true
|
||||
|
||||
nxp,tx-dma-channel:
|
||||
type: int
|
||||
required: true
|
||||
description: tx dma channel number
|
||||
|
||||
nxp,rx-dma-channel:
|
||||
type: int
|
||||
required: true
|
||||
description: rx dma channel number
|
||||
|
||||
nxp,tx-sync-mode:
|
||||
type: boolean
|
||||
required: false
|
||||
description: tx sync mode
|
||||
|
||||
nxp,rx-sync-mode:
|
||||
type: boolean
|
||||
required: false
|
||||
description: rx sync mode
|
||||
|
||||
pre-div:
|
||||
type: int
|
||||
required: false
|
||||
description: pre divider
|
||||
|
||||
podf:
|
||||
type: int
|
||||
required: false
|
||||
description: post-divider fraction
|
||||
|
||||
pll-clocks:
|
||||
type: phandle-array
|
||||
required: false
|
||||
description: pll settings
|
||||
specifier-space: pll-clock
|
||||
|
||||
pll-clock-names:
|
||||
required: false
|
||||
type: string-array
|
||||
description: Provided names of pll-clock specifiers
|
||||
|
||||
pinmuxes:
|
||||
type: phandle-array
|
||||
required: false
|
||||
specifier-space: pinmux
|
||||
description: iomux settings
|
||||
|
||||
nxp,tx-channel:
|
||||
type: int
|
||||
required: false
|
||||
description: tx channel the maximum number is SOC dependent
|
19
dts/bindings/pinctrl/nxp,imx-pinmux.yaml
Normal file
19
dts/bindings/pinctrl/nxp,imx-pinmux.yaml
Normal file
|
@ -0,0 +1,19 @@
|
|||
# Copyright (c) 2021, NXP
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
description: i.MX IOMUXC node
|
||||
|
||||
compatible: "nxp,imx-pinmux"
|
||||
|
||||
include: base.yaml
|
||||
|
||||
properties:
|
||||
reg:
|
||||
required: true
|
||||
|
||||
label:
|
||||
required: true
|
||||
|
||||
pinmux-cells:
|
||||
- pin
|
||||
- function
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2017, NXP
|
||||
* Copyright (c) 2017-2021, NXP
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
@ -19,5 +19,8 @@
|
|||
#define IMX_CCM_UART_CLK 9
|
||||
#define IMX_CCM_CAN_CLK 10
|
||||
#define IMX_CCM_GPT_CLK 11
|
||||
#define IMX_CCM_SAI1_CLK 12
|
||||
#define IMX_CCM_SAI2_CLK 13
|
||||
#define IMX_CCM_SAI3_CLK 14
|
||||
|
||||
#endif /* ZEPHYR_INCLUDE_DT_BINDINGS_CLOCK_IMX_CCM_H_ */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue