summaryrefslogtreecommitdiff
path: root/drivers/grove
AgeCommit message (Collapse)Author
2016-11-09kernel: deprecate old init levelsAndrew Boie
PRIMARY, SECONDARY, NANOKERNEL, MICROKERNEL init levels are now deprecated. New init levels introduced: PRE_KERNEL_1, PRE_KERNEL_2, POST_KERNEL to replace them. Most existing code has instances of PRIMARY replaced with PRE_KERNEL_1, SECONDARY with POST_KERNEL as SECONDARY has had a longstanding bug where the documentation specified SECONDARY ran before the kernel started up, but actually ran afterwards. Change-Id: I771bc634e9caf7f17dbf214a270bc9967eed7d32 Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
2016-10-28grove/light_sensor: Limit name space, add static.Marcus Shawcroft
Change-Id: I4defcdee69a20ff7a9a5120f96a13ecc747ea5d1 Signed-off-by: Marcus Shawcroft <marcus.shawcroft@arm.com>
2016-10-28grove/light_sensor: Make driver_api structure const.Marcus Shawcroft
Change-Id: Ib06404fa80bdce797b2446ce13468193241e2f7a Signed-off-by: Marcus Shawcroft <marcus.shawcroft@arm.com>
2016-10-28grove/temperature_sensor: Limit name space, add static.Marcus Shawcroft
Change-Id: I81167e7363aaaebfcf861a60af0f9fca214d3dec Signed-off-by: Marcus Shawcroft <marcus.shawcroft@arm.com>
2016-10-28grove/temperature_sensor: Make driver_api structure const.Marcus Shawcroft
Change-Id: I7f7223bed0f5be955000bad0256bc29f5a89bc6b Signed-off-by: Marcus Shawcroft <marcus.shawcroft@arm.com>
2016-10-27sensors: make grove sensors depend on CONFIG_SENSORAnas Nashif
The grove sensors use the sensor interface, so make them depend on it just like the other sensors. Change-Id: I9b62a3fa26f54dd683c65ca154c1af7c7c92772f Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2016-10-26grove/lcd: Limit name space, add static.Marcus Shawcroft
Change-Id: I1efc5def0a205964309e719f5a1d4e00ce154f12 Signed-off-by: Marcus Shawcroft <marcus.shawcroft@arm.com>
2016-10-25grove: fixed log level kconfig variableAnas Nashif
The variable is defined as SYS_LOG_GROVE_LEVEL in Kconfig.. Change-Id: I0f77336df2293694ece71f4f5fccb5283f6dc58c Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2016-10-17grove lcd: cleanup includesAnas Nashif
Change-Id: If9c7b505c1233c8e86bc3142ac803dc1a5ac5272 Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2016-10-07sensor: grove: use global sensor init priorityAnas Nashif
Change-Id: Ie56ee7e4b267b4dc67026be4531834f550134969 Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2016-10-07grove/lcd_rgb: Make config_info pointers const.Marcus Shawcroft
Preparation for const driver configuration data. Change-Id: I7fdf091d6c2c838210a3ecd6011179be40f0931c Signed-off-by: Marcus Shawcroft <marcus.shawcroft@arm.com>
2016-05-25Cleanup whitespace in Kconfig filesKumar Gala
Convert leading whitespace into tabs in Kconfig files. Also replaced double spaces between config and <prompt>. Change-Id: I341c718ecf4143529b477c239bbde88e18f37062 Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2016-05-12grove: add temperature sensorBogdan Davidoaia
Add driver for the Grove Temperature Sensor which measures ambient temperature. Sensor reference page: http://www.seeedstudio.com/wiki/Grove_-_Temperature_Sensor Change-Id: I4f56224be5fa7a968749d5d4df8cb99a462c3c21 Origin: original Signed-off-by: Bogdan Davidoaia <bogdan.m.davidoaia@intel.com>
2016-05-12grove: add light sensorBogdan Davidoaia
Add driver for the Grove Light Sensor which detects changes in ambient light. Sensor reference page: http://www.seeedstudio.com/wiki/Grove_-_Light_Sensor Origin: Original Change-Id: I88ae20cc9faa8ab8f274b0bd7a114db5c1a87a91 Signed-off-by: Bogdan Davidoaia <bogdan.m.davidoaia@intel.com>
2016-04-25i2c: use I2C_X nameing instead of I2CXAnas Nashif
Other IOs use this format, so lets be consistent and use I2C_0 instead of I2C0 and I2C_1 an instead of I2C1. Change-Id: I591ab08e14bd533ef0fac38e596559da783863b8 Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2016-04-15grove/lcd_rgb: assign magic number to driver_apiDaniel Leung
Since device_get_binding() will not return any reference to a driver instance if port->driver_api is NULL and grove_lcd does not have any API struct, just populate it with some magic number so grove_lcd can be referenced. Change-Id: I16bdd13dfb49c54b5bdff34c4a4124af229aa20c Signed-off-by: Daniel Leung <daniel.leung@intel.com>
2016-03-18sys_log: Grove driver update to new logging APIGenaro Saucedo Tejada
Replaces old DBG calls by new SYS_LOG_... ones, likewise updates the grove/Kconfig file to include new per-level logging control. Change-Id: I638ffa915a760b4f188c1bfa2dc68e63cbf7e624 Signed-off-by: Genaro Saucedo Tejada <genaro.saucedo.tejada@intel.com>
2016-03-16drivers: Replace DEV_NOT_CONFIG by -EPERMAndre Guedes
This patch replaces all occurences of the macro DEV_NOT_CONFIG by -EPERM at the driver level. This patch is part of the effort to transition from DEV_* codes to errno.h codes. Change-Id: I3054c8aa76319a58a2eec089b8a72bf301c85391 Signed-off-by: Andre Guedes <andre.guedes@intel.com>
2016-03-16drivers: Replace DEV_OK by 0Andre Guedes
This patch replaces all occurences of the macro DEV_OK by the actual value 0 at the driver level. So this patch touch the files under drivers/, include/ and samples/drivers/. This patch is part of the effort to transition from DEV_* codes to errno.h codes. Change-Id: I69980ecb9755f2fb026de5668ae9c21a4ae62d1e Signed-off-by: Andre Guedes <andre.guedes@intel.com>
2016-02-05device: use DEVICE_INIT everwhereBenjamin Walsh
This is the last step before obsoleting DEVICE_DEFINE() and DEVICE_INIT_CONFIG_DEFINE(). Change-Id: Ica4257662969048083ab9839872b4b437b8b351b Signed-off-by: Benjamin Walsh <benjamin.walsh@windriver.com>
2016-02-05device: rename SYS_DEFINE_DEVICE()Benjamin Walsh
Rename it to DEVICE_DEFINE() so that it fits in the 'device' namespace. Change-Id: I3af3a39cf9154359b31d22729d0db9f710cd202b Signed-off-by: Benjamin Walsh <benjamin.walsh@windriver.com>
2016-02-05device: rename DECLARE_DEVICE_INIT_CONFIG()Benjamin Walsh
Rename it to DEVICE_INIT_CONFIG_DEFINE(), because (a) it was not fitting in any namespace and (b) it is not used to declare, but rather define a object. Change-Id: I1da5822f06b85a9fb024b5b184afd0ccc01012ec Signed-off-by: Benjamin Walsh <benjamin.walsh@windriver.com>
2016-02-05grove_lcd: this display is not a feature of the boardAnas Nashif
The LCD display is an add-on, not a feature of the platform or the board. Set the defaults and remove the definition from Galileo Kconfig. Change-Id: Ic319cd765d2dc1fe08cc65615680821fe9bc6a83 Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2016-02-05grove/lcd: add an option to specify I2C masterDaniel Leung
Add an option to specify to which I2C master the Grove LCD is connected, instead of already using the i2c_dw driver port #0. Change-Id: I4e61ef8e31c75ae912e2d16f8939369c0b8bbc2c Signed-off-by: Daniel Leung <daniel.leung@intel.com>
2016-02-05gpio, pwm, rgb lcd: Replace polling i2c requestsDmitriy Korovkin
Now that i2c_transfer/i2c_read/i2c_write are fully synchronous, no need to use the polling based function. Change-Id: Ib578cf4a6d72ad0817e1aaeebc7e4dab9f9d293f Signed-off-by: Dmitriy Korovkin <dmitriy.korovkin@windriver.com> Signed-off-by: Tomasz Bursztyka <tomasz.bursztyka@linux.intel.com>
2016-02-05grove/lcd: fix init level due to dependence on system clockDaniel Leung
The Grove LCD driver requires running clock for delay. Since the clock is only initialized in NANOKERNEL, so change the LCD driver init level so that it starts after clock is initialized. Change-Id: I6a2cadac1b34f95557f99c78615b1bd4aee541f5 Signed-off-by: Daniel Leung <daniel.leung@intel.com>
2016-02-05init: Implement fine-grained initialization policyDmitriy Korovkin
Put initialization priorities as device driver Kconfig parameter. Initialization priority value for each platform is defined in the platform Kconfig file. Drivers and platform code use SYS_DEFINE_DEVICE to add and initialization function. Change-Id: I2f4f3c7370dac02408a1b50a0a1bade8b427a282 Signed-off-by: Dmitriy Korovkin <dmitriy.korovkin@windriver.com> Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2016-02-05grove: KConfig cleanupDan Kalowsky
Adding in dependency of GROVE_DEBUG to the GROVE configuration option being set Change-Id: I4108e619254ca3cde2b96de595e1b8300fe6a752 Signed-off-by: Dan Kalowsky <daniel.kalowsky@intel.com>
2016-02-05checkpatch: warning - block_comment_styleDan Kalowsky
Change-Id: I6da43e41f9c6efee577b70513ec368ae3cce0144 Signed-off-by: Dan Kalowsky <daniel.kalowsky@intel.com> Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2016-02-05Change new files from BSD-3 licenses to Apache 2.0Javier B Perez Hernandez
Change the new files from Intel in BSD-3 to Apache 2.0 Change-Id: Ica4b455e9cb8134889f2a88e2d96094ce7093734 Signed-off-by: Javier B Perez Hernandez <javier.b.perez.hernandez@linux.intel.com>
2016-02-05grove-lcd: import of Grove LCD I2C controllerDan Kalowsky
Initial import of the Grove LCD I2C controller. Data sheet can be found at: http://www.seeedstudio.com/wiki/images/0/03/JHD1214Y_YG_1.0.pdf [DL: Updated command sequence according to datasheet.] Change-Id: Id1b491f8dce346769dc42c41fac0ea3aabe3950a Signed-off-by: Daniel Leung <daniel.leung@intel.com> Signed-off-by: Dan Kalowsky <daniel.kalowsky@intel.com>