- 16 Nov, 2015 8 commits
-
-
Masahiro Yamada authored
The directory drivers/reset/ is guarded by CONFIG_RESET_CONTROLLER in driver/Makefile. CONFIG_RESET_CONTROLLER is boolean, so it always evaluates to 'y' in drivers/reset/Makefile. Signed-off-by:
Masahiro Yamada <yamada.masahiro@socionext.com> Signed-off-by:
Philipp Zabel <p.zabel@pengutronix.de>
-
Philipp Zabel authored
ENOSYS is reserved to report invalid syscalls to userspace. Consistently return ENOTSUPP to indicate that the driver doesn't support the functionality or the reset framework is not enabled at all. Signed-off-by:
Philipp Zabel <p.zabel@pengutronix.de>
-
Philipp Zabel authored
Since this array is static const, it should be marked as __initconst. Signed-off-by:
Philipp Zabel <p.zabel@pengutronix.de> Acked-by:
Maxime Ripard <maxime.ripard@free-electrons.com>
-
Philipp Zabel authored
This just fixes a checkpatch warning, no functional change. Signed-off-by:
Philipp Zabel <p.zabel@pengutronix.de> Acked-by:
Maxime Coquelin <maxime.coquelin@st.com>
-
Lee Jones authored
Signed-off-by:
Lee Jones <lee.jones@linaro.org> Signed-off-by:
Philipp Zabel <p.zabel@pengutronix.de>
-
Lee Jones authored
Signed-off-by:
Lee Jones <lee.jones@linaro.org> Signed-off-by:
Philipp Zabel <p.zabel@pengutronix.de>
-
Alban Bedel authored
When of_reset_control_get() is called without connection ID it returns -ENOENT when the 'resets' property doesn't exists or is an empty entry. However when a connection ID is given it returns -EINVAL when the 'resets' property doesn't exists or the requested name can't be found. This is because the error code returned by of_property_match_string() is just passed down as an index to of_parse_phandle_with_args(), which then returns -EINVAL. To get a consistent return value with both code paths we must return -ENOENT when of_property_match_string() fails. Signed-off-by:
Alban Bedel <albeu@free.fr> Signed-off-by:
Philipp Zabel <p.zabel@pengutronix.de>
-
Vince Hsu authored
Add of_reset_control_get_by_index() to allow the drivers to get reset device without knowing its name. Signed-off-by:
Vince Hsu <vinceh@nvidia.com> [jonathanh@nvidia.com: Updated stub function to return -ENOTSUPP instead of -ENOSYS which should only be used for system calls.] Signed-off-by:
Jon Hunter <jonathanh@nvidia.com> Signed-off-by:
Philipp Zabel <p.zabel@pengutronix.de>
-
- 01 Sep, 2015 1 commit
-
-
Axel Lin authored
Signed-off-by:
Axel Lin <axel.lin@ingics.com> Acked-by:
Alban Bedel <albeu@free.fr> Signed-off-by:
Philipp Zabel <p.zabel@pengutronix.de>
-
- 04 Aug, 2015 2 commits
-
-
Moritz Fischer authored
This adds a reset controller driver to control the Xilinx Zynq AP-SoC's various resets. Signed-off-by:
Moritz Fischer <moritz.fischer@ettus.com> Reviewed-by:
Michal Simek <michal.simek@xilinx.com> Acked-by:
Sören Brinkmann <soren.brinkmann@xilinx.com> Signed-off-by:
Philipp Zabel <p.zabel@pengutronix.de>
-
Alban Bedel authored
The AR71XX/AR9XXX SoC have a simple reset controller with one bit per reset line. Signed-off-by:
Alban Bedel <albeu@free.fr> Acked-by:
Ralf Baechle <ralf@linux-mips.org> Signed-off-by:
Philipp Zabel <p.zabel@pengutronix.de>
-
- 03 Aug, 2015 4 commits
-
-
Dinh Nguyen authored
In order for the Arria10 to be able to re-use the reset driver for SoCFPGA Cyclone5/Arria5, we need to read the 'altr,modrst-offset' property from the device tree entry. The 'altr,modrst-offset' property is the first register into the reset manager that is used for bringing peripherals out of reset. The driver assumes a modrst-offset of 0x10 in order to support legacy Cyclone5/Arria5 hardware. Signed-off-by:
Dinh Nguyen <dinguyen@opensource.altera.com>
-
Joachim Eastwood authored
Add reset driver for the Reset Generation Unit (RGU) found on NXP LPC18xx and LPC43xx devies. This reset controller features up to 64 reset lines connected to different blocks and peripheral in the SoC. Most reset lines on the controller are self clearing except for those dealing with the Cortex-M0 cores on LPC43xx devices. This driver also registers a restart handler that can be used to reset the entire device. Signed-off-by:
Joachim Eastwood <manabian@gmail.com> Signed-off-by:
Philipp Zabel <p.zabel@pengutronix.de>
-
Fabian Frederick authored
of_device_id is always used as const. (See driver.of_match_table and open firmware functions) Signed-off-by:
Fabian Frederick <fabf@skynet.be> Acked-by:
Maxime Coquelin <maxime.coquelin@st.com> Acked-by:
Patrice Chotard <patrice.chotard@st.com> Signed-off-by:
Philipp Zabel <p.zabel@pengutronix.de>
-
Philipp Zabel authored
By popular vote, the DT binding includes for reset controllers are located in include/dt-bindings/reset/. Move the STi reset constants in there, too, to avoid confusion. Signed-off-by:
Philipp Zabel <p.zabel@pengutronix.de> Acked-by:
Patrice Chotard <patrice.chotard@st.com>
-
- 18 May, 2015 2 commits
-
-
Antoine Tenart authored
With proper platform driver probing for berlin reset driver, drop the arch_initcall workaround. Signed-off-by:
Antoine Tenart <antoine.tenart@free-electrons.com> Acked-by:
Philipp Zabel <p.zabel@pengutronix.de> Signed-off-by:
Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
-
Antoine Tenart authored
The Berlin reset controller was introduced without being a platform driver because of a needed DT rework: the node describing the reset controller also describes the pinctrl and clk controllers... Prepare conversion by adding a platform driver probe to a new compatible "marvell,berlin2-reset" with syscon regmap. Signed-off-by:
Antoine Tenart <antoine.tenart@free-electrons.com> Acked-by:
Philipp Zabel <p.zabel@pengutronix.de> Signed-off-by:
Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
-
- 16 Jan, 2015 1 commit
-
-
Tyler Baker authored
Call spin_lock_init() before the spinlocks are used, both in early init and probe functions preventing a lockdep splat. I have been observing lockdep complaining [1] during boot on my a80 optimus [2] when CONFIG_PROVE_LOCKING has been enabled. This patch resolves the splat, and has been tested on a few other sunxi platforms without issue. [1] http://storage.kernelci.org/next/next-20150107/arm-multi_v7_defconfig+CONFIG_PROVE_LOCKING=y/lab-tbaker/boot-sun9i-a80-optimus.html [2] http://kernelci.org/boot/?a80-optimusSigned-off-by:
Tyler Baker <tyler.baker@linaro.org> Cc: <stable@vger.kernel.org> Acked-by:
Philipp Zabel <p.zabel@pengutronix.de> Signed-off-by:
Kevin Hilman <khilman@linaro.org> Signed-off-by:
Olof Johansson <olof@lixom.net>
-
- 04 Nov, 2014 1 commit
-
-
Dinh Nguyen authored
Populate the reset_status callback for SOCFPGA. Signed-off-by:
Alan Tull <atull@opensource.altera.com> Signed-off-by:
Dinh Nguyen <dinguyen@opensource.altera.com> Signed-off-by:
Philipp Zabel <p.zabel@pengutronix.de>
-
- 31 Oct, 2014 1 commit
-
-
Peter Griffin authored
This patch adds softreset, powerdown and picophy reset controllers for the STiH407 SoC. With this patch three new devices are registered: - 1. st,stih407-powerdown 2. st,stih407-softreset 3. st,stih407-picophyreset All three devices use system configuration registers mapped via regmap to perform the reset or powerdown. The powerdown controller also has an acknowledgement. A separate picophy reset controller manages the different reset channels within the picophy, which have a different polarity to the other system softresets. Managing these different picophy softreset channels is necessary to correctly handle resuming from suspend when USB2 devices are plugged into the USB3 port. Signed-off-by:
Giuseppe Cavallaro <peppe.cavallaro@st.com> Signed-off-by:
Peter Griffin <peter.griffin@linaro.org> Acked-by:
Lee Jones <lee.jones@linaro.org> Signed-off-by:
Maxime Coquelin <maxime.coquelin@st.com>
-
- 20 Oct, 2014 4 commits
-
-
Antoine Ténart authored
Add a reset controller for Marvell Berlin SoCs which is used by the USB PHYs drivers (for now). Signed-off-by:
Antoine Ténart <antoine.tenart@free-electrons.com> Acked-by:
Philipp Zabel <p.zabel@pengutronix.de> Signed-off-by:
Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
-
Wolfram Sang authored
A platform_driver does not need to set an owner, it will be populated by the driver core. Signed-off-by:
Wolfram Sang <wsa@the-dreams.de>
-
Wolfram Sang authored
A platform_driver does not need to set an owner, it will be populated by the driver core. Signed-off-by:
Wolfram Sang <wsa@the-dreams.de>
-
Dinh Nguyen authored
There are cases where a system will want to read a reset status bit before doing any other toggling. Add a reset_control_status helper function to the reset controller API. Signed-off-by:
Dinh Nguyen <dinguyen@opensource.altera.com> Signed-off-by:
Philipp Zabel <p.zabel@pengutronix.de>
-
- 21 May, 2014 2 commits
-
-
Gabriel FERNANDEZ authored
Add keyscan reset on stih416 reset controller. Acked-by:
Philipp Zabel <p.zabel@pengutronix.de> Signed-off-by:
Giuseppe Condorelli <giuseppe.condorelli@st.com> Signed-off-by:
Gabriel Fernandez <gabriel.fernandez@linaro.org> Signed-off-by:
Maxime Coquelin <maxime.coquelin@st.com>
-
Gabriel FERNANDEZ authored
Add keyscan reset on stih415 reset controller. Acked-by:
Philipp Zabel <p.zabel@pengutronix.de> Signed-off-by:
Giuseppe Condorelli <giuseppe.condorelli@st.com> Signed-off-by:
Gabriel Fernandez <gabriel.fernandez@linaro.org> Signed-off-by:
Maxime Coquelin <maxime.coquelin@st.com>
-
- 15 May, 2014 1 commit
-
-
Boris BREZILLON authored
The current implementation uses sunxi_reset_init function for both early init and platform device probe. The sunxi_reset_init function uses DT to retrieve device resources, which will be an issue if reset controllers are registered from an MFD device that define resources from mfd_cell definition. Moreover, we can make of devm functions when we're in the probe context. Signed-off-by:
Boris BREZILLON <boris.brezillon@free-electrons.com> Acked-by:
Maxime Ripard <maxime.ripard@free-electrons.com> Signed-off-by:
Maxime Ripard <maxime.ripard@free-electrons.com> Acked-by:
Philipp Zabel <p.zabel@pengutronix.de>
-
- 25 Apr, 2014 1 commit
-
-
Steffen Trumtrar authored
Add a reset-controller driver for the socfpga platform. The reset-controller has four banks with up to 32 entries all encapsulated in one module block. Signed-off-by:
Steffen Trumtrar <s.trumtrar@pengutronix.de> Acked-by:
Philipp Zabel <p.zabel@pengutronix.de> Signed-off-by:
Dinh Nguyen <dinguyen@altera.com> --- Notes: Changes since v2: - remove superfluous ret in probe function - add Acked-by Changes since v1: - use BITS_PER_LONG everywhere instead of MAX_BANK_WIDTH - print pdev->dev.of_node->full_name on error - use proper IS_ERR/PTR_ERR
-
- 11 Mar, 2014 5 commits
-
-
Srinivas Kandagatla authored
This patch adds softreset controller for STiH416 SOC, soft reset controller is based on system configuration registers which are mapped via regmap. This reset controller does not have any feedback or acknowledgement. With this patch a new device "st,stih416-softreset" is registered with system configuration registers based reset controller that controls the softreset state of the hardware such as Ethernet, IRB. Signed-off-by:
Srinivas Kandagatla <srinivas.kandagatla@st.com> Acked-by:
Philipp Zabel <p.zabel@pengutronix.de>
-
Srinivas Kandagatla authored
This patch adds softreset controller for STiH415 SOC, soft reset controller is based on system configuration registers which are mapped via regmap. This reset controller does not have any feedback or acknowledgement. With this patch a new device "st,stih415-softreset" is registered with system configuration registers based reset controller that controls the softreset state of the hardware such as Ethernet, IRB. Signed-off-by:
Srinivas Kandagatla <srinivas.kandagatla@st.com> Acked-by:
Philipp Zabel <p.zabel@pengutronix.de>
-
Stephen Gallimore authored
This patch adds a reset controller platform driver for the STiH416 SoC. This initial version provides a compatible driver for the "st,stih416-powerdown" device, which registers a system configuration register based reset controller that controls the powerdown state of hardware such as the on-chip USB host controllers. Signed-off-by:
Stephen Gallimore <stephen.gallimore@st.com> Signed-off-by:
Srinivas Kandagatla <srinivas.kandagatla@st.com> Acked-by:
Philipp Zabel <p.zabel@pengutronix.de>
-
Stephen Gallimore authored
This patch adds a reset controller platform driver for the STiH415 SoC. This initial version provides a compatible driver for the "st,stih415-powerdown" device, which registers a system configuration register based reset controller that controls the powerdown state of hardware such as the on-chip USB host controllers. Signed-off-by:
Stephen Gallimore <stephen.gallimore@st.com> Signed-off-by:
Srinivas Kandagatla <srinivas.kandagatla@st.com> Acked-by:
Philipp Zabel <p.zabel@pengutronix.de>
-
Stephen Gallimore authored
This patch adds a reset controller implementation for STMicroelectronics STi family SoCs; it allows a group of related reset like controls found in multiple system configuration registers to be represented by a single controller device. System configuration registers are accessed through the regmap framework and the mfd/syscon driver. The implementation optionally supports waiting for the reset action to be acknowledged in a separate status register and supports both active high and active low reset lines. These properties are common across all the reset channels in a specific reset controller instance, hence all channels in a paritcular controller are expected to behave in the same way. Signed-off-by:
Stephen Gallimore <stephen.gallimore@st.com> Signed-off-by:
Srinivas Kandagatla <srinivas.kandagatla@st.com> Acked-by:
Philipp Zabel <p.zabel@pengutronix.de>
-
- 03 Feb, 2014 3 commits
-
-
Maxime Ripard authored
In some cases, you might need to deassert from reset an hardware block that doesn't associated to a struct device (CPUs, timers, etc.). Add a small helper to retrieve the reset controller from the device tree without the need to pass a struct device. Signed-off-by:
Maxime Ripard <maxime.ripard@free-electrons.com> Signed-off-by:
Philipp Zabel <p.zabel@pengutronix.de>
-
Rashika Kheria authored
Mark function of_reset_simple_xlate() as static in core.c because it is not used outside this file. Also, remove functions devm_reset_control_put() and devm_reset_control_match() because they are unused. This eliminates the following warnings in core.c: drivers/reset/core.c:46:5: warning: no previous prototype for ‘of_reset_simple_xlate’ [-Wmissing-prototypes] drivers/reset/core.c:262:6: warning: no previous prototype for ‘devm_reset_control_put’ [-Wmissing-prototypes] Signed-off-by:
Rashika Kheria <rashika.kheria@gmail.com> Reviewed-by:
Josh Triplett <josh@joshtriplett.org> Signed-off-by:
Philipp Zabel <p.zabel@pengutronix.de>
-
Philipp Zabel authored
If the requested reset controller is not yet available, have reset_control_get and device_reset return -EPROBE_DEFER so the driver can decide to request probe deferral. Signed-off-by:
Philipp Zabel <p.zabel@pengutronix.de> Acked-by:
Shawn Guo <shawn.guo@linaro.org> Reviewed-by:
Stephen Warren <swarren@nvidia.com>
-
- 22 Nov, 2013 1 commit
-
-
Maxime Ripard authored
The Allwinner A31 and most of the other Allwinner SoCs have an IP maintaining a few other IPs in the SoC in reset by default. Among these IPs are the A31's High Speed Timers, hence why we can't use the regular driver construct in every cases, and need to call the registering function directly during machine initialisation. Apart from this, the implementation is fairly straightforward, and could easily be moved to a generic MMIO-based reset controller driver if the need ever arise. Signed-off-by:
Maxime Ripard <maxime.ripard@free-electrons.com> Acked-by:
Philipp Zabel <p.zabel@pengutronix.de>
-
- 12 Apr, 2013 2 commits
-
-
Dan Carpenter authored
"rstc" is NULL here and we should use "rcdev" instead of "rstc->rcdev". Signed-off-by:
Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by:
Philipp Zabel <p.zabel@pengutronix.de>
-
Philipp Zabel authored
This adds a simple API for devices to request being reset by separate reset controller hardware and implements the reset signal device tree binding. Signed-off-by:
Philipp Zabel <p.zabel@pengutronix.de> Reviewed-by:
Stephen Warren <swarren@nvidia.com> Reviewed-by:
Shawn Guo <shawn.guo@linaro.org> Reviewed-by:
Marek Vasut <marex@denx.de> Reviewed-by:
Pavel Machek <pavel@ucw.cz>
-