devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] reset: ti-rstctrl: use the reset-simple driver
@ 2018-01-16  1:11 Tony Lindgren
       [not found] ` <20180116011159.1386-1-tony-4v6yS6AI5VpBDgjK7y7TUQ@public.gmane.org>
  0 siblings, 1 reply; 15+ messages in thread
From: Tony Lindgren @ 2018-01-16  1:11 UTC (permalink / raw)
  To: Philipp Zabel, Paul Parsons
  Cc: linux-kernel, devicetree, linux-omap, Dave Gerlach, Mark Rutland,
	Nishant Menon, Philipp Zabel, Rob Herring, Suman Anna,
	Tero Kristo

We can support the RSTCTRL reset registers on many TI SoCs with
reset-simple.

Cc: Dave Gerlach <d-gerlach@ti.com>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Nishant Menon <nm@ti.com>
Cc: Philipp Zabel <p.zabel@pengutronix.de>
Cc: Rob Herring <robh+dt@kernel.org>
Cc: Suman Anna <s-anna@ti.com>
Cc: Tero Kristo <t-kristo@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
---

That's all there is to it :) Naturally this can wait for v4.17
if necessary.

---
 .../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@200000 {
+		compatible = "ti,am3-prcm", "simple-bus";
+		reg = <0x200000 0x4000>;
+		#address-cells = <1>;
+		#size-cells = <1>;
+		ranges = <0 0x200000 0x4000>;
+
+		prm_gfx: prm@1100 {
+			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 */ },
-- 
2.15.0

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

end of thread, other threads:[~2018-03-02  9:53 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-01-16  1:11 [PATCH] reset: ti-rstctrl: use the reset-simple driver Tony Lindgren
     [not found] ` <20180116011159.1386-1-tony-4v6yS6AI5VpBDgjK7y7TUQ@public.gmane.org>
2018-01-16  6:50   ` Tero Kristo
2018-01-16  9:30   ` Philipp Zabel
2018-01-16 15:03     ` Tony Lindgren
     [not found]       ` <20180116150314.GC4042-4v6yS6AI5VpBDgjK7y7TUQ@public.gmane.org>
2018-01-16 21:22         ` Suman Anna
     [not found]           ` <d32d9836-5edd-d43d-547b-f22384950f2c-l0cyMroinI0@public.gmane.org>
2018-01-16 23:22             ` Tony Lindgren
     [not found]               ` <20180116232243.GD4042-4v6yS6AI5VpBDgjK7y7TUQ@public.gmane.org>
2018-01-19 20:22                 ` Suman Anna
     [not found]                   ` <10dab35c-9c79-5a77-0654-1e99621e4c0f-l0cyMroinI0@public.gmane.org>
2018-01-19 21:33                     ` Tony Lindgren
     [not found]                       ` <20180119213310.GA4180-4v6yS6AI5VpBDgjK7y7TUQ@public.gmane.org>
2018-01-19 23:29                         ` Suman Anna
2018-01-19 23:49                           ` Tony Lindgren
     [not found]                             ` <20180119234938.GB4180-4v6yS6AI5VpBDgjK7y7TUQ@public.gmane.org>
2018-01-20  0:43                               ` Suman Anna
2018-01-20  0:55                                 ` Tony Lindgren
     [not found]                                   ` <20180120005551.GC4180-4v6yS6AI5VpBDgjK7y7TUQ@public.gmane.org>
2018-01-22 17:03                                     ` Tony Lindgren
2018-03-01 18:14       ` Tony Lindgren
2018-03-02  9:53         ` Philipp Zabel

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).