All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 1/3] reset: uniphier: add audio systems reset control
@ 2017-08-13  9:00 ` Katsuhiro Suzuki
  0 siblings, 0 replies; 10+ messages in thread
From: Katsuhiro Suzuki @ 2017-08-13  9:00 UTC (permalink / raw)
  To: Philipp Zabel, Masahiro Yamada, linux-arm-kernel
  Cc: Masami Hiramatsu, Jassi Brar, linux-kernel, Katsuhiro Suzuki

Add reset lines for audio subsystem (AIO) and
SoC internal audio codec (EVEA) on UniPhier LD11/LD20 SoCs.

Signed-off-by: Katsuhiro Suzuki <suzuki.katsuhiro@socionext.com>
Acked-by: Masahiro Yamada <yamada.masahiro@socionext.com>
---
 drivers/reset/reset-uniphier.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/drivers/reset/reset-uniphier.c b/drivers/reset/reset-uniphier.c
index 954b2c4e6ca7..90c52a96f775 100644
--- a/drivers/reset/reset-uniphier.c
+++ b/drivers/reset/reset-uniphier.c
@@ -93,6 +93,8 @@ static const struct uniphier_reset_data uniphier_ld11_sys_reset_data[] = {
 	UNIPHIER_RESETX(2, 0x200c, 0),		/* NAND */
 	UNIPHIER_RESETX(4, 0x200c, 2),		/* eMMC */
 	UNIPHIER_RESETX(8, 0x200c, 8),		/* STDMAC (HSC, MIO) */
+	UNIPHIER_RESETX(40, 0x2008, 0),		/* AIO */
+	UNIPHIER_RESETX(41, 0x2008, 1),		/* EVEA */
 	UNIPHIER_RESET_END,
 };
 
@@ -105,6 +107,8 @@ static const struct uniphier_reset_data uniphier_ld20_sys_reset_data[] = {
 	UNIPHIER_RESETX(17, 0x200c, 13),	/* USB30-PHY1 */
 	UNIPHIER_RESETX(18, 0x200c, 14),	/* USB30-PHY2 */
 	UNIPHIER_RESETX(19, 0x200c, 15),	/* USB30-PHY3 */
+	UNIPHIER_RESETX(40, 0x2008, 0),		/* AIO */
+	UNIPHIER_RESETX(41, 0x2008, 1),		/* EVEA */
 	UNIPHIER_RESET_END,
 };
 
-- 
2.13.2

^ permalink raw reply related	[flat|nested] 10+ messages in thread

* [PATCH v2 1/3] reset: uniphier: add audio systems reset control
@ 2017-08-13  9:00 ` Katsuhiro Suzuki
  0 siblings, 0 replies; 10+ messages in thread
From: Katsuhiro Suzuki @ 2017-08-13  9:00 UTC (permalink / raw)
  To: linux-arm-kernel

Add reset lines for audio subsystem (AIO) and
SoC internal audio codec (EVEA) on UniPhier LD11/LD20 SoCs.

Signed-off-by: Katsuhiro Suzuki <suzuki.katsuhiro@socionext.com>
Acked-by: Masahiro Yamada <yamada.masahiro@socionext.com>
---
 drivers/reset/reset-uniphier.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/drivers/reset/reset-uniphier.c b/drivers/reset/reset-uniphier.c
index 954b2c4e6ca7..90c52a96f775 100644
--- a/drivers/reset/reset-uniphier.c
+++ b/drivers/reset/reset-uniphier.c
@@ -93,6 +93,8 @@ static const struct uniphier_reset_data uniphier_ld11_sys_reset_data[] = {
 	UNIPHIER_RESETX(2, 0x200c, 0),		/* NAND */
 	UNIPHIER_RESETX(4, 0x200c, 2),		/* eMMC */
 	UNIPHIER_RESETX(8, 0x200c, 8),		/* STDMAC (HSC, MIO) */
+	UNIPHIER_RESETX(40, 0x2008, 0),		/* AIO */
+	UNIPHIER_RESETX(41, 0x2008, 1),		/* EVEA */
 	UNIPHIER_RESET_END,
 };
 
