[PATCH v2 0/3] Introduce support for MMC35240 magnetic sensor

2015-04-24 Thread Daniel Baluta
Peter and Jonathan * https://lkml.org/lkml/2015/4/15/186 Daniel Baluta (3): iio: magnetometer: Add support for MEMSIC MMC35240 sensor iio: magnetometer: mmc35240: Add PM sleep support iio: magnetometer: Add ACPI support for MMC35240 drivers/iio/magnetometer/Kconfig| 11 + driver

Re: [PATCH 1/3] iio: magnetometer: Add support for MEMSIC MMC35240 sensor

2015-04-24 Thread Daniel Baluta
On Sun, Apr 19, 2015 at 4:28 PM, Jonathan Cameron wrote: > On 15/04/15 12:02, Daniel Baluta wrote: >> Minimal implementation for MMC35240 3-axis magnetometer >> sensor. It provides processed readings and possiblity to change >> the sampling frequency. >> >>

[PATCH v2 2/3] iio: magnetometer: mmc35240: Add PM sleep support

2015-04-24 Thread Daniel Baluta
We rely on regmap to save the state of the registers at suspend, and then we do an explicit sync at resume. Signed-off-by: Daniel Baluta --- drivers/iio/magnetometer/mmc35240.c | 35 +++ 1 file changed, 35 insertions(+) diff --git a/drivers/iio/magnetometer

[PATCH v2 1/3] iio: magnetometer: Add support for MEMSIC MMC35240 sensor

2015-04-24 Thread Daniel Baluta
Minimal implementation for MMC35240 3-axis magnetometer sensor. It provides processed readings and possiblity to change the sampling frequency. Signed-off-by: Daniel Baluta --- drivers/iio/magnetometer/Kconfig| 11 + drivers/iio/magnetometer/Makefile | 1 + drivers/iio/magnetometer

Re: [PATCH 1/3] iio: magnetometer: Add support for MEMSIC MMC35240 sensor

2015-04-24 Thread Daniel Baluta
On Fri, Apr 24, 2015 at 7:00 PM, Daniel Baluta wrote: > On Sun, Apr 19, 2015 at 4:28 PM, Jonathan Cameron wrote: >> On 15/04/15 12:02, Daniel Baluta wrote: >>> Minimal implementation for MMC35240 3-axis magnetometer >>> sensor. It provides processed readings and p

[PATCH 1/3] iio: magnetometer: Add support for MEMSIC MMC35240 sensor

2015-04-15 Thread Daniel Baluta
Minimal implementation for MMC35240 3-axis magnetometer sensor. It provides processed readings and possiblity to change the sampling frequency. Signed-off-by: Daniel Baluta --- drivers/iio/magnetometer/Kconfig| 11 + drivers/iio/magnetometer/Makefile | 1 + drivers/iio/magnetometer

[PATCH 3/3] iio: magnetometer: Add ACPI support for MMC35240

2015-04-15 Thread Daniel Baluta
We assume that ACPI device tables use MMC35240 to identify MEMSIC's 3 axis magnetic sensor. Signed-off-by: Daniel Baluta --- drivers/iio/magnetometer/mmc35240.c | 8 1 file changed, 8 insertions(+) diff --git a/drivers/iio/magnetometer/mmc35240.c b/drivers/iio/magnetometer/mmc35

[PATCH 2/3] iio: magnetometer: mmc35240: Add PM sleep support

2015-04-15 Thread Daniel Baluta
We rely on regmap to save the state of the registers at suspend, and then we do an explicit sync at resume. Signed-off-by: Daniel Baluta --- drivers/iio/magnetometer/mmc35240.c | 35 +++ 1 file changed, 35 insertions(+) diff --git a/drivers/iio/magnetometer

[PATCH 0/3] Introduce support for MMC35240 magnetic sensor

2015-04-15 Thread Daniel Baluta
This adds support for Memsic's MMC35240 magnetometer. The sensor does not offer an interrupt line for data ready so for the moment we only expose raw readings via sysfs interface. This patchset also adds ACPI and Power Management support. Daniel Baluta (3): iio: magnetometer: Add suppor

Re: [PATCH 1/3] iio: magnetometer: Add support for MEMSIC MMC35240 sensor

2015-04-15 Thread Daniel Baluta
; > possibility Ok. > > link to datasheet missing > Unfortunately the datasheet isn't public. >> Signed-off-by: Daniel Baluta >> --- >> drivers/iio/magnetometer/Kconfig| 11 + >> drivers/iio/magnetometer/Makefile | 1 + >> drivers/iio/ma

Re: [PATCH v3 1/3] iio: configfs: Add configfs support to IIO

2015-04-15 Thread Daniel Baluta
On Sun, Apr 12, 2015 at 6:55 PM, Jonathan Cameron wrote: > On 10/04/15 12:08, Daniel Baluta wrote: >> On Thu, Apr 9, 2015 at 8:15 PM, Jonathan Cameron wrote: >>> On 06/04/15 15:18, Daniel Baluta wrote: >>>> This module is the core of IIO configfs. It creates t

Re: [PATCH v3 2/3] iio: trigger: Add support for highres timer trigger type

2015-04-15 Thread Daniel Baluta
On Sun, Apr 12, 2015 at 6:40 PM, Jonathan Cameron wrote: > On 10/04/15 10:02, Daniel Baluta wrote: >> On Thu, Apr 9, 2015 at 8:09 PM, Jonathan Cameron wrote: >>> On 06/04/15 15:18, Daniel Baluta wrote: >>>> This patch adds a new trigger type - the high resoluto

