Skip to content

add ASoC components for AHUB

Sameer Pujar alsa-devel linux-devicetree linux-tegra lkml 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest10 patches 28 repliesIn review
  2. v29 patches 36 repliesSuperseded
  3. v19 patches 33 repliesSuperseded

Changes in v3 from the cover letter · 21 lines

--------
* [1/10] "dt-bindings: sound: tegra: add DT binding for AHUB
- Updated licence
- Removed redundancy w.r.t items/const/enum
- Added constraints wherever needed with "pattern" property

* [2/10] "ASoC: tegra: add support for CIF programming"
- Removed tegra_cif.c
- Instead added inline helper function in tegra_cif.h

* common changes (for patch [3/10] to [7/10])
- Replace LATE system calls with Normal sleep
- Remove explicit RPM suspend in driver remove() call
- Use devm_kzalloc() instead of devm_kcalloc() for single element
- Replace 'ret' with 'err' for better reading
- Consistent error printing style across drivers
- Minor formating fixes

* [8/10] "arm64: tegra: add AHUB components for few Tegra chips"
- no change

* [9/10] "arm64: tegra: enable AHUB modules for few Tegra chips"
- no change

* [10/10] "arm64: defconfig: enable AHUB components for Tegra210 and later" (New patch)
- Enables ACONNECT and AHUB components. With this AHUB and components are registered with ASoC core.

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/10dt-bindings: sound: tegra: add DT binding for AHUBDocumentation/devicetree/bindings/sound/nvidia,tegra186-dspk.yaml Documentation/devicetree/bindings/sound/nvidia,tegra210-admaif.yaml Documentation/devicetree/bindings/sound/nvidia,tegra210-ahub.yaml +2 more+550 -02 replies
2/10ASoC: tegra: add support for CIF programmingsound/soc/tegra/tegra_cif.h+63 -02 replies
3/10ASoC: tegra: add Tegra210 based DMIC driversound/soc/tegra/Kconfig sound/soc/tegra/Makefile sound/soc/tegra/tegra210_dmic.c +1 more+613 -010 replies
4/10ASoC: tegra: add Tegra210 based I2S driversound/soc/tegra/Kconfig sound/soc/tegra/Makefile sound/soc/tegra/tegra210_i2s.c +1 more+1082 -02 replies
5/10ASoC: tegra: add Tegra210 based AHUB driversound/soc/tegra/Kconfig sound/soc/tegra/Makefile sound/soc/tegra/tegra210_ahub.c +1 more+788 -03 replies
6/10ASoC: tegra: add Tegra186 based DSPK driversound/soc/tegra/Kconfig sound/soc/tegra/Makefile sound/soc/tegra/tegra186_dspk.c +1 more+598 -02 replies
7/10ASoC: tegra: add Tegra210 based ADMAIF driversound/soc/tegra/Kconfig sound/soc/tegra/Makefile sound/soc/tegra/tegra210_admaif.c +3 more+1305 -23 replies
8/10arm64: tegra: add AHUB components for few Tegra chipsarch/arm64/boot/dts/nvidia/tegra186.dtsi arch/arm64/boot/dts/nvidia/tegra194.dtsi arch/arm64/boot/dts/nvidia/tegra210.dtsi+613 -21 reply
9/10arm64: tegra: enable AHUB modules for few Tegra chipsarch/arm64/boot/dts/nvidia/tegra186-p2771-0000.dts arch/arm64/boot/dts/nvidia/tegra194-p2972-0000.dts arch/arm64/boot/dts/nvidia/tegra210-p2371-2180.dts+124 -01 reply
10/10arm64: defconfig: enable AHUB components for Tegra210 and laterarch/arm64/configs/defconfig+7 -02 replies

Reviews trailers per patch

9 of 10 patches have a Reviewed-by or Acked-by.

PatchJon HunterDmitry Osipenko
1/10
2/10R-b R-b
3/10R-b R-b
4/10R-b
5/10R-b
6/10R-b
7/10R-b
8/10R-b
9/10R-b
10/10R-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v3 thread

Cover letter [PATCH v3 00/10] add ASoC components for AHUB

Overview
========
The Audio Hub (AHUB) is part of the Audio Processing Engine (APE) which comprises a collection of hardware accelerators for audio pre-processing and post-processing. It also includes a programmable full crossbar for routing audio data across these accelerators.