@@ -105,6 +107,8 @@ static const struct uniphier_reset_data uniphier_ld20_sys_reset_data[] = {
 	UNIPHIER_RESETX(17, 0x200c, 13),	/* USB30-PHY1 */
 	UNIPHIER_RESETX(18, 0x200c, 14),	/* USB30-PHY2 */
 	UNIPHIER_RESETX(19, 0x200c, 15),	/* USB30-PHY3 */
+	UNIPHIER_RESETX(40, 0x2008, 0),		/* AIO */
+	UNIPHIER_RESETX(41, 0x2008, 1),		/* EVEA */
 	UNIPHIER_RESET_END,
 };
 
-- 
2.13.2

^ permalink raw reply related	[flat|nested] 10+ messages in thread

* [PATCH v2 2/3] reset: uniphier: add video input subsystem reset control
  2017-08-13  9:00 ` Katsuhiro Suzuki
@ 2017-08-13  9:00   ` Katsuhiro Suzuki
  -1 siblings, 0 replies; 10+ messages in thread
From: Katsuhiro Suzuki @ 2017-08-13  9:00 UTC (permalink / raw)
  To: Philipp Zabel, Masahiro Yamada, linux-arm-kernel
  Cc: Masami Hiramatsu, Jassi Brar, linux-kernel, Katsuhiro Suzuki

Add a reset line for video input subsystem (EXIV) on
UniPhier LD11/LD20 SoCs.

Signed-off-by: Katsuhiro Suzuki <suzuki.katsuhiro@socionext.com>
Acked-by: Masahiro Yamada <yamada.masahiro@socionext.com>
---
 drivers/reset/reset-uniphier.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/reset/reset-uniphier.c b/drivers/reset/reset-uniphier.c
index 90c52a96f775..f60c137c17cb 100644
--- a/drivers/reset/reset-uniphier.c
+++ b/drivers/reset/reset-uniphier.c
@@ -95,6 +95,7 @@ static const struct uniphier_reset_data uniphier_ld11_sys_reset_data[] = {
 	UNIPHIER_RESETX(8, 0x200c, 8),		/* STDMAC (HSC, MIO) */
 	UNIPHIER_RESETX(40, 0x2008, 0),		/* AIO */
 	UNIPHIER_RESETX(41, 0x2008, 1),		/* EVEA */
+	UNIPHIER_RESETX(42, 0x2010, 2),		/* EXIV */
 	UNIPHIER_RESET_END,
 };
 
@@ -109,6 +110,7 @@ static const struct uniphier_reset_data uniphier_ld20_sys_reset_data[] = {
 	UNIPHIER_RESETX(19, 0x200c, 15),	/* USB30-PHY3 */
 	UNIPHIER_RESETX(40, 0x2008, 0),		/* AIO */
 	UNIPHIER_RESETX(41, 0x2008, 1),		/* EVEA */
+	UNIPHIER_RESETX(42, 0x2010, 2),		/* EXIV */
 	UNIPHIER_RESET_END,
 };
 
-- 
2.13.2

^ permalink raw reply related	[flat|nested] 10+ messages in thread

* [PATCH v2 2/3] reset: uniphier: add video input subsystem reset control
@ 2017-08-13  9:00   ` Katsuhiro Suzuki
  0 siblings, 0 replies; 10+ messages in thread
From: Katsuhiro Suzuki @ 2017-08-13  9:00 UTC (permalink / raw)
  To: linux-arm-kernel

Add a reset line for video input subsystem (EXIV) on
UniPhier LD11/LD20 SoCs.

Signed-off-by: Katsuhiro Suzuki <suzuki.katsuhiro@socionext.com>
Acked-by: Masahiro Yamada <yamada.masahiro@socionext.com>
---
 drivers/reset/reset-uniphier.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/reset/reset-uniphier.c b/drivers/reset/reset-uniphier.c
index 90c52a96f775..f60c137c17cb 100644
--- a/drivers/reset/reset-uniphier.c
+++ b/drivers/reset/reset-uniphier.c
@@ -95,6 +95,7 @@ static const struct uniphier_reset_data uniphier_ld11_sys_reset_data[] = {
 	UNIPHIER_RESETX(8, 0x200c, 8),		/* STDMAC (HSC, MIO) */
 	UNIPHIER_RESETX(40, 0x2008, 0),		/* AIO */
 	UNIPHIER_RESETX(41, 0x2008, 1),		/* EVEA */
+	UNIPHIER_RESETX(42, 0x2010, 2),		/* EXIV */
 	UNIPHIER_RESET_END,
 };
 
@@ -109,6 +110,7 @@ static const struct uniphier_reset_data uniphier_ld20_sys_reset_data[] = {
 	UNIPHIER_RESETX(19, 0x200c, 15),	/* USB30-PHY3 */
 	UNIPHIER_RESETX(40, 0x2008, 0),		/* AIO */
 	UNIPHIER_RESETX(41, 0x2008, 1),		/* EVEA */
+	UNIPHIER_RESETX(42, 0x2010, 2),		/* EXIV */
 	UNIPHIER_RESET_END,
 };
 
-- 
2.13.2

^ permalink raw reply related	[flat|nested] 10+ messages in thread

* [PATCH v2 3/3] reset: uniphier: add analog amplifiers reset control
  2017-08-13  9:00 ` Katsuhiro Suzuki
