Skip to contentSkip to conversation

reset: meson: add audio arb controller

PATCH In review Jerome Brunet 2 participants 5 messages Jul 20, 2018 – Aug 2, 2018

Subsystems (3)
lore
Share & tools
lore

Jerome Brunet

author reviewer
#0 lore raw

v2 cover 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.

Changes since v1 [0]:
* Fix typo s/arbitror/arbiter
* Collect Rob's tag

[0]: https://lkml.kernel.org/r/20180706143122.7612-1-jbrunet at baylibre.com

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
author reviewer
#1 lore raw

PATCH v2 1/2 reset: meson: add dt-bindings for meson-axg audio arb

Add dt-bindings for the audio memory arbiter 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
new file mode 100644
index 000000000000..26e542eb96df
@@ -0,0 +1,21 @@
+* Amlogic audio memory arbiter 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
new file mode 100644
index 000000000000..05c36367875c
@@ -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
author reviewer
#2 lore raw

PATCH v2 2/2 reset: meson: add meson audio arb driver

In reply to Jerome Brunet

The 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
index c0b292be1b72..782dc59b3855 100644
@@ -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 Arbiter Reset Driver"
+	depends on ARCH_MESON || COMPILE_TEST
+	help
+	  This enables the reset driver for Audio Memory Arbiter of
+	  Amlogic's A113 based SoCs
+
 config RESET_OXNAS
 	bool
 
drivers/reset/Makefile +1 -0
index c1261dcfe9ad..aca2240b48aa 100644
@@ -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
maintainer
#3 lore raw

Re: [PATCH v2 2/2] reset: meson: add meson audio arb driver

Hi Jerome,

Quoted 4 lines · Jerome Brunet

The Amlogic Audio ARB is a simple device which enables or disables the access of Audio FIFOs to DDR on AXG based SoC.

Thank you, both applied to reset/next.

regards
Philipp

author reviewer
#4 lore raw

Re: [PATCH v2 2/2] reset: meson: add meson audio arb driver

Quoted 9 lines · Philipp Zabel

Hi Jerome,

Quoted 4 lines · Jerome Brunet

The Amlogic Audio ARB is a simple device which enables or disables the access of Audio FIFOs to DDR on AXG based SoC.

Thank you, both applied to reset/next.

Hi Philipp,

I know it missed your first PR to arm-soc but I can see it 'next', so I was wondering if this was going to make it into v4.19 ?

Thanks
Regards

Jerome

Quoted 3 lines

regards
Philipp