This series exposes some of these below mentioned HW devices as ASoC components for Tegra platforms from Tegra210 onwards.
* ADMAIF : The interface between ADMA and AHUB

 * XBAR   : Crossbar for routing audio samples across various modules
 * I2S    : Inter-IC Sound Controller
 * DMIC   : Digital Microphone
 * DSPK   : Digital Speaker

Following is the summary of current series.
1. Add YAML DT binding documentation for above mentioned modules.
2. Helper function for ACIF programming is exposed for Tegra210 and later.
3. Add ASoC driver components for each of the above modules.
4. Add DT entries for above components for Tegra210, Tegra186 and

    Tegra194.

5. Enable these components for Jetson-Tx1, Jetson-Tx2 and Jetson-Xavier.

Machine driver series will be sent separately.

Changelog
=========

v2 -> v3
--------
* [1/10] "dt-bindings: sound: tegra: add DT binding for AHUB
- Updated licence
- Removed redundancy w.r.t items/const/enum
- Added constraints wherever needed with "pattern" property

* [2/10] "ASoC: tegra: add support for CIF programming"
- Removed tegra_cif.c
- Instead added inline helper function in tegra_cif.h

* common changes (for patch [3/10] to [7/10])
- Replace LATE system calls with Normal sleep
- Remove explicit RPM suspend in driver remove() call
- Use devm_kzalloc() instead of devm_kcalloc() for single element
- Replace 'ret' with 'err' for better reading
- Consistent error printing style across drivers
- Minor formating fixes

* [8/10] "arm64: tegra: add AHUB components for few Tegra chips"
- no change

* [9/10] "arm64: tegra: enable AHUB modules for few Tegra chips"
- no change

* [10/10] "arm64: defconfig: enable AHUB components for Tegra210 and later" (New patch)
- Enables ACONNECT and AHUB components. With this AHUB and components are registered with ASoC core.

v1 -> v2
--------
* [1/9] "dt-bindings: sound: tegra: add DT binding for AHUB"
- no changes

* [2/9] "ASoC: tegra: add support for CIF programming"
- removed CIF programming changes for legacy chips.
- this patch now exposes helper function for CIF programming, which can be used on Tegra210 later.
- later tegra_cif.c can be extended for legacy chips as well.
- updated commit message accordingly

* [3/9] "ASoC: tegra: add Tegra210 based DMIC driver"
- removed unnecessary initialization of 'ret' in probe()

* [4/9] "ASoC: tegra: add Tegra210 based I2S driver"
- removed unnecessary initialization of 'ret' in probe()
- fixed indentation
- added consistent bracing for if-else clauses
- updated 'rx_fifo_th' type to 'unsigned int'
- used BIT() macro for defines like '1 << {x}' in tegra210_i2s.h

* [5/9] "ASoC: tegra: add Tegra210 based AHUB driver"
- used of_device_get_match_data() to get 'soc_data' and removed explicit of_match_device()
- used devm_platform_ioremap_resource() and removed explicit platform_get_resource()
- fixed indentation for devm_snd_soc_register_component()
- updated commit message
- updated commit message to reflect compatible binding for Tegra186 and

     Tegra194.

* [6/9] "ASoC: tegra: add Tegra186 based DSPK driver"
- removed unnecessary initialization of 'ret' in probe()
- updated 'max_th' to 'unsigned int'
- shortened lengthy macro names to avoid wrapping in tegra186_dspk_wr_reg() and to be consistent

* [7/9] "ASoC: tegra: add Tegra210 based ADMAIF driver"
- used of_device_get_match_data() and removed explicit of_match_device()
- used BIT() macro for defines like '1 << {x}' in tegra210_admaif.h
- updated commit message to reflect compatible binding for Tegra186 and

     Tegra194.

* [8/9] "arm64: tegra: add AHUB components for few Tegra chips"
- no change

* [9/9] "arm64: tegra: enable AHUB modules for few Tegra chips"
- no change

* common changes for patch [3/9] to [7/9]
- sorted headers in alphabetical order
- moved MODULE_DEVICE_TABLE() right below *_of_match table
- removed macro DRV_NAME
- removed explicit 'owner' field from platform_driver structure
- added 'const' to snd_soc_dai_ops structure