@ 2017-08-13  9:00   ` Katsuhiro Suzuki
  -1 siblings, 0 replies; 10+ messages in thread
From: Katsuhiro Suzuki @ 2017-08-13  9:00 UTC (permalink / raw)
  To: Philipp Zabel, Masahiro Yamada, linux-arm-kernel
  Cc: Masami Hiramatsu, Jassi Brar, linux-kernel, Katsuhiro Suzuki

Add a reset line for analog signal amplifier core (ADAMV) on
UniPhier LD11/LD20 SoCs.

Signed-off-by: Katsuhiro Suzuki <suzuki.katsuhiro@socionext.com>

---

Changes for v2:
  - ID changes to 0 because ADAMV reset controller independents
    from other reset controllers.
  - Add DT-binding documents.
---
 .../devicetree/bindings/reset/uniphier-reset.txt   | 25 ++++++++++++++++++++++
 drivers/reset/reset-uniphier.c                     | 15 +++++++++++++
 2 files changed, 40 insertions(+)

diff --git a/Documentation/devicetree/bindings/reset/uniphier-reset.txt b/Documentation/devicetree/bindings/reset/uniphier-reset.txt
index b80ccc03ab9f..68a6f487c409 100644
--- a/Documentation/devicetree/bindings/reset/uniphier-reset.txt
+++ b/Documentation/devicetree/bindings/reset/uniphier-reset.txt
@@ -90,3 +90,28 @@ Example:
 
 		other nodes ...
 	};
+
+
+Analog signal amplifier reset
+-----------------------------
+
+Required properties:
+- compatible: should be one of the following:
+    "socionext,uniphier-ld11-adamv-reset" - for LD11 SoC
+    "socionext,uniphier-ld20-adamv-reset" - for LD20 SoC
+- #reset-cells: should be 1.
+
+Example:
+
+	adamv@57920000 {
+		compatible = "socionext,uniphier-ld11-adamv",
+			     "simple-mfd", "syscon";
+		reg = <0x57920000 0x1000>;
+
+		adamv_rst: reset {
+			compatible = "socionext,uniphier-ld11-adamv-reset";
+			#reset-cells = <1>;
+		};
+
+		other nodes ...
+	};
diff --git a/drivers/reset/reset-uniphier.c b/drivers/reset/reset-uniphier.c
index f60c137c17cb..bda2dd196ae5 100644
--- a/drivers/reset/reset-uniphier.c
+++ b/drivers/reset/reset-uniphier.c
@@ -196,6 +196,12 @@ static const struct uniphier_reset_data uniphier_pro4_peri_reset_data[] = {
 	UNIPHIER_RESET_END,
 };
 
+/* Analog signal amplifiers reset data */
+static const struct uniphier_reset_data uniphier_ld11_adamv_reset_data[] = {
+	UNIPHIER_RESETX(0, 0x10, 6), /* EVEA */
+	UNIPHIER_RESET_END,
+};
+
 /* core implementaton */
 struct uniphier_reset_priv {
 	struct reset_controller_dev rcdev;
@@ -415,6 +421,15 @@ static const struct of_device_id uniphier_reset_match[] = {
 		.compatible = "socionext,uniphier-ld20-peri-reset",
 		.data = uniphier_pro4_peri_reset_data,
 	},
+	/* Analog signal amplifiers reset */
+	{
+		.compatible = "socionext,uniphier-ld11-adamv-reset",
+		.data = uniphier_ld11_adamv_reset_data,
+	},
+	{
+		.compatible = "socionext,uniphier-ld20-adamv-reset",
+		.data = uniphier_ld11_adamv_reset_data,
+	},
 	{ /* sentinel */ }
 };
 MODULE_DEVICE_TABLE(of, uniphier_reset_match);
-- 
2.13.2

^ permalink raw reply related	[flat|nested] 10+ messages in thread

* [PATCH v2 3/3] reset: uniphier: add analog amplifiers reset control
@ 2017-08-13  9:00   ` Katsuhiro Suzuki
  0 siblings, 0 replies; 10+ messages in thread
