reset: meson: add audio arb controller
Jerome Brunet
reviewercover reset: meson: add audio arb controller
This patchset adds the audio ARB controller which is necessary to enable or disable the DDR access for the FIFOs of the audio subsystem.
Jerome Brunet (2):
reset: meson: add dt-bindings for meson-axg audio arb
reset: meson: add meson audio arb driver
.../bindings/reset/amlogic,meson-axg-audio-arb.txt | 21 +++ drivers/reset/Kconfig | 7 + drivers/reset/Makefile | 1 + drivers/reset/reset-meson-audio-arb.c | 168 +++++++++++++++++++++ .../reset/amlogic,meson-axg-audio-arb.h | 17 +++ 5 files changed, 214 insertions(+) create mode 100644 Documentation/devicetree/bindings/reset/amlogic,meson-axg-audio-arb.txt create mode 100644 drivers/reset/reset-meson-audio-arb.c create mode 100644 include/dt-bindings/reset/amlogic,meson-axg-audio-arb.h
Signature · 1 line
2.14.4
Jerome Brunet
reviewerPATCH 1/2 reset: meson: add dt-bindings for meson-axg audio arb
Add dt-bindings for the audio memory arbitror found on Amlogic's A113 based SoCs
--- .../bindings/reset/amlogic,meson-axg-audio-arb.txt | 21 +++++++++++++++++++++ .../dt-bindings/reset/amlogic,meson-axg-audio-arb.h | 17 +++++++++++++++++ 2 files changed, 38 insertions(+) create mode 100644 Documentation/devicetree/bindings/reset/amlogic,meson-axg-audio-arb.txt create mode 100644 include/dt-bindings/reset/amlogic,meson-axg-audio-arb.h
Documentation/devicetree/bindings/reset/amlogic,meson-axg-audio-arb.txt new file +21 -0
@@ -0,0 +1,21 @@ +* Amlogic audio memory arbitror controller + +The Amlogic Audio ARB is a simple device which enables or +disables the access of Audio FIFOs to DDR on AXG based SoC. + +Required properties: +- compatible: 'amlogic,meson-axg-audio-arb' +- reg: physical base address of the controller and length of memory + mapped region. +- clocks: phandle to the fifo peripheral clock provided by the audio + clock controller. +- #reset-cells: must be 1. + +Example on the A113 SoC: + +arb: reset-controller at 280 { + compatible = "amlogic,meson-axg-audio-arb"; + reg = <0x0 0x280 0x0 0x4>; + #reset-cells = <1>; + clocks = <&clkc_audio AUD_CLKID_DDR_ARB>; +};
include/dt-bindings/reset/amlogic,meson-axg-audio-arb.h new file +17 -0
@@ -0,0 +1,17 @@ +/* SPDX-License-Identifier: (GPL-2.0 OR MIT) +* +* Copyright (c) 2018 Baylibre SAS. +* Author: Jerome Brunet <[email protected]> +*/ + +#ifndef _DT_BINDINGS_AMLOGIC_MESON_AXG_AUDIO_ARB_H +#define _DT_BINDINGS_AMLOGIC_MESON_AXG_AUDIO_ARB_H + +#define AXG_ARB_TODDR_A 0 +#define AXG_ARB_TODDR_B 1 +#define AXG_ARB_TODDR_C 2 +#define AXG_ARB_FRDDR_A 3 +#define AXG_ARB_FRDDR_B 4 +#define AXG_ARB_FRDDR_C 5 + +#endif /* _DT_BINDINGS_AMLOGIC_MESON_AXG_AUDIO_ARB_H */
Signature · 1 line
2.14.4
Re: [PATCH 1/2] reset: meson: add dt-bindings for meson-axg audio arb
Quoted 2 lines · Jerome Brunet
Add dt-bindings for the audio memory arbitror found on Amlogic's A113 based SoCs
s/arbitror/arbiter/
Quoted 15 lines
Signed-off-by Jerome Brunet <[email protected]>--- .../bindings/reset/amlogic,meson-axg-audio-arb.txt | 21 +++++++++++++++++++++ .../dt-bindings/reset/amlogic,meson-axg-audio-arb.h | 17 +++++++++++++++++ 2 files changed, 38 insertions(+) create mode 100644 Documentation/devicetree/bindings/reset/amlogic,meson-axg-audio-arb.txt create mode 100644 include/dt-bindings/reset/amlogic,meson-axg-audio-arb.hDocumentation/devicetree/bindings/reset/amlogic,meson-axg-audio-arb.txt new file +0
-0
Documentation/devicetree/bindings/reset/amlogic,meson-axg-audio-arb.txt line 1
Quoted 1 line
Documentation/devicetree/bindings/reset/amlogic,meson-axg-audio-arb.txt new file +1
-0@@ -0,0 +1,21 @@ +* Amlogic audio memory arbitror controller
s/arbitror/arbiter/
With that,
Jerome Brunet
reviewerPATCH 2/2 reset: meson: add meson audio arb driver
In reply to Jerome BrunetThe Amlogic Audio ARB is a simple device which enables or disables the access of Audio FIFOs to DDR on AXG based SoC.
--- drivers/reset/Kconfig | 7 ++ drivers/reset/Makefile | 1 + drivers/reset/reset-meson-audio-arb.c | 168 ++++++++++++++++++++++++++++++++++ 3 files changed, 176 insertions(+) create mode 100644 drivers/reset/reset-meson-audio-arb.c
drivers/reset/Kconfig +7 -0
@@ -73,6 +73,13 @@ config RESET_MESON help This enables the reset driver for Amlogic Meson SoCs. +config RESET_MESON_AUDIO_ARB + tristate "Meson Audio Memory Arbitror Reset Driver" + depends on ARCH_MESON || COMPILE_TEST + help + This enables the reset driver for Audio Memory Arbitror of + Amlogic's A113 based SoCs + config RESET_OXNAS bool
drivers/reset/Makefile +1 -0
@@ -12,6 +12,7 @@ obj-$(CONFIG_RESET_IMX7) += reset-imx7.o obj-$(CONFIG_RESET_LANTIQ) += reset-lantiq.o obj-$(CONFIG_RESET_LPC18XX) += reset-lpc18xx.o obj-$(CONFIG_RESET_MESON) += reset-meson.o +obj-$(CONFIG_RESET_MESON_AUDIO_ARB) += reset-meson-audio-arb.o obj-$(CONFIG_RESET_OXNAS) += reset-oxnas.o obj-$(CONFIG_RESET_PISTACHIO) += reset-pistachio.o obj-$(CONFIG_RESET_SIMPLE) += reset-simple.o
drivers/reset/reset-meson-audio-arb.c new file +168 -0
168 lines not on this page · raw message
Signature · 1 line
2.14.4