Permalink
Commits on Oct 9, 2018
  1. rpi: Added Raspberry Pi 3 B+ to Hardware Versions with corrections

    Chuckduey authored and Propanu committed Sep 11, 2018
    Signed-off-by: Chuck Duey <cduey@msn.com>
    Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com>
Commits on Sep 20, 2018
  1. Add instructions for Fedora

    nullr0ute authored and tingleby committed Sep 9, 2018
    mraa is packaged in Fedora so add details for how people can consume mraa on that
    distribution.
    
    Signed-off-by: Peter Robinson <pbrobinson@gmail.com>
    Signed-off-by: Thomas Ingleby <thomas.ingleby@intel.com>
  2. up2: update docs to point to new wiki link

    tingleby committed Sep 20, 2018
    Signed-off-by: Thomas Ingleby <thomas.ingleby@intel.com>
Commits on Sep 11, 2018
  1. README: update PPA instructions for mraa2

    tingleby committed Sep 11, 2018
    Signed-off-by: Thomas Ingleby <thomas.ingleby@intel.com>
Commits on Sep 6, 2018
  1. mraa: Update to v2.0.0

    Propanu committed Sep 4, 2018
    Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com>
Commits on Sep 5, 2018
  1. 96boards: Add onboard LED support for Dragonboard410c

    Mani-Sadhasivam committed Aug 30, 2018
    Add onboard LED support for Dragonboard410c. There are 4 user LEDs and
    two LEDs for BT and WLAN.
    
    Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
  2. examples: c: led: Initialize LED based on index

    Mani-Sadhasivam committed Aug 30, 2018
    Since the LEDs are initialized based on index, modify the USER_LED
    to index 0.
    
    Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
  3. led: Add support for initializing onboard LEDs based on board definition

    Mani-Sadhasivam committed Aug 30, 2018
    1. Add support for initializing onboard LEDs based on board definition.
    Maximum LED count has been set to 12.
    
    2. Introduce mraa_led_init_raw API for initializing LEDs based on
    function name. This API can be used by platforms which doesn't have mapping
    in board definition.
    
    Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Commits on Aug 30, 2018
  1. 96boards: Configure SPI0_CS pin as GPIO for Dragonboard410c

    Mani-Sadhasivam committed Aug 29, 2018
    On Dragonboard410c, configure SPI0_CS pin as GPIO for enabling the
    user to control it without adding chip select property in Devicetree.
    
    Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Commits on Aug 15, 2018
  1. mraa: fix mraa_gpio_lookup function

    Mani-Sadhasivam committed Aug 14, 2018
    1. Extend the lookup count to phy_pin_count to cover all physical pins
       exposed on the board
    2. Ignore the non GPIO pins by checking for GPIO capability
    
    Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Commits on Jul 30, 2018
  1. ioinit: Update to build/test C++ ioinit

    pylbert committed Jul 26, 2018
    Multiple changes necessary to enable this.  The main goal is to build
    and run the C++ ioinit unit tests (which require c++11)
    
        * Updated mraa required CMake version to 2.8.11 (this is needed for
          the target_xxx_xxx CMake syntax.
        * Added function for adding the c++11 flag give a CMake target.
        * Updated unit tests for range of CMake versions (tested on 2.8.11,
          3.8.2, 3.9.6, and 3.12.0).
        * Added C++ unit test file (more needed here).)
    
    Signed-off-by: Noel Eck <noel.eck@intel.com>
Commits on Jul 29, 2018
  1. 96boards: Add Ultra-96 board support

    Mani-Sadhasivam committed Jul 26, 2018
    This commit adds Ultra96, one of the Consumer Edition boards of the
    96Boards family.
    
    Ultra96 is an Arm-based, Xilinx Zynq UltraScale+ MPSoC development board.
    This board runs petalinux distribution on the ARM core and integrates
    Xilinx programmable logic (PL) UltraScale architecture in a single fabric.
    
    This board supports standard peripherals defined by 96Boards CE
    Specification. Since it ships with >4.8 kernel, only chardev mapping
    is supported for accessing GPIO.
    
    More information about this board can be found in 96Boards product
    page: https://www.96boards.org/product/ultra96/
    
    Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
  2. 96boards: Cleanup the board support

    Mani-Sadhasivam committed Jul 2, 2018
    This commit cleans up the 96boards board support by sorting the boards
    in alphabetical manner and also executing clang-format for 96boards.c
    
    Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Commits on Jul 24, 2018
  1. initio.c: Clean up memory from a failed init

    pylbert committed Jul 24, 2018
    Delete allocated space if the string init fails.
    
    Signed-off-by: Noel Eck <noel.eck@intel.com>
  2. initio.c: Re-applied clang-format for source

    pylbert committed Jul 24, 2018
    Ran clang-format to conform to mraa's coding guide.
    
    Signed-off-by: Noel Eck <noel.eck@intel.com>
  3. initio: Handle no-conversion case in mraa_atoi_x

    pylbert committed Jul 23, 2018
    If strtol fails to process any characters, return a failure.
    
    Added protocol chunk string to each parse_xxx method for completeness
    when printing to syslog.
    
    Added more tests - passing and failing cases.
    
    Signed-off-by: Noel Eck <noel.eck@intel.com>
  4. Peripheralman: Remove IIO from ioinit for android

    pylbert committed Jul 20, 2018
    Since peripheral manager does not build in the IIO source, ifdef's were
    added around the initio functionality for IIO.
    
    IMO this is an ugly fix, but I don't see a better way since the
    PERIPHERALMAN architecture is qualified throughout the CMake and source
    with ifdef's.
    
    Signed-off-by: Noel Eck <noel.eck@intel.com>
  5. gtest: Organized Gtest unit tests

    pylbert committed Jul 20, 2018
    This commit limits which tests run on which ARCH to allow all tests to
    pass on CI.
    
        * Qualify the FTDI tests with (FTDI4222 AND USBPLAT)
        * Qualify the IO init tests with (DETECTED_ARCH == "MOCK")
        * Renamed all unit tests to start with 'test_unit_' to facilitate
          grouping with tab completion (or any other type of sorting)
        * Updated docker targets with new unit test target name
    
    Signed-off-by: Noel Eck <noel.eck@intel.com>
  6. String based IO initialization for MRAA

    Mihai Stefanescu authored and pylbert committed Mar 21, 2018
    Signed-off-by: Mihai Stefanescu <mihai.stefanescu@rinftech.com>
    Signed-off-by: Noel Eck <noel.eck@intel.com>
Commits on Jul 23, 2018
  1. boards: add rock960 support

    netlhx authored and Mani-Sadhasivam committed Jun 30, 2018
    Signed-off-by: Hongxin Liu <761896148@qq.com>
Commits on Jul 17, 2018
  1. gtest: Added headers to unit tests

    pylbert committed Jul 17, 2018
    Added missing headers for the common and platform extender unit test
    source files.
    
    Signed-off-by: Noel Eck <noel.eck@intel.com>
Commits on Jul 2, 2018
  1. gpio.c: Handle subplatform interrupts

    pylbert committed Jun 18, 2018
    For all subplaform pins, save the subplatform index as dev->pin and the
    actual platform index as dev->phy_pin.
    
    Example:
        pin 515 (subplatform pin 3)
        dev->pin = 515
        dev->phy_pin = 515 - 512 = 3
    
    In this way, methods which get a mraa_gpio_context have a means
    to tell whether the pin is on a subplatform or not.
    
    Signed-off-by: Noel Eck <noel.eck@intel.com>
Commits on Jun 26, 2018
  1. Platform_extender: FT4222 library refactor

    pylbert committed Jun 1, 2018
    Updates to make the FT4222 platform extender more usable.
    
    Previous implementation opened libft4222.so and loaded symbols as
    needed.  This implementation removes dynamic loading of libft4222 in
    favor of creating a new shared libary which links against libft4222.so.
    The dynamic loading is now done in mraa.c.  One C method is exposed in
    libmraa-platform-ft4222.so for finding/initializing an FT4222:
    
    mraa_platform_t mraa_usb_platform_extender(mraa_board_t* board);
    
    Mraa.c attempts to open this platform library and calls the
    mraa_usb_platform_extender method.  If an ftdi4222 is connected, the
    user gets added IO from the extender.  If no FT4222 device is connected,
    continue as normal.
    
        * Create a new platform library for the FT4222
        * Expose only 1 C method from the library -
          mraa_usb_platform_extender
        * libmraa-platform-ft4222.so contains CXX code (as well as previous
          C code).  All *allocs have been removed in favor of global
          C++ stl containers.
        * Previously, the FT4222 would only initialize correctly if 2 ftdi
          devices existed.  Now, initialize FT4222 devices based on the
          device id.
        * Many fixes for various problems with the FT4222
        * Added unit test for platform extender (minimal functionality w/o hw)
        * Updated to FindFtd4222.cmake module to handle standard arguments
        * Removed CMAKE_C_FLAGS addition of -DFTDID2XX and -DFTDI4222 since
          these are NOT used anywhere in source.
        * Building the FTDI4222 shim requires libft4222.h which requires
          ftd2xx.h.  Updated CMakeLists.txt to require both when building
          the shim.
    
    Signed-off-by: Noel Eck <noel.eck@intel.com>
Commits on Jun 25, 2018
  1. gpio: adjust adv function hooks to fix subplatforms

    Propanu committed Jun 22, 2018
    The chardev feature changed the flow for most GPIO functions but did not take into account existing function hooks correctly.
    This fixes the checks and restores subplatform GPIO access.
    
    Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com>
Commits on Jun 15, 2018
  1. mraa.c: Added pointer to pointer back to find_uart

    pylbert committed Jun 15, 2018
    Went a bit too far with the previous commit.  Added pointer to pointer
    back to mraa_find_uart_bus_pci.
    
    Tested leaks against valgrind and verified dev_path gets set with gdb.
    
    Signed-off-by: Noel Eck <noel.eck@intel.com>
Commits on Jun 14, 2018
  1. mraa.c: Fixed memleak of device_path for IEI_TANK

    pylbert committed Jun 14, 2018
    Unfortunately the device_path char* is dynamically allocated
    and #defined and const char *'ed depending on how each platform provided the
    uart device paths which makes cleaning it up more complicated.
    
    Added a check for the IEI_TANK.
    
    Removed the char** (in favor of a char*) for mraa_find_uart_bus_pci.)
    
    Signed-off-by: Noel Eck <noel.eck@intel.com>
Commits on Jun 12, 2018
  1. types.hpp: add missing mediatek boards to platform enum

    Propanu committed Jun 12, 2018
    Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com>
  2. aiotdevkit: add readme and link to it

    Propanu committed Jun 12, 2018
    Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com>
Commits on Jun 6, 2018
  1. aiotdevkit: fix pinmap and add uart names

    Propanu committed Jun 6, 2018
    Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com>
Commits on Jun 1, 2018
  1. aiotdevkit: add support for IEI Tank platforms

    Propanu committed Jun 1, 2018
    Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com>
Commits on May 30, 2018
  1. ftdi_4222: Memleak fixes

    pylbert committed May 30, 2018
    Fixes for assortment of memory leaks.  Updated i2c_read/write_internal
    methods to get the controller status ONLY when a read/write fails.
    
    Signed-off-by: Noel Eck <noel.eck@intel.com>
  2. ftdi_4222: Cleanup warning messages from compile

    pylbert committed May 30, 2018
        * Fixed broken switch statement - missing 'case' in front of labels
        * Added default case to switch statement
        * Removed unused variable
        * Removed unused static functions
        * Attempted to fix cases where functions are returning/not returning
          data incorrectly.
        * Attempted to fix i2c read which was returning an
        * uninitialized/unused variable.
    
    Signed-off-by: Noel Eck <noel.eck@intel.com>
  3. ftdi_4222: Fix mode check in FTDI4222

    pylbert committed May 30, 2018
    If numDevs is not == 2, the previous code would fail.  If numDevs > 2
    (example 1 ft2xx device connected and 1 ft4222 device in mode 3) then
    the code would not initialize the FT4222 and give an error that the mode
    must be 0 or 3.
    
    Updated source to find the first index of a ft4222 device.  Initialize
    it as I2C.  If another device of the same id exists, then initialize it
    as GPIO.
    
    Added more syslog messages for debugging.
    
    Signed-off-by: Noel Eck <noel.eck@intel.com>
Commits on May 3, 2018
  1. arm: 96boards: Move pin capabilities property inside is_gpio condition

    Mani-Sadhasivam authored and malikabhi05 committed Apr 5, 2018
    Declare the GPIO pins capabilities under is_gpio condition instead of
    under sysfs_pin.
    
    Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
    Signed-off-by: malikabhi05 <abhishek.malik@intel.com>
  2. arm: 96boards: Add support for Hikey960

    Mani-Sadhasivam authored and malikabhi05 committed Apr 5, 2018
    Add support for Hikey960 board from HiSilicon based on their Kirin960 SoC.
    
    Peripherals supported:
    
    1. GPIO
    2. UART
    3. I2C
    
    For GPIO only Chardev interface has been added since this board only supports
    >=4.15 kernel and using legacy sysfs interface is highly discouraged.
    
    Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
    Signed-off-by: malikabhi05 <abhishek.malik@intel.com>