driver: ssp: update Intel SSP DAI driver to support dynamic SSP management

This commit refactors the Intel SSP DAI driver to support dynamic
management of SSP IP. This change additionally separates the management
of the DAI part from the management part of the SSP IP.

Key changes:
- Add new static functions to manage SSP IP power.
- Update the DAI SSP configuration functions to use the new management
  approach.
- Update device tree bindings and instances to reflect the new SSP IP
  management mechanism.

Signed-off-by: Damian Nikodem <damian.nikodem@intel.com>
This commit is contained in:
Damian Nikodem 2024-03-24 19:13:13 +01:00 committed by Alberto Escolar
commit 2455436337
9 changed files with 547 additions and 330 deletions

View file

@ -1,8 +1,7 @@
# Copyright (c) 2022 Intel Corporation
#
# Copyright (c) 2024 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
description: Intel SSP DAI controller
description: Intel SSP DAI node
compatible: "intel,ssp-dai"
@ -11,18 +10,3 @@ include: base.yaml
properties:
reg:
required: true
interrupts:
required: true
interrupt-parent:
required: true
dmas:
required: true
dma-names:
required: true
i2svss:
type: array

View file

@ -0,0 +1,32 @@
# Copyright (c) 2024 Intel Corporation
#
# SPDX-License-Identifier: Apache-2.0
description: Intel SSP DAI controller
compatible: "intel,ssp"
include: base.yaml
properties:
reg:
required: true
interrupts:
required: true
interrupt-parent:
required: true
dmas:
required: true
dma-names:
required: true
i2svss:
type: array
ssp-index:
type: int
required: true