=================
Sameer Pujar (10):
dt-bindings: sound: tegra: add DT binding for AHUB
ASoC: tegra: add support for CIF programming
ASoC: tegra: add Tegra210 based DMIC driver
ASoC: tegra: add Tegra210 based I2S driver
ASoC: tegra: add Tegra210 based AHUB driver
ASoC: tegra: add Tegra186 based DSPK driver
ASoC: tegra: add Tegra210 based ADMAIF driver
arm64: tegra: add AHUB components for few Tegra chips
arm64: tegra: enable AHUB modules for few Tegra chips
arm64: defconfig: enable AHUB components for Tegra210 and later

 .../bindings/sound/nvidia,tegra186-dspk.yaml       |  88 ++
 .../bindings/sound/nvidia,tegra210-admaif.yaml     | 163 ++++
 .../bindings/sound/nvidia,tegra210-ahub.yaml       | 110 +++
 .../bindings/sound/nvidia,tegra210-dmic.yaml       |  88 ++
 .../bindings/sound/nvidia,tegra210-i2s.yaml        | 101 +++
 arch/arm64/boot/dts/nvidia/tegra186-p2771-0000.dts |  48 ++
 arch/arm64/boot/dts/nvidia/tegra186.dtsi           | 231 ++++-
 arch/arm64/boot/dts/nvidia/tegra194-p2972-0000.dts |  36 +
 arch/arm64/boot/dts/nvidia/tegra194.dtsi           | 239 +++++-
 arch/arm64/boot/dts/nvidia/tegra210-p2371-2180.dts |  40 +
 arch/arm64/boot/dts/nvidia/tegra210.dtsi           | 145 ++++
 arch/arm64/configs/defconfig                       |   7 +
 sound/soc/tegra/Kconfig                            |  56 ++
 sound/soc/tegra/Makefile                           |  10 +
 sound/soc/tegra/tegra186_dspk.c                    | 510 +++++++++++
 sound/soc/tegra/tegra186_dspk.h                    |  73 ++
 sound/soc/tegra/tegra210_admaif.c                  | 884 +++++++++++++++++++
 sound/soc/tegra/tegra210_admaif.h                  | 164 ++++
 sound/soc/tegra/tegra210_ahub.c                    | 651 ++++++++++++++
 sound/soc/tegra/tegra210_ahub.h                    | 125 +++
 sound/soc/tegra/tegra210_dmic.c                    | 515 +++++++++++
 sound/soc/tegra/tegra210_dmic.h                    |  85 ++
 sound/soc/tegra/tegra210_i2s.c                     | 938 +++++++++++++++++++++
 sound/soc/tegra/tegra210_i2s.h                     | 132 +++
 sound/soc/tegra/tegra_cif.h                        |  63 ++
 sound/soc/tegra/tegra_pcm.c                        | 222 ++++-
 sound/soc/tegra/tegra_pcm.h                        |  23 +-
 27 files changed, 5743 insertions(+), 4 deletions(-)
 create mode 100644 Documentation/devicetree/bindings/sound/nvidia,tegra186-dspk.yaml
 create mode 100644 Documentation/devicetree/bindings/sound/nvidia,tegra210-admaif.yaml
 create mode 100644 Documentation/devicetree/bindings/sound/nvidia,tegra210-ahub.yaml
 create mode 100644 Documentation/devicetree/bindings/sound/nvidia,tegra210-dmic.yaml
 create mode 100644 Documentation/devicetree/bindings/sound/nvidia,tegra210-i2s.yaml
 create mode 100644 sound/soc/tegra/tegra186_dspk.c
 create mode 100644 sound/soc/tegra/tegra186_dspk.h
 create mode 100644 sound/soc/tegra/tegra210_admaif.c
 create mode 100644 sound/soc/tegra/tegra210_admaif.h
 create mode 100644 sound/soc/tegra/tegra210_ahub.c
 create mode 100644 sound/soc/tegra/tegra210_ahub.h
 create mode 100644 sound/soc/tegra/tegra210_dmic.c
 create mode 100644 sound/soc/tegra/tegra210_dmic.h
 create mode 100644 sound/soc/tegra/tegra210_i2s.c
 create mode 100644 sound/soc/tegra/tegra210_i2s.h
 create mode 100644 sound/soc/tegra/tegra_cif.h
Signature · 1 line
2.7.4