Signed-off-by: Benjamin Gaignard
Acked-by: Rob Herring
Acked-by: Thierry Reding
---
.../devicetree/bindings/pwm/pwm-stm32.txt | 35 ++
1 file changed, 35 insertions(+)
create mode 100644 Documentation/devicetree/bindings/pwm/pwm-stm32.txt
diff --git a/Documentation
ers to set lists of the triggers:
one list describe the triggers created by the device
another one give the triggers accepted by the device
Signed-off-by: Benjamin Gaignard
Acked-by: Jonathan Cameron
Acked-by: Rob Herring
---
.../bindings/iio/timer/stm32-timer-trigger.tx
This is the core of simple allocator module.
It aim to offert one common ioctl to allocate specific memory.
Signed-off-by: Benjamin Gaignard
---
Documentation/simple-allocator.txt | 81 +++
drivers/Kconfig | 2 +
drivers/Makefile
This patch add simple allocator for CMA regions
Signed-off-by: Benjamin Gaignard
---
drivers/simpleallocator/Kconfig| 7 +
drivers/simpleallocator/Makefile | 1 +
drivers/simpleallocator/simple-allocator-cma.c | 187 +
3 files changed
");
}
memset(mem, 0xFF, LENGTH);
munmap(mem, LENGTH);
printf("test simple allocator CMA OK\n");
end:
close(fd);
}
[1] https://github.com/cubanismo/allocator
Benjamin Gaignard (2):
Create Simple Allocator module
add CMA simple allocator
On 01/28/2017 01:19 PM, Jens Wiklander wrote:
> Initial patch for generic TEE subsystem.
> This subsystem provides:
> * Registration/un-registration of TEE drivers.
> * Shared memory between normal world and secure world.
> * Ioctl interface for interaction with user space.
> * Sysfs implementati
Ok so no more dev on ION but can we add ION drivers like hisilicon does ?
mil
>> Velikov)
>>
>> v11:
>> - Remove extra brace that broke compilation. Sorry!
>>
>> Signed-off-by: Tomeu Vizoso
>
> Reviewed-by: Emil Velikov
>
> Emil
> ___
> dri-devel mailing list
> dri-de...@lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/dri-devel
--
Benjamin Gaignard
Graphic Study Group
Linaro.org │ Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog
that if you can export more device information to
userland we can
get access to them in kernel too.
2016-10-05 15:43 GMT+02:00 Daniel Vetter :
> On Wed, Oct 05, 2016 at 03:40:14PM +0200, Benjamin Gaignard wrote:
>> because with ion it is up to userland to decide which heap to use
>>
o not impose any specific constraints. How "liballoc-ion.so"
> backend figures out how to map constraints/usage to a heap is a bit
> hand-wavey at the moment.
>
> BR,
> -R
>
> On Wed, Oct 5, 2016 at 9:40 AM, Benjamin Gaignard
> wrote:
>> because with ion it is up
prefix from "hi6220" to "sti".
Benjamin Gaignard (3):
add binding for STIh4xx ION driver
add STIH4xx ION driver
add STIH4xx ION driver in DT
.../devicetree/bindings/staging/ion/st,sti-ion.txt | 17
arch/arm/boot/dts/stih407-family.dtsi | 8 ++
dri
This the same driver that Hisilicon one.
Change the list of heap to fit with sti SoC needs.
Rename/prefix some functions and structure with sti
Signed-off-by: Benjamin Gaignard
---
drivers/staging/android/ion/Kconfig | 7 ++
drivers/staging/android/ion/Makefile | 2 +
drivers
Very simple and limited to one heap for contiguous memory allocation
Signed-off-by: Benjamin Gaignard
---
arch/arm/boot/dts/stih407-family.dtsi | 8
1 file changed, 8 insertions(+)
diff --git a/arch/arm/boot/dts/stih407-family.dtsi
b/arch/arm/boot/dts/stih407-family.dtsi
index
Describe bindings for STIH4xx ION driver.
They are limited to have is used by ion_of.c
Signed-off-by: Benjamin Gaignard
---
.../devicetree/bindings/staging/ion/st,sti-ion.txt | 17 +
1 file changed, 17 insertions(+)
create mode 100644 Documentation/devicetree/bindings
2016-11-27 15:25 GMT+01:00 Jonathan Cameron :
> On 24/11/16 15:14, Benjamin Gaignard wrote:
>> Define bindings for stm32 IIO timer
>>
>> version 2:
>> - only keep one compatible
>> - add DT parameters to set lists of the triggers:
>> one list desc
It is more or less a copy of Hisilicon driver but with a heap definition
fitting with STIH4xx SoC needs.
I have just chnage the some function prefix from "hi6220" to "sti".
Benjamin Gaignard (3):
add binding for STIh4xx ION driver
add STIH4xx ION driver
add STIH
This the same driver that Hisilicon one.
Change the list of heap to fit with sti SoC needs.
Rename/prefix some functions and structure with sti
Signed-off-by: Benjamin Gaignard
---
drivers/staging/android/ion/Kconfig | 7 ++
drivers/staging/android/ion/Makefile | 2 +
drivers
Describe bindings for STIH4xx ION driver.
They are limited to have is used by ion_of.c
Signed-off-by: Benjamin Gaignard
---
.../devicetree/bindings/staging/ion/st,sti-ion.txt | 14 ++
1 file changed, 14 insertions(+)
create mode 100644 Documentation/devicetree/bindings
Very simple and limited to one heap for contiguous memory allocation
Signed-off-by: Benjamin Gaignard
---
arch/arm/boot/dts/stih407-family.dtsi | 7 +++
1 file changed, 7 insertions(+)
diff --git a/arch/arm/boot/dts/stih407-family.dtsi
b/arch/arm/boot/dts/stih407-family.dtsi
index 91096a4
2016-10-26 15:51 GMT+02:00 Sumit Semwal :
> Hello Benjamin,
>
> On 26 October 2016 at 19:02, Benjamin Gaignard
> wrote:
>> It is more or less a copy of Hisilicon driver but with a heap definition
>> fitting with STIH4xx SoC needs.
>> I have just chnage the some fu
2016-10-26 16:44 GMT+02:00 Sumit Semwal :
> On 26 October 2016 at 20:11, Benjamin Gaignard
> wrote:
>> 2016-10-26 15:51 GMT+02:00 Sumit Semwal :
>>> Hello Benjamin,
>>>
>>> On 26 October 2016 at 19:02, Benjamin Gaignard
>>> wrote:
>>>&
2016-12-30 22:12 GMT+01:00 Jonathan Cameron :
> On 09/12/16 14:15, Benjamin Gaignard wrote:
>> Timers IPs can be used to generate triggers for other IPs like
>> DAC, ADC or other timers.
>> Each trigger may result of timer internals signals like counter enable,
>> reset
2017-01-02 19:22 GMT+01:00 Jonathan Cameron :
> On 02/01/17 08:46, Benjamin Gaignard wrote:
>> 2016-12-30 22:12 GMT+01:00 Jonathan Cameron :
>>> On 09/12/16 14:15, Benjamin Gaignard wrote:
>>>> Timers IPs can be used to generate triggers for other IPs like
>>&g
2017-01-03 10:23 GMT+01:00 Benjamin Gaignard :
> 2017-01-02 19:22 GMT+01:00 Jonathan Cameron :
>> On 02/01/17 08:46, Benjamin Gaignard wrote:
>>> 2016-12-30 22:12 GMT+01:00 Jonathan Cameron :
>>>> On 09/12/16 14:15, Benjamin Gaignard wrote:
>>>>> Ti
2016-12-12 19:59 GMT+01:00 Rob Herring :
> On Fri, Dec 09, 2016 at 03:15:18PM +0100, Benjamin Gaignard wrote:
>> Add Timers and it sub-nodes into DT for stm32f429 family.
>>
>> version 6:
>> - split patch in two: one for SoC family and one for stm32f469
>>
2016-12-12 19:51 GMT+01:00 Rob Herring :
> On Fri, Dec 09, 2016 at 03:15:12PM +0100, Benjamin Gaignard wrote:
>> Add bindings information for STM32 Timers
>>
>> version 6:
>> - rename stm32-gtimer to stm32-timers
>> - change compatible
>> - add de
2016-12-12 19:59 GMT+01:00 Rob Herring :
> On Fri, Dec 09, 2016 at 03:15:18PM +0100, Benjamin Gaignard wrote:
>> Add Timers and it sub-nodes into DT for stm32f429 family.
>>
>> version 6:
>> - split patch in two: one for SoC family and one for stm32f469
>>
2016-12-13 16:57 GMT+01:00 Rob Herring :
> On Tue, Dec 13, 2016 at 5:11 AM, Lee Jones wrote:
>> On Mon, 12 Dec 2016, Rob Herring wrote:
>>
>>> On Fri, Dec 09, 2016 at 03:15:14PM +0100, Benjamin Gaignard wrote:
>>> > Define bindings for pwm-stm32
>>> &g
2016-12-13 22:07 GMT+01:00 Rob Herring :
> On Tue, Dec 13, 2016 at 3:29 AM, Benjamin Gaignard
> wrote:
>> 2016-12-12 19:51 GMT+01:00 Rob Herring :
>>> On Fri, Dec 09, 2016 at 03:15:12PM +0100, Benjamin Gaignard wrote:
>>>> Add bindings information for
gs rather than all return an error.
Signed-off-by: Benjamin Gaignard
Cc: Catalin Marinas
Cc: a...@arndb.de
---
arch/arm/mm/dma-mapping.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/arch/arm/mm/dma-mapping.c b/arch/arm/mm/dma-mapping.c
index ab4f745..230875e 100644
--- a/arch/arm/mm/d
:
- only keep one comptatible
- use DT paramaters to discover hardware block configuration
Signed-off-by: Benjamin Gaignard
---
drivers/pwm/Kconfig | 8 ++
drivers/pwm/Makefile| 1 +
drivers/pwm/pwm-stm32.c | 285
3 files changed, 294
Define bindings for pwm-stm32
version 2:
- use parameters instead of compatible of handle the hardware configuration
Signed-off-by: Benjamin Gaignard
---
.../devicetree/bindings/pwm/pwm-stm32.txt | 38 ++
1 file changed, 38 insertions(+)
create mode 100644
ptimer3:pwm3@0/pwm/pwmchip4
# echo 100 > pwm0/period
/sys/devices/platform/soc/4400.gptimer3/4400.gptimer3:pwm3@0/pwm/pwmchip4
# echo 50 > pwm0/duty_cycle
/sys/devices/platform/soc/4400.gptimer3/4400.gptimer3:pwm3@0/pwm/pwmchip4
# echo 1 > pwm0/enable
Benjamin
stm32-gptimer" to be align with SoC documentation
- only keep one compatible
- use of_platform_populate() instead of devm_mfd_add_devices()
Signed-off-by: Benjamin Gaignard
---
drivers/mfd/Kconfig | 10 ++
drivers/mfd/Makefile | 2 ++
drivers/mfd/stm32-gptimer.c
r subnodes
Signed-off-by: Benjamin Gaignard
---
arch/arm/boot/dts/stm32f429.dtsi | 333 +-
arch/arm/boot/dts/stm32f469-disco.dts | 28 +++
2 files changed, 360 insertions(+), 1 deletion(-)
diff --git a/arch/arm/boot/dts/stm32f429.dtsi b/arch/arm/boot/dts/stm3
se st,input-triggers-names and st,output-triggers-names
to know which triggers are accepted and/or create by the device
Signed-off-by: Benjamin Gaignard
---
.../ABI/testing/sysfs-bus-iio-timer-stm32 | 47 ++
drivers/iio/Kconfig| 2 +-
drivers/iio/Make
the device
Signed-off-by: Benjamin Gaignard
---
.../bindings/iio/timer/stm32-timer-trigger.txt | 39 ++
1 file changed, 39 insertions(+)
create mode 100644
Documentation/devicetree/bindings/iio/timer/stm32-timer-trigger.txt
diff --git
a/Documentation/devicetree
Add bindings information for stm32 general purpose timer
version 2:
- rename stm32-mfd-timer to stm32-gptimer
- only keep one compatible string
Signed-off-by: Benjamin Gaignard
---
.../bindings/mfd/stm32-general-purpose-timer.txt | 47 ++
1 file changed, 47 insertions
2016-12-02 14:59 GMT+01:00 Lee Jones :
> On Fri, 02 Dec 2016, Benjamin Gaignard wrote:
>
>> Define bindings for stm32 timer trigger
>>
>> version 3:
>> - change file name
>> - add cross reference with mfd bindings
>>
>> version 2:
>> - only k
2016-12-05 8:23 GMT+01:00 Thierry Reding :
> On Fri, Dec 02, 2016 at 11:17:19AM +0100, Benjamin Gaignard wrote:
>> This driver add support for pwm driver on stm32 platform.
>
> "adds". Also please use PWM in prose because it's an abbreviation.
>
>> The SoC
2016-12-05 7:53 GMT+01:00 Thierry Reding :
> On Fri, Dec 02, 2016 at 11:17:18AM +0100, Benjamin Gaignard wrote:
>> Define bindings for pwm-stm32
>>
>> version 2:
>> - use parameters instead of compatible of handle the hardware configuration
>>
&g
2016-12-05 12:23 GMT+01:00 Thierry Reding :
> On Mon, Dec 05, 2016 at 12:08:32PM +0100, Benjamin Gaignard wrote:
>> 2016-12-05 7:53 GMT+01:00 Thierry Reding :
>> > On Fri, Dec 02, 2016 at 11:17:18AM +0100, Benjamin Gaignard wrote:
>> >> Define bindings for p
2016-11-27 16:41 GMT+01:00 Jonathan Cameron :
> On 27/11/16 14:10, Jonathan Cameron wrote:
>> On 24/11/16 15:14, Benjamin Gaignard wrote:
>>> Add bindings information for stm32 general purpose timer
>>>
>>> version 2:
>>> - rename stm32-mfd-timer to
2016-11-27 16:42 GMT+01:00 Jonathan Cameron :
> I delved into the datasheet after trying to figure this out, so I think
> I now sort of understand your intent, but please do answer the questions
> inline.
>
> On 24/11/16 15:14, Benjamin Gaignard wrote:
>> Timers IPs ca
2016-11-30 22:20 GMT+01:00 Rob Herring :
> On Thu, Nov 24, 2016 at 04:14:19PM +0100, Benjamin Gaignard wrote:
>> Define bindings for pwm-stm32
>>
>> version 2:
>> - use parameters instead of compatible of handle the hardware configuration
>>
&g
2016-12-09 9:53 GMT+01:00 Lee Jones :
> Sorry to do this Ben. Not much to do now though!
>
>> Add bindings information for STM32 General Purpose Timer
>>
>> version 2:
>> - rename stm32-mfd-timer to stm32-gptimer
>> - only keep one compatible string
&g
ho 0 > export
/sys/devices/platform/soc/4400.timers/4400.timers:pwm/pwm/pwmchip4 #
echo 100 > pwm0/period
/sys/devices/platform/soc/4400.timers/4400.timers:pwm/pwm/pwmchip4 #
echo 50 > pwm0/duty_cycle
/sys/devices/platform/soc/4400.timers/4400.timers:pwm/pwm
Add bindings information for STM32 Timers
version 6:
- rename stm32-gtimer to stm32-timers
- change compatible
- add description about the IPs
version 2:
- rename stm32-mfd-timer to stm32-gptimer
- only keep one compatible string
Signed-off-by: Benjamin Gaignard
---
.../devicetree/bindings
triggers created by the device
another one give the triggers accepted by the device
Signed-off-by: Benjamin Gaignard
---
.../bindings/iio/timer/stm32-timer-trigger.txt | 23 ++
1 file changed, 23 insertions(+)
create mode 100644
Documentation/devicetree/bindings/iio/timer
name
- use "reg" instead of additional parameters to set timer
configuration
version 3:
- use "st,stm32-timer-trigger" in DT
version 2:
- use parameters to describe hardware capabilities
- do not use references for pwm and iio timer subnodes
Signed-off-by: Benjamin Gaignard
Define bindings for pwm-stm32
version 6:
- change st,breakinput parameter format to make it usuable on stm32f7 too.
version 2:
- use parameters instead of compatible of handle the hardware configuration
Signed-off-by: Benjamin Gaignard
---
.../devicetree/bindings/pwm/pwm-stm32.txt
Define and enable pwm1 and pwm3 for stm32f469 discovery board
Signed-off-by: Benjamin Gaignard
---
arch/arm/boot/dts/stm32f469-disco.dts | 28
1 file changed, 28 insertions(+)
diff --git a/arch/arm/boot/dts/stm32f469-disco.dts
b/arch/arm/boot/dts/stm32f469
suable for stm32f7 too.
version 4:
- detect at probe time hardware capabilities
- fix comments done on v2 and v3
- use PWM atomic ops
version 2:
- only keep one comptatible
- use DT parameters to discover hardware block configuration
Signed-off-by: Benjamin Gaignard
---
drivers/pwm/Kconfig
ion
- only keep one compatible
- use of_platform_populate() instead of devm_mfd_add_devices()
Signed-off-by: Benjamin Gaignard
---
drivers/mfd/Kconfig | 11 ++
drivers/mfd/Makefile | 2 +
drivers/mfd/stm32-timers.c | 80 +++
,input-triggers-names and st,output-triggers-names
to know which triggers are accepted and/or create by the device
Signed-off-by: Benjamin Gaignard
---
.../ABI/testing/sysfs-bus-iio-timer-stm32 | 55 +++
drivers/iio/Kconfig| 2 +-
drivers/iio/Makefile
+ Vladimir
2016-12-01 14:48 GMT+01:00 Benjamin Gaignard :
> commit ab6494f0c96f ("nommu: Add noMMU support to the DMA API") have
> add CONFIG_MMU compilation flag but that prohibit to use dma_mmap_wc()
> when the platform doesn't have MMU.
>
> This patch call vm_i
2016-12-09 16:36 GMT+01:00 Vladimir Murzin :
> On 09/12/16 15:27, Benjamin Gaignard wrote:
>> + Vladimir
>
> I'm not in DMA, but I can see that with your patch it deviates from
> dma_common_mmap(), can you give more context, please?
I'm working on ARM platform with MMU
2017-03-14 19:53 GMT+01:00 William Breathitt Gray :
> On Sun, Mar 12, 2017 at 02:18:47PM +0100, Benjamin Gaignard wrote:
>>2017-03-05 13:04 GMT+01:00 Jonathan Cameron :
>>> On 01/03/17 14:45, Benjamin Gaignard wrote:
>>>> One of the features of STM32 trigger hardwar
preset value is the limit of the counter.
When counting down the counter start from preset value down to 0.
This preset value could be set/get by using
/sys/bus/iio/devices/iio:deviceX/in_count0_preset attribute.
Signed-off-by: Benjamin Gaignard
---
.../ABI/testing/sysfs-bus-iio-timer-stm32
Device counting could be controlled by the level or the edges of
a trigger.
in_count0_enable_mode attibute allow to set the control mode.
Signed-off-by: Benjamin Gaignard
---
.../ABI/testing/sysfs-bus-iio-timer-stm32 | 23 +++
drivers/iio/trigger/stm32-timer-trigger.c | 70
to be able to merge them with 104-quad-8
in the futur.
Benjamin Gaignard (2):
iio: stm32 trigger: Add quadrature encoder device
iio: stm32 trigger: Add counter enable modes
.../ABI/testing/sysfs-bus-iio-timer-stm32 | 55
drivers/iio/trigger/stm32-timer-trigger.c
preset value is the limit of the counter.
When counting down the counter start from preset value down to 0.
This preset value could be set/get by using
/sys/bus/iio/devices/iio:deviceX/in_count0_preset attribute.
Signed-off-by: Benjamin Gaignard
version 3:
- fix typo in documentation
- change some
Device counting could be controlled by the level or the edges of
a trigger.
in_count0_enable_mode attibute allow to set the control mode.
Signed-off-by: Benjamin Gaignard
---
.../ABI/testing/sysfs-bus-iio-timer-stm32 | 23 +++
drivers/iio/trigger/stm32-timer-trigger.c | 70
enable modes.
- add scale info
- change modes to more generic names to be able to merge them with 104-quad-8
in the futur.
Benjamin Gaignard (2):
iio: stm32 trigger: Add quadrature encoder device
iio: stm32 trigger: Add counter enable modes
.../ABI/testing/sysfs-bus-iio-timer-stm32
2017-03-27 15:47 GMT+02:00 William Breathitt Gray :
> On Mon, Mar 27, 2017 at 11:43:23AM +0200, Benjamin Gaignard wrote:
>>One of the features of STM32 trigger hardware block is a quadrature
>>encoder that can counts up/down depending of the levels and edges
>>of the s
2017-03-27 15:55 GMT+02:00 William Breathitt Gray :
> On Mon, Mar 27, 2017 at 11:43:24AM +0200, Benjamin Gaignard wrote:
>>Device counting could be controlled by the level or the edges of
>>a trigger.
>>in_count0_enable_mode attibute allow to set the control mode.
>>
2017-03-06 17:04 GMT+01:00 Daniel Vetter :
> On Mon, Mar 06, 2017 at 11:58:05AM +0100, Mark Brown wrote:
>> On Mon, Mar 06, 2017 at 11:40:41AM +0100, Daniel Vetter wrote:
>>
>> > No one gave a thing about android in upstream, so Greg KH just dumped it
>> > all into staging/android/. We've discussed
2017-03-05 13:04 GMT+01:00 Jonathan Cameron :
> On 01/03/17 14:45, Benjamin Gaignard wrote:
>> One of the features of STM32 trigger hardware block is a counter
>> that can counts up/down depending of the levels and edges of the
>> selected external pins.
>>
>> T
2017-03-09 18:38 GMT+01:00 Laura Abbott :
> On 03/09/2017 02:00 AM, Benjamin Gaignard wrote:
>> 2017-03-06 17:04 GMT+01:00 Daniel Vetter :
>>> On Mon, Mar 06, 2017 at 11:58:05AM +0100, Mark Brown wrote:
>>>> On Mon, Mar 06, 2017 at 11:40:41AM +0100, Daniel Vetter w
2017-03-13 22:09 GMT+01:00 Laura Abbott :
> On 03/12/2017 12:05 PM, Daniel Vetter wrote:
>> On Sun, Mar 12, 2017 at 2:34 PM, Benjamin Gaignard
>> wrote:
>>> 2017-03-09 18:38 GMT+01:00 Laura Abbott :
>>>> On 03/09/2017 02:00 AM, Benjamin Gaignard wrote:
>
2017-03-03 11:27 GMT+01:00 Daniel Vetter :
> On Fri, Mar 03, 2017 at 11:04:33AM +0100, Daniel Vetter wrote:
>> On Thu, Mar 02, 2017 at 01:44:32PM -0800, Laura Abbott wrote:
>> > Hi,
>> >
>> > There's been some recent discussions[1] about Ion-like frameworks. There's
>> > apparently interest in just
Thanks,
Acked-by: Benjamin Gaignard
2016-11-04 8:58 GMT+01:00 Maninder Singh :
> This patch fixes the following checkpatch.pl error:
> ERROR: Macros with complex values should be enclosed in parentheses
>
> Signed-off-by: Maninder Singh
> ---
> drivers/staging/media/st-cec
Hello Laura,
What are plumbers outputs for ION after your talk ?
Regards,
Benjamin
2016-10-27 1:25 GMT+02:00 Laura Abbott :
> On 10/26/2016 08:05 AM, Benjamin Gaignard wrote:
>>
>> 2016-10-26 16:44 GMT+02:00 Sumit Semwal :
>>>
>>> On 26 October 2016 at 20
/testing/sysfs-bus-iio-timer-stm32
Signed-off-by: Benjamin Gaignard
---
.../ABI/testing/sysfs-bus-iio-timer-stm32 | 40
drivers/iio/trigger/stm32-timer-trigger.c | 231 -
include/linux/mfd/stm32-timers.h | 2 +
3 files changed, 267
Move counting direction documentation for 104-quad-8 to sysfs-bus-iio
to avoid duplicated for other incoming drivers
Signed-off-by: Benjamin Gaignard
---
Documentation/ABI/testing/sysfs-bus-iio| 14 ++
Documentation/ABI/testing/sysfs-bus-iio-counter-104-quad-8
.
Benjamin Gaignard (2):
iio: Generalize counting direction modes
iio: stm32 trigger: Add counter device
Documentation/ABI/testing/sysfs-bus-iio| 14 ++
.../ABI/testing/sysfs-bus-iio-counter-104-quad-8 | 8 -
.../ABI/testing/sysfs-bus-iio-timer-stm32 | 40
drivers
gpu/drm/sti/sti_vtg.c
> +++ b/drivers/gpu/drm/sti/sti_vtg.c
> @@ -389,7 +389,6 @@ static irqreturn_t vtg_irq(int irq, void *arg)
> static int vtg_probe(struct platform_device *pdev)
> {
> struct device *dev = &pdev->dev;
> - struct device_node *np;
>
2017-02-14 20:30 GMT+01:00 Laurent Pinchart :
> Hi Benjamin,
>
> Thank you for the patch. I've CC'ed the linux-api mailing list.
>
> On Monday 13 Feb 2017 15:45:05 Benjamin Gaignard wrote:
>> This is the core of simple allocator module.
>> It aim to offert
2017-02-14 20:59 GMT+01:00 Laurent Pinchart :
> Hi Daniel,
>
> On Tuesday 14 Feb 2017 20:44:44 Daniel Vetter wrote:
>> On Tue, Feb 14, 2017 at 8:39 PM, Laurent Pinchart wrote:
>> > On Tuesday 14 Feb 2017 20:33:58 Daniel Vetter wrote:
>> >> On Mon, Feb 13, 2017
egister = 0x400,
> + .max_register = 0x3fc,
> };
>
> static void stm32_timers_get_arr_size(struct stm32_timers *ddata)
> --
> 1.9.1
>
Acked-by: Benjamin Gaignard
2
triggers. Modes usages are described in sysfs-bus-iio-timer-stm32
Signed-off-by: Benjamin Gaignard
version 2:
- use dev_attr_parent_trigger
- improve slave modes documentation
---
.../ABI/testing/sysfs-bus-iio-timer-stm32 | 43 +
drivers/iio/trigger/stm32-timer-trigger.c
s
the same than validate_device but with a trigger as second parameter.
Driver must implement this function and add dev_attr_parent_trigger
in their trigger attribute group to be able to use parent trigger
feature.
Signed-off-by: Benjamin Gaignard
version 2:
- add comment about parent trigger usag
various ways.
To be able to select them "slave_mode" attribute is added to STM32 triggers.
For example the combinaison of parent_trigger and slave_mode allows to start
a trigger only when parent trigger level is high or to reset it on parent
trigger rising edge.
Benjamin Gaignard (2):
ator CMA OK\n");
end:
close(fd);
}
[1] https://github.com/cubanismo/allocator
Benjamin Gaignard (2):
Create Simple Allocator module
add CMA simple allocator module
Documentation/simple-allocator.txt | 81 ++
drivers/Kconfig | 2
This is the core of simple allocator module.
It aim to offert one common ioctl to allocate specific memory.
version 2:
- rebased on 4.10-rc7
Signed-off-by: Benjamin Gaignard
---
Documentation/simple-allocator.txt | 81 +++
drivers/Kconfig
This patch add simple allocator for CMA regions.
version 2:
- fix size and page count computation
Signed-off-by: Benjamin Gaignard
---
drivers/simpleallocator/Kconfig| 7 +
drivers/simpleallocator/Makefile | 1 +
drivers/simpleallocator/simple-allocator-cma.c
bus. This also could make drivers more robust in case that
probe failed after calling of_platform_populate().
Benjamin Gaignard (2):
of: add devm_ functions for populate and depopulate
drm: sti: make driver use devm_of_platform_populate()
drivers/gpu/drm/sti/sti_drv.c | 3 +-
drivers/of
.
Signed-off-by: Benjamin Gaignard
---
drivers/of/platform.c | 77 +
include/linux/of_platform.h | 20
2 files changed, 97 insertions(+)
diff --git a/drivers/of/platform.c b/drivers/of/platform.c
index b8064bc..3dbebf7 100644
--- a
This make sure that of_platform_depopulate() is called if an error
occur in probe after populating the date from the device tree.
Signed-off-by: Benjamin Gaignard
---
drivers/gpu/drm/sti/sti_drv.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/drivers/gpu/drm/sti
2017-02-19 16:53 GMT+01:00 Jonathan Cameron :
> Hi All,
>
> Would be really helpful to get some other input on this.
> It's fiddly to put it lightly but if we get it right I think
> the interface will be useful in all sorts of common cases.
>
> On 16/02/17 14:23, Benja
trigger is clock by the rising edges of it
parent.
Benjamin Gaignard (2):
iio: Allow triggers to be used as parent of others triggers
iio: stm32 trigger: Implement parent trigger feature
.../ABI/testing/sysfs-bus-iio-timer-stm32 | 63 +
.../ABI/testing/sysfs-bus-iio-trigge
s
the same than validate_device but with a trigger as second parameter.
Driver must implement this function and add dev_attr_parent_trigger
in their trigger attribute group to be able to use parent trigger
feature.
Signed-off-by: Benjamin Gaignard
version 3:
- try to provide better desc
en a valid
parent trigger is set.
Signed-off-by: Benjamin Gaignard
version 2:
- use dev_attr_parent_trigger
- improve slave modes documentation
version 3:
- add one channel to get counter raw value
---
.../ABI/testing/sysfs-bus-iio-timer-stm32 | 63 +
drivers/iio/trigger/s
2017-02-24 15:17 GMT+01:00 Rob Herring :
> On Fri, Feb 17, 2017 at 8:31 AM, Benjamin Gaignard
> wrote:
>> Lost of calls to of_platform_populate() are not unbalanced by a call
>
> s/Lost/Lots/
>
>> to of_platform_depopulate(). This create issues while drivers are
>
2017-02-24 16:20 GMT+01:00 Rob Herring :
> On Fri, Feb 24, 2017 at 9:13 AM, Benjamin Gaignard
> wrote:
>> 2017-02-24 15:17 GMT+01:00 Rob Herring :
>>> On Fri, Feb 17, 2017 at 8:31 AM, Benjamin Gaignard
>>> wrote:
>>>> Lost of calls to of_platform_populat
devm_of_platform_populate()
which will call of_platform_depopulate() when the device is unbound
from the bus. This also could make drivers more robust in case that
probe failed after calling of_platform_populate().
Benjamin Gaignard (2):
of: add devm_ functions for populate and depopulate
drm: sti: make
.
Signed-off-by: Benjamin Gaignard
---
version 2:
- simplify function prototype to only keep device as parameter
drivers/of/platform.c | 71 +
include/linux/of_platform.h | 11 +++
2 files changed, 82 insertions(+)
diff --git a/drivers/of
This make sure that of_platform_depopulate() is called if an error
occur in probe after populating the date from the device tree.
Signed-off-by: Benjamin Gaignard
---
version 2:
- use simplified devm_of_platform_populate function prototype
drivers/gpu/drm/sti/sti_drv.c | 3 +--
1 file changed
2017-02-25 18:53 GMT+01:00 Jonathan Cameron :
> On 24/02/17 14:48, Benjamin Gaignard wrote:
>> Add validate_trigger function in iio_trigger_ops and
>> dev_attr_parent_trigger into trigger attribute group to be able
>> to accept triggers as parents.
>>
>> Introduce
2017-02-26 15:59 GMT+01:00 Benjamin Gaignard :
> 2017-02-25 18:53 GMT+01:00 Jonathan Cameron :
>> On 24/02/17 14:48, Benjamin Gaignard wrote:
>>> Add validate_trigger function in iio_trigger_ops and
>>> dev_attr_parent_trigger into trigger attribute group to be abl
701 - 800 of 1168 matches
Mail list logo