[RFC PATCH 0/2] Add support for Lite On LTR559 sensor

2015-03-31 Thread Daniel Baluta
First patch does some cleanups in order to make alignment style consistent with the rest of IIO drivers. Then second patch adds support for Lite On LTR559 ambient light and proximity sensor. This is a RFC because the code is compile tested only. The chip should arrive in a few days. Daniel

[RFC PATCH 2/2] iio: light: Add support for LTR559 chip

2015-03-31 Thread Daniel Baluta
difference by introducing ltr501_chip_info. Datasheet for LTR559 is at: http://optoelectronics.liteon.com/upload/download/DS86-2013-0003/S_110_LTR-559ALS-01_DS_V1.pdf Signed-off-by: Daniel Baluta --- drivers/iio/light/ltr501.c | 196 + 1 file changed, 163

[RFC PATCH 1/2] iio: light: ltr501: Fix alignment to match open parenthesis

2015-03-31 Thread Daniel Baluta
This makes ltr501 code consistent with the coding style adopted for the new drivers added to IIO. We prepare the path for adding support for LTR559 chip. Reported by checkpatch.pl Signed-off-by: Daniel Baluta --- drivers/iio/light/ltr501.c | 46 +- 1

[RFC PATCH 1/2] iio: light: ltr501: Fix alignment to match open parenthesis

2015-03-31 Thread Daniel Baluta
This makes ltr501 code consistent with the coding style adopted for the new drivers added to IIO. We prepare the path for adding support for LTR559 chip. Reported by checkpatch.pl Signed-off-by: Daniel Baluta --- drivers/iio/light/ltr501.c | 46 +- 1

[RFC PATCH 2/2] iio: light: Add support for LTR559 chip

2015-03-31 Thread Daniel Baluta
difference by introducing ltr501_chip_info. Datasheet for LTR559 is at: http://optoelectronics.liteon.com/upload/download/DS86-2013-0003/S_110_LTR-559ALS-01_DS_V1.pdf Signed-off-by: Daniel Baluta --- drivers/iio/light/ltr501.c | 196 + 1 file changed, 163

[RFC PATCH 0/2] Add support for Lite On LTR559 sensor

2015-03-31 Thread Daniel Baluta
First patch does some cleanups in order to make alignment style consistent with the rest of IIO drivers. Then second patch adds support for Lite On LTR559 ambient light and proximity sensor. This is a RFC because the code is compile tested only. The chip should arrive in a few days. Daniel

Re: [PATCH 1/3] iio: configfs: Add configfs support to IIO

2015-03-31 Thread Daniel Baluta
On Sat, Mar 28, 2015 at 1:50 PM, Jonathan Cameron wrote: > On 27/03/15 17:17, Lars-Peter Clausen wrote: >> On 03/25/2015 06:00 PM, Daniel Baluta wrote: >>> This creates an IIO configfs subsystem named "iio", which has one default >>> group named "triggers

Re: [PATCH 3/3] iio: Documentation: Add initial documentaton for IIO

2015-03-31 Thread Daniel Baluta
On Sat, Mar 28, 2015 at 1:53 PM, Jonathan Cameron wrote: > On 25/03/15 19:28, Daniel Baluta wrote: >> On Wed, Mar 25, 2015 at 7:22 PM, Peter Meerwald wrote: >>> On Wed, 25 Mar 2015, Daniel Baluta wrote: >>> >>>> This file wants to be a starting point docu

Re: [PATCH v4 1/4] iio: core: Introduce IIO software triggers

2015-04-26 Thread Daniel Baluta
On Sun, Apr 26, 2015 at 10:21 PM, Jonathan Cameron wrote: > On 20/04/15 15:02, Daniel Baluta wrote: >> A software trigger associates an IIO device trigger with a software >> interrupt source (e.g: timer, sysfs). This patch adds the generic >> infrastructure for handl

Re: [PATCH v4 2/4] iio: core: Introduce IIO configfs support

2015-04-26 Thread Daniel Baluta
On Sun, Apr 26, 2015 at 10:26 PM, Jonathan Cameron wrote: > On 20/04/15 15:02, Daniel Baluta wrote: >> This creates an IIO configfs subystem named "iio", with a default "triggers" >> group. >> >> Triggers group is used for handling software trigge

Re: [PATCH v4 4/4] iio: Documentation: Add IIO configfs documentation

2015-04-26 Thread Daniel Baluta
On Sun, Apr 26, 2015 at 10:30 PM, Jonathan Cameron wrote: > On 20/04/15 15:02, Daniel Baluta wrote: >> Signed-off-by: Daniel Baluta > Probably need to start Documentation/ABI/testing/configfs-iio (or something > like that) > as well to document the ABI elements fully. Yes, t

[RESEND PATCH] configfs: init configfs module earlier at boot time

2015-04-07 Thread Daniel Baluta
We need this earlier in the boot process to allow various subsystems to use configfs (e.g Industrial IIO). Also, debugfs is at core_initcall level and configfs should be on the same level from infrastructure point of view. Suggested-by: Lars-Peter Clausen Signed-off-by: Daniel Baluta

Re: [PATCH v3 1/3] iio: configfs: Add configfs support to IIO

2015-04-08 Thread Daniel Baluta
On Mon, Apr 6, 2015 at 5:18 PM, Daniel Baluta wrote: > This module is the core of IIO configfs. It creates the "iio" subsystem under > configfs mount point root, with one default group for "triggers". > > It offers basic interface for registering software trigge

Re: [RFC PATCH 2/2] iio: light: Add support for LTR559 chip

