NI Ettus Research USRP E3x0 soft-poweroff.
Subsystems (2)
cover NI Ettus Research USRP E3x0 soft-poweroff.
This patchset adds support for the NI Ettus Research USRP E3x0 SDR's poweroff functionality.
Moritz Fischer (2):
power: reset: Add support for NI Ettus Research 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 | 94 ++++++++++++++++++++++ 5 files changed, 129 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
PATCH 1/2 power: reset: Add support for NI Ettus Research USRP E3x0 soft-poweroff.
--- .../bindings/power/reset/e3x0-poweroff.txt | 16 ++++ drivers/power/reset/Kconfig | 10 +++ drivers/power/reset/Makefile | 1 + drivers/power/reset/e3x0-poweroff.c | 94 ++++++++++++++++++++++ 4 files changed, 121 insertions(+)
Documentation/devicetree/bindings/power/reset/e3x0-poweroff.txt new file +16 -0
@@ -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 +- reg: The registers to write to in order to trigger the poweroff. + +Note: Addresses may vary depending on the FPGA configuration + +Example: + poweroff0: poweroff@40300000 { + compatible = "ettus,e3x0-poweroff"; + reg = <0x40300000 0x04>; + };
drivers/power/reset/Kconfig +10 -0
@@ -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-reset. + config POWER_RESET_GPIO bool "GPIO power-off driver" depends on OF_GPIO
drivers/power/reset/Makefile +1 -0
@@ -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 +94 -0
94 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
Re: [PATCH 1/2] power: reset: Add support for NI Ettus Research USRP E3x0 soft-poweroff.
One nit below.
Quoted 37 lines · Moritz Fischer
Signed-off-by Moritz Fischer <[email protected]>--- .../bindings/power/reset/e3x0-poweroff.txt | 16 ++++ drivers/power/reset/Kconfig | 10 +++ drivers/power/reset/Makefile | 1 + drivers/power/reset/e3x0-poweroff.c | 94 ++++++++++++++++++++++ 4 files changed, 121 insertions(+)Documentation/devicetree/bindings/power/reset/e3x0-poweroff.txt new file +16
-0@@ -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 +- reg: The registers to write to in order to trigger the poweroff. + +Note: Addresses may vary depending on the FPGA configuration + +Example: + poweroff0: poweroff@40300000 { + compatible = "ettus,e3x0-poweroff"; + reg = <0x40300000 0x04>; + };drivers/power/reset/Kconfig +0
-0@@ -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.
drivers/power/reset/Kconfig config POWER_RESET_BRCMSTB · line 59
Quoted 10 lines
drivers/power/reset/Kconfig +9
-0+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-reset.
e3x0-poweroff
Quoted 9 lines
drivers/power/reset/Kconfig +1
-0+ config POWER_RESET_GPIO bool "GPIO power-off driver" depends on OF_GPIOdrivers/power/reset/Makefile +0
-0
drivers/power/reset/Makefile obj-$(CONFIG_POWER_RESET_AT91_POWEROFF) += at91-poweroff.o · line 9
Quoted 7 lines
drivers/power/reset/Makefile +1
-0@@ -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
Paul Bolle
Re: [PATCH 1/2] power: reset: Add support for NI Ettus Research USRP E3x0 soft-poweroff.
Paul,
thanks for your feedback. Will incorporate the changes into the v2 when I'll resend.
Quoted 64 lines · Paul Bolle
One nit below.
Quoted 37 lines · Moritz Fischer
Signed-off-by Moritz Fischer <[email protected]>--- .../bindings/power/reset/e3x0-poweroff.txt | 16 ++++ drivers/power/reset/Kconfig | 10 +++ drivers/power/reset/Makefile | 1 + drivers/power/reset/e3x0-poweroff.c | 94 ++++++++++++++++++++++ 4 files changed, 121 insertions(+)Documentation/devicetree/bindings/power/reset/e3x0-poweroff.txt new file +16
-0@@ -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 +- reg: The registers to write to in order to trigger the poweroff. + +Note: Addresses may vary depending on the FPGA configuration + +Example: + poweroff0: poweroff@40300000 { + compatible = "ettus,e3x0-poweroff"; + reg = <0x40300000 0x04>; + };drivers/power/reset/Kconfig +0
-0@@ -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.drivers/power/reset/Kconfig config POWER_RESET_BRCMSTB · line 59
Quoted 10 lines
drivers/power/reset/Kconfig +9
-0+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-reset.e3x0-poweroff
Quoted 11 lines
drivers/power/reset/Kconfig +1
-0+ config POWER_RESET_GPIO bool "GPIO power-off driver" depends on OF_GPIOdrivers/power/reset/Makefile +0
-0@@ -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
Quoted 9 lines
drivers/power/reset/Makefile obj-$(CONFIG_POWER_RESET_AT91_POWEROFF) += at91-poweroff.o · line 9
Quoted 5 lines
drivers/power/reset/Makefile +1
-0obj-$(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.oPaul Bolle
Moritz
PATCH 2/2 MAINTAINERS: add info for e3x0-poweroff driver.
In reply to Moritz Fischer--- MAINTAINERS | 8 ++++++++ 1 file changed, 8 insertions(+)
MAINTAINERS +8 -0
@@ -3495,6 +3495,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