Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

spi: add SPI driver for STM32 family #12

Closed
wants to merge 29 commits into from

Commits on Jun 16, 2017

  1. arm: Add build time consistency check for irq priority defines

    We need to make sure that __NVIC_PRIO_BITS & CONFIG_NUM_IRQ_PRIO_BITS
    are set to the same value.  Add a simple build time check to ensure
    this is the case.  This is to catch future cases of issues like
    ZEP-2243.  This is a stop gap til we resolve ZEP-2262, which covers use
    of both __NVIC_PRIO_BITS & CONFIG_NUM_IRQ_PRIO_BITS.
    
    Signed-off-by: Kumar Gala <[email protected]>
    galak committed Jun 16, 2017
    Configuration menu
    Copy the full SHA
    1d033ca View commit details
    Browse the repository at this point in the history
  2. pinmux: pinmux_dev_k64 driver and related references are removed.

    Functionality of a pinmux driver is now a part of a regular
    driver.
    
    Signed-off-by: Shiksha Patel <[email protected]>
    Shiksha Patel authored and galak committed Jun 16, 2017
    Configuration menu
    Copy the full SHA
    d9d46d3 View commit details
    Browse the repository at this point in the history
  3. arm: nxp: mpu: Fix region descriptor 0 attributes

    Clearing fields in the region descriptor attributes doesn't always have
    the expected effect of revoking permissions. In the case of bus master
    supervisor mode fields (MxSM), setting to zero actually enables read,
    write, and execute access.
    
    When we reworked handling of region descriptor 0, we inadvertently
    enabled execution from RAM by clearing the MxSM fields and enabling the
    descriptor. This caused samples/mpu_test run to throw a usage fault
    instead of an MPU-triggered bus fault.
    
    Fix this by setting all the MxSM fields to 2'b11, which gives supervisor
    mode the same access as user mode.
    
    Signed-off-by: Maureen Helm <[email protected]>
    MaureenHelm authored and galak committed Jun 16, 2017
    Configuration menu
    Copy the full SHA
    446ad9f View commit details
    Browse the repository at this point in the history
  4. arch: same70: Fix ERASE pin configuration

    Correct code that allows to disable ERASE pin functionality
    during boot.
    
    Signed-off-by: Piotr Mienkowski <[email protected]>
    mnkp authored and galak committed Jun 16, 2017
    Configuration menu
    Copy the full SHA
    443466f View commit details
    Browse the repository at this point in the history
  5. arm: Modify linker script to accomodate need for flash footer.

    The porting of the TI CC2650 SoC introduces the need to
    write a specific configuration area (CCFG) at the end of the
    flash. It is read by the bootloader ROM of the SoC.
    
    For now, this is a quick hack and not a generic solution;
    similar needs may arise with other hardware.
    
    Signed-off-by: Geoffrey Le Gourriérec <[email protected]>
    Geoffrey Le Gourriérec authored and galak committed Jun 16, 2017
    Configuration menu
    Copy the full SHA
    f73bf35 View commit details
    Browse the repository at this point in the history
  6. drivers: serial: uart_stellaris: Remove UART_IRQ_FLAGS

    We always have UART_IRQ_FLAGS set to 0, so just call IRQ_CONNECT with a
    0 argument for the flags, and remove the UART_IRQ_FLAGS.  This is
    towards support for using the driver on the TI CC2650.  (we add a
    comment about that as well).
    
    Signed-off-by: Geoffrey Le Gourriérec <[email protected]>
    Signed-off-by: Kumar Gala <[email protected]>
    Geoffrey Le Gourriérec authored and galak committed Jun 16, 2017
    Configuration menu
    Copy the full SHA
    9fd57b4 View commit details
    Browse the repository at this point in the history
  7. flash: stm32: fix for l4 writing wrong data

    L4 have 64 bits write access.
    The cast to 64 bits data address in write_dword
    requires 3 right shifts on i (byte index) else the
    data taken are wrong for i different from 0
    
    Signed-off-by: Michel Jaouen <[email protected]>
    jamike authored and galak committed Jun 16, 2017
    Configuration menu
    Copy the full SHA
    93da617 View commit details
    Browse the repository at this point in the history
  8. flash: stm32: distinguish read/write for flash range valid

    L4 write access requires 64 bits alignment
    while L4 read access does not require any alignment.
    To support specific check according to read/write,erase
    a parameter is added to stm32_valid_range.
    
    Signed-off-by: Michel Jaouen <[email protected]>
    jamike authored and galak committed Jun 16, 2017
    Configuration menu
    Copy the full SHA
    ba4def2 View commit details
    Browse the repository at this point in the history
  9. uart: Use DTS labels for Stellaris driver.

    Update driver to use DTS-generated #defines for port names,
    and not obsolete Kconfig variables.
    
    Signed-off-by: Geoffrey Le Gourriérec <[email protected]>
    Geoffrey Le Gourriérec authored and galak committed Jun 16, 2017
    Configuration menu
    Copy the full SHA
    a2dae79 View commit details
    Browse the repository at this point in the history
  10. arm: Add support for TI's CC2650 SoC.

    Add support in arch/arm/soc/ti_simplelink, along with support
    for CC32xx SoC.
    
    Signed-off-by: Geoffrey Le Gourriérec <[email protected]>
    Geoffrey Le Gourriérec authored and galak committed Jun 16, 2017
    Configuration menu
    Copy the full SHA
    96280c8 View commit details
    Browse the repository at this point in the history
  11. sensortag: Add TI's SensorTag board.

    Add support for TI's SensorTag board, which uses a CC2650 SoC.
    
    Signed-off-by: Geoffrey Le Gourriérec <[email protected]>
    Geoffrey Le Gourriérec authored and galak committed Jun 16, 2017
    Configuration menu
    Copy the full SHA
    4b16674 View commit details
    Browse the repository at this point in the history
  12. cc2650: Add GPIO driver.

    Signed-off-by: Geoffrey Le Gourriérec <[email protected]>
    Geoffrey Le Gourriérec authored and galak committed Jun 16, 2017
    Configuration menu
    Copy the full SHA
    7404dd1 View commit details
    Browse the repository at this point in the history
  13. cc2650: Add pinmux driver.

    Signed-off-by: Geoffrey Le Gourriérec <[email protected]>
    Geoffrey Le Gourriérec authored and galak committed Jun 16, 2017
    Configuration menu
    Copy the full SHA
    c1ad307 View commit details
    Browse the repository at this point in the history
  14. samples: gpio: Add support for SensorTag board.

    Add extra #defines in samples/drivers/gpio to test
    TI SensorTag board.
    
    Signed-off-by: Geoffrey Le Gourriérec <[email protected]>
    Geoffrey Le Gourriérec authored and galak committed Jun 16, 2017
    Configuration menu
    Copy the full SHA
    1277f8f View commit details
    Browse the repository at this point in the history