2015-04-09 Thread Daniel Baluta
On 04/09/2015 04:39 PM, Jonathan Cameron wrote: On 31/03/15 11:37, Daniel Baluta wrote: This device is register compatible with LTR501, with a minor difference for ALS control register as showed below: ALS Control register for LTR501: 7 6 5 4 3 2 1 0

Re: [PATCH] iio: light: ltr501: Fix alignment to match open parenthesis

2015-04-09 Thread Daniel Baluta
On 04/09/2015 05:51 PM, Kuppuswamy, Sathyanarayanan wrote: Hi Daniel, You have asked me to include this patch in my LTR501 patch set. I have already sent few versions of my patch set with your patch. Do you want to submit it again separately? Hi Sathya, After Jonathan's comments on patch

Re: [PATCH] iio: acpi: Add ACPI0008 Ambient Light Sensor

2015-04-30 Thread Daniel Baluta
Hi Gabriele, Please keep the version numbering from previous patches, I think this should be v8 :). On Wed, Apr 29, 2015 at 2:27 PM, Gabriele Mazzotta wrote: > Add basic implementation of the ACPI0008 Ambient Light Sensor driver. > This driver currently supports only the ALI property, yet is rea

[PATCH v4 4/4] iio: Documentation: Add IIO configfs documentation

2015-04-20 Thread Daniel Baluta
Signed-off-by: Daniel Baluta --- Documentation/iio/iio_configfs.txt | 67 ++ 1 file changed, 67 insertions(+) create mode 100644 Documentation/iio/iio_configfs.txt diff --git a/Documentation/iio/iio_configfs.txt b/Documentation/iio/iio_configfs.txt new file

[PATCH v4 1/4] iio: core: Introduce IIO software triggers

2015-04-20 Thread Daniel Baluta
kernel module is loaded. Software triggers can be created directly from drivers or from user space via configfs interface. Signed-off-by: Daniel Baluta --- drivers/iio/Kconfig | 8 +++ drivers/iio/Makefile | 1 + drivers/iio/industrialio-sw-trigger.c | 111

[PATCH v4 3/4] iio: trigger: Introduce IIO hrtimer based trigger

2015-04-20 Thread Daniel Baluta
based on an older version from Marten and Lars-Peter. Signed-off-by: Marten Svanfeldt Signed-off-by: Lars-Peter Clausen Signed-off-by: Daniel Baluta --- drivers/iio/trigger/Kconfig| 9 ++ drivers/iio/trigger/Makefile | 2 + drivers/iio/trigger/iio-trig-hrtimer.c | 201

[PATCH v4 0/4] Add initial configfs support for IIO

2015-04-20 Thread Daniel Baluta
its own set of attributes. Changes since v3: * addressed comments from Jonathan for previous version * https://lkml.org/lkml/2015/4/6/111 Daniel Baluta (4): iio: core: Introduce IIO software triggers iio: core: Introduce IIO configfs support iio: trigger: Introduce IIO

[PATCH v4 2/4] iio: core: Introduce IIO configfs support

2015-04-20 Thread Daniel Baluta
igger core: $ mkdir /config/iio/triggers/hrtimer-instance1 Signed-off-by: Daniel Baluta --- drivers/iio/Kconfig | 8 +++ drivers/iio/Makefile| 1 + drivers/iio/industrialio-configfs.c | 117 3 files changed, 126 insertions(+)

[PATCH] iio: light: ltr501: Fix alignment to match open parenthesis