From: Katsuhiro Suzuki @ 2017-08-13  9:00 UTC (permalink / raw)
  To: linux-arm-kernel

Add a reset line for analog signal amplifier core (ADAMV) on
UniPhier LD11/LD20 SoCs.

Signed-off-by: Katsuhiro Suzuki <suzuki.katsuhiro@socionext.com>

---

Changes for v2:
  - ID changes to 0 because ADAMV reset controller independents
    from other reset controllers.
  - Add DT-binding documents.
---
 .../devicetree/bindings/reset/uniphier-reset.txt   | 25 ++++++++++++++++++++++
 drivers/reset/reset-uniphier.c                     | 15 +++++++++++++
 2 files changed, 40 insertions(+)

diff --git a/Documentation/devicetree/bindings/reset/uniphier-reset.txt b/Documentation/devicetree/bindings/reset/uniphier-reset.txt
index b80ccc03ab9f..68a6f487c409 100644
--- a/Documentation/devicetree/bindings/reset/uniphier-reset.txt
+++ b/Documentation/devicetree/bindings/reset/uniphier-reset.txt
@@ -90,3 +90,28 @@ Example:
 
 		other nodes ...
 	};
+
+
+Analog signal amplifier reset
+-----------------------------
+
+Required properties:
+- compatible: should be one of the following:
+    "socionext,uniphier-ld11-adamv-reset" - for LD11 SoC
+    "socionext,uniphier-ld20-adamv-reset" - for LD20 SoC
+- #reset-cells: should be 1.
+
+Example:
+
+	adamv at 57920000 {
+		compatible = "socionext,uniphier-ld11-adamv",
+			     "simple-mfd", "syscon";
+		reg = <0x57920000 0x1000>;
+
+		adamv_rst: reset {
+			compatible = "socionext,uniphier-ld11-adamv-reset";
+			#reset-cells = <1>;
+		};
+
+		other nodes ...
+	};
diff --git a/drivers/reset/reset-uniphier.c b/drivers/reset/reset-uniphier.c
index f60c137c17cb..bda2dd196ae5 100644
--- a/drivers/reset/reset-uniphier.c
+++ b/drivers/reset/reset-uniphier.c
@@ -196,6 +196,12 @@ static const struct uniphier_reset_data uniphier_pro4_peri_reset_data[] = {
 	UNIPHIER_RESET_END,
 };
 
+/* Analog signal amplifiers reset data */
+static const struct uniphier_reset_data uniphier_ld11_adamv_reset_data[] = {
+	UNIPHIER_RESETX(0, 0x10, 6), /* EVEA */
+	UNIPHIER_RESET_END,
+};
+
 /* core implementaton */
 struct uniphier_reset_priv {
 	struct reset_controller_dev rcdev;
@@ -415,6 +421,15 @@ static const struct of_device_id uniphier_reset_match[] = {
 		.compatible = "socionext,uniphier-ld20-peri-reset",
 		.data = uniphier_pro4_peri_reset_data,
 	},
+	/* Analog signal amplifiers reset */
+	{
+		.compatible = "socionext,uniphier-ld11-adamv-reset",
+		.data = uniphier_ld11_adamv_reset_data,
+	},
+	{
+		.compatible = "socionext,uniphier-ld20-adamv-reset",
+		.data = uniphier_ld11_adamv_reset_data,
+	},
 	{ /* sentinel */ }
 };
 MODULE_DEVICE_TABLE(of, uniphier_reset_match);
-- 
2.13.2

^ permalink raw reply related	[flat|nested] 10+ messages in thread

* Re: [PATCH v2 3/3] reset: uniphier: add analog amplifiers reset control
  2017-08-13  9:00   ` Katsuhiro Suzuki
@ 2017-08-13 14:23     ` Masahiro Yamada
  -1 siblings, 0 replies; 10+ messages in thread
From: Masahiro Yamada @ 2017-08-13 14:23 UTC (permalink / raw)
  To: Katsuhiro Suzuki
  Cc: Philipp Zabel, linux-arm-kernel, Masami Hiramatsu, Jassi Brar,
	Linux Kernel Mailing List