Commits on Jun 19, 2017

  1. boards: 96b_nitrogen: Add support for flash/debug with pyOCD

    Signed-off-by: Kumar Gala <[email protected]>
    galak committed Jun 19, 2017
    Configuration menu
    Copy the full SHA
    ddfd216 View commit details
    Browse the repository at this point in the history
  2. scripts: bossa-flash.sh: fix variable usage

    We define a variable to pickup a default for the bossa binary, however
    we weren't using it.  Lets do so now.
    
    Signed-off-by: Kumar Gala <[email protected]>
    galak committed Jun 19, 2017
    Configuration menu
    Copy the full SHA
    bd30f17 View commit details
    Browse the repository at this point in the history
  3. scripts: pyocd.sh: Add support for passing board_id to pyocd commands

    If we have more than one board of a given type we need to be able to
    specify the board_id to select which specific board that the pyocd
    command should target.  Introduce an environment variable PYOCD_BOARD_ID
    to we can set that will get passed to the pyocd command that needs it.
    
    Here's an example:
    
    $ make -C samples/hello_world/ BOARD=frdm_k64f flash PYOCD_BOARD_ID=1234
    
    Signed-off-by: Kumar Gala <[email protected]>
    galak committed Jun 19, 2017
    Configuration menu
    Copy the full SHA
    942c1fc View commit details
    Browse the repository at this point in the history
  4. board: frdm_k64f: allow overriding default debug/flash scripts

    As there are multiple ways to flash or debug (pyOCD or openOCD) allow
    the user to override the default.
    
    Signed-off-by: Kumar Gala <[email protected]>
    galak committed Jun 19, 2017
    Configuration menu
    Copy the full SHA
    1ec8ac7 View commit details
    Browse the repository at this point in the history
  5. boards: sam_e70_xplained: allow flashing via JTAG header

    Allow to use an external debug adapter such as J-Link or ULINK
    connected to a 20-pin JTAG header to flash the image. SWD is
    the actual protocol used by the debug interface.
    
    Signed-off-by: Piotr Mienkowski <[email protected]>
    mnkp authored and galak committed Jun 19, 2017
    Configuration menu
    Copy the full SHA
    091176e View commit details
    Browse the repository at this point in the history
  6. stm32cube: Fix warning when SPI LL API is compiled

    Current implementation of LL_SPI_TransmitData16 on F3/F7/L4 family
    generates following warning:
    "warning: dereferencing type-punned pointer will break strict-aliasing
    rules [-Wstrict-aliasing]"
    Besides being forbidden by rule, this cast is not needed, as register is
    16 bits wide. Modification has been tested on L4 SoC.
    stm32yyxx_ll_spi.h being included in soc.h file, warning is generated
    at each compiled object, this commit allows a clean build.
    This issue is referenced in ST and tracked under
    reference  13359. Code will be updated on upcoming stm32cube updates.
    
    Change-Id: I3ca54a81d849d4852eca86b52b6825b60e18b752
    Signed-off-by: Erwan Gouriou <[email protected]>
    Signed-off-by: Neil Armstrong <[email protected]>
    erwango authored and superna9999 committed Jun 19, 2017
    Configuration menu
    Copy the full SHA
    c6c7389 View commit details
    Browse the repository at this point in the history
  7. stm32cube: build stm32xxx_ll_spi if CONFIG_SPI

    Signed-off-by: Jorge Ramirez-Ortiz <[email protected]>
    Signed-off-by: Neil Armstrong <[email protected]>
    ldts authored and superna9999 committed Jun 19, 2017
    Configuration menu
    Copy the full SHA
    fa633c0 View commit details
    Browse the repository at this point in the history
  8. pinmux: stm32f4: Add SPI1 pins on PA4, PA5, PA6 & PA7

    Signed-off-by: Jorge Ramirez-Ortiz <[email protected]>
    Signed-off-by: Neil Armstrong <[email protected]>
    ldts authored and superna9999 committed Jun 19, 2017
    Configuration menu
    Copy the full SHA
    ac9ad8f View commit details
    Browse the repository at this point in the history
  9. pinmux: stm32f4: Add SPI2 pins on PB12, PB13, PB14 & PB15

    Signed-off-by: Jorge Ramirez-Ortiz <[email protected]>
    Signed-off-by: Neil Armstrong <[email protected]>
    ldts authored and superna9999 committed Jun 19, 2017
    Configuration menu
    Copy the full SHA
    e8c5f5d View commit details
    Browse the repository at this point in the history
  10. spi: add SPI driver for STM32 family

    Add a SPI master and slave driver for the L4, F4 and F3 STM SoCs families.
    
    Change-Id: I1faf5c97f992c91eba852fd126e7d3b83158993d
    Origin: Original
    Signed-off-by: Neil Armstrong <[email protected]>
    Tested-by: Lee Jones <[email protected]>
    superna9999 committed Jun 19, 2017
    Configuration menu
    Copy the full SHA
    392e754 View commit details
    Browse the repository at this point in the history
  11. pinmux: stm32: nucleo_f401re: Add support for SPI

    Add SPI pin for the nucleo_f401re pinmux.
    
    Signed-off-by: Jorge Ramirez-Ortiz <[email protected]>
    Signed-off-by: Neil Armstrong <[email protected]>
    ldts authored and superna9999 committed Jun 19, 2017
    Configuration menu
    Copy the full SHA
    580313c View commit details
    Browse the repository at this point in the history
  12. pinmux: stm32: nucleo_f334r8: add support for SPI

    Following implementation of LL based SPI driver,
    add SPI support on nucleo_f334r8 board of STM32F3 series.
    
    Change-Id: Ifbe39b1f2cecdd7db23be9c6943a914a155ebd77
    Signed-off-by: Erwan Gouriou <[email protected]>
    Signed-off-by: Neil Armstrong <[email protected]>
    erwango authored and superna9999 committed Jun 19, 2017
    Configuration menu
    Copy the full SHA
    cf2ba9f View commit details
    Browse the repository at this point in the history
  13. boards: nucleo_l476rg: Document default SPI pinmux

    Signed-off-by: Neil Armstrong <[email protected]>
    superna9999 committed Jun 19, 2017
    Configuration menu
    Copy the full SHA
    e243b1f View commit details
    Browse the repository at this point in the history
  14. pinmux: stm32: nucleo_l476rg: Fix SPI Pinmux

    Signed-off-by: Neil Armstrong <[email protected]>
    superna9999 committed Jun 19, 2017
    Configuration menu
    Copy the full SHA
    5881297 View commit details
    Browse the repository at this point in the history
  15. pinmux: stm32: nucleo_l432kc: Add SPI pins

    Signed-off-by: Neil Armstrong <[email protected]>
    superna9999 committed Jun 19, 2017
    Configuration menu
    Copy the full SHA
    6b90818 View commit details
    Browse the repository at this point in the history