* [PATCH v2 1/3] dt-bindings: arm: atmel: add missing samx7 to reset controller
@ 2019-02-06 18:12 Nicolas Ferre
2019-02-06 18:12 ` [PATCH v2 2/3] dt-bindings: arm: atmel: add new sam9x60 reset controller binding Nicolas Ferre
` (2 more replies)
0 siblings, 3 replies; 7+ messages in thread
From: Nicolas Ferre @ 2019-02-06 18:12 UTC (permalink / raw)
To: Alexandre Belloni, Ludovic Desroches, linux-arm-kernel,
Sebastian Reichel
Cc: linux-kernel, linux-pm, Nicolas Ferre
Add this missing compatibility string to the Reset Controller
compatible string chip list.
Signed-off-by: Nicolas Ferre <nicolas.ferre@microchip.com>
Reviewed-by: Rob Herring <robh@kernel.org>
---
v2: split series and collect tag
Documentation/devicetree/bindings/arm/atmel-sysregs.txt | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Documentation/devicetree/bindings/arm/atmel-sysregs.txt b/Documentation/devicetree/bindings/arm/atmel-sysregs.txt
index df444073d376..dd7864f2bb2b 100644
--- a/Documentation/devicetree/bindings/arm/atmel-sysregs.txt
+++ b/Documentation/devicetree/bindings/arm/atmel-sysregs.txt
@@ -21,7 +21,7 @@ Its subnodes can be:
RSTC Reset Controller required properties:
- compatible: Should be "atmel,<chip>-rstc".
- <chip> can be "at91sam9260" or "at91sam9g45" or "sama5d3"
+ <chip> can be "at91sam9260", "at91sam9g45", "sama5d3" or "samx7"
- reg: Should contain registers location and length
- clocks: phandle to input clock.
--
2.17.1
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [PATCH v2 2/3] dt-bindings: arm: atmel: add new sam9x60 reset controller binding
2019-02-06 18:12 [PATCH v2 1/3] dt-bindings: arm: atmel: add missing samx7 to reset controller Nicolas Ferre
@ 2019-02-06 18:12 ` Nicolas Ferre
2019-02-08 15:23 ` Alexandre Belloni
2019-02-06 18:12 ` [PATCH v2 3/3] power: reset: at91-reset: add support for sam9x60 SoC Nicolas Ferre
2019-02-08 15:23 ` [PATCH v2 1/3] dt-bindings: arm: atmel: add missing samx7 to reset controller Alexandre Belloni
2 siblings, 1 reply; 7+ messages in thread
From: Nicolas Ferre @ 2019-02-06 18:12 UTC (permalink / raw)
To: Alexandre Belloni, Ludovic Desroches, linux-arm-kernel,
Sebastian Reichel
Cc: linux-kernel, linux-pm, Nicolas Ferre
Update the Reset Controller's binding to add new SoC compatibility string.
Signed-off-by: Nicolas Ferre <nicolas.ferre@microchip.com>
Reviewed-by: Rob Herring <robh@kernel.org>
---
v2: split series and collect tag
Documentation/devicetree/bindings/arm/atmel-sysregs.txt | 1 +
1 file changed, 1 insertion(+)
diff --git a/Documentation/devicetree/bindings/arm/atmel-sysregs.txt b/Documentation/devicetree/bindings/arm/atmel-sysregs.txt
index dd7864f2bb2b..dfc91bc02b97 100644
--- a/Documentation/devicetree/bindings/arm/atmel-sysregs.txt
+++ b/Documentation/devicetree/bindings/arm/atmel-sysregs.txt
@@ -22,6 +22,7 @@ Its subnodes can be:
RSTC Reset Controller required properties:
- compatible: Should be "atmel,<chip>-rstc".
<chip> can be "at91sam9260", "at91sam9g45", "sama5d3" or "samx7"
+ it also can be "microchip,sam9x60-rstc"
- reg: Should contain registers location and length
- clocks: phandle to input clock.
--
2.17.1
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [PATCH v2 3/3] power: reset: at91-reset: add support for sam9x60 SoC
2019-02-06 18:12 [PATCH v2 1/3] dt-bindings: arm: atmel: add missing samx7 to reset controller Nicolas Ferre
2019-02-06 18:12 ` [PATCH v2 2/3] dt-bindings: arm: atmel: add new sam9x60 reset controller binding Nicolas Ferre
@ 2019-02-06 18:12 ` Nicolas Ferre
2019-02-08 15:24 ` Alexandre Belloni
2019-02-08 15:23 ` [PATCH v2 1/3] dt-bindings: arm: atmel: add missing samx7 to reset controller Alexandre Belloni
2 siblings, 1 reply; 7+ messages in thread
From: Nicolas Ferre @ 2019-02-06 18:12 UTC (permalink / raw)
To: Alexandre Belloni, Ludovic Desroches, linux-arm-kernel,
Sebastian Reichel
Cc: linux-kernel, linux-pm, Nicolas Ferre
Add support for additional reset causes and the proper compatibility
string for sam9x60 SoC. The restart function is the same as the samx7.
Signed-off-by: Nicolas Ferre <nicolas.ferre@microchip.com>
Acked-by: Sebastian Reichel <sebastian.reichel@collabora.com>
---
v2: split series and collect tag
Sebastian,
I add your Acked-by tag here but as I would like that you take the 3 patches on
your tree now, I let you modify it on your side. I'm expecting Alexandre or
Ludovic to have a look as well.
Best regards,
Nicolas
drivers/power/reset/at91-reset.c | 13 +++++++++++++
1 file changed, 13 insertions(+)
diff --git a/drivers/power/reset/at91-reset.c b/drivers/power/reset/at91-reset.c
index f44a9ffcc2ab..44ca983a49a1 100644
--- a/drivers/power/reset/at91-reset.c
+++ b/drivers/power/reset/at91-reset.c
@@ -44,6 +44,9 @@ enum reset_type {
RESET_TYPE_WATCHDOG = 2,
RESET_TYPE_SOFTWARE = 3,
RESET_TYPE_USER = 4,
+ RESET_TYPE_CPU_FAIL = 6,
+ RESET_TYPE_XTAL_FAIL = 7,
+ RESET_TYPE_ULP2 = 8,
};
static void __iomem *at91_ramc_base[2], *at91_rstc_base;
@@ -164,6 +167,15 @@ static void __init at91_reset_status(struct platform_device *pdev)
case RESET_TYPE_USER:
reason = "user reset";
break;
+ case RESET_TYPE_CPU_FAIL:
+ reason = "CPU clock failure detection";
+ break;
+ case RESET_TYPE_XTAL_FAIL:
+ reason = "32.768 kHz crystal failure detection";
+ break;
+ case RESET_TYPE_ULP2:
+ reason = "ULP2 reset";
+ break;
default:
reason = "unknown reset";
break;
@@ -183,6 +195,7 @@ static const struct of_device_id at91_reset_of_match[] = {
{ .compatible = "atmel,at91sam9g45-rstc", .data = at91sam9g45_restart },
{ .compatible = "atmel,sama5d3-rstc", .data = sama5d3_restart },
{ .compatible = "atmel,samx7-rstc", .data = samx7_restart },
+ { .compatible = "microchip,sam9x60-rstc", .data = samx7_restart },
{ /* sentinel */ }
};
MODULE_DEVICE_TABLE(of, at91_reset_of_match);
--
2.17.1
^ permalink raw reply related [flat|nested] 7+ messages in thread
* Re: [PATCH v2 1/3] dt-bindings: arm: atmel: add missing samx7 to reset controller
2019-02-06 18:12 [PATCH v2 1/3] dt-bindings: arm: atmel: add missing samx7 to reset controller Nicolas Ferre
2019-02-06 18:12 ` [PATCH v2 2/3] dt-bindings: arm: atmel: add new sam9x60 reset controller binding Nicolas Ferre
2019-02-06 18:12 ` [PATCH v2 3/3] power: reset: at91-reset: add support for sam9x60 SoC Nicolas Ferre
@ 2019-02-08 15:23 ` Alexandre Belloni
2 siblings, 0 replies; 7+ messages in thread
From: Alexandre Belloni @ 2019-02-08 15:23 UTC (permalink / raw)
To: Nicolas Ferre
Cc: Ludovic Desroches, linux-arm-kernel, Sebastian Reichel,
linux-kernel, linux-pm
On 06/02/2019 19:12:19+0100, Nicolas Ferre wrote:
> Add this missing compatibility string to the Reset Controller
> compatible string chip list.
>
> Signed-off-by: Nicolas Ferre <nicolas.ferre@microchip.com>
> Reviewed-by: Rob Herring <robh@kernel.org>
Acked-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
> ---
> v2: split series and collect tag
>
> Documentation/devicetree/bindings/arm/atmel-sysregs.txt | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/Documentation/devicetree/bindings/arm/atmel-sysregs.txt b/Documentation/devicetree/bindings/arm/atmel-sysregs.txt
> index df444073d376..dd7864f2bb2b 100644
> --- a/Documentation/devicetree/bindings/arm/atmel-sysregs.txt
> +++ b/Documentation/devicetree/bindings/arm/atmel-sysregs.txt
> @@ -21,7 +21,7 @@ Its subnodes can be:
>
> RSTC Reset Controller required properties:
> - compatible: Should be "atmel,<chip>-rstc".
> - <chip> can be "at91sam9260" or "at91sam9g45" or "sama5d3"
> + <chip> can be "at91sam9260", "at91sam9g45", "sama5d3" or "samx7"
> - reg: Should contain registers location and length
> - clocks: phandle to input clock.
>
> --
> 2.17.1
>
--
Alexandre Belloni, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH v2 2/3] dt-bindings: arm: atmel: add new sam9x60 reset controller binding
2019-02-06 18:12 ` [PATCH v2 2/3] dt-bindings: arm: atmel: add new sam9x60 reset controller binding Nicolas Ferre
@ 2019-02-08 15:23 ` Alexandre Belloni
0 siblings, 0 replies; 7+ messages in thread
From: Alexandre Belloni @ 2019-02-08 15:23 UTC (permalink / raw)
To: Nicolas Ferre
Cc: Ludovic Desroches, linux-arm-kernel, Sebastian Reichel,
linux-kernel, linux-pm
On 06/02/2019 19:12:20+0100, Nicolas Ferre wrote:
> Update the Reset Controller's binding to add new SoC compatibility string.
>
> Signed-off-by: Nicolas Ferre <nicolas.ferre@microchip.com>
> Reviewed-by: Rob Herring <robh@kernel.org>
Acked-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
> ---
> v2: split series and collect tag
>
> Documentation/devicetree/bindings/arm/atmel-sysregs.txt | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/Documentation/devicetree/bindings/arm/atmel-sysregs.txt b/Documentation/devicetree/bindings/arm/atmel-sysregs.txt
> index dd7864f2bb2b..dfc91bc02b97 100644
> --- a/Documentation/devicetree/bindings/arm/atmel-sysregs.txt
> +++ b/Documentation/devicetree/bindings/arm/atmel-sysregs.txt
> @@ -22,6 +22,7 @@ Its subnodes can be:
> RSTC Reset Controller required properties:
> - compatible: Should be "atmel,<chip>-rstc".
> <chip> can be "at91sam9260", "at91sam9g45", "sama5d3" or "samx7"
> + it also can be "microchip,sam9x60-rstc"
> - reg: Should contain registers location and length
> - clocks: phandle to input clock.
>
> --
> 2.17.1
>
--
Alexandre Belloni, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH v2 3/3] power: reset: at91-reset: add support for sam9x60 SoC
2019-02-06 18:12 ` [PATCH v2 3/3] power: reset: at91-reset: add support for sam9x60 SoC Nicolas Ferre
@ 2019-02-08 15:24 ` Alexandre Belloni
2019-02-19 23:43 ` Sebastian Reichel
0 siblings, 1 reply; 7+ messages in thread
From: Alexandre Belloni @ 2019-02-08 15:24 UTC (permalink / raw)
To: Nicolas Ferre
Cc: Ludovic Desroches, linux-arm-kernel, Sebastian Reichel,
linux-kernel, linux-pm
On 06/02/2019 19:12:21+0100, Nicolas Ferre wrote:
> Add support for additional reset causes and the proper compatibility
> string for sam9x60 SoC. The restart function is the same as the samx7.
>
> Signed-off-by: Nicolas Ferre <nicolas.ferre@microchip.com>
> Acked-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Reviewed-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
> ---
> v2: split series and collect tag
>
> Sebastian,
> I add your Acked-by tag here but as I would like that you take the 3 patches on
> your tree now, I let you modify it on your side. I'm expecting Alexandre or
> Ludovic to have a look as well.
>
Sebastian, please take this series through your tree. Thanks!
--
Alexandre Belloni, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH v2 3/3] power: reset: at91-reset: add support for sam9x60 SoC
2019-02-08 15:24 ` Alexandre Belloni
@ 2019-02-19 23:43 ` Sebastian Reichel
0 siblings, 0 replies; 7+ messages in thread
From: Sebastian Reichel @ 2019-02-19 23:43 UTC (permalink / raw)
To: Alexandre Belloni
Cc: Nicolas Ferre, Ludovic Desroches, linux-arm-kernel, linux-kernel,
linux-pm
[-- Attachment #1: Type: text/plain, Size: 882 bytes --]
Hi,
On Fri, Feb 08, 2019 at 04:24:35PM +0100, Alexandre Belloni wrote:
> On 06/02/2019 19:12:21+0100, Nicolas Ferre wrote:
> > Add support for additional reset causes and the proper compatibility
> > string for sam9x60 SoC. The restart function is the same as the samx7.
> >
> > Signed-off-by: Nicolas Ferre <nicolas.ferre@microchip.com>
> > Acked-by: Sebastian Reichel <sebastian.reichel@collabora.com>
> Reviewed-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
>
> > ---
> > v2: split series and collect tag
> >
> > Sebastian,
> > I add your Acked-by tag here but as I would like that you take the 3 patches on
> > your tree now, I let you modify it on your side. I'm expecting Alexandre or
> > Ludovic to have a look as well.
> >
>
> Sebastian, please take this series through your tree. Thanks!
All right. I just merged them!
-- Sebastian
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2019-02-19 23:43 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-02-06 18:12 [PATCH v2 1/3] dt-bindings: arm: atmel: add missing samx7 to reset controller Nicolas Ferre
2019-02-06 18:12 ` [PATCH v2 2/3] dt-bindings: arm: atmel: add new sam9x60 reset controller binding Nicolas Ferre
2019-02-08 15:23 ` Alexandre Belloni
2019-02-06 18:12 ` [PATCH v2 3/3] power: reset: at91-reset: add support for sam9x60 SoC Nicolas Ferre
2019-02-08 15:24 ` Alexandre Belloni
2019-02-19 23:43 ` Sebastian Reichel
2019-02-08 15:23 ` [PATCH v2 1/3] dt-bindings: arm: atmel: add missing samx7 to reset controller Alexandre Belloni
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).