Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1708275 > unrolled thread

[PATCH 3/3] reset: uniphier: add analog amplifiers reset control

Started byKatsuhiro Suzuki <suzuki.katsuhiro@socionext.com>
First post2017-08-10 09:30 +0200
Last post2017-08-11 07:00 +0200
Articles 6 — 3 participants

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  [PATCH 3/3] reset: uniphier: add analog amplifiers reset control Katsuhiro Suzuki <suzuki.katsuhiro@socionext.com> - 2017-08-10 09:30 +0200
    Re: [PATCH 3/3] reset: uniphier: add analog amplifiers reset control Philipp Zabel <p.zabel@pengutronix.de> - 2017-08-10 12:40 +0200
      Re: [PATCH 3/3] reset: uniphier: add analog amplifiers reset control Masahiro Yamada <yamada.masahiro@socionext.com> - 2017-08-10 13:20 +0200
        Re: [PATCH 3/3] reset: uniphier: add analog amplifiers reset control Masahiro Yamada <yamada.masahiro@socionext.com> - 2017-08-10 13:30 +0200
          Re: [PATCH 3/3] reset: uniphier: add analog amplifiers reset control Katsuhiro Suzuki <suzuki.katsuhiro@socionext.com> - 2017-08-11 06:30 +0200
      Re: [PATCH 3/3] reset: uniphier: add analog amplifiers reset control Katsuhiro Suzuki <suzuki.katsuhiro@socionext.com> - 2017-08-11 07:00 +0200

#1708275 — [PATCH 3/3] reset: uniphier: add analog amplifiers reset control

FromKatsuhiro Suzuki <suzuki.katsuhiro@socionext.com>
Date2017-08-10 09:30 +0200
Subject[PATCH 3/3] reset: uniphier: add analog amplifiers reset control
Message-ID<ucQ4O-2jh-11@gated-at.bofh.it>
Add a reset line for analog signal amplifier core (ADAMV) on
UniPhier LD11/LD20 SoCs.

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

diff --git a/drivers/reset/reset-uniphier.c b/drivers/reset/reset-uniphier.c
index f60c137c17cb..cda4a78a58e2 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(100, 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

[toc] | [next] | [standalone]


#1708407

FromPhilipp Zabel <p.zabel@pengutronix.de>
Date2017-08-10 12:40 +0200
Message-ID<ucT2G-4pl-21@gated-at.bofh.it>
In reply to#1708275
Hi Katsuhiro,

On Thu, 2017-08-10 at 16:27 +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>
> ---
>  drivers/reset/reset-uniphier.c | 15 +++++++++++++++
>  1 file changed, 15 insertions(+)
> 
> diff --git a/drivers/reset/reset-uniphier.c b/drivers/reset/reset-uniphier.c
> index f60c137c17cb..cda4a78a58e2 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(100, 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);

Please add a patch to describe the new compatible values in
Documentation/devicetree/bindings/reset/uniphier-reset.txt.

regards
Philipp

[toc] | [prev] | [next] | [standalone]


#1708454

FromMasahiro Yamada <yamada.masahiro@socionext.com>
Date2017-08-10 13:20 +0200
Message-ID<ucTFo-4RQ-17@gated-at.bofh.it>
In reply to#1708407
2017-08-10 19:37 GMT+09:00 Philipp Zabel <p.zabel@pengutronix.de>:
> Hi Katsuhiro,
>
> On Thu, 2017-08-10 at 16:27 +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>
>> ---
>>  drivers/reset/reset-uniphier.c | 15 +++++++++++++++
>>  1 file changed, 15 insertions(+)
>>
>> diff --git a/drivers/reset/reset-uniphier.c b/drivers/reset/reset-uniphier.c
>> index f60c137c17cb..cda4a78a58e2 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(100, 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);
>
> Please add a patch to describe the new compatible values in
> Documentation/devicetree/bindings/reset/uniphier-reset.txt.
>

The code change is OK with me.

Assuming you will update the binding,

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





-- 
Best Regards
Masahiro Yamada

[toc] | [prev] | [next] | [standalone]


#1708457

FromMasahiro Yamada <yamada.masahiro@socionext.com>
Date2017-08-10 13:30 +0200
Message-ID<ucTP3-4V8-1@gated-at.bofh.it>
In reply to#1708454
Hi.


2017-08-10 20:11 GMT+09:00 Masahiro Yamada <yamada.masahiro@socionext.com>:
> 2017-08-10 19:37 GMT+09:00 Philipp Zabel <p.zabel@pengutronix.de>:
>> Hi Katsuhiro,
>>
>> On Thu, 2017-08-10 at 16:27 +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>
>>> ---
>>>  drivers/reset/reset-uniphier.c | 15 +++++++++++++++
>>>  1 file changed, 15 insertions(+)
>>>
>>> diff --git a/drivers/reset/reset-uniphier.c b/drivers/reset/reset-uniphier.c
>>> index f60c137c17cb..cda4a78a58e2 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(100, 0x10, 6), /* EVEA */
>>> > +   UNIPHIER_RESET_END,
>>> +};


I take back my Acked-by.


The reset line index is independent from others
because this block is a separate instance.

Are you OK with starting from the reset ID 100?





-- 
Best Regards
Masahiro Yamada

[toc] | [prev] | [next] | [standalone]


#1709241

FromKatsuhiro Suzuki <suzuki.katsuhiro@socionext.com>
Date2017-08-11 06:30 +0200
Message-ID<ud9K9-7dR-1@gated-at.bofh.it>
In reply to#1708457
Hi Yamada-san,

On 2017年08月10日 20:23, Masahiro Yamada wrote:
> Hi.
> 
> 
> 2017-08-10 20:11 GMT+09:00 Masahiro Yamada <yamada.masahiro@socionext.com>:
>> 2017-08-10 19:37 GMT+09:00 Philipp Zabel <p.zabel@pengutronix.de>:
>>> Hi Katsuhiro,
>>>
>>> On Thu, 2017-08-10 at 16:27 +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>
>>>> ---
>>>>   drivers/reset/reset-uniphier.c | 15 +++++++++++++++
>>>>   1 file changed, 15 insertions(+)
>>>>
>>>> diff --git a/drivers/reset/reset-uniphier.c b/drivers/reset/reset-uniphier.c
>>>> index f60c137c17cb..cda4a78a58e2 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(100, 0x10, 6), /* EVEA */
>>>>> +   UNIPHIER_RESET_END,
>>>> +};
> 
> 
> I take back my Acked-by.
> 
> 
> The reset line index is independent from others
> because this block is a separate instance.
> 
> Are you OK with starting from the reset ID 100?

It's my mistake. This ID can start with 0.
I will fix in next V2 series, thank you.

Regards,
--
Katsuhiro Suzuki

[toc] | [prev] | [next] | [standalone]


#1709252

FromKatsuhiro Suzuki <suzuki.katsuhiro@socionext.com>
Date2017-08-11 07:00 +0200
Message-ID<udadb-7ng-1@gated-at.bofh.it>
In reply to#1708407
Hi Philipp,

On 2017年08月10日 19:37, Philipp Zabel wrote:
> Hi Katsuhiro,
> 
> On Thu, 2017-08-10 at 16:27 +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>
>> ---
>>   drivers/reset/reset-uniphier.c | 15 +++++++++++++++
>>   1 file changed, 15 insertions(+)
>>
>> diff --git a/drivers/reset/reset-uniphier.c b/drivers/reset/reset-uniphier.c
>> index f60c137c17cb..cda4a78a58e2 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(100, 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);
> 
> Please add a patch to describe the new compatible values in
> Documentation/devicetree/bindings/reset/uniphier-reset.txt.
> 

Thank you, I will add it and send V2 series.


Regards,
--
Katsuhiro Suzuki

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web