2017-08-13 18:00 GMT+09:00 Katsuhiro Suzuki <suzuki.katsuhiro@socionext.com>:
> Add a reset line for analog signal amplifier core (ADAMV) on
> UniPhier LD11/LD20 SoCs.
>
> Signed-off-by: Katsuhiro Suzuki <suzuki.katsuhiro@socionext.com>
>
> ---
>
> Changes for v2:
>   - ID changes to 0 because ADAMV reset controller independents
>     from other reset controllers.
>   - Add DT-binding documents.


Acked-by: Masahiro Yamada <yamada.masahiro@socionext.com>

Thanks!

-- 
Best Regards
Masahiro Yamada

^ permalink raw reply	[flat|nested] 10+ messages in thread

* [PATCH v2 3/3] reset: uniphier: add analog amplifiers reset control
@ 2017-08-13 14:23     ` Masahiro Yamada
  0 siblings, 0 replies; 10+ messages in thread
From: Masahiro Yamada @ 2017-08-13 14:23 UTC (permalink / raw)
  To: linux-arm-kernel

2017-08-13 18:00 GMT+09:00 Katsuhiro Suzuki <suzuki.katsuhiro@socionext.com>:
> Add a reset line for analog signal amplifier core (ADAMV) on
> UniPhier LD11/LD20 SoCs.
>
> Signed-off-by: Katsuhiro Suzuki <suzuki.katsuhiro@socionext.com>
>
> ---
>
> Changes for v2:
>   - ID changes to 0 because ADAMV reset controller independents
>     from other reset controllers.
>   - Add DT-binding documents.


Acked-by: Masahiro Yamada <yamada.masahiro@socionext.com>

Thanks!

-- 
Best Regards
Masahiro Yamada

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH v2 3/3] reset: uniphier: add analog amplifiers reset control
  2017-08-13  9:00   ` Katsuhiro Suzuki
@ 2017-08-14  7:34     ` Philipp Zabel
  -1 siblings, 0 replies; 10+ messages in thread
From: Philipp Zabel @ 2017-08-14  7:34 UTC (permalink / raw)
  To: Katsuhiro Suzuki, Masahiro Yamada, linux-arm-kernel
  Cc: Masami Hiramatsu, Jassi Brar, linux-kernel

On Sun, 2017-08-13 at 18:00 +0900, Katsuhiro Suzuki wrote:
> Add a reset line for analog signal amplifier core (ADAMV) on
> UniPhier LD11/LD20 SoCs.
> 
> Signed-off-by: Katsuhiro Suzuki <suzuki.katsuhiro@socionext.com>

Thank you, applied all three to the reset/next branch with Masahiro's
acks.

regards
Philipp

^ permalink raw reply	[flat|nested] 10+ messages in thread

* [PATCH v2 3/3] reset: uniphier: add analog amplifiers reset control
@ 2017-08-14  7:34     ` Philipp Zabel
  0 siblings, 0 replies; 10+ messages in thread
From: Philipp Zabel @ 2017-08-14  7:34 UTC (permalink / raw)
  To: linux-arm-kernel

On Sun, 2017-08-13 at 18:00 +0900, Katsuhiro Suzuki wrote:
> Add a reset line for analog signal amplifier core (ADAMV) on
> UniPhier LD11/LD20 SoCs.
> 
> Signed-off-by: Katsuhiro Suzuki <suzuki.katsuhiro@socionext.com>

Thank you, applied all three to the reset/next branch with Masahiro's
acks.

regards
Philipp

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2017-08-14  7:34 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-08-13  9:00 [PATCH v2 1/3] reset: uniphier: add audio systems reset control Katsuhiro Suzuki
2017-08-13  9:00 ` Katsuhiro Suzuki
2017-08-13  9:00 ` [PATCH v2 2/3] reset: uniphier: add video input subsystem " Katsuhiro Suzuki
2017-08-13  9:00   ` Katsuhiro Suzuki
2017-08-13  9:00 ` [PATCH v2 3/3] reset: uniphier: add analog amplifiers " Katsuhiro Suzuki
2017-08-13  9:00   ` Katsuhiro Suzuki
2017-08-13 14:23   ` Masahiro Yamada
2017-08-13 14:23     ` Masahiro Yamada
2017-08-14  7:34   ` Philipp Zabel
2017-08-14  7:34     ` Philipp Zabel

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.