* [PATCH 0/2] Add support for A1 SoC in auxiliary reset driver
@ 2024-11-12 23:00 Jan Dakinevich
2024-11-12 23:00 ` [PATCH 1/2] dt-bindings: reset: add bindings for A1 SoC audio reset controller Jan Dakinevich
` (2 more replies)
0 siblings, 3 replies; 5+ messages in thread
From: Jan Dakinevich @ 2024-11-12 23:00 UTC (permalink / raw)
To: Jan Dakinevich, Conor Dooley, devicetree, Jerome Brunet,
Kevin Hilman, Krzysztof Kozlowski, linux-amlogic,
linux-arm-kernel, linux-kernel, Martin Blumenstingl,
Neil Armstrong, Philipp Zabel, Rob Herring
This was a part of series [1]. Comparing to original series, reset functionality
on top of 'audio-vad' clock controller also is added.
Links:
[1] https://lore.kernel.org/all/20240913121152.817575-1-jan.dakinevich@salutedevices.com/
Jan Dakinevich (2):
dt-bindings: reset: add bindings for A1 SoC audio reset controller
reset: amlogic: add support for A1 SoC in auxiliary reset driver
drivers/reset/amlogic/reset-meson-aux.c | 18 ++++++++++
.../reset/amlogic,meson-a1-audio-reset.h | 36 +++++++++++++++++++
2 files changed, 54 insertions(+)
create mode 100644 include/dt-bindings/reset/amlogic,meson-a1-audio-reset.h
--
2.34.1
^ permalink raw reply [flat|nested] 5+ messages in thread
* [PATCH 1/2] dt-bindings: reset: add bindings for A1 SoC audio reset controller
2024-11-12 23:00 [PATCH 0/2] Add support for A1 SoC in auxiliary reset driver Jan Dakinevich
@ 2024-11-12 23:00 ` Jan Dakinevich
2024-11-14 20:14 ` Conor Dooley
2024-11-12 23:00 ` [PATCH 2/2] reset: amlogic: add support for A1 SoC in auxiliary reset driver Jan Dakinevich
2024-12-06 16:03 ` [PATCH 0/2] Add " Philipp Zabel
2 siblings, 1 reply; 5+ messages in thread
From: Jan Dakinevich @ 2024-11-12 23:00 UTC (permalink / raw)
To: Jan Dakinevich, Conor Dooley, devicetree, Jerome Brunet,
Kevin Hilman, Krzysztof Kozlowski, linux-amlogic,
linux-arm-kernel, linux-kernel, Martin Blumenstingl,
Neil Armstrong, Philipp Zabel, Rob Herring
This reset controller is part of audio clock controller and handled by
auxiliary reset driver. Introduced defines supposed to be used together
with upcoming device tree nodes for audio clock controller fo A1 SoC.
Signed-off-by: Jan Dakinevich <jan.dakinevich@salutedevices.com>
---
.../reset/amlogic,meson-a1-audio-reset.h | 36 +++++++++++++++++++
1 file changed, 36 insertions(+)
create mode 100644 include/dt-bindings/reset/amlogic,meson-a1-audio-reset.h
diff --git a/include/dt-bindings/reset/amlogic,meson-a1-audio-reset.h b/include/dt-bindings/reset/amlogic,meson-a1-audio-reset.h
new file mode 100644
index 000000000000..7693552f1507
--- /dev/null
+++ b/include/dt-bindings/reset/amlogic,meson-a1-audio-reset.h
@@ -0,0 +1,36 @@
+/* SPDX-License-Identifier: (GPL-2.0 OR MIT) */
+/*
+ * Copyright (c) 2024, SaluteDevices. All Rights Reserved.
+ *
+ * Author: Jan Dakinevich <jan.dakinevich@salutedevices.com>
+ */
+
+#ifndef _DT_BINDINGS_AMLOGIC_MESON_A1_AUDIO_RESET_H
+#define _DT_BINDINGS_AMLOGIC_MESON_A1_AUDIO_RESET_H
+
+#define AUD_RESET_DDRARB 0
+#define AUD_RESET_TDMIN_A 1
+#define AUD_RESET_TDMIN_B 2
+#define AUD_RESET_TDMIN_LB 3
+#define AUD_RESET_LOOPBACK 4
+#define AUD_RESET_TDMOUT_A 5
+#define AUD_RESET_TDMOUT_B 6
+#define AUD_RESET_FRDDR_A 7
+#define AUD_RESET_FRDDR_B 8
+#define AUD_RESET_TODDR_A 9
+#define AUD_RESET_TODDR_B 10
+#define AUD_RESET_SPDIFIN 11
+#define AUD_RESET_RESAMPLE 12
+#define AUD_RESET_EQDRC 13
+#define AUD_RESET_LOCKER 14
+#define AUD_RESET_TOACODEC 30
+#define AUD_RESET_CLKTREE 31
+
+#define AUD_VAD_RESET_DDRARB 0
+#define AUD_VAD_RESET_PDM 1
+#define AUD_VAD_RESET_TDMIN_VAD 2
+#define AUD_VAD_RESET_TODDR_VAD 3
+#define AUD_VAD_RESET_TOVAD 4
+#define AUD_VAD_RESET_CLKTREE 5
+
+#endif /* _DT_BINDINGS_AMLOGIC_MESON_A1_AUDIO_RESET_H */
--
2.34.1
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [PATCH 2/2] reset: amlogic: add support for A1 SoC in auxiliary reset driver
2024-11-12 23:00 [PATCH 0/2] Add support for A1 SoC in auxiliary reset driver Jan Dakinevich
2024-11-12 23:00 ` [PATCH 1/2] dt-bindings: reset: add bindings for A1 SoC audio reset controller Jan Dakinevich
@ 2024-11-12 23:00 ` Jan Dakinevich
2024-12-06 16:03 ` [PATCH 0/2] Add " Philipp Zabel
2 siblings, 0 replies; 5+ messages in thread
From: Jan Dakinevich @ 2024-11-12 23:00 UTC (permalink / raw)
To: Jan Dakinevich, Conor Dooley, devicetree, Jerome Brunet,
Kevin Hilman, Krzysztof Kozlowski, linux-amlogic,
linux-arm-kernel, linux-kernel, Martin Blumenstingl,
Neil Armstrong, Philipp Zabel, Rob Herring
Add support for the reset controller present in the audio clock
controller of A1 SoC families, using the auxiliary bus.
Signed-off-by: Jan Dakinevich <jan.dakinevich@salutedevices.com>
---
drivers/reset/amlogic/reset-meson-aux.c | 18 ++++++++++++++++++
1 file changed, 18 insertions(+)
diff --git a/drivers/reset/amlogic/reset-meson-aux.c b/drivers/reset/amlogic/reset-meson-aux.c
index dd8453001db9..4b422ae5fcd2 100644
--- a/drivers/reset/amlogic/reset-meson-aux.c
+++ b/drivers/reset/amlogic/reset-meson-aux.c
@@ -26,6 +26,18 @@ struct meson_reset_adev {
#define to_meson_reset_adev(_adev) \
container_of((_adev), struct meson_reset_adev, adev)
+static const struct meson_reset_param meson_a1_audio_param = {
+ .reset_ops = &meson_reset_toggle_ops,
+ .reset_num = 32,
+ .level_offset = 0x28,
+};
+
+static const struct meson_reset_param meson_a1_audio_vad_param = {
+ .reset_ops = &meson_reset_toggle_ops,
+ .reset_num = 6,
+ .level_offset = 0x8,
+};
+
static const struct meson_reset_param meson_g12a_audio_param = {
.reset_ops = &meson_reset_toggle_ops,
.reset_num = 26,
@@ -40,6 +52,12 @@ static const struct meson_reset_param meson_sm1_audio_param = {
static const struct auxiliary_device_id meson_reset_aux_ids[] = {
{
+ .name = "a1-audio-clkc.rst-a1",
+ .driver_data = (kernel_ulong_t)&meson_a1_audio_param,
+ }, {
+ .name = "a1-audio-clkc.rst-a1-vad",
+ .driver_data = (kernel_ulong_t)&meson_a1_audio_vad_param,
+ }, {
.name = "axg-audio-clkc.rst-g12a",
.driver_data = (kernel_ulong_t)&meson_g12a_audio_param,
}, {
--
2.34.1
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH 1/2] dt-bindings: reset: add bindings for A1 SoC audio reset controller
2024-11-12 23:00 ` [PATCH 1/2] dt-bindings: reset: add bindings for A1 SoC audio reset controller Jan Dakinevich
@ 2024-11-14 20:14 ` Conor Dooley
0 siblings, 0 replies; 5+ messages in thread
From: Conor Dooley @ 2024-11-14 20:14 UTC (permalink / raw)
To: Jan Dakinevich
Cc: Conor Dooley, devicetree, Jerome Brunet, Kevin Hilman,
Krzysztof Kozlowski, linux-amlogic, linux-arm-kernel,
linux-kernel, Martin Blumenstingl, Neil Armstrong, Philipp Zabel,
Rob Herring
[-- Attachment #1: Type: text/plain, Size: 497 bytes --]
On Wed, Nov 13, 2024 at 02:00:55AM +0300, Jan Dakinevich wrote:
> This reset controller is part of audio clock controller and handled by
> auxiliary reset driver.
I appreciate this, saved me looking up why there was no compatible
added.
> Introduced defines supposed to be used together
> with upcoming device tree nodes for audio clock controller fo A1 SoC.
>
> Signed-off-by: Jan Dakinevich <jan.dakinevich@salutedevices.com>
Acked-by: Conor Dooley <conor.dooley@microchip.com>
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH 0/2] Add support for A1 SoC in auxiliary reset driver
2024-11-12 23:00 [PATCH 0/2] Add support for A1 SoC in auxiliary reset driver Jan Dakinevich
2024-11-12 23:00 ` [PATCH 1/2] dt-bindings: reset: add bindings for A1 SoC audio reset controller Jan Dakinevich
2024-11-12 23:00 ` [PATCH 2/2] reset: amlogic: add support for A1 SoC in auxiliary reset driver Jan Dakinevich
@ 2024-12-06 16:03 ` Philipp Zabel
2 siblings, 0 replies; 5+ messages in thread
From: Philipp Zabel @ 2024-12-06 16:03 UTC (permalink / raw)
To: Jan Dakinevich, Conor Dooley, devicetree, Jerome Brunet,
Kevin Hilman, Krzysztof Kozlowski, linux-amlogic,
linux-arm-kernel, linux-kernel, Martin Blumenstingl,
Neil Armstrong, Rob Herring
On Mi, 2024-11-13 at 02:00 +0300, Jan Dakinevich wrote:
> This was a part of series [1]. Comparing to original series, reset functionality
> on top of 'audio-vad' clock controller also is added.
>
> Links:
> [1] https://lore.kernel.org/all/20240913121152.817575-1-jan.dakinevich@salutedevices.com/
>
> Jan Dakinevich (2):
> dt-bindings: reset: add bindings for A1 SoC audio reset controller
> reset: amlogic: add support for A1 SoC in auxiliary reset driver
[...]
Applied to reset/next, thanks!
[1/2] dt-bindings: reset: add bindings for A1 SoC audio reset
controller
https://git.pengutronix.de/cgit/pza/linux/commit/?id=3465a696bd93
[2/2] reset: amlogic: add support for A1 SoC in auxiliary reset driver
https://git.pengutronix.de/cgit/pza/linux/commit/?id=3d99f9231bed
regards
Philipp
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2024-12-06 16:04 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-11-12 23:00 [PATCH 0/2] Add support for A1 SoC in auxiliary reset driver Jan Dakinevich
2024-11-12 23:00 ` [PATCH 1/2] dt-bindings: reset: add bindings for A1 SoC audio reset controller Jan Dakinevich
2024-11-14 20:14 ` Conor Dooley
2024-11-12 23:00 ` [PATCH 2/2] reset: amlogic: add support for A1 SoC in auxiliary reset driver Jan Dakinevich
2024-12-06 16:03 ` [PATCH 0/2] Add " Philipp Zabel
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox