aboutsummaryrefslogtreecommitdiffstats
path: root/include
AgeCommit message (Collapse)Author
2024-02-28radxa cm3: fix pin 26HEADmasterNascs
Signed-off-by: Nascs <nascs@radxa.com>
2024-01-23platform: add radxa e25 supportNascs
Signed-off-by: Nascs <nascs@radxa.com>
2024-01-23Adding in RPI 5 supportChuckduey
Signed-off-by: Chuckduey <cduey@msn.com>
2023-12-05platform: add Radxa ROCK 3A platform supportNascs
Signed-off-by: Nascs <nascs@radxa.com>
2023-11-08platform: add Radxa CM5 IO platform supportnascs
Signed-off-by: Nascs <nascs@radxa.com>
2023-10-26platform: add Radxa CM3 platform supportnascs
Signed-off-by: Nascs <nascs@radxa.com> Co-authored-by: ZHANG Yuntian <yt@radxa.com>
2023-10-20platform: add Radxa ROCK 3B platform supportnascs
Signed-off-by: Nascs <nascs@radxa.com>
2023-10-19Add support for Orange Pi PrimeGunjan Gupta
2023-10-12platform: add Radxa ROCK 5B platform supportNascs
Signed-off-by: Nascs <nascs@radxa.com>
2023-09-26platform: add Radxa ROCK 5A platform supportnascs
Signed-off-by: Nascs <nascs@radxa.com>
2023-09-21platform: Add RISC-V architecture with VisionFiveDaniel Bovensiepen
Add RISC-V architecture and StarFive JH71x0-based boards VisionFive and VisionFive 2. Signed-off-by: Daniel Bovensiepen <oss@bovi.li> Signed-off-by: Zhu Jia Xing <jiaxing.zhu@siemens.com>
2023-09-11platform: add Radxa ROCK 3C platform supportnascs
Signed-off-by: Nascs <nascs@radxa.com>
2022-08-05iot2050: Add USER buttonJan Kiszka
A simple GPIO, no muxing needed, no pulling supported. Therefore, reject any mode changes that request pull up/down, ignore the others. Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
2022-08-05platform: add iot2050 platform supportIvan Mikhaylov
This patch introuduce iot2050 platform support, it is the port from meta-iot2050 layer. Based on original patch by Le Jin. Signed-off-by: Le Jin <le.jin@siemens.com> Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com> Signed-off-by: Ivan Mikhaylov <ivan.mikhaylov@siemens.com>
2022-08-05gpio: chardev: Add function to retrieve sysfs base for a gpiochipJan Kiszka
This allows to full mux structures which still need the sysfs GPIO numbers. In combination with mraa_find_gpio_line_by_name, this allows for platform setup that is independent of the gpiochip probing order. Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
2022-08-05gpio: chardev: Add helper to retrieve gpiochip and line offset by line nameJan Kiszka
This makes the retrieval robust against chips being reordered during boot. The results can be used to fill out mraa_pin_t while initializing a board. Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
2022-08-05mux: add mux interfaceIvan Mikhaylov
Add mux_init_reg interface with different mux modes for GPIO, UART, SPI, I2C, PWM, AIO. Signed-off-by: Le Jin <le.jin@siemens.com> Signed-off-by: Ivan Mikhaylov <ivan.mikhaylov@siemens.com>
2021-06-29include: Declare gVERSION global as 'extern'.Björn Esser
Fixes build with '-fno-common'. Signed-off-by: Thomas Ingleby <thomas.ingleby@intel.com>
2021-06-29led: Fix and cleanup initializationJan Kiszka
The structure returned by readdir is may be statically allocated. Keeping a pointer to it is broken. The LED path is generally not a directory, it's a link to a directory. And even if it were a directory, that would tell nothing about the caller's access permissions. And then there is a lot of duplication between mraa_led_init and mraa_led_init_raw. This addresses that all. Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
2021-04-07Added Intel Learning kit to platforms.Arora, Jeet
Signed-off-by: Arora, Jeet <jeet.arora@intel.com> Signed-off-by: Thomas Ingleby <thomas.ingleby@intel.com>
2021-02-01Added Raspberry Pi 400 to platformsChuckduey
Signed-off-by: Chuckduey <cduey@msn.com>
2020-01-10Added Raspberry Pi 4 1GB 2GB and 4GB to the list of detected platformsChuck Duey
Signed-off-by: Chuck Duey <cduey@msn.com>
2020-01-06upxtreme: add spdx tags to source filesMichael Campion
Remove MIT notice and replace with SPDX tags in UP Xtreme sources. Signed-off-by: Michael Campion <michael.campion@emutex.com>
2020-01-06upxtreme: Add UP Xtreme supportMichael Campion
UP Xtreme is based on the Intel(R) Core(TM) i3/i5/i7 Whiskey Lake SoCs. The UP Xtreme presents one Raspberry Pi compatible HAT connector. This implementaion supports i2c, spi, uart, adc and gpio through the 40pin HAT connector. Gpio chardev capabilities have been disabled in this implementation. When gpio chardev capabilities are enabled an input becomes unreadable after an isr has been registered to the pin. See here for details: https://github.com/intel-iot-devkit/mraa/issues/937 Tested on UP Xtreme, with UP Board Linux kernel 5.0.0 Features tested: gpio, gpio interrupts, i2c, spi, adc and uart. Signed-off-by: Michael Campion <michael.campion@emutex.com>
2019-12-03adding Adlink IPi SMARC x86/ARM supportgowtham.r
Signed-off-by: gowtham.r <gowtham.r@adlinktech.com>
2019-05-23spdx: add spdx tags to most filesThomas Ingleby
Large change that removes the duplicated MIT notice withe a spdx tag Signed-off-by: Thomas Ingleby <thomas.ingleby@intel.com>
2019-05-10gpio: Introduce mraa_gpio_init_by_name APIManivannan Sadhasivam
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>
2019-03-28rockpi4: Add rockpi4 supportBrian Lee
Closes #958 Signed-off-by: Brian Lee <brian@vamrs.com> Signed-off-by: Thomas Ingleby <thomas.ingleby@intel.com>
2018-11-29rpi: Added Raspberry Pi 3 A+ definitionsBrett Haines
Signed-off-by: Brett Haines <bhaines418@gmail.com> Signed-off-by: Thomas Ingleby <thomas.ingleby@intel.com>
2018-10-09rpi: Added Raspberry Pi 3 B+ to Hardware Versions with correctionsChuck Duey
Signed-off-by: Chuck Duey <cduey@msn.com> Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com>
2018-09-05led: Add support for initializing onboard LEDs based on board definitionManivannan Sadhasivam
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>
2018-07-23String based IO initialization for MRAAMihai Stefanescu
Signed-off-by: Mihai Stefanescu <mihai.stefanescu@rinftech.com> Signed-off-by: Noel Eck <noel.eck@intel.com>
2018-06-26Platform_extender: FT4222 library refactorNoel Eck
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>
2018-06-14mraa.c: Added pointer to pointer back to find_uartNoel Eck
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>
2018-06-14mraa.c: Fixed memleak of device_path for IEI_TANKNoel Eck
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>
2018-05-31aiotdevkit: add support for IEI Tank platformsMihai Tudor Panu
Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com>
2018-03-14UART: Fixing UART issues on UP2Abhishek Malik
Signed-off-by: Abhishek Malik <abhishek.malik@intel.com>
2018-03-05gpio: chardev interface / multiple gpio support for sysfsmihais
Signed-off-by: Mihai Stefanescu <mihai.t.gh.stefanescu@gmail.com> Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2018-03-05chardev: split up helper functions in gpio_chardevBrendan Le Foll
Remove some _multiple functions and replace with generic function that does both. Some general cleanup and will move more interrnal mraa functions to use the _mraa prefix Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2018-03-05Joule: Add gpiod mapping for JouleMihai Stefanescu
Signed-off-by: Mihai Stefanescu <mihai.t.gh.stefanescu@gmail.com> Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2018-03-05gpio.h: Add stripped kernel headerBrendan Le Foll
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2018-03-05gpio: Add gpio chardev interfaceMihai Stefanescu
Signed-off-by: Mihai Stefanescu <mihai.t.gh.stefanescu@gmail.com> Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2017-10-19led: Add on board LED supportManivannan Sadhasivam
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>
2017-10-05Add support for MIPS-based boards Omega2 and Linkit Smart 7688Serge Vakulenko
Signed-off-by: Serge Vakulenko <vak@besm6.org> Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2017-10-04rpi: Add support for Raspberry Pi Zero WSergey Kiselev
This patch adds support and autodetection for Raspberry Pi Zero W. It also adds more revisions for Raspbery Pi Zero from here: http://elinux.org/RPi_HardwareHistory Signed-off-by: Sergey Kiselev <sergey.kiselev@intel.com> Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2017-09-14grovepi: grovepi subplatform support via i2cMihai Tudor Panu
Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com> Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2017-09-12src/x86/up2.c: Add UP^2 EVT3 supportJavier Arteaga
This commit adds a MRAA platform for the UP Squared board, EVT3 revision. It handles the relevant FPGA configuration updates when using MRAA to change pin modes or toggle GPIO directions. Signed-off-by: Javier Arteaga <javier@emutex.com> Signed-off-by: Nicola Lunghi <nicola.lunghi@emutex.com> Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2017-09-12Add support for UART hardware flow controlNicola Lunghi
This allows assigning platform pins to the CTS/RTS lines. If provided, these will be muxed as UART when flow control is enabled. Signed-off-by: Nicola Lunghi <nicola.lunghi@emutex.com> Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2017-08-30iio: Allow mraa_iio_trigger_buffer to handle void* argsNoel Eck
Previously, mraa_iio_trigger_buffer took a void* args but did not use this. Included implementation to allow user to pass a void* to this method and have the corresponding pointer returned in the interrupt handler. Signed-off-by: Noel Eck <noel.eck@intel.com>
2017-08-19arm: fix compiler warningsAlex Tereschenko
There were unused variables, incorrect pointer operations and plan broken string comparison. Now there's only one - for unused uart3_enabled in beaglebone.c, but we want to keep it for declaration consistency. Also fixes #757. Signed-off-by: Alex Tereschenko <alext.mkrs@gmail.com>