Skip to content
Permalink
Branch: master
Commits on Jun 5, 2019
  1. tests: drivers: uart: depend on SERIAL_SUPPORT_ASYNC for ASYNC test

    benpicco authored and nashif committed Jun 3, 2019
    Only build the async testcase for platforms
    that support async operation.
    
    Signed-off-by: Benjamin Valentin <benjamin.valentin@ml-pa.com>
  2. drivers/uart: introduce SERIAL_SUPPORT_ASYNC option

    benpicco authored and nashif committed Jun 3, 2019
    Not all serial drivers support ASYNC operation and if they do,
    they might not support it on every SoC.
    
    Add the SERIAL_SUPPORT_ASYNC option to indicate ASYNC operation
    is availiable.
    
    Signed-off-by: Benjamin Valentin <benjamin.valentin@ml-pa.com>
Commits on May 30, 2019
  1. samples: nrf52: power_mgr: Fix build with prj_tickless.conf config

    benpicco authored and nashif committed Feb 20, 2019
    prj_tickless.conf lacks the CONFIG_PM_CONTROL_OS=y option which
    results in the sample failing to build with this config as it leaves
    sys_pm_ctrl_disable_state() and sys_pm_ctrl_enable_state()
    undefined.
    
    Add the relevant options from prj.conf to fix the build.
    
    Tested on nrf52840_pca10056.
    
    Signed-off-by: Benjamin Valentin <benjamin.valentin@ml-pa.com>
  2. soc: sam0: add I2C to dts_fixup.h

    benpicco authored and MaureenHelm committed May 29, 2019
    tests/drivers/i2c/i2c_api wants to have CONFIG_I2C_0_NAME defined.
    Add it to dts_fixup.h as was done for Watchdog and & timer.
    
    Signed-off-by: Benjamin Valentin <benjamin.valentin@ml-pa.com>
Commits on May 8, 2019
  1. boards: enable i2c on the SAM R21 Xplained Pro board

    benpicco authored and nashif committed May 8, 2019
    Hook up SERCOM1 to I2C, it is connected to the EXT3 header and
    the EDBG embedded debugging interface.
    
    Signed-off-by: Benjamin Valentin <benpicco@googlemail.com>
  2. drivers: watchdog: sam0: Check if timeout is valid

    benpicco authored and MaureenHelm committed May 8, 2019
    The upper limit of the timeout should not be 0.
    tests/drivers/watchdog/wdt_basic_api checks for this and fails as the
    driver currently only checks that the timout does not exceed the upper
    bound.
    This also makes it check the lower bound, so that the test passes.
    
    Signed-off-by: Benjamin Valentin <benjamin.valentin@ml-pa.com>
Commits on May 1, 2019
  1. cmake: gdb: use gdb-multiarch if ${CROSS_COMPILE}gdb is not availiable

    benpicco authored and nashif committed Apr 29, 2019
    Modern versions of GDB support multiple architectures
    with the same binary.
    In fact, Ubuntu stopped shipping a gdb-arm-none-eabi
    package, gdb-multiarch should be used instead.
    
    This fixes a failure on those systems where otherwise CMAKE_GDB will be
    assigned to CMAKE_GDB-NOTFOUND.
    
    Signed-off-by: Benjamin Valentin <benjamin.valentin@ml-pa.com>
