* [PATCH 1/2] reset: add DT bindings header for Gemini reset controller
@ 2017-05-24 8:19 Linus Walleij
2017-05-24 8:50 ` Philipp Zabel
0 siblings, 1 reply; 3+ messages in thread
From: Linus Walleij @ 2017-05-24 8:19 UTC (permalink / raw)
To: linux-arm-kernel
This adds the DT binding macros used by the reset controller.
Acked-by: Rob Herring <robh@kernel.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
---
Philipp: please merge this into the reset subsystem once
you're happy with it. Sorry for the back-and-forth. I will
deal with the ARM SoC DTS landing orthogonally.
The DTS files will be submitted with numerical values for
the reset lines, then a follow-up patch after -rc1 will
switch to using defines. This strategy was adviced by the
ARM SoC maintainers.
ChangeLog v1->v4:
- New file to merge the macros in isolation from the
DT bindings and implementation.
The bindings themselves will be merged as part of the DTS updates
through the ARM SoC tree.
---
include/dt-bindings/reset/cortina,gemini-reset.h | 36 ++++++++++++++++++++++++
1 file changed, 36 insertions(+)
create mode 100644 include/dt-bindings/reset/cortina,gemini-reset.h
diff --git a/include/dt-bindings/reset/cortina,gemini-reset.h b/include/dt-bindings/reset/cortina,gemini-reset.h
new file mode 100644
index 000000000000..0b886aee65e3
--- /dev/null
+++ b/include/dt-bindings/reset/cortina,gemini-reset.h
@@ -0,0 +1,36 @@
+#ifndef _DT_BINDINGS_RESET_CORTINA_GEMINI_H
+#define _DT_BINDINGS_RESET_CORTINA_GEMINI_H
+
+#define GEMINI_RESET_DRAM 0
+#define GEMINI_RESET_FLASH 1
+#define GEMINI_RESET_IDE 2
+#define GEMINI_RESET_RAID 3
+#define GEMINI_RESET_SECURITY 4
+#define GEMINI_RESET_GMAC0 5
+#define GEMINI_RESET_GMAC1 6
+#define GEMINI_RESET_PCI 7
+#define GEMINI_RESET_USB0 8
+#define GEMINI_RESET_USB1 9
+#define GEMINI_RESET_DMAC 10
+#define GEMINI_RESET_APB 11
+#define GEMINI_RESET_LPC 12
+#define GEMINI_RESET_LCD 13
+#define GEMINI_RESET_INTCON0 14
+#define GEMINI_RESET_INTCON1 15
+#define GEMINI_RESET_RTC 16
+#define GEMINI_RESET_TIMER 17
+#define GEMINI_RESET_UART 18
+#define GEMINI_RESET_SSP 19
+#define GEMINI_RESET_GPIO0 20
+#define GEMINI_RESET_GPIO1 21
+#define GEMINI_RESET_GPIO2 22
+#define GEMINI_RESET_WDOG 23
+#define GEMINI_RESET_EXTERN 24
+#define GEMINI_RESET_CIR 25
+#define GEMINI_RESET_SATA0 26
+#define GEMINI_RESET_SATA1 27
+#define GEMINI_RESET_TVC 28
+#define GEMINI_RESET_CPU1 30
+#define GEMINI_RESET_GLOBAL 31
+
+#endif
--
2.9.4
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [PATCH 1/2] reset: add DT bindings header for Gemini reset controller
2017-05-24 8:19 [PATCH 1/2] reset: add DT bindings header for Gemini reset controller Linus Walleij
@ 2017-05-24 8:50 ` Philipp Zabel
2017-06-18 22:00 ` Linus Walleij
0 siblings, 1 reply; 3+ messages in thread
From: Philipp Zabel @ 2017-05-24 8:50 UTC (permalink / raw)
To: linux-arm-kernel
On Wed, 2017-05-24 at 10:19 +0200, Linus Walleij wrote:
> This adds the DT binding macros used by the reset controller.
>
> Acked-by: Rob Herring <robh@kernel.org>
> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
> ---
> Philipp: please merge this into the reset subsystem once
> you're happy with it. Sorry for the back-and-forth. I will
> deal with the ARM SoC DTS landing orthogonally.
No problem, applied both to the reset/next branch.
regards
Philipp
> The DTS files will be submitted with numerical values for
> the reset lines, then a follow-up patch after -rc1 will
> switch to using defines. This strategy was adviced by the
> ARM SoC maintainers.
>
> ChangeLog v1->v4:
> - New file to merge the macros in isolation from the
> DT bindings and implementation.
>
> The bindings themselves will be merged as part of the DTS updates
> through the ARM SoC tree.
> ---
> include/dt-bindings/reset/cortina,gemini-reset.h | 36 ++++++++++++++++++++++++
> 1 file changed, 36 insertions(+)
> create mode 100644 include/dt-bindings/reset/cortina,gemini-reset.h
>
> diff --git a/include/dt-bindings/reset/cortina,gemini-reset.h b/include/dt-bindings/reset/cortina,gemini-reset.h
> new file mode 100644
> index 000000000000..0b886aee65e3
> --- /dev/null
> +++ b/include/dt-bindings/reset/cortina,gemini-reset.h
> @@ -0,0 +1,36 @@
> +#ifndef _DT_BINDINGS_RESET_CORTINA_GEMINI_H
> +#define _DT_BINDINGS_RESET_CORTINA_GEMINI_H
> +
> +#define GEMINI_RESET_DRAM 0
> +#define GEMINI_RESET_FLASH 1
> +#define GEMINI_RESET_IDE 2
> +#define GEMINI_RESET_RAID 3
> +#define GEMINI_RESET_SECURITY 4
> +#define GEMINI_RESET_GMAC0 5
> +#define GEMINI_RESET_GMAC1 6
> +#define GEMINI_RESET_PCI 7
> +#define GEMINI_RESET_USB0 8
> +#define GEMINI_RESET_USB1 9
> +#define GEMINI_RESET_DMAC 10
> +#define GEMINI_RESET_APB 11
> +#define GEMINI_RESET_LPC 12
> +#define GEMINI_RESET_LCD 13
> +#define GEMINI_RESET_INTCON0 14
> +#define GEMINI_RESET_INTCON1 15
> +#define GEMINI_RESET_RTC 16
> +#define GEMINI_RESET_TIMER 17
> +#define GEMINI_RESET_UART 18
> +#define GEMINI_RESET_SSP 19
> +#define GEMINI_RESET_GPIO0 20
> +#define GEMINI_RESET_GPIO1 21
> +#define GEMINI_RESET_GPIO2 22
> +#define GEMINI_RESET_WDOG 23
> +#define GEMINI_RESET_EXTERN 24
> +#define GEMINI_RESET_CIR 25
> +#define GEMINI_RESET_SATA0 26
> +#define GEMINI_RESET_SATA1 27
> +#define GEMINI_RESET_TVC 28
> +#define GEMINI_RESET_CPU1 30
> +#define GEMINI_RESET_GLOBAL 31
> +
> +#endif
^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH 1/2] reset: add DT bindings header for Gemini reset controller
2017-05-24 8:50 ` Philipp Zabel
@ 2017-06-18 22:00 ` Linus Walleij
0 siblings, 0 replies; 3+ messages in thread
From: Linus Walleij @ 2017-06-18 22:00 UTC (permalink / raw)
To: linux-arm-kernel
On Wed, May 24, 2017 at 10:50 AM, Philipp Zabel <p.zabel@pengutronix.de> wrote:
> On Wed, 2017-05-24 at 10:19 +0200, Linus Walleij wrote:
>> This adds the DT binding macros used by the reset controller.
>>
>> Acked-by: Rob Herring <robh@kernel.org>
>> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
>> ---
>> Philipp: please merge this into the reset subsystem once
>> you're happy with it. Sorry for the back-and-forth. I will
>> deal with the ARM SoC DTS landing orthogonally.
>
> No problem, applied both to the reset/next branch.
If the clk people decide to merge the combined clock+reset
controller driver, please revert the reset driver (the second
patch).
Please do *not* revert the first patch (with the
bindings) because I do not know what happens if branch
A puts it in, then branch B also put it in and a later
version of A say A' reverts its own addition. I don't
think git would cope, so please just leave it in.
Yours,
Linus Walleij
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2017-06-18 22:00 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-05-24 8:19 [PATCH 1/2] reset: add DT bindings header for Gemini reset controller Linus Walleij
2017-05-24 8:50 ` Philipp Zabel
2017-06-18 22:00 ` Linus Walleij
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).