[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <77e146f7-4431-8ce6-6299-330f052bebe0@ti.com>
Date: Tue, 16 Jan 2018 08:50:52 +0200
From: Tero Kristo <t-kristo@...com>
To: Tony Lindgren <tony@...mide.com>,
Philipp Zabel <philipp.zabel@...il.com>,
Paul Parsons <lost.distance@...oo.com>
CC: <linux-kernel@...r.kernel.org>, <devicetree@...r.kernel.org>,
<linux-omap@...r.kernel.org>, Dave Gerlach <d-gerlach@...com>,
Mark Rutland <mark.rutland@....com>, Nishant Menon <nm@...com>,
Philipp Zabel <p.zabel@...gutronix.de>,
Rob Herring <robh+dt@...nel.org>, Suman Anna <s-anna@...com>
Subject: Re: [PATCH] reset: ti-rstctrl: use the reset-simple driver
On 16/01/18 03:11, Tony Lindgren wrote:
> We can support the RSTCTRL reset registers on many TI SoCs with
> reset-simple.
>
> Cc: Dave Gerlach <d-gerlach@...com>
> Cc: Mark Rutland <mark.rutland@....com>
> Cc: Nishant Menon <nm@...com>
> Cc: Philipp Zabel <p.zabel@...gutronix.de>
> Cc: Rob Herring <robh+dt@...nel.org>
> Cc: Suman Anna <s-anna@...com>
> Cc: Tero Kristo <t-kristo@...com>
> Signed-off-by: Tony Lindgren <tony@...mide.com>
> ---
>
> That's all there is to it :) Naturally this can wait for v4.17
> if necessary.
Thats pretty neat. :)
-Tero
>
> ---
> .../devicetree/bindings/reset/ti-rstctrl.txt | 29 ++++++++++++++++++++++
> drivers/reset/Kconfig | 2 +-
> drivers/reset/reset-simple.c | 1 +
> 3 files changed, 31 insertions(+), 1 deletion(-)
> create mode 100644 Documentation/devicetree/bindings/reset/ti-rstctrl.txt
>
> diff --git a/Documentation/devicetree/bindings/reset/ti-rstctrl.txt b/Documentation/devicetree/bindings/reset/ti-rstctrl.txt
> new file mode 100644
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/reset/ti-rstctrl.txt
> @@ -0,0 +1,29 @@
> +TI RSTCTRL Reset Controller
> +
> +Required properties:
> +- compatible : "ti,rstctrl"
> +- reg : Should contain 1 register ranges(address and length)
> +- #reset-cells: 1
> +
> +Example:
> +
> + prcm: prcm@...000 {
> + compatible = "ti,am3-prcm", "simple-bus";
> + reg = <0x200000 0x4000>;
> + #address-cells = <1>;
> + #size-cells = <1>;
> + ranges = <0 0x200000 0x4000>;
> +
> + prm_gfx: prm@...0 {
> + compatible = "simple-bus";
> + #address-cells = <1>;
> + #size-cells = <1>;
> + ranges = <0 0x1100 0x100>;
> +
> + gfx_rstctrl: rstctrl@4 {
> + reg = <0x4 0x4>;
> + #reset-cells = <1>;
> + compatible = "ti,rstctrl";
> + };
> + };
> + };
> diff --git a/drivers/reset/Kconfig b/drivers/reset/Kconfig
> --- a/drivers/reset/Kconfig
> +++ b/drivers/reset/Kconfig
> @@ -83,7 +83,7 @@ config RESET_PISTACHIO
>
> config RESET_SIMPLE
> bool "Simple Reset Controller Driver" if COMPILE_TEST
> - default ARCH_SOCFPGA || ARCH_STM32 || ARCH_STRATIX10 || ARCH_SUNXI || ARCH_ZX
> + default ARCH_OMAP2PLUS || ARCH_SOCFPGA || ARCH_STM32 || ARCH_STRATIX10 || ARCH_SUNXI || ARCH_ZX
> help
> This enables a simple reset controller driver for reset lines that
> that can be asserted and deasserted by toggling bits in a contiguous,
> diff --git a/drivers/reset/reset-simple.c b/drivers/reset/reset-simple.c
> --- a/drivers/reset/reset-simple.c
> +++ b/drivers/reset/reset-simple.c
> @@ -123,6 +123,7 @@ static const struct of_device_id reset_simple_dt_ids[] = {
> { .compatible = "st,stm32-rcc", },
> { .compatible = "allwinner,sun6i-a31-clock-reset",
> .data = &reset_simple_active_low },
> + { .compatible = "ti,rstctrl", },
> { .compatible = "zte,zx296718-reset",
> .data = &reset_simple_active_low },
> { /* sentinel */ },
>
--
Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki
Powered by blists - more mailing lists