Commit Graph

11954 Commits

Author SHA1 Message Date
Gregory Nutt
07b839965b arch/arm/src/am335x/Kconfig: Remove unused configuration settings left over from original copy-paste. 2019-07-09 19:11:50 -06:00
Petro Karashchenko
c9ff188f3e arch/arm/src/am335x: Changes related to Control Module 2019-07-09 15:38:38 -06:00
Petro Karashchenko
eed706d458 arch/arm/src/am335x/hardware/am335x_prcm.h: Rename am335x_cm.h to am335x_cm.h. 2019-07-09 14:50:07 -06:00
Gregory Nutt
8be74cdc48 configs/beaglebone-black/src/am335x_lcd.c: Can't use TDA19988 yet because there is no I2C driver. In the mean time, support LCD initialization using a fixed, configurable video mode. 2019-07-09 13:43:04 -06:00
Gregory Nutt
5c50854091 configs/beaglebone-black/src/am335x_lcd.c: Framework (only) for TDA19988 and LCD support for Beaglebone Black. 2019-07-09 10:21:38 -06:00
Michael Jung
d5ec2ab9bc On the LPC1769 there are two 16 KiB AHB SRAM blocks, which are mapped back to
back at physical address 0x2007C000 and 0x20080000 (i.e. right below and right
above a 512 KiB boundary).  Memory from those two blocks is considered
continuous when assigned to a heap.

In the protected build mode, when the memory protection unit is used, though,
it must be split into two MPU regions.  This is because MPU regions must be
naturally aligned, and the 32KiB continuous address space of the two 16KiB AHB
SRAM blocks does not start at an address divisible by 32KiB.

The only other configurations that use protected build mode on lpc17xx are
currently open1788/knsh and open1788/knxterm.  The LPC1788 has the AHB SRAM
blocks mapped more sanely (from an MPU region point of view), which is
probably why no problems emerged here.  Both still compile with my change and
other than wasting an MPU region (which would otherwise remain unused) should
work fine.  That said, I have no hardware to confirm.
2019-07-09 07:23:10 -06:00
Gregory Nutt
e5eee68d0d arch/arm/src/am335x/am335x_lcdc.c: LCDC driver is now code complete and ready for testing. 2019-07-08 15:41:32 -06:00
Gregory Nutt
6991ac37fe arch/arm/src/am335x/am335x_lcdc.c: Add logic to get/set the module reference clock. Still one more clocking interface to to. 2019-07-08 14:52:32 -06:00
Gregory Nutt
e16c73957d arch/arm/src/am335x/am335x_sysclk.c: Add a function to return a frequency of the system clock. 2019-07-08 14:08:26 -06:00
Gregory Nutt
ed91fa34a0 Squashed commit of the following:
arch/arm/src/am335x:  Add logic to map the framebuffer to a non-cached, non-buffered memory region.
    arch/arm/src/am335x:  Remove struct am335x_fbinfo_s.  Replaced with configuration settings that provide the same information.
2019-07-08 13:23:56 -06:00
Gregory Nutt
b58f598d31 This commit brings in an initial LCD driver sof the AM335x architecture. This is a work in progress and so depends on EXPERIMENTAL. The code is nearly compete, missing some clock configureation settings. It does compile properly.
Squashed commit of the following:

    arch/arm/src/am335x/am335x_lcdc.c:  LCD driver now compiles.
    arch/arm/src/am335x/am335x_lcd.c:  This brings the LCD driver to code complete.  Have not yet attempted to compile.
    arch/arm/src/am335x/am335x_edid.c:  Framebuffer is pre-allocated.  In verification of video mode, include a test to assure that the video mode can be supported by the pre-allocated framebuffer memory.
    arch/arm/src/am335x/am335x_lcd.c:  At a little bit of LCD initialization logic.  There is a long way to go.
    arch/arm/src/am335x/am335x_edid.c:  Add am335x_lcd_videomode() which provides an alternative way of initializing the LCD controller.
    arch/arm/src/am335x/am335x_edid.c:  edit.h has move to include/nuttx/video.
    arch/arm/src/am335x/hardware/am335x_cm.h:  Fix a typo in a macro name.
    arch/arm/src/am335x/am335x_edid.c:  Integrate video/edid support.
    arch/arm/src/am335x/am335x_edid.c:  Fall back to VGA mode is not valid videomode is availabe in the EDID data.
    arch/arm/src/am335x/am335x_edid.c:  Fixes for a partially clean compile.
    arch/arm/src/am335x/am335x_edid.c:  Add basic logic to convert EDID montor descriptions into a form usable for LCD configuration.
    arch/arm/src/am335x: Add framework (only) for an LCD driver.  Initial commit is simply the LPC54 framebuffer driver with naming changes.
2019-07-08 12:06:23 -06:00
Gregory Nutt
2b25d56bfd arch/arm/src/am335x/hardware/am335x_lcd.h: Fix a few typos. Add things needed by the LCDC driver. 2019-07-08 11:17:03 -06:00
Dave Marples
69e215e083 As promised, here's the patch that implements USDHC1 & 2 selection on the imxrt. If only one port is active (either 1 or 2) it will always be numbered as 0, if both are active then USDHC1 will be number 0, USDHC2 will be 1. 2019-07-07 17:07:04 -06:00
Gregory Nutt
a94970c0df arch/arm/src/am335x/hardware/am335x_cm.h: Fix a typo in a macro name. 2019-07-07 16:57:09 -06:00
Gregory Nutt
4cb8e6a0d7 Trivial, cosmetic fixes to spacing and spelling 2019-07-06 15:22:55 -06:00
Petro Karashchenko
bd248b52e4 arch/arm/src/am335x/hardware: Add register description files for MCSPI. 2019-07-06 12:24:11 -06:00
Petro Karashchenko
4af30628b6 arch/arm/src/am335x/hardware: Add register description files for I2C (plus various improvements to the WDOG register definitions) 2019-07-06 09:26:53 -06:00
Petro Karashchenko
90bed3383e arch/arm/src/am335x/hardware: Add register description files for DCAN and LCD. 2019-07-06 06:57:05 -06:00
Beat Küng
9878997f72 Merged in bkueng/nuttx/uart_invert_ioctl_kinetis (pull request #937)
kinetis: add uart signal inversion support

Approved-by: Gregory Nutt <gnutt@nuttx.org>
2019-07-05 14:24:52 +00:00
Jonathan Richner
fc7d43dc55 arch/arm/src/stm32h7/stm32_spi.c: Correct a typo in condition compilation. 2019-07-05 08:14:18 -06:00
David Sidrane
a380a68680 Merged in david_s5/nuttx/master_rt_fix (pull request #936)
imxrt:USDHC Stopgap Fix for build breakage

Approved-by: Gregory Nutt <gnutt@nuttx.org>
2019-07-04 16:41:50 +00:00
David Sidrane
b3a86e5ac6 Merged in david_s5/nuttx/master_rt_fix (pull request #933)
imxrt:Fix serial TIOCSINVERT

Approved-by: Gregory Nutt <gnutt@nuttx.org>
2019-07-04 15:15:04 +00:00
Alin Jerpelea
9b8c4a355d Merged in alinjerpelea/nuttx (pull request #935)
drivers: video: add ISX012 Image sensor

* arch: arm: src: cxd56xx: add cisif support

    add cisif support on cxd56xx chip to be able to use cameras

    Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>

* drivers: video: add ISX012 Image sensor

    add driver for ISX012 Image sensor

    Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>

Approved-by: Gregory Nutt <gnutt@nuttx.org>
2019-07-04 14:02:05 +00:00
Alin Jerpelea
37a24c05fd arch/arm/src/cxd56xx: Cleaning up header files to match project layout. 2019-07-04 06:45:48 -06:00
Masayuki Ishikawa
48760b2636 Merged in masayuki2009/nuttx.nuttx/improve_gs2200m_performance (pull request #931)
Improve gs2200m performance

* arch/arm/src/cxd56xx: Fix dma initialization in cxd56_dmac.c

    up_dma_initialize() must be used instead of up_dmainitialize()

    Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>

* drivers/wireless: Introduce CONFIG_WL_GS2200M_SPI_FREQUENCY

    Also, changed usleep(100) to up_udelay(100) to avoid invalid response.

    Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>

* configs/spresense/wifi: Improve performance for webserver

    This commit changes followings.

      1. Enable SPI DMA for both TX and RX
      2. Increase SPI clock speed from 4MHz to 10MHz
      3. Increase buffer size for sendfile() from 512B to 1KB
      4. Enable sendfile() for webserver

    Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>

Approved-by: Gregory Nutt <gnutt@nuttx.org>
2019-07-04 11:30:54 +00:00
Petro Karashchenko
55026f245b arch/arm/src/am335x: Add clock module registers definition. Switch to DMTIMER1 for systick. 2019-07-03 15:26:15 -06:00
Beat Küng
03fe07c540 Merged in bkueng/nuttx/uart_invert_ioctl_continued (pull request #930)
serial: add TIOCSINVERT and TIOCSSWAP ioctl's for stm32{l4,h7} and imxrt

* stm32l4 serial: add TIOCSINVERT and TIOCSSWAP ioctl's

* stm32l4 serial: ensure TIOCSSINGLEWIRE is atomic and UE disabled

* stm32h7 serial: add TIOCSINVERT and TIOCSSWAP ioctl's

* imxrt serial: add TIOCSINVERT ioctl

Approved-by: Gregory Nutt <gnutt@nuttx.org>
2019-07-03 20:22:09 +00:00
Dave Marples
093f98c2bb arch/arm/src/imxrt/imxrt_usdhc.c: Implements SDIO and Multi-card support for i.MX RT. 2019-07-03 12:42:09 -06:00
Beat Küng
1395938260 arch/arm/src/stm32f7/stm32_serial.c: This adds the ability to invert and swap RX/TX on STM32F7 UARTs. I added the TIOCGINVERT as well to reserve the IOCTL number, but did not implement it. This is the same as for TIOCGSINGLEWIRE. 2019-07-03 09:23:18 -06:00
Alin Jerpelea
55a4029885 Merged in alinjerpelea/nuttx (pull request #928)
configs: spresense: add basic LCD configuration

* arch: arm: cxd56xx: add Graphics Engine

    Add driver for hardware image processor device

    to enable the hardware image processor set CXD56_GE2D=true

    Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>

* drivers: lcd: add ILI9340 LCD Single Chip Driver

    LCD Single Chip Driver, ILI9340, ILI Technology Corp.

    Required LCD driver settings:
    LCD_MAXCONTRAST should be 255, but any value >0 and <=255 will be accepted.
    LCD_MAXPOWER should be 1:  0=off, 1=on

    Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>

* drivers: lcd: JDI LPM013M091A LCD Driver

    JDI LPM013M091A LCD Driver.

    This driver doesn't support reading data.
    Recommended to use DMA to transfer data or displayed image would be
    broken.

    Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>

* configs: spresense: add basic LCD configuration

    add basic LCD configuration for spresense board

    Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>

* configs: spresense: add lpm013m091a LCD

    add device configuration for lpm013m091a LCD on spresense board

    Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>

* configs: spresense: add ili9340 LCD

    add device configuration for ili9340 LCD on spresense board

    Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>

* configs: spresense: add defconfig with LCD

    add defconfig with LCD for spresense board

    Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>

Approved-by: Gregory Nutt <gnutt@nuttx.org>
2019-07-03 12:24:13 +00:00
Masayuki Ishikawa
7815c3a720 Merged in masayuki2009/nuttx.nuttx/tiva_with_qemu (pull request #927)
arch/arm/src/tiva: Add a workaround for tiva with qemu

With qemu, tiva_ifup() hangs because ethernet link status can not
be set correctly. This PR is a workaround to avoid this issue.

Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>

Approved-by: Gregory Nutt <gnutt@nuttx.org>
2019-07-03 00:28:15 +00:00
Gregory Nutt
5653b9a2af arch/arm/src/lpc17xx/lpc17_lowputc.c: Correct muffed warning fix of 35521ab2b6. 2019-06-30 06:56:24 -06:00
Dave Marples
923cb52c7a arch/arm/src/imxrt/imxrt_ehci.c: Add i.MXRT ECHI driver. 2019-06-29 18:39:42 -06:00
Gregory Nutt
35521ab2b6 Fix some new warnings found in build testing. 2019-06-29 13:24:38 -06:00
Gregory Nutt
3f9ef89e19 Various Kconfig files: Kconfig files should not select SCHED_WORKQUEUE since that is really only is only the logical OR if SCHED_LPWORK and SCHED_HPWORK. Selecting it has no effect other than to produce an erroneous configuration. 2019-06-29 10:10:43 -06:00
Jukka Laitinen
bbd4b22929 arch/arm/src/stm32h7/hardware/stm32_ethernet.h: Correct ETH_MACMDIOAR. Correct the physical layer address bits in ETH_MACMDIOAR register. 2019-06-28 08:24:59 -06:00
Eduard Niesner
056eebd9da arch/arm/src/stm32h7: Ported the QEncoder from F7 to H7. 2019-06-27 07:07:55 -06:00
Alin Jerpelea
b922c2748e Merged in alinjerpelea/nuttx (pull request #920)
arch: src: cxd56xx: add EMMC suport

add EMMC suport for cxd56xx chip

Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>

Approved-by: Gregory Nutt <gnutt@nuttx.org>
2019-06-27 12:08:18 +00:00
Bernd Walter
2f9a76b21c arch/arm/src/samd2l2/hardware/samd_tc.h: Correct register bit field definitions used with TC_CTRLBCLR and TC_CTRLSET registers. 2019-06-26 13:20:39 -06:00
Alin Jerpelea
bfda93d66b Merged in alinjerpelea/nuttx (pull request #915)
arch: arm: cxd56xx: I2C, SPISD, Charger and Gauge

* arch: arm: cxd56xx: add I2C character driver

    for testing purposes, we use the CXD56_I2C_DRIVER to register the
    /dev/i2c[] character devices.

    Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>

* configs: spresense: use I2C character driver

    We should use the CXD56_I2C_DRIVER to register the /dev/i2c[]
    character devices.

    Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>

* arch: arm: cxd56xx: add battery gauge driver

    add battery gauge driver for cxd56xx chip

    Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>

* arch: arm: cxd56xx: add charger driver

    add charger driver for cxd56xx chip

    Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>

* arch:arm: cxd56xx: add SPI SDCard configuration

    Add SPI SDCARD functionality configuration

    Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>

* configs: spresense: enable gauge driver

    Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>

* configs: spresense: enable charger driver

    enable charger driver on spresense board

    Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>

Approved-by: Gregory Nutt <gnutt@nuttx.org>
2019-06-25 12:06:47 +00:00
Gregory Nutt
aa7a6825d0 arch/arm/src/efm32/efm32_usbhost: Apply Adam Porter's STM32 fix to EFM32 which has the same IP. 2019-06-24 07:50:24 -06:00
Alin Jerpelea
c62d90fdb7 Merged in alinjerpelea/nuttx (pull request #914)
configs: spresense: add I2CTOOL support and extend GPIO for future use

* arch: arm: cxd56xx: add delay support

    add delay support for cxd56xx chip

    Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>

* configs: spresense: register I2C busses

    for development is usefull to register I2C busses when the I2CTOOL
    is built

    Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>

* configs:spresense: enable GPIO interface

    enable GPIO interface on spresense board

    Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>

Approved-by: Gregory Nutt <gnutt@nuttx.org>
2019-06-24 13:39:46 +00:00
Adam Porter
37c4fb5477 In stm32_ctrlout() in the HS and FS host drivers, the data buffer isn't sent. This patch passes the buffer and buflen to the stm32_ctrl_senddata() function. With this change, I am able to send MBIM control messages to my USB modem, and read the response. 2019-06-23 07:05:21 -06:00
Gregory Nutt
d8c282a9b6 arch/arm/src/imxrt/Kconfig: Trivial correction to a variable description. 2019-06-21 09:07:52 -06:00
Adam Porter
af9b70ca5d STM32,F7,H7,L4 OTG FS/HS: Fix constant using in comparison to determine endpoint is interrupt type. 2019-06-20 06:58:35 -06:00
Alin Jerpelea
2a32f36540 Merged in alinjerpelea/nuttx (pull request #909)
arch: arm: cxd56xx: SCU, ADC, I2C

* nuttx: configs: spresense: LEDS: fix warnings

    In the initial code several errors were missed because I pushed
    the dirty code.

    Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>

* arch: arm: cxd56xx: add Sensor Control Unit (SCU)

    Add Sensor Control Unit (SCU) on cxd56xx chip

    Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>

* arch: arm: cxd56xx: add I2C support

    add I2C support on cxd56xx chip

    Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>

* arch: arm: cxd56xx: add ADC interface support

    Add ADC interface support on cxd56xx chip

    Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>

* arch: arm: cxd56xx: Use DMAC for reading sensing data

    Use DMAC for reading sensing data from SCU on cxd56xx chip

    Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>

* arch: arm: cxd56xx: code style sanitization

    NuttX does not use Deoxygen for documentation and no file should contain Doxygen tags or Doxygen style comments.

    Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>

* configs: spresense: enable I2CDEV

    add enable I2CDEV for spresense board

    Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>

* configs: spresense: add notification LEDs

    Add usefull diagnostic LEDs on the speresense board

    Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>

Approved-by: Gregory Nutt <gnutt@nuttx.org>
2019-06-18 12:46:43 +00:00
Alin Jerpelea
f50080b251 Merged in alinjerpelea/nuttx (pull request #907)
arch: arm: cxd56xx: add UID support

* arch: arm: cxd56xx: add UID support

    Add support to be able to read the HW UID

    Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>

* configs: spresense: enable USERLEDS

    add USERLED for spresense board

    Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>

Approved-by: Gregory Nutt <gnutt@nuttx.org>
2019-06-17 22:02:19 +00:00
Masayuki Ishikawa
8b5827de43 Merged in masayuki2009/nuttx.nuttx/fix_debug_build_for_sresense (pull request #905)
arch/arm/src/cxd56xx: Fix cxd56_wdt.c in debug build

Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>

Approved-by: Gregory Nutt <gnutt@nuttx.org>
2019-06-17 00:31:12 +00:00
raiden00pl
cad6325589 Merged in raiden00/nuttx_h7 (pull request #904)
stm32g0: Fix error when SINGLEWIRE or SERIALBRK_BSDCOMPAT defined (it reflects changes in STM32H7)

Approved-by: Gregory Nutt <gnutt@nuttx.org>
2019-06-16 17:34:09 +00:00
Alin Jerpelea
92892a8dd7 Merged in alinjerpelea/nuttx (pull request #902)
arch: arm: cxd56xx: PM and PWM

* configs: spresense: add SPI configuration

    add SPI configuration for spresense board

    Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>

* arch: arm: cxd56xx: add support for PWM

    add support for PWM for cxd56xx

    Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>

* configs: spresense: enable PWM support

    enable PWM support on spresense board

    Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>

* arch: arm: cxd56xx: add Power Management PROCFS support

    the powermanager procfs support will export
    /proc/pm:
     clock
     power

    Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>

* configs: spresense: enable powermanager procfs support

    The powermanager procfs is disabled by default and need to be enabled
    by the CONFIG_CXD56_PM_PROCFS option

    Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>

* arch: arm: cxd56xx: add timer driver

    Add timer driver for cxd56xx.

    NOTE
    The timer allows a divider of 1, 16 and 256 options

    Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>

* arch: arm: cxd56xx: add Watch Dog Timer

    Add Watch Dog Timer on cxd56xx

    Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>

* configs: spresense: enable timer

    the platform support has been added and now we can use the timers
    on spresense board.

    Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>

* configs: spresense: enable WatchDog timer

    The platform support has been added and now we can use the WatchDog
    Timer on spresense board.

    Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>

Approved-by: Gregory Nutt <gnutt@nuttx.org>
2019-06-14 18:40:06 +00:00