latency
adjustment operations between the messages.
Signed-off-by: Samu Onkalo samu.p.onk...@nokia.com
Acked-by: Kevin Hilman khil...@deeprootsystems.com
Acked-by: Paul Walmsley p...@pwsan.com
---
drivers/i2c/busses/i2c-omap.c | 10 ++
1 files changed, 6 insertions(+), 4 deletions
are done to top my lp5523 and lp5521 driver patches
which are waiting to go in.
Samu Onkalo (6):
leds: lp5521: Change some macros to functions
leds: lp5523: Change some macros to functions
leds: lp5521: Adjust delays and add comments to them
leds: lp5523: Adjust delays and add comments
Some small macros changed to inline functions to have proper
type checking.
Signed-off-by: Samu Onkalo samu.p.onk...@nokia.com
---
drivers/leds/leds-lp5521.c | 21 -
1 files changed, 16 insertions(+), 5 deletions(-)
diff --git a/drivers/leds/leds-lp5521.c b/drivers/leds
A small macro changed to inline function to have proper
type checking. Inline added to two similar small functions.
Signed-off-by: Samu Onkalo samu.p.onk...@nokia.com
---
drivers/leds/leds-lp5523.c |9 ++---
1 files changed, 6 insertions(+), 3 deletions(-)
diff --git a/drivers/leds/leds
Delays were little bit too long. Adjust delay times and
add some comments to them.
Signed-off-by: Samu Onkalo samu.p.onk...@nokia.com
---
drivers/leds/leds-lp5521.c | 25 -
1 files changed, 16 insertions(+), 9 deletions(-)
diff --git a/drivers/leds/leds-lp5521.c b
Delays were little bit too long. Adjust delay times and
add some comments to them.
Signed-off-by: Samu Onkalo samu.p.onk...@nokia.com
---
drivers/leds/leds-lp5523.c | 31 +--
1 files changed, 17 insertions(+), 14 deletions(-)
diff --git a/drivers/leds/leds-lp5523.c
Chip detection may fail if the chip is in some odd state
for example after system restart. Chip doesn't have
HW reset line.
Signed-off-by: Samu Onkalo samu.p.onk...@nokia.com
---
drivers/leds/leds-lp5521.c | 12 +---
1 files changed, 5 insertions(+), 7 deletions(-)
diff --git
Chip detection may fail if the chip is in some odd state
for example after system restart. Chip doesn't have
HW reset line.
Signed-off-by: Samu Onkalo samu.p.onk...@nokia.com
---
drivers/leds/leds-lp5523.c | 12 +---
1 files changed, 5 insertions(+), 7 deletions(-)
diff --git
Short documentation at kernel doc format.
Signed-off-by: Samu Onkalo samu.p.onk...@nokia.com
---
include/linux/lis3lv02d.h | 46 +
1 files changed, 46 insertions(+), 0 deletions(-)
diff --git a/include/linux/lis3lv02d.h b/include/linux/lis3lv02d.h
that
there was an interrupt.
Signed-off-by: Samu Onkalo samu.p.onk...@nokia.com
---
drivers/hwmon/lis3lv02d.c | 33 +++--
drivers/hwmon/lis3lv02d.h |2 ++
2 files changed, 13 insertions(+), 22 deletions(-)
diff --git a/drivers/hwmon/lis3lv02d.c b/drivers/hwmon
Based on pm_runtime control, turn lis3 regulators on and off.
Perform context save and restore on transitions.
Feature is optional and must be enabled in platform data.
Signed-off-by: Samu Onkalo samu.p.onk...@nokia.com
---
drivers/hwmon/lis3lv02d.c | 52
Call input device poll function at device open to refresh coordinates
immediately. This is needed for the case where poll interval is set to
zero and coordinate updates happens purely under interrupt control.
Signed-off-by: Samu Onkalo samu.p.onk...@nokia.com
---
drivers/hwmon/lis3lv02d.c |5
Sometimes lis3 chip seems to fail to setup factory tuning at boot up.
This probably happens if there is some odd power ramp down ramp up sequence
for example in device restart. Set boot bit in control2 register to
trig boot sequence manually and wait until it is finished.
Signed-off-by: Samu
If lis3lv02d_init_device fails, HW resources were not released
properly. In case of failure call release_resources if available.
Signed-off-by: Samu Onkalo samu.p.onk...@nokia.com
---
drivers/hwmon/lis3lv02d_i2c.c |5 +
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git
Short documentation at kernel doc format.
Signed-off-by: Samu Onkalo samu.p.onk...@nokia.com
---
include/linux/lis3lv02d.h | 41 +
1 files changed, 41 insertions(+), 0 deletions(-)
diff --git a/include/linux/lis3lv02d.h b/include/linux/lis3lv02d.h
index
Default fuziness is set smaller for 8 device.
In 12 bit device LSB is quite close to 1 mg
(mg = 1 / 1000 of earth gravity).
In 8bit device LSB is about 18 mg.
Set fuziness to 1 for 8 bit device.
Signed-off-by: Samu Onkalo samu.p.onk...@nokia.com
---
drivers/hwmon/lis3lv02d.c | 18
of operations and
interrupts needed for one data update.
Signed-off-by: Samu Onkalo samu.p.onk...@nokia.com
---
drivers/hwmon/lis3lv02d.c | 21 ++---
drivers/hwmon/lis3lv02d.h |1 +
drivers/hwmon/lis3lv02d_i2c.c | 13 +
include/linux/lis3lv02d.h |1 +
4
Configure chip to data ready mode in selftest and count received
interrupts to see that interrupt line(s) are working.
Signed-off-by: Samu Onkalo samu.p.onk...@nokia.com
---
drivers/hwmon/lis3lv02d.c | 87
drivers/hwmon/lis3lv02d.h |3 +-
2
Add pm_runtime support to lis3 core driver.
Add pm_runtime support to lis3 i2c driver.
spi and hp_accel drivers are not yet supported. Old always
on functionality remains for those.
For sysfs there is 5 second delay before turning off the
chip to avoid long ramp up delay.
Signed-off-by: Samu
Short explanations in kernel doc format
0012: Release resources is case of failure
I2C interface driver was not releasing HW resources if the probe failed.
That made re-attempt to always fail.
Samu Onkalo (12):
hwmon: lis3: pm_runtime support
hwmon: lis3: regulator control
hwmon: lis3
This is a driver for Avago APDS990X combined ALS and proximity sensor.
Interface is sysfs based. The driver uses interrupts to provide new data.
The driver supports pm_runtime and regulator frameworks.
See Documentation/misc-devices/apds990x.txt for details
Signed-off-by: Samu Onkalo samu.p.onk
-by: Samu Onkalo samu.p.onk...@nokia.com
Acked-by: Jonathan Cameron ji...@cam.ac.uk
---
drivers/misc/bh1770glc.c | 1413 +
include/linux/i2c/bh1770glc.h | 53 ++
2 files changed, 1466 insertions(+), 0 deletions(-)
create mode 100644 drivers/misc/bh1770glc.c
Add short documentation for two ALS / proximity chip drivers.
Signed-off-by: Samu Onkalo samu.p.onk...@nokia.com
Acked-by: Jonathan Cameron ji...@cam.ac.uk
---
Documentation/misc-devices/apds990x.txt | 111
Documentation/misc-devices/bh1770glc.txt | 116
Use short I2C timeout if requested by i2c-message flag.
This is for cases where the it is known that target chip causes timeout.
Signed-off-by: Samu Onkalo samu.p.onk...@nokia.com
---
drivers/i2c/busses/i2c-omap.c |9 -
1 files changed, 8 insertions(+), 1 deletions(-)
diff --git
and release the bus faster.
Signed-off-by: Samu Onkalo samu.p.onk...@nokia.com
---
drivers/i2c/i2c-core.c |2 +-
include/linux/i2c.h|1 +
2 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/drivers/i2c/i2c-core.c b/drivers/i2c/i2c-core.c
index 6649176..8c0e443 100644
duplicate code removed to one function
- documentation updated and typing errors corrected
- platform data documentation moved to header file as kernel-doc format
- bhsfh - bh1770glc
Tested on top of 2.6.36-rc5
Samu Onkalo (5):
misc: Driver for bh1770glc / sfh7770 ALS and proximity sensor
misc
Compilation support for apds990x driver
Signed-off-by: Samu Onkalo samu.p.onk...@nokia.com
---
drivers/misc/Kconfig | 11 +++
drivers/misc/Makefile |1 +
2 files changed, 12 insertions(+), 0 deletions(-)
diff --git a/drivers/misc/Kconfig b/drivers/misc/Kconfig
index a0ada25
Compilation support for bh1770glc driver
Signed-off-by: Samu Onkalo samu.p.onk...@nokia.com
---
drivers/misc/Kconfig | 10 ++
drivers/misc/Makefile |1 +
2 files changed, 11 insertions(+), 0 deletions(-)
diff --git a/drivers/misc/Kconfig b/drivers/misc/Kconfig
index b743312
Add short documentation for two ALS / proximity chip drivers.
Signed-off-by: Samu Onkalo samu.p.onk...@nokia.com
---
Documentation/misc-devices/apds990x.txt | 113
Documentation/misc-devices/bh1770glc.txt | 118 ++
2 files changed, 231
-by: Samu Onkalo samu.p.onk...@nokia.com
---
drivers/misc/bh1770glc.c | 1413 +
include/linux/i2c/bh1770glc.h | 53 ++
2 files changed, 1466 insertions(+), 0 deletions(-)
create mode 100644 drivers/misc/bh1770glc.c
create mode 100644 include/linux/i2c
This is a driver for Avago APDS990X combined ALS and proximity sensor.
Interface is sysfs based. The driver uses interrupts to provide new data.
The driver supports pm_runtime and regulator frameworks.
See Documentation/misc-devices/apds990x.txt for details
Signed-off-by: Samu Onkalo samu.p.onk
Compilation support for bhsfh driver
Signed-off-by: Samu Onkalo samu.p.onk...@nokia.com
---
drivers/misc/Kconfig | 10 ++
drivers/misc/Makefile |1 +
2 files changed, 11 insertions(+), 0 deletions(-)
diff --git a/drivers/misc/Kconfig b/drivers/misc/Kconfig
index b743312..f2e8065
Compilation support for apds990x driver
Signed-off-by: Samu Onkalo samu.p.onk...@nokia.com
---
drivers/misc/Kconfig | 11 +++
drivers/misc/Makefile |1 +
2 files changed, 12 insertions(+), 0 deletions(-)
diff --git a/drivers/misc/Kconfig b/drivers/misc/Kconfig
index f2e8065
Add short documentation for two ALS / proximity chip drivers.
bhsfh document update
Signed-off-by: Samu Onkalo samu.p.onk...@nokia.com
---
Documentation/misc-devices/apds990x.txt | 152 +++
Documentation/misc-devices/bhsfh.txt| 148
.
+ *
+ * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
+ *
+ * Contact: Samu Onkalo samu.p.onk...@nokia.com
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * version 2 as published by the Free Software
This is a driver for Avago APDS990X combined ALS and proximity sensor.
Interface is sysfs based. The driver uses interrupts to provide new data.
The driver supports pm_runtime and regulator frameworks.
See Documentation/misc-devices/apds990x.txt for details
Signed-off-by: Samu Onkalo samu.p.onk
Compilation support for apds990x driver
Signed-off-by: Samu Onkalo samu.p.onk...@nokia.com
---
drivers/misc/Kconfig | 11 +++
drivers/misc/Makefile |1 +
2 files changed, 12 insertions(+), 0 deletions(-)
diff --git a/drivers/misc/Kconfig b/drivers/misc/Kconfig
index f2e8065
This is a driver for Avago APDS990X combined ALS and proximity sensor.
Interface is sysfs based. The driver uses interrupts to provide new data.
The driver supports pm_runtime and regulator frameworks.
See Documentation/misc-devices/apds990x.txt for details
Signed-off-by: Samu Onkalo samu.p.onk
access.
Samu Onkalo (5):
misc: Driver for bh1770glc / sfh7770 ALS and proximity sensor
misc: update bhsfh driver to Kconfig and Makefile
misc: Driver for APDS990X ALS and proximity sensors
misc: update apds990x driver to Kconfig and Makefile
Documentation: Short descriptions for bhsfh
Add short documentation for two ALS / proximity chip drivers.
Signed-off-by: Samu Onkalo samu.p.onk...@nokia.com
---
Documentation/misc-devices/apds990x.txt | 126 +++
Documentation/misc-devices/bhsfh.txt| 125 ++
2 files changed, 251
Compilation support for bhsfh driver
Signed-off-by: Samu Onkalo samu.p.onk...@nokia.com
---
drivers/misc/Kconfig | 10 ++
drivers/misc/Makefile |1 +
2 files changed, 11 insertions(+), 0 deletions(-)
diff --git a/drivers/misc/Kconfig b/drivers/misc/Kconfig
index b743312..f2e8065
.
+ *
+ * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
+ *
+ * Contact: Samu Onkalo samu.p.onk...@nokia.com
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * version 2 as published by the Free Software
Based on pm_runtime control, turn lis3 regulators on and off.
Perform context save and restore on transitions.
Signed-off-by: Samu Onkalo samu.p.onk...@nokia.com
---
drivers/hwmon/lis3lv02d.c | 48 +
drivers/hwmon/lis3lv02d.h | 19
Add pm_runtime support to lis3 core driver.
Add pm_runtime support to lis3 i2c driver.
spi and hp_accel drivers are not yet supported. Old always
on functionality remains for those.
For sysfs there is 5 second delay before turning off the
chip to avoid long ramp up delay.
Signed-off-by: Samu
Default fuziness is set smaller for 8 device.
In 12 bit device LSB is quite close to 1 mg.
In 8bit device LSB is about 18 mg. This add
default sensitivity for 8 bit device.
Signed-off-by: Samu Onkalo samu.p.onk...@nokia.com
---
drivers/hwmon/lis3lv02d.c | 18 ++
1 files changed
Sometimes lis3 chip seems to fail to setup factory tuning at boot up.
This probably happens if there is some odd power ramp down ramp up sequence
for example in device restart. Set boot bit in control2 register to
trig boot sequence manually and wait until it is finished.
Also restore axis enable
that
there was an interrupt.
Signed-off-by: Samu Onkalo samu.p.onk...@nokia.com
---
drivers/hwmon/lis3lv02d.c | 37 +
drivers/hwmon/lis3lv02d.h |2 ++
2 files changed, 15 insertions(+), 24 deletions(-)
diff --git a/drivers/hwmon/lis3lv02d.c b/drivers
interrupt during selftest and
calculating number of received interrupts during the test.
Samu Onkalo (9):
hwmon: lis3: pm_runtime support
hwmon: lis3: regulator control
hwmon: lis3: Cleanup interrupt handling
hwmon: lis3: Update coordinates at polled device open
hwmon: lis3: Power
of operations and
interrupts needed for one data update.
Signed-off-by: Samu Onkalo samu.p.onk...@nokia.com
---
drivers/hwmon/lis3lv02d.c | 21 ++---
drivers/hwmon/lis3lv02d.h |1 +
drivers/hwmon/lis3lv02d_i2c.c |9 +
3 files changed, 28 insertions(+), 3 deletions
away.
Signed-off-by: Samu Onkalo samu.p.onk...@nokia.com
---
drivers/hwmon/lis3lv02d.c | 21 ++---
include/linux/lis3lv02d.h |7 ++-
2 files changed, 20 insertions(+), 8 deletions(-)
diff --git a/drivers/hwmon/lis3lv02d.c b/drivers/hwmon/lis3lv02d.c
index 81e2313
Create sub directory Documentation/leds and
add short documentation for LP5521 and LP5523 drivers.
Signed-off-by: Samu Onkalo samu.p.onk...@nokia.com
---
Documentation/leds/leds-lp5521.txt | 88
Documentation/leds/leds-lp5523.txt | 84
Semiconductor www pages.
Tested to work in top of 2.6.36-RC5 kernel.
Samu Onkalo (4):
leds: driver for National Semiconductor LP5521 chip
leds: Driver for National Semiconductors LP5523 chip
leds: Update LP552x support Kconfig and Makefile
Documentation: led drivers lp5521 and lp5523
Provide configuration and compilation support for LP5521 and LP5523
Signed-off-by: Samu Onkalo samu.p.onk...@nokia.com
---
drivers/leds/Kconfig | 18 ++
drivers/leds/Makefile |2 ++
2 files changed, 20 insertions(+), 0 deletions(-)
diff --git a/drivers/leds/Kconfig b
LP5523 chip is nine channel led driver with programmable engines.
Driver provides support for that chip for direct access via led class or
via programmable engines.
Signed-off-by: Samu Onkalo samu.p.onk...@nokia.com
---
drivers/leds/leds-lp5523.c | 1065
LP5521 chip is three channel led driver with programmable engines.
Driver provides support for that chip for direct access via led class or
via programmable engines.
Signed-off-by: Samu Onkalo samu.p.onk...@nokia.com
---
drivers/leds/leds-lp5521.c | 821
LP5521 chip is three channel led driver with programmable engines.
Driver provides support for that chip for direct access via led class or
via programmable engines.
Signed-off-by: Samu Onkalo samu.p.onk...@nokia.com
---
drivers/leds/leds-lp5521.c | 820
LP5523 chip is nine channel led driver with programmable engines.
Driver provides support for that chip for direct access via led class or
via programmable engines.
Signed-off-by: Samu Onkalo samu.p.onk...@nokia.com
---
drivers/leds/leds-lp5523.c | 1063
* documentation should be moved
there.
Datasheets are freely available at National Semiconductor www pages.
Tested to work in top of 2.6.36-RC4 kernel.
Samu Onkalo (4):
leds: driver for National Semiconductor LP5521 chip
leds: Driver for National Semiconductors LP5523 chip
leds: Update
Create sub directory Documentation/leds and
add short documentation for LP5521 and LP5523 drivers.
Signed-off-by: Samu Onkalo samu.p.onk...@nokia.com
---
Documentation/leds/leds-lp5521.txt | 85
Documentation/leds/leds-lp5523.txt | 81
Provide configuration and compilation support for LP5521 and LP5523
Signed-off-by: Samu Onkalo samu.p.onk...@nokia.com
---
drivers/leds/Kconfig | 18 ++
drivers/leds/Makefile |2 ++
2 files changed, 20 insertions(+), 0 deletions(-)
diff --git a/drivers/leds/Kconfig b
in the documentation.
Provided data is raw magnetic field density for 3 axis. For compass
purposes data requires further processing.
Samu Onkalo (3):
drivers: misc: ak8974 / ami305 magnetometer driver
drivers: misc: ak8974 support to Kconfig and Makefile
Documentation: Documentation for ak8974
Signed-off-by: Samu Onkalo samu.p.onk...@nokia.com
---
drivers/misc/Kconfig | 11 +++
drivers/misc/Makefile |1 +
2 files changed, 12 insertions(+), 0 deletions(-)
diff --git a/drivers/misc/Kconfig b/drivers/misc/Kconfig
index 0b591b6..65615a8 100644
--- a/drivers/misc/Kconfig
Signed-off-by: Samu Onkalo samu.p.onk...@nokia.com
---
Documentation/misc-devices/ak8974 | 66 +
1 files changed, 66 insertions(+), 0 deletions(-)
create mode 100644 Documentation/misc-devices/ak8974
diff --git a/Documentation/misc-devices/ak8974
b
Patch provides support for ak8974 / ami305 3-axis magnetometer chip.
Results are provided via misc character device.
Driver supports multiple instaces of the chip.
Driver has PM and regulator framework support.
Signed-off-by: Samu Onkalo samu.p.onk...@nokia.com
---
drivers/misc/ak8974.c
and revision information
Tested in top of 2.6.32 kernel. Applies to 2.6.34-RC3.
Samu Onkalo (1):
misc: bh1770glc: Driver for bh1770glc combined als and ps sensor
drivers/misc/Kconfig | 12 +
drivers/misc/Makefile |3 +
drivers/misc/bh1770glc.h | 169
drivers
Driver for combined ambient light and proximity sensor.
BH1770GLC and SW compatible SFH7770 sensors are supported.
Signed-off-by: Samu Onkalo samu.p.onk...@nokia.com
---
drivers/misc/Kconfig | 12 +
drivers/misc/Makefile |3 +
drivers/misc/bh1770glc.h | 169
66 matches
Mail list logo