Ensure that when there is an error during probe that the gpiochip is
removed and the generic irq chip is removed.
Signed-off-by: Andrew Lunn
---
drivers/gpio/gpio-mvebu.c | 23 +--
1 file changed, 17 insertions(+), 6 deletions(-)
diff --git a/drivers/gpio/gpio-mvebu.c b/driv
The mvebu gpio driver can also perform PWM on some pins. Us the
pwm-fan driver to control the fan of the WRT1900AC, giving us fine
grain control over its speed and hence noise.
Signed-off-by: Andrew Lunn
---
arch/arm/boot/dts/armada-xp-wrt1900ac.dts | 8 +++-
1 file changed, 3 insertions(+),
Wrap some long lines.
Prefer seq_puts() over seq_printf().
space to tab conversions.
Spelling error fix.
Signed-off-by: Andrew Lunn
---
drivers/gpio/gpio-mvebu.c | 77 ++-
1 file changed, 42 insertions(+), 35 deletions(-)
diff --git a/drivers/gpio/gpi
Document the optional parameters needed for PWM operation of gpio
lines.
Signed-off-by: Andrew Lunn
---
.../devicetree/bindings/gpio/gpio-mvebu.txt| 31 ++
1 file changed, 31 insertions(+)
diff --git a/Documentation/devicetree/bindings/gpio/gpio-mvebu.txt
b/Document
Armada 370/XP devices can 'blink' gpio lines with a configurable on
and off period. This can be modelled as a PWM.
However, there are only two sets of PWM configuration registers for
all the gpio lines. This driver simply allows a single gpio line per
gpio chip of 32 lines to be used as a PWM. Att
Now that the gpio driver also supports PWM operation, enable
the PWM framework in mvebu_v7_defconfig.
Signed-off-by: Andrew Lunn
---
arch/arm/configs/mvebu_v7_defconfig | 1 +
1 file changed, 1 insertion(+)
diff --git a/arch/arm/configs/mvebu_v7_defconfig
b/arch/arm/configs/mvebu_v7_defconfig
Add properties to the gpio nodes to allow them to be also used
as pwm lines.
Signed-off-by: Andrew Lunn
---
arch/arm/boot/dts/armada-370.dtsi| 10 --
arch/arm/boot/dts/armada-xp-mv78230.dtsi | 10 --
arch/arm/boot/dts/armada-xp-mv78260.dtsi | 8 ++--
arch/arm/boot/dt
This patchset starts out with some cleanups and fixes for the mvebu
gpio driver. Then new functionality is added. The Armada 370 and XP
SoC has the ability to "blink" the gpio lines at a configuration on
and off duration. So simple PWM support is added. However only a
single gpio line per gpio chip
On Fri, 2015-01-09 at 10:32AM +0100, Linus Walleij wrote:
> On Mon, Jan 5, 2015 at 7:16 PM, Soren Brinkmann
> wrote:
>
> > Add an attribute 'wakeup' to the GPIO sysfs interface which allows
> > marking/unmarking a GPIO as wake IRQ.
> > The file 'wakeup' is created in each exported GPIOs directory
Use the new gpiod_get_array and gpiod_put_array functions for obtaining and
disposing of GPIO descriptors.
Signed-off-by: Rojhalat Ibrahim
---
This patch depends on my previous patch "gpiolib: add gpiod_get_array and
gpiod_put_array functions".
drivers/net/phy/mdio-mux-gpio.c | 28 ---
Introduce new functions for conveniently obtaining and disposing of an entire
array of GPIOs with one function call.
Suggested-by: Alexandre Courbot
Signed-off-by: Rojhalat Ibrahim
---
Documentation/gpio/consumer.txt | 28 -
drivers/gpio/gpiolib.c | 84 +
On 9 January 2015 at 18:22, Russell King - ARM Linux
wrote:
> On Fri, Jan 09, 2015 at 07:33:32PM +0800, Vincent Yang wrote:
>> +static int mb86s70_gpio_remove(struct platform_device *pdev)
>> +{
>> + struct mb86s70_gpio_chip *gchip = platform_get_drvdata(pdev);
>> +
>> + gpiochip_remove(&g
On Fri, Jan 09, 2015 at 07:33:32PM +0800, Vincent Yang wrote:
> +static int mb86s70_gpio_remove(struct platform_device *pdev)
> +{
> + struct mb86s70_gpio_chip *gchip = platform_get_drvdata(pdev);
> +
> + gpiochip_remove(&gchip->gc);
This doesn't disable and unprepare the clock.
--
FTTC
From: Jassi Brar
Driver for Fujitsu MB86S7x SoCs that have a memory mapped GPIO controller.
Signed-off-by: Andy Green
Signed-off-by: Jassi Brar
Signed-off-by: Vincent Yang
Signed-off-by: Tetsuya Nuriya
---
.../bindings/gpio/fujitsu,mb86s70-gpio.txt | 20 ++
drivers/gpio/Kconfig
On Fri, 2015-01-09 at 10:41 +0100, Linus Walleij wrote:
> When drivers are compiled in subdirectories the -DDEBUG flag need
> to be passed in the individual Makefiles.
Hi,
It will be easy to forget adding this when adding new subdirectories.
Can we do this instead?
diff --git a/drivers/pinctrl/
On Sun, Dec 21, 2014 at 10:14 PM, Wolfram Sang wrote:
> This platform_driver does not need to set an owner, it will be populated by
> the
> driver core.
>
> Signed-off-by: Wolfram Sang
Patch applied.
Yours,
Linus Walleij
--
To unsubscribe from this list: send the line "unsubscribe linux-gpio"
On Thu, Dec 4, 2014 at 11:32 AM, Mika Westerberg
wrote:
> Before resuming from system sleep BIOS restores its view of pin
> configuration. If we have configured some pins differently from that, for
> instance some driver requested a pin as a GPIO but it was not in GPIO mode
> originally, our view
On Thu, Dec 4, 2014 at 11:32 AM, Mika Westerberg
wrote:
> If the user has selected CONFIG_DEBUG_PINCTRL=y make sure that Intel
> pinctrl drivers will be compiled with that option as well.
>
> Signed-off-by: Mika Westerberg
Patch applied, and conjured a patch doing the same on the other
subdirs
When drivers are compiled in subdirectories the -DDEBUG flag need
to be passed in the individual Makefiles.
Reported-by: Mika Westerberg
Signed-off-by: Linus Walleij
---
drivers/pinctrl/berlin/Makefile| 1 +
drivers/pinctrl/freescale/Makefile | 1 +
drivers/pinctrl/mvebu/Makefile | 1 +
On Mon, Jan 5, 2015 at 7:16 PM, Soren Brinkmann
wrote:
> Add an attribute 'wakeup' to the GPIO sysfs interface which allows
> marking/unmarking a GPIO as wake IRQ.
> The file 'wakeup' is created in each exported GPIOs directory, if an IRQ
> is associated with that GPIO and the irqchip implements
On Mon, Dec 1, 2014 at 1:09 PM, wrote:
> From: Kamlakant Patel
>
> This patch converts MOXART GPIO driver to use basic_mmio_gpio
> generic library.
>
> Signed-off-by: Kamlakant Patel
> Tested-by: Jonas Jensen
Patch applied for v3.20. Sorry for eternal delays :(
Yours,
Linus Walleij
--
To un
Martyn,
do you have some feedback on this patch? Can you test it?
Shall I just apply it?
Yours,
Linus Walleij
On Mon, Dec 1, 2014 at 1:09 PM, wrote:
> From: Kamlakant Patel
>
> This patch converts GE GPIO driver to use basic_mmio_gpio
> generic library.
>
> Signed-off-by: Kamlakant Patel
> -
Lennert/Arnaud: is any one of you guys still maintaining and testing
IOP stuff so you can say something about this patch?
Or should I just apply it?
Yours,
Linus Walleij
On Mon, Dec 1, 2014 at 1:09 PM, wrote:
> From: Kamlakant Patel
>
> This patch converts IOP GPIO driver to use basic_mmio_g
Richard can you look at this patch and even test it maybe?
Do you still work with the Timberdale hardware or do you
know anyone who does?
Yours,
Linus Walleij
On Mon, Dec 1, 2014 at 1:09 PM, wrote:
> From: Kamlakant Patel
>
> This patch converts TIMBERDALE GPIO driver to use basic_mmio_gpio
>
of_get_named_gpiod_flags fails with -EPROBE_DEFER in cases
where the gpio chip is available and the GPIO translation fails.
This causes drivers to be re-probed erroneusly, and hides the
real problem(i.e. the GPIO number being out of range).
Signed-off-by: Hans Holmberg
---
drivers/gpio/gpiolib-
On Thu, Jan 8, 2015 at 10:38 PM, Rob Herring wrote:
> On Thu, Jan 8, 2015 at 1:47 PM, Linus Walleij
> wrote:
>> On Tue, Dec 30, 2014 at 8:28 PM, Rob Herring wrote:
>>
>>> From: Rob Herring
>>>
>>> This series converts ARM Versatile platform to multi-platform. I started
>>> this some time ago a
26 matches
Mail list logo