Commits on Apr 28, 2019
  1. soc: sam0: Make init code common between all samd2x SoCs

    benpicco authored and nashif committed Mar 25, 2019
    The init routines are the same for SAMD20, SAMD21 and SAMR21, so
    move them into common/ to not have three copies of the same code.
    
    Signed-off-by: Benjamin Valentin <benjamin.valentin@ml-pa.com>
  2. soc: sam0: enable RTC for samd21, samr21

    benpicco authored and nashif committed Mar 15, 2019
    The Atmel SAMD21 (and therefore also the SAMR21) comes with the same
    RTC peripheral as the Atmel SAMD20.
    
    Enable it in dts_fixup.h and enable it in the dts for samr21_xpro.
    
    Signed-off-by: Benjamin Valentin <benpicco@googlemail.com>
  3. CODEOWNERS: Add code ownership for Atmel samr21 code

    benpicco authored and nashif committed Mar 5, 2019
    Take ownership of external SDK files.
    
    Signed-off-by: Benjamin Valentin <benjamin.valentin@ml-pa.com>
  4. boards: atsamr21_xpro: Add SAM R21 Xplained Pro Evaluation Kit

    benpicco authored and nashif committed Feb 19, 2019
    Add the Atmel SAM R21 Xplained Pro Evaluation Kit to zephyr.
    
    So far, UART, SPI, I2C (depends on #14128), debug LED and user button
    have been tested.
    
    Signed-off-by: Benjamin Valentin <benpicco@googlemail.com>
  5. soc: atmel: add SAMR21

    benpicco authored and nashif committed Feb 19, 2019
    Adds Atmel SAMR21 soc which is based on SAMD21, but with a AT86RF233
    radio connected internally via SPI.
    
    The AT86RF233 is not yet supprted by Zephyr at this point.
    
    This code is very much copy & paste from atmel_sam0/samd21
    
    Signed-off-by: Benjamin Valentin <benpicco@googlemail.com>
  6. ext: Import Atmel SAMR21 header files from ASF library

    benpicco authored and nashif committed Feb 19, 2019
    Atmel Software Framework (ASF) provides a set of low-level header
    files that give access to different hardware peripherals of Atmel's
    ICs.
    
    Origin: Atmel SAMR21 Series Device Support (1.1.72)
    License: Apache-2.0
    URL: http://packs.download.atmel.com/Atmel.SAMR21_DFP.1.1.72.atpack
    Purpose: Introduction of ASF for the SAM0 series.
    Maintained-by: External
    
    Signed-off-by: Benjamin Valentin <benpicco@googlemail.com>
Commits on Apr 26, 2019
  1. usb: sam0: Implement missing API functions

    benpicco authored and galak committed Apr 23, 2019
    This implements three API functions that are required for
    tests/subsys/usb/device to build:
    
     - usb_dc_ep_disable()
     - usb_dc_ep_halt()
     - usb_dc_ep_flush()
    
    While halt and disable are trivial, flush is just a stub for now.
    
    Signed-off-by: Benjamin Valentin <benpicco@googlemail.com>
  2. usb: sam0: Ensure API arguments are valid

    benpicco authored and galak committed Apr 23, 2019
    Make sure the parameters for the API functions are valid, return error
    otherwise.
    
    This is expected by the tests/subsys/usb/device test case.
    
    Signed-off-by: Benjamin Valentin <benpicco@googlemail.com>
  3. net: shell: Improve the output of the ping function

    benpicco authored and jukkar committed Mar 5, 2019
    Report rtt, ttl and rssi if available.
    
    Signed-off-by: Benjamin Valentin <benjamin.valentin@ml-pa.com>
  4. net/icmpv6: Allow for arbitrary payload data in ICMP echo

    benpicco authored and jukkar committed Mar 5, 2019
    Allow for including arbitrary data in net_icmpv6_send_echo_request()
    that will be echoed verbatim by the receiver.
    
    This allows to use ICMP echo for diagnostic use cases, e.g. by testing
    packet framentation (large payload) or measuring round-trip-time.
    
    Signed-off-by: Benjamin Valentin <benjamin.valentin@ml-pa.com>
  5. net/icmpv4: Allow for arbitrary payload data in ICMP echo

    benpicco authored and jukkar committed Mar 5, 2019
    Allow for including arbitrary data in net_icmpv4_send_echo_request()
    that will be echoed verbatim by the receiver.
    
    This allows to use ICMP echo for diagnostic use cases, e.g. by testing
    packet framentation (large payload) or measuring round-trip-time.
    
    Signed-off-by: Benjamin Valentin <benjamin.valentin@ml-pa.com>
  6. net/icmpv4: Include icmp_hdr in callback

    benpicco authored and jukkar committed Mar 4, 2019
    Allow accessing already parsed information from the ICMP header
    that callbacks might be interested in.
    
    This makes the callback signature and behaviour match that of
    the ICMPv6 implementation.
    
    Signed-off-by: Benjamin Valentin <benpicco@googlemail.com>
Commits on Apr 19, 2019
  1. soc: sam0: Enable generic peripheral selection

    benpicco authored and galak committed Mar 22, 2019
    Make sure that when e.g. CONFIG_SERIAL is set, CONFIG_UART_SAM0 is
    selected automatically when the sam0 SoC family is used.
    
    Signed-off-by: Benjamin Valentin <benjamin.valentin@ml-pa.com>
Commits on Apr 18, 2019
  1. drivers: hwinfo: add driver support for Atmel SAM0 device ID

    benpicco authored and nashif committed Mar 26, 2019
    Add driver support for Atmel SAM0 device ID, which is 16-bytes long.
    The device ID can simply be read from memory at a known location, but
    the location is only described in the data sheet, not in ASF.
    
    For SAMD2x it's 0x0080A00C, 0x0080A040, 0x0080A044 & 0x0080A048.
    For SAMD5x it's 0x008061FC, 0x00806010, 0x00806014 & 0x00806018.
    
    This adds a new property to the device tree to define the device ID
    registers for this SoC family.
    
    Signed-off-by: Benjamin Valentin <benjamin.valentin@ml-pa.com>
Commits on Mar 26, 2019
  1. drivers: spi: sam/sam0: Don't access uninitialized data

    benpicco authored and galak committed Mar 25, 2019
    Set data->ctx.config before calling a function that operates on it.
    
    Signed-off-by: Benjamin Valentin <benjamin.valentin@ml-pa.com>
  2. drivers: spi: sam/sam0: Don't claim support for async transfers

    benpicco authored and galak committed Mar 25, 2019
    Asyc transceive is currently not implemented for this driver,
    so don't claim support.
    
    spi_context_lock() is already being called in spi_sam_transceive()
    so calling it in the wrapper function will cause a deadlock.
    
    This reverts eae05d9
    
    Signed-off-by: Benjamin Valentin <benjamin.valentin@ml-pa.com>
Commits on Mar 15, 2019
  1. boards: arm: atsamd21: enable button in dts

    benpicco authored and galak committed Mar 15, 2019
    The SAM D21 Xplained Pro has a button connected to PA15, so enable it
    in the dts.
    
    Signed-off-by: Benjamin Valentin <benjamin.valentin@ml-pa.com>
  2. boards: arm: atsamd21: enable USB in dts

    benpicco authored and galak committed Mar 14, 2019
    USB is already being configured in pinmux.c, but for it to be
    availiable it also needs to be enabled in the device tree.
    
    Signed-off-by: Benjamin Valentin <benjamin.valentin@ml-pa.com>
Commits on Mar 7, 2019
  1. power: don't switch to power modes not enabled in Kconfig

    benpicco authored and nashif committed Feb 28, 2019
    Disable low power/deep sleep modes when they are not enabled in Kconfig.
    Otherwise if only low power modes are enabled (but no deep sleep),
    Zephyr will try to swich to the lowest power mode (deep sleep) anyway,
    only to discover that it's not availiable, resulting in no low power
    mode at all being used.
    
    By disabling the modes here if they are not enabled in Kconfig,
    policy_residency will switch to the lowest low power mode instead.
    
    Signed-off-by: Benjamin Valentin <benjamin.valentin@ml-pa.com>
You can’t perform that action at this time.