Skip to contentSkip to conversation

NI Ettus Research USRP E3x0 soft-poweroff.

PATCH RESEND In review Moritz Fischer 2 participants 6 messages Mar 4, 2015 – Mar 10, 2015

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

cover NI Ettus Research USRP E3x0 soft-poweroff.

This patchset adds support for the NI Ettus Research USRP E3x0 SDR's poweroff functionality.

v1:
- Using syscon regmap instead of directly exposing registers.
- Separate commit for dt bindings.
- Fixed typo in Kconfig

Moritz Fischer (3):
power: reset: Add support for NI Ettus Research USRP E3x0
soft-poweroff.
dt: power: Add documentation for NI USRP E3x0 soft-poweroff.
MAINTAINERS: add info for e3x0-poweroff driver.

 .../bindings/power/reset/e3x0-poweroff.txt         | 16 +++++
 MAINTAINERS                                        |  8 +++
 drivers/power/reset/Kconfig                        | 10 +++
 drivers/power/reset/Makefile                       |  1 +
 drivers/power/reset/e3x0-poweroff.c                | 79 ++++++++++++++++++++++
 5 files changed, 114 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/power/reset/e3x0-poweroff.txt
 create mode 100644 drivers/power/reset/e3x0-poweroff.c
Signature · 6 lines
1.9.3

--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
#1 lore raw

PATCH RESEND 1/3 power: reset: Add support for NI Ettus Research USRP E3x0 soft-poweroff.

---
 drivers/power/reset/Kconfig         | 10 +++++
 drivers/power/reset/Makefile        |  1 +
 drivers/power/reset/e3x0-poweroff.c | 79 +++++++++++++++++++++++++++++++++++++
 3 files changed, 90 insertions(+)
drivers/power/reset/Kconfig +10 -0
index 27f6646..7e81c93 100644
@@ -48,6 +48,16 @@ config POWER_RESET_BRCMSTB
 	  Say Y here if you have a Broadcom STB board and you wish
 	  to have restart support.
 
+config POWER_RESET_E3X0
+	tristate "NI Ettus Research USRP E3x0 soft poweroff driver."
+	default n
+	help
+	  Say Y here to enable support for the NI Ettus Research
+	  USRP E3x0 soft poweroff.
+
+	  To compile this driver as a module, chose M here: the
+	  module will be called e3x0-poweroff.
+
 config POWER_RESET_GPIO
 	bool "GPIO power-off driver"
 	depends on OF_GPIO
drivers/power/reset/Makefile +1 -0
index 11de15b..eef50e9a 100644
@@ -3,6 +3,7 @@ obj-$(CONFIG_POWER_RESET_AT91_POWEROFF) += at91-poweroff.o
 obj-$(CONFIG_POWER_RESET_AT91_RESET) += at91-reset.o
 obj-$(CONFIG_POWER_RESET_AXXIA) += axxia-reset.o
 obj-$(CONFIG_POWER_RESET_BRCMSTB) += brcmstb-reboot.o
+obj-$(CONFIG_POWER_RESET_E3X0) += e3x0-poweroff.o
 obj-$(CONFIG_POWER_RESET_GPIO) += gpio-poweroff.o
 obj-$(CONFIG_POWER_RESET_GPIO_RESTART) += gpio-restart.o
 obj-$(CONFIG_POWER_RESET_HISI) += hisi-reboot.o
drivers/power/reset/e3x0-poweroff.c new file +79 -0

79 lines not on this page · raw message

Signature · 6 lines
1.9.3

--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
#2 lore raw

PATCH RESEND 2/3 dt: power: Add documentation for NI USRP E3x0 soft-poweroff.

In reply to Moritz Fischer
---
 .../devicetree/bindings/power/reset/e3x0-poweroff.txt    | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)
Documentation/devicetree/bindings/power/reset/e3x0-poweroff.txt new file +16 -0
new file mode 100644
index 0000000..47896e3
@@ -0,0 +1,16 @@
+National Instruments Ettus Research USRP E3x0 poweroff driver
+
+This module is part of the NI Ettus Research USRP E3x0 SDR.
+
+Required properties:
+- compatible: should be one of the following
+  - "ettus,e3x0-poweroff": For devices such as the NI Ettus Research USRP E3x0
+- syscon: this is the phandle to the register map node
+
+Note: Addresses may vary depending on the FPGA configuration
+
+Example:
+	poweroff0: poweroff@40300000 {
+		compatible = "ettus,e3x0-poweroff";
+		syscon = <&regmapnode>;
+	};
Signature · 6 lines
1.9.3

--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
#3 lore raw

PATCH RESEND 3/3 MAINTAINERS: add info for e3x0-poweroff driver.

In reply to Moritz Fischer
---
 MAINTAINERS | 8 ++++++++
 1 file changed, 8 insertions(+)
MAINTAINERS +8 -0
index 85024e2..19c0ae1 100644
@@ -3522,6 +3522,14 @@ S:	Supported
 F:	drivers/input/misc/e3x0-button.c
 F:	Documentation/devicetree/bindings/input/e3x0-button.txt
 
+E3X0 POWEROFF DRIVER
+M:	Moritz Fischer <[email protected]>
+L:	[email protected]
+W:	http://www.ettus.com
+S:	Supported
+F:	drivers/power/reset/e3x0-poweroff.c
+F:	Documentation/devicetree/bindings/power/reset/e3x0-poweroff.txt
+
 E4000 MEDIA DRIVER
 M:	Antti Palosaari <[email protected]>
 L:	[email protected]
Signature · 6 lines
1.9.3

--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
#4 lore raw
In reply to Moritz Fischer

Hi,

Please CC linux-pm.

Quoted 2 lines · Moritz Fischer

This patchset adds support for the NI Ettus Research USRP E3x0 SDR's poweroff functionality.

I would prefer to have a generic driver like syscon-reboot does for system reset.

-- Sebastian

#5 lore raw

Hi,

Quoted 1 line · Sebastian Reichel

Please CC linux-pm.

Will do.

Quoted 2 lines

I would prefer to have a generic driver like syscon-reboot does for system reset.

Will look into it,

-- Moritz