2015-04-09 Thread Daniel Baluta
This makes ltr501 code consistent with the coding style adopted for the new drivers added to IIO. We prepare the path for adding support for LTR559 chip. Reported by checkpatch.pl Signed-off-by: Daniel Baluta --- Changes since v1: * rebased on top of 1ca510b0ea6 ("iio: light: l

[PATCH v2] iio: light: Add support for ROHM RPR0521 sensor

2015-05-28 Thread Daniel Baluta
This patch adds support for ROHM RPR0521 ambient light and proximity sensor. It offers raw readings for intensity and proximity. Signed-off-by: Daniel Baluta --- Changes since v1: (after Jonathan's review) * add static const to some structures * make some local functions s

Re: [PATCH v2] iio: light: Add support for ROHM RPR0521 sensor

2015-05-28 Thread Daniel Baluta
On Thu, May 28, 2015 at 2:35 PM, Peter Meerwald wrote: > On Thu, 28 May 2015, Daniel Baluta wrote: > >> This patch adds support for ROHM RPR0521 ambient light and proximity >> sensor. It offers raw readings for intensity and proximity. > > comments below > >

Re: [PATCH v2] iio: light: Add support for ROHM RPR0521 sensor

2015-05-28 Thread Daniel Baluta
>> >> +static const struct iio_chan_spec rpr0521_channels[] = { >> >> + { >> >> + .type = IIO_INTENSITY, >> >> + .modified = 1, >> >> + .address = RPR0521_CHAN_ALS_DATA0, >> >> + .channel2 = IIO_MOD_LIGHT_BOTH, >> >> + .info_mask_sep

Re: [PATCH] iio: Fix parameters in iio_triggered_buffer_setup

2015-06-11 Thread Daniel Baluta
ff-by: Cristina Opriceana Reviewed-by: Daniel Baluta Thanks Cristina! Daniel. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the F

[PATCH 0/2] Clarify proximity output value interpretation

2015-06-11 Thread Daniel Baluta
fix was trivial and it is included here, for stk3310 there are more things to do and will try to fix in the near future. Daniel Baluta (2): iio: ABI: Clarify proximity output value iio: proximity: sx9500: Fix proximity value Documentation/ABI/testing/sysfs-bus-iio | 6 ++ drivers/iio

[PATCH 2/2] iio: proximity: sx9500: Fix proximity value

2015-06-11 Thread Daniel Baluta
Because of the ABI confusion proximity value exposed by SX9500 was inverted. Signed-off-by: Daniel Baluta --- drivers/iio/proximity/sx9500.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/iio/proximity/sx9500.c b/drivers/iio/proximity/sx9500.c index 2042e37..01494cd

[PATCH 1/2] iio: ABI: Clarify proximity output value

2015-06-11 Thread Daniel Baluta
API, while not being a true proximity sensor. Fixes: 614e8842ddf ("iio: ABI: add clarification for proximity") Signed-off-by: Daniel Baluta --- Documentation/ABI/testing/sysfs-bus-iio | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Documentation/ABI/testing/sys

Re: [PATCH 2/2] iio: proximity: sx9500: Fix proximity value

2015-06-13 Thread Daniel Baluta
On Sat, Jun 13, 2015 at 9:21 PM, Jonathan Cameron wrote: > On 12/06/15 08:40, Vlad Dogaru wrote: >> On Thu, Jun 11, 2015 at 06:49:34PM +0300, Daniel Baluta wrote: >>> Because of the ABI confusion proximity value exposed by SX9500 >>> was inverted. >>&

Re: [PATCH v3] iio: light: Add support for ROHM RPR0521 sensor

2015-06-14 Thread Daniel Baluta
On Sun, Jun 14, 2015 at 1:51 PM, Jonathan Cameron wrote: > On 10/06/15 15:21, Daniel Baluta wrote: >> This patch adds support for ROHM RPR0521 ambient light and proximity >> sensor. It offers raw readings for intensity and proximity. >> >> Signed-off-by: Daniel Baluta

[PATCH] iio: magnetometer: mmc35240: Fix crash in pm suspend

2015-06-15 Thread Daniel Baluta
Trace: [ 322.573217] [<80c0d2d1>] pm_generic_suspend+0x21/0x30 [ 322.578284] [<80d042ab>] i2c_device_pm_suspend+0x1b/0x30 Fixes: 553a776b7 ("iio: magnetometer: mmc35240: Add PM sleep support") Signed-off-by: Daniel Baluta --- drivers/iio/magnetometer/mmc35240.c | 1 + 1 file c

[PATCH v4] iio: light: Add support for ROHM RPR0521 sensor

2015-06-17 Thread Daniel Baluta
This patch adds support for ROHM RPR0521 ambient light and proximity sensor. It offers raw readings for intensity and proximity. Signed-off-by: Daniel Baluta --- Changes since v3: * use GENMASK instead BIT(x) | BIT(y) * remove (now) unused RPR0521_PXS_MAX_VAL because of PXS ABI

[PATCH v2 5/6] iio: magnetometer: mmc35240: Fix sensitivity on z-axis

2015-06-05 Thread Daniel Baluta
t;iio: magnetometer: Add support for MEMSIC MMC35240") Signed-off-by: Daniel Baluta --- drivers/iio/magnetometer/mmc35240.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/iio/magnetometer/mmc35240.c b/drivers/iio/magnetometer/mmc35240.c index 7bc72b3..73fa111 100644 ---

[PATCH v2 3/6] iio: magnetometer: mmc35240: Fix broken processed value

2015-06-05 Thread Daniel Baluta
operation are more relaxed. Fixes: abeb6b1e7b ("iio: magnetometer: Add support for MEMSIC MMC35240") Signed-off-by: Daniel Baluta --- drivers/iio/magnetometer/mmc35240.c | 43 +++-- 1 file changed, 27 insertions(+), 16 deletions(-) diff --git a/drivers/iio/ma

[PATCH v2 0/6] Memsic MMC35230 magnetometer fixes

2015-06-05 Thread Daniel Baluta
spelling erorrs * added MMC35240_ prefix to some macro's Daniel Baluta (6): iio: magnetometer: mmc35240: i2c device name should be lower case iio: magnetometer: mmc35240: NULL terminate attribute array iio: magnetometer: mmc35240: Fix broken processed value

[PATCH v2 1/6] iio: magnetometer: mmc35240: i2c device name should be lower case

2015-06-05 Thread Daniel Baluta
This is the standard convention for i2c device name and also this is the name used in some Intel platforms DT files. Fixes: abeb6b1e7b ("iio: magnetometer: Add support for MEMSIC MMC35240") Signed-off-by: Daniel Baluta --- drivers/iio/magnetometer/mmc35240.c | 2 +- 1 file changed, 1

[PATCH v2 6/6] iio: magnetometer: mmc35240: Add compensation for raw values

2015-06-05 Thread Daniel Baluta
This patch adds compensation formula to raw readings, borrowed from Memsic's input driver. Signed-off-by: Daniel Baluta --- drivers/iio/magnetometer/mmc35240.c | 62 ++--- 1 file changed, 58 insertions(+), 4 deletions(-) diff --git a/drivers/iio/magneto

[PATCH v2 4/6] iio: magnetometer: mmc35240: Use a smaller sleep value

2015-06-05 Thread Daniel Baluta
According to datasheet, Page 8, minimum wait time to complete measurement is 10ms. Adjusting this value will increase the userspace polling rate. Fixes: abeb6b1e7b ("iio: magnetometer: Add support for MEMSIC MMC35240") Signed-off-by: Daniel Baluta --- drivers/iio/magnetometer/mmc3

[PATCH v2 2/6] iio: magnetometer: mmc35240: NULL terminate attribute array

2015-06-05 Thread Daniel Baluta
This avoid nasty crashes when registering the IIO device. Fixes: abeb6b1e7b ("iio: magnetometer: Add support for MEMSIC MMC35240") Signed-off-by: Daniel Baluta --- drivers/iio/magnetometer/mmc35240.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/iio/magnetometer/mmc

[PATCH 0/6] Memsic MMC35230 magnetometer fixes

2015-06-03 Thread Daniel Baluta
First 5 patches are bugfixes or small enhancements found during tests with a real platform. The last patch adds compensation for raw values allowing proper calibration for Android compass apps. Daniel Baluta (6): iio: magnetometer: mmc35240: i2c device name should be lower case iio

[PATCH 2/6] iio: magnetometer: mmc35240: NULL terminate attribute array

2015-06-03 Thread Daniel Baluta
This avoid nasty crashes when registering the IIO device. Fixes: abeb6b1e7b ("iio: magnetometer: Add support for MEMSIC MMC35240") Signed-off-by: Daniel Baluta --- drivers/iio/magnetometer/mmc35240.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/iio/magnetometer/mmc

[PATCH 3/6] iio: magnetometer: mmc35240: Fix broken processed value

2015-06-03 Thread Daniel Baluta
are more relaxed. Fixes: abeb6b1e7b ("iio: magnetometer: Add support for MEMSIC MMC35240") Signed-off-by: Daniel Baluta --- drivers/iio/magnetometer/mmc35240.c | 43 +++-- 1 file changed, 27 insertions(+), 16 deletions(-) diff --git a/drivers/iio/ma

[PATCH 5/6] iio: magnetometer: mmc35240: Fix sensitivity on z-axis

2015-06-03 Thread Daniel Baluta
t;iio: magnetometer: Add support for MEMSIC MMC35240") Signed-off-by: Daniel Baluta --- drivers/iio/magnetometer/mmc35240.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/iio/magnetometer/mmc35240.c b/drivers/iio/magnetometer/mmc35240.c index 35eb6fd..88be660 100644 ---

[PATCH 6/6] iio: magnetometer: mmc35240: Add compensation for raw values

2015-06-03 Thread Daniel Baluta
This patch adds compensation formula to raw readings, borrowed from Memsic's input driver. Signed-off-by: Daniel Baluta --- drivers/iio/magnetometer/mmc35240.c | 62 ++--- 1 file changed, 58 insertions(+), 4 deletions(-) diff --git a/drivers/iio/magneto

[PATCH 1/6] iio: magnetometer: mmc35240: i2c device name should be lower case

2015-06-03 Thread Daniel Baluta
This is the standard convention for i2c device name and also this is the name used in some Intel platforms DT files. Fixes: abeb6b1e7b ("iio: magnetometer: Add support for MEMSIC MMC35240") Signed-off-by: Daniel Baluta --- drivers/iio/magnetometer/mmc35240.c | 2 +- 1 file changed, 1

[PATCH 4/6] iio: magnetometer: mmc35240: Use a smaller sleep value

2015-06-03 Thread Daniel Baluta
According to datasheet, Page 8, minimum wait time to complete measurement is 10ms. Adjusting this value will increase the userspace polling rate. Fixes: abeb6b1e7b ("iio: magnetometer: Add support for MEMSIC MMC35240") Signed-off-by: Daniel Baluta --- drivers/iio/magnetometer/mmc3

Re: [PATCH v2] iio: light: Add support for ROHM RPR0521 sensor

2015-06-03 Thread Daniel Baluta
On Thu, May 28, 2015 at 5:17 PM, Daniel Baluta wrote: > > >>> >> +static const struct iio_chan_spec rpr0521_channels[] = { >>> >> + { >>> >> + .type = IIO_INTENSITY, >>> >> + .mo

[PATCH v3] iio: light: Add support for ROHM RPR0521 sensor

2015-06-10 Thread Daniel Baluta
This patch adds support for ROHM RPR0521 ambient light and proximity sensor. It offers raw readings for intensity and proximity. Signed-off-by: Daniel Baluta --- Changes since v2: (after Peter's review) * replaced calibscale with scale * several style fixes (new lines, spel

Re: [PATCH v2] iio: light: Add support for ROHM RPR0521 sensor

2015-06-11 Thread Daniel Baluta
On Sun, Jun 7, 2015 at 12:08 AM, Jonathan Cameron wrote: > > > On 06/03/2015 09:56 AM, Daniel Baluta wrote: >> >> On Thu, May 28, 2015 at 5:17 PM, Daniel Baluta >> wrote: >>> >>> >>> >>>>>>> +static const struct iio_c

Re: [PATCH] iio: Fix parameters in iio_triggered_buffer_setup

2015-06-21 Thread Daniel Baluta
On Sun, Jun 14, 2015 at 1:20 PM, Jonathan Cameron wrote: > On 11/06/15 13:06, Cristina Opriceana wrote: >> This patch renames the top half handler and the bottom half handler >> of iio_triggered_buffer_setup() in accordance with their usage. >> The names of the parameters were swapped, thus creati

Re: [PATCH] ASoC: ak5558: make two structures static

2018-06-06 Thread Daniel Baluta
e warnings: > warning: symbol 'ak5558_pm' was not declared. Should it be static? > warning: symbol 'soc_codec_dev_ak5558' was not declared. Should it be > static? > > Signed-off-by: Colin Ian King Reviewed-by: Daniel Baluta

Re: [PATCH v4 3/5] arm64: dts: imx8mq: Add SAI2 node

2019-03-01 Thread Daniel Baluta
On Thu, Feb 28, 2019 at 8:49 PM Fabio Estevam wrote: > > On Wed, Feb 27, 2019 at 3:38 AM Daniel Baluta wrote: > > > + sai2: sai@308b { > > + #sound-dai-cells = <0>; > > +

Re: [PATCH v4 5/5] arm64: dts: imx8mq-evk: Enable wm8524 codec

2019-03-01 Thread Daniel Baluta
On Thu, Feb 28, 2019 at 11:09 PM Fabio Estevam wrote: > > On Wed, Feb 27, 2019 at 3:38 AM Daniel Baluta wrote: > > > + > > + wm8524: audio-codec-0 { > > This -0 is not needed as we have a single codec on this board. Ok, will fix. > > > +

[PATCH v5 0/4] Enable wm8524 on i.MX8MQ-EVK

2019-03-01 Thread Daniel Baluta
sl,imx8mq-sdma" compatible for sdma. Daniel Baluta (4): arm64: dts: imx8mq: Add SDMA nodes bindings: fsl-imx-sdma: Document fsl,imx8mq-sdma compatbile string arm64: dts: imx8mq: Add SAI2 node arm64: dts: imx8mq-evk: Enable audio codec wm8952 .../devicetree/bindings/dma/fsl-imx-sd

[PATCH v5 2/4] bindings: fsl-imx-sdma: Document fsl,imx8mq-sdma compatbile string

2019-03-01 Thread Daniel Baluta
Add imx8mq sdma support. Reviewed-by: Rob Herring Signed-off-by: Daniel Baluta --- Documentation/devicetree/bindings/dma/fsl-imx-sdma.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/dma/fsl-imx-sdma.txt b/Documentation/devicetree/bindings/dma/fsl-imx

[PATCH v5 1/4] arm64: dts: imx8mq: Add SDMA nodes

2019-03-01 Thread Daniel Baluta
SDMA1 is part of AIPS-3 region and SDMA2 is part of AIPS-1 region. Reviewed-by: Fabio Estevam Signed-off-by: Anson Huang [initial submit in i.MX internal tree] Signed-off-by: Daniel Baluta [adaptation for linux-next] --- arch/arm64/boot/dts/freescale/imx8mq.dtsi | 22 ++ 1

[PATCH v5 3/4] arm64: dts: imx8mq: Add SAI2 node

2019-03-01 Thread Daniel Baluta
SAI2 is part of AIPS-3 memory region. Signed-off-by: Daniel Baluta --- arch/arm64/boot/dts/freescale/imx8mq.dtsi | 15 +++ 1 file changed, 15 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8mq.dtsi b/arch/arm64/boot/dts/freescale/imx8mq.dtsi index 9d48450453fb

[PATCH v5 4/4] arm64: dts: imx8mq-evk: Enable audio codec wm8524

2019-03-01 Thread Daniel Baluta
-card machine driver to connect them into a sound card. Signed-off-by: Daniel Baluta --- arch/arm64/boot/dts/freescale/imx8mq-evk.dts | 48 1 file changed, 48 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8mq-evk.dts b/arch/arm64/boot/dts/freescale/imx8mq-evk.dts

[PATCH v3 0/2] Enable wm8524 codec on i.MX8MM EVK

2019-04-24 Thread Daniel Baluta
- remove codec phandle Changes since v1: - use "fsl,imx8mm-sai", "fsl,imx8mq-sai" compatbile strings and remove "fsl,imx6sx-sai" because SAI module on i.MX8M is not compatbile with SAI modules form i.MX6 Daniel Baluta (2): arm64: dts: imx8

[PATCH v3 1/2] arm64: dts: imx8mm: Add SAI nodes

2019-04-24 Thread Daniel Baluta
i.MX8MM has 5 SAI instances with the following base addresses according to RM. SAI1 base address: 3001_h SAI2 base address: 3002_h SAI3 base address: 3003_h SAI5 base address: 3005_h SAI6 base address: 3006_h Signed-off-by: Daniel Baluta --- arch/arm64/boot/dts/freescale

[PATCH v3 2/2] arm64: dts: imx8mm-evk: Enable audio codec wm8524

2019-04-24 Thread Daniel Baluta
* codec node * simple-card configuration Signed-off-by: Daniel Baluta --- arch/arm64/boot/dts/freescale/imx8mm-evk.dts | 55 1 file changed, 55 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8mm-evk.dts b/arch/arm64/boot/dts/freescale/imx8mm-evk.dts index

Re: [RFC] clk: imx: Allow re-parenting by default on set rate

2019-03-13 Thread Daniel Baluta
On Wed, Mar 13, 2019 at 12:42 PM Sascha Hauer wrote: > > On Mon, Mar 11, 2019 at 10:41:40AM +, Abel Vesa wrote: > > On 19-03-11 11:28:25, Sascha Hauer wrote: > > > Hi Abel, > > > > > > On Thu, Mar 07, 2019 at 09:20:37AM +, Abel Vesa wrote: > > > > By default, the muxes should re-parent on

[PATCH 2/2] arm64: dts: imx8qxp: Add EDMA0/EDMA1 nodes

2019-03-26 Thread Daniel Baluta
-manual/IMX8DQXPRM.pdf Cc: Teo Hall Signed-off-by: Daniel Baluta --- arch/arm64/boot/dts/freescale/imx8qxp.dtsi | 72 ++ 1 file changed, 72 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8qxp.dtsi b/arch/arm64/boot/dts/freescale/imx8qxp.dtsi index 0cb939861a60

[PATCH 0/2] Add EDMA0/EDMA1 nodes

2019-03-26 Thread Daniel Baluta
First patch documents the fsl,imx8qm-edma string while the second adds the two EDMA nodes used by Audio peripherals. Daniel Baluta (2): bindings: fsl-edma: Document fsl,imx8qm-edma compatbile string arm64: dts: imx8qxp: Add EDMA0/EDMA1 nodes .../devicetree/bindings/dma/fsl-edma.txt

[PATCH 1/2] bindings: fsl-edma: Document fsl,imx8qm-edma compatbile string

2019-03-26 Thread Daniel Baluta
Add imx8qm edma support. Signed-off-by: Daniel Baluta --- Documentation/devicetree/bindings/dma/fsl-edma.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/dma/fsl-edma.txt b/Documentation/devicetree/bindings/dma/fsl-edma.txt index 97e213e07660

Re: [PATCH 2/2] arm64: dts: imx8qxp: Add EDMA0/EDMA1 nodes

2019-03-27 Thread Daniel Baluta
On Tue, Mar 26, 2019 at 3:31 PM Aisheng Dong wrote: > > > From: Daniel Baluta > > Sent: Tuesday, March 26, 2019 5:43 PM > > > > i.MX8QXP contains a total of 4 EDMA controllers of which two are primarily > > for audio components and the other two are for non-audi

Re: [PATCH v6 1/4] arm64: dts: imx8mq: Add SDMA nodes

2019-03-27 Thread Daniel Baluta
On Tue, Mar 26, 2019 at 11:44 PM Angus Ainslie wrote: > > On 2019-03-19 07:31, Shawn Guo wrote: > > On Fri, Mar 08, 2019 at 12:02:22PM +0000, Daniel Baluta wrote: > >> SDMA1 is part of AIPS-3 region and SDMA2 is part > >> of AIPS-1 region. > >> > >>

Re: [PATCH 2/2] arm64: dts: imx8qxp: Add EDMA0/EDMA1 nodes

2019-03-27 Thread Daniel Baluta
On Wed, Mar 27, 2019 at 11:33 AM Lucas Stach wrote: > > Hi Daniel, > > Am Mittwoch, den 27.03.2019, 10:51 +0200 schrieb Daniel Baluta: > [...] > > > > > or > > > "fsl,imx8qxp-edma", "fsl,imx8qm-edma"? > > > > One thing t

[PATCH v2 0/2] Add EDMA0/EDMA1 nodes on i.MX8QXP

2019-03-27 Thread Daniel Baluta
MA driver is similar for 8QM/8QXP but it doesn't have yet support added for these boards so just the compatible string closer to the actual hardware. Daniel Baluta (2): bindings: fsl-edma: Document fsl,imx8qxp-edma compatbile string arm64: dts: imx8qxp: Add EDMA0/EDMA1 nodes

[PATCH v2 2/2] arm64: dts: imx8qxp: Add EDMA0/EDMA1 nodes

2019-03-27 Thread Daniel Baluta
-manual/IMX8DQXPRM.pdf Cc: Teo Hall Signed-off-by: Daniel Baluta --- arch/arm64/boot/dts/freescale/imx8qxp.dtsi | 72 ++ 1 file changed, 72 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8qxp.dtsi b/arch/arm64/boot/dts/freescale/imx8qxp.dtsi index 0cb939861a60

[PATCH v2 1/2] bindings: fsl-edma: Document fsl,imx8qxp-edma compatbile string

2019-03-27 Thread Daniel Baluta
Add imx8qxp edma support. Signed-off-by: Daniel Baluta --- Documentation/devicetree/bindings/dma/fsl-edma.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/dma/fsl-edma.txt b/Documentation/devicetree/bindings/dma/fsl-edma.txt index 97e213e07660

Re: [PATCH v2 2/2] arm64: dts: imx8qxp: Add EDMA0/EDMA1 nodes

2019-03-28 Thread Daniel Baluta
On Thu, Mar 28, 2019 at 4:32 AM Aisheng Dong wrote: > > > From: Daniel Baluta > > Sent: Thursday, March 28, 2019 3:03 AM > > > > i.MX8QXP contains a total of 4 EDMA controllers of which two are primarily > > for audio components and the other two are for non-audi

Re: [PATCH 1/3] sound: Add hikey960 i2s audio driver

2019-04-10 Thread Daniel Baluta
Hello Pengcheng, Make sure you run ./scripts/checkpatch.pl --strict yourpatchfile.patch On Thu, Feb 28, 2019 at 4:15 PM Pengcheng Li wrote: > > From: Youlin Wang > > Add i2s driver for hisi3660 soc found on the hikey960 board. > Add conpile line in make file. > Technical support by Guangke Ji.

Re: [PATCH 0/5 v2] Enable wm8524 on i.MX8MQ

2019-02-25 Thread Daniel Baluta
On Mon, Feb 25, 2019 at 4:02 PM Chris Spencer wrote: > > Hi Daniel, > > On Mon, 25 Feb 2019 at 13:26, Daniel Baluta wrote: > > arm64: dts: imx8mq: Add SDMA nodes > > arm64: dts: imx8mq: Add SAI2 node > > arm64: dts: imx8qm: Add SAI pinctrl configuration &g

[PATCH v3 0/5] Enable wm8524 on i.MX8MQ

2019-02-25 Thread Daniel Baluta
ce v2: - s/QM/MQ after Chris comments Changes since v1: - added cover letter - remove "fsl,imx8mq-sdma" compatible for sdma. Daniel Baluta (5): arm64: dts: imx8mq: Add SDMA nodes arm64: dts: imx8mq: Add SAI2 node arm64: dts: imx8mq: Add SAI pinctrl config

[PATCH v3 3/5] arm64: dts: imx8mq: Add SAI pinctrl configuration

2019-02-25 Thread Daniel Baluta
This sets the pin configuration for SAI pins BLCK/MCLK/FSYNC/DATA. GPIO_01 is used for mute. Signed-off-by: Daniel Baluta --- arch/arm64/boot/dts/freescale/imx8mq-evk.dts | 10 ++ 1 file changed, 10 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8mq-evk.dts b/arch/arm64

[PATCH v3 2/5] arm64: dts: imx8mq: Add SAI2 node

2019-02-25 Thread Daniel Baluta
SAI2 is part of AIPS-3 memory region and it's the DAI through which the wm8524 codec gets its data. Signed-off-by: Daniel Baluta --- arch/arm64/boot/dts/freescale/imx8mq.dtsi | 16 1 file changed, 16 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8mq.dtsi b

[PATCH v3 4/5] arm64: dts: imx8mq: Enable SAI2 for wm8524 codec

2019-02-25 Thread Daniel Baluta
This enables SAI2 digital audio interface to be used with wm8524 codec. wm8524 works only in slave mode, so we make sure that IMX8MQ_CLK_SAI2 has an appropriate frequency in order to easily derive rates divisible with 8000. Signed-off-by: Daniel Baluta --- arch/arm64/boot/dts/freescale/imx8mq

[PATCH v3 1/5] arm64: dts: imx8mq: Add SDMA nodes

2019-02-25 Thread Daniel Baluta
SDMA1 is part of AIPS-3 region and SDMA2 is part of AIPS-1 region. Signed-off-by: Anson Huang [initial submit in i.MX internal tree] Signed-off-by: Daniel Baluta [adaptation for linux-next] --- arch/arm64/boot/dts/freescale/imx8mq.dtsi | 22 ++ 1 file changed, 22 insertions

[PATCH v3 5/5] arm64: dts: imx8mq: Enable wm8524 codec

2019-02-25 Thread Daniel Baluta
This uses simple-audio-card machine driver adding 1 CPU DAI and 1 Codec DAI. Signed-off-by: Daniel Baluta --- arch/arm64/boot/dts/freescale/imx8mq-evk.dts | 29 1 file changed, 29 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8mq-evk.dts b/arch/arm64/boot

Re: [PATCH v3 0/5] Enable wm8524 on i.MX8MQ

2019-02-26 Thread Daniel Baluta
On Tue, Feb 26, 2019 at 2:53 PM Fabio Estevam wrote: > > Hi Daniel, > > On Tue, Feb 26, 2019 at 4:08 AM Daniel Baluta wrote: > > > > On i.MX8MQ we can start the party using the wm8524 codec > > which gets it's data through the SAI2 interface. > > >

Re: [PATCH v3 2/5] arm64: dts: imx8mq: Add SAI2 node

2019-02-26 Thread Daniel Baluta
On Tue, Feb 26, 2019 at 2:55 PM Fabio Estevam wrote: > > On Tue, Feb 26, 2019 at 4:08 AM Daniel Baluta wrote: > > > > SAI2 is part of AIPS-3 memory region and it's the DAI through > > which the wm8524 codec gets its data. > > Please do not mention wm8524 in a S

Re: [PATCH v3 0/5] Enable wm8524 on i.MX8MQ

2019-02-26 Thread Daniel Baluta
On Tue, Feb 26, 2019 at 3:10 PM Fabio Estevam wrote: > > On Tue, Feb 26, 2019 at 10:05 AM Daniel Baluta > wrote: > > > I get your point here. But for the moment it is identical with > > "fsl,imx7d-sdma" so there is no need to add it now! > > > > S

[PATCH v4 0/5] Enable wm8524 on i.MX8MQ-EVK

2019-02-26 Thread Daniel Baluta
r Chris comments Changes since v1: - added cover letter - remove "fsl,imx8mq-sdma" compatible for sdma. Daniel Baluta (5): arm64: dts: imx8mq: Add SDMA nodes bindings: fsl-imx-sdma: Document fsl,imx8mq-sdma compatbile string arm64: dts: imx8mq: Add SAI2 node arm64

[PATCH v4 1/5] arm64: dts: imx8mq: Add SDMA nodes

2019-02-26 Thread Daniel Baluta
SDMA1 is part of AIPS-3 region and SDMA2 is part of AIPS-1 region. Signed-off-by: Anson Huang [initial submit in i.MX internal tree] Signed-off-by: Daniel Baluta [adaptation for linux-next] --- arch/arm64/boot/dts/freescale/imx8mq.dtsi | 22 ++ 1 file changed, 22 insertions

[PATCH v4 4/5] arm64: dts: imx8mq-evk: Enable SAI2 node

2019-02-26 Thread Daniel Baluta
This sets up clock hierarchy and pin configuration. Use PLL1 to derive a proper rate for playing files with a rate multiple of 8000. Signed-off-by: Daniel Baluta --- arch/arm64/boot/dts/freescale/imx8mq-evk.dts | 19 +++ 1 file changed, 19 insertions(+) diff --git a/arch/arm64

[PATCH v4 2/5] bindings: fsl-imx-sdma: Document fsl,imx8mq-sdma compatbile string

2019-02-26 Thread Daniel Baluta
Add imx8mq sdma support. Signed-off-by: Daniel Baluta --- Documentation/devicetree/bindings/dma/fsl-imx-sdma.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/dma/fsl-imx-sdma.txt b/Documentation/devicetree/bindings/dma/fsl-imx-sdma.txt index

<    1   2   3   4   5   6   7   8   9   10   >