Skip to content
Permalink
Branch: master
Commits on May 10, 2019
  1. gpio: Introduce mraa_gpio_init_by_name API

    Mani-Sadhasivam committed May 2, 2019
    This commit introduces mraa_gpio_init_by_name API for initializing
    a GPIO by its line name provided by the kernel. This feature depends
    on the GPIO chardev support and also the line names present in devicetree
    or board files. Accessing GPIO using its line name, removes the dependency
    from MRAA specific pin mapping and provides a cleaner way to access GPIOs.
    This will solve the issue created by an external gpiochip probing before
    the SoC's internal gpio controller and thereby making the MRAA pin mapping
    wrong.
    
    Currently, this API only supports initializing a single GPIO at a time.
    
    Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
  2. 96boards: Add chardev support to Rock960

    Mani-Sadhasivam committed May 2, 2019
    Add chardev support to Rock960 96Boards.
    
    Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
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 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 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>
Commits on May 2, 2018
  1. 96boards: db820c: Fix chardev mapping

    Mani-Sadhasivam authored and malikabhi05 committed Apr 17, 2018
    Fix chardev mapping for GPIO-C and GPIO-F.
    
    Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
    Signed-off-by: malikabhi05 <abhishek.malik@intel.com>
  2. gpio: chardev: fix leaking of gpiochip file descriptors

    Mani-Sadhasivam authored and malikabhi05 committed Apr 17, 2018
    The following APIs are only used for getting the line information from
    kernel by opening the gpiochip independently and they fails to close
    the file descriptor when done:
    
    1. mraa_get_line_info_by_chip_number()
    2. mraa_get_line_info_by_chip_name()
    3. mraa_get_line_info_by_chip_label()
    
    This will create issue if these API consumers like mraa_gpio_read_dir(),
    mraa_gpio_mode(), mraa_gpio_chardev_dir() gets called in a loop. The
    system will run out of file descriptor after some time.
    
    Fix this issue by closing the opened file descriptors before freeing
    the cinfo struct.
    
    Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
    Signed-off-by: malikabhi05 <abhishek.malik@intel.com>
Commits on Apr 19, 2018
  1. 96boards: chardev: Move chardev enablement inside platform check

    Mani-Sadhasivam authored and malikabhi05 committed Apr 10, 2018
    Move the chardev enablement inside the platform check.
    Some boards might not have the chardev mapping yet.
    
    Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
    Signed-off-by: malikabhi05 <abhishek.malik@intel.com>
Commits on Apr 10, 2018
  1. arm: 96boards: Add Chardev support for relevant boards

    Mani-Sadhasivam authored and malikabhi05 committed Apr 6, 2018
    As of now both Dragonboard410c and Hikey boards run latest LTS kernel.
    Hence, adding chardev support for those.
    
    Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
    Signed-off-by: Ivan Farkas <Ivan.Farkas@TeleCuris.com>
    Signed-off-by: malikabhi05 <abhishek.malik@intel.com>
Commits on Apr 6, 2018
  1. gpio: chardev: Fix flag for checking kernel owned & open source gpio …

    Mani-Sadhasivam authored and malikabhi05 committed Apr 6, 2018
    …line
    
    The flag used for checking the kernel owned gpio line is GPIOLINE_FLAG_KERNEL.
    Hence use that instead of GPIOLINE_FLAG_IS_OUT.
    
    Flag used for checking the open source gpio line is GPIOLINE_FLAG_OPEN_SOURCE.
    Hence use that instead of GPIOHANDLE_REQUEST_OPEN_SOURCE, which should be
    only used when requesting lines.
    
    Reported-by: Linus Walleij <linus.walleij@linaro.org>
    Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
    Signed-off-by: malikabhi05 <abhishek.malik@intel.com>
  2. arm: 96boards: Run clang-format on source code

    Mani-Sadhasivam authored and malikabhi05 committed Apr 5, 2018
    Run clan-format on the source code for better code visibility.
    
    Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
    Signed-off-by: malikabhi05 <abhishek.malik@intel.com>
  3. arm: 96boards: Add Chardev support for relevant boards

    Mani-Sadhasivam authored and malikabhi05 committed Apr 5, 2018
    As of now both Dragonboard410c and Hikey boards run latest LTS kernel.
    Hence, adding chardev support for those.
    
    Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
    Signed-off-by: malikabhi05 <abhishek.malik@intel.com>
Commits on Feb 6, 2018
  1. examples: Cleanup Python examples

    Mani-Sadhasivam authored and arfoll committed Jan 30, 2018
    Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
    Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
Commits on Jan 25, 2018
  1. examples: Fix samples.mapping

    Mani-Sadhasivam authored and arfoll committed Jan 24, 2018
    Fix samples.mapping.txt with the cleaned-up C++ examples
    
    Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
    Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
  2. api: mraa: gpio: Fix doxygen warning

    Mani-Sadhasivam authored and arfoll committed Jan 24, 2018
    This commit fixes the below doxygen warning:
    
    "warning: unexpected token in comment block while parsing the argument of command param"
    
    Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
    Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
  3. api: mraa: Add cleaned-up C++ examples to doxygen doc

    Mani-Sadhasivam authored and arfoll committed Jan 24, 2018
    Add the cleaned-up C++ examples to doxygen doc by modifying the @snippet
    tag.
    
    Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
    Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
  4. examples: Cleanup C++ examples

    Mani-Sadhasivam authored and arfoll committed Jan 24, 2018
    Modify the C++ examples to be of same coding standard like C. As a
    part of this cleanup, a new LED example is also added.
    
    Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
    Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
Commits on Jan 18, 2018
  1. examples: c++: Add mraa include path to CMakeLists.txt

    Mani-Sadhasivam authored and arfoll committed Jan 8, 2018
    C++ specific examples depends on headers in api/mraa, so include
    them in CMakeLists.txt
    
    Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
    Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
  2. examples: cleanup examples directory

    Mani-Sadhasivam authored and arfoll committed Nov 17, 2017
    Following changes are done as a part of cleanup:
    
    1. Moved the platform specific `C` examples from top level examples/
    directory to platform/ subdirectory and renamed helloedison.c to
    gpio_edison.c
    
    2. C specific examples are moved to a new c/ subdirectory. As a part
    of this process, examples are modified to follow same standards
    and few new examples are also added.
    
    3. Include the newly added C examples to relevant API documentation
    
    4. Ran clang-format for all source files in c/, c++/, platform/
    subdirectories
    
    Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
    Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
Commits on Nov 2, 2017
  1. tools: remove INSTALLGPIOTOOL flag

    Mani-Sadhasivam authored and arfoll committed Oct 20, 2017
    This commit removes INSTALLGPIOTOOL flag as it is not
    required anymore
    
    Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
    Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
  2. tools: add new tools directory

    Mani-Sadhasivam authored and arfoll committed Oct 20, 2017
    This is the start of the series of commits focussed on
    cleaning up the exmaples/ directory.
    
    This commit moves mraa-gpio, mraa-i2c, mraa-uart files
    out of examples directory into new tools directory. Moved
    files are the good cadidates to be treated as tools
    instead of examples.
    
    Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
    Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
Commits on Oct 19, 2017
  1. led: Add on board LED support

    Mani-Sadhasivam authored and arfoll committed Aug 25, 2017
    This patch adds support for using on board LED through sysfs.
    Commonly available LED parameters are supported.
    
    Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
    Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
Commits on Sep 6, 2017
  1. src: arm: Add mmap support for db410c

    Mani-Sadhasivam authored and arfoll committed Sep 2, 2017
    This commit adds mmap support for 96Boards Dragonboard410c
    
    Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
    Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
Commits on Jun 28, 2017
  1. gpio : Add support for input pull up/down modes

    Mani-Sadhasivam authored and arfoll committed Jun 21, 2017
    Make use of 'active_low' interface in sysfs for configuring input pin
    in pull up / pull down mode. C++ binding also has been added.
    
    Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
    Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
You can’t perform that action at this time.