Commit Graph

1253 Commits

Author SHA1 Message Date
Gustavo Henrique Nihei
ed0a1b724b xtensa/esp32: Fix typos reported by codespell 2021-02-25 15:02:15 +00:00
Yuichi Nakamura
01699e00e0 arm/rp2040: Raspberry Pi Pico SMP support 2021-02-25 07:20:59 +09:00
YAMAMOTO Takashi
ce6f6d4241 esp32 Kconfig: Move ESP32_SPIFLASH_xxx configs to the common place
These are referenced by other boards than esp32-devkitc as well.
2021-02-24 08:19:25 +00:00
Abdelatif Guettouche
fb68a4b777 esp32c3: Add system reset.
Signed-off-by: Abdelatif Guettouche <abdelatif.guettouche@espressif.com>
2021-02-23 18:13:02 -08:00
Gustavo Henrique Nihei
07900cdce9 Fix typo in "repetitions" word 2021-02-23 07:18:33 -08:00
Dong Heng
7c9c9907ef boards/esp32c3: Add tmpfs mounting when bringing up 2021-02-23 00:41:08 -08:00
Pedro Bertoleti
a4f422a801 This commit enables BMP180 suport for ESP32.
As ESP32 has 2 I2C interfaces and BMP180 is a I2C sensor, the criterias to use BMP180 in I2C0 or I2C1 are:

1- First, bring-up routines search for BMP180 in I2C0.
   If BMP180 is found in I2C0, then /dev/press0 is created.
2- If BMP180 cannot be registered in I2C0, bring-up routines search for it in I2C1.
   If BMP180 is found in I2C1, then /dev/press0 is created.

It means only one BMP180 could be suported in Nuttx. In my tests I've observed
that BMP180 example application doesn't seem to work with /dev/press1 BMP180 device,
therefore even BMP180 is found in I2C1, it'll be registered as /dev/press0 device.
2021-02-22 21:45:16 -03:00
Gustavo Henrique Nihei
291a5755cc risc-v/esp32c3: Add support for MWDT0 and MWDT1 2021-02-22 17:18:01 +00:00
Yuichi Nakamura
7b8c72ec1b boards: raspberrypi-pico: Add nshsram defconfig for SRAM build 2021-02-22 09:11:09 -08:00
Masayuki Ishikawa
1f61c58e43 boards: raspberrypi-pico: Normalize nsh/defconfig
Summary:
- This commit normalizes nsh/defconfig

Impact:
- None

Testing:
- None
2021-02-22 12:14:47 +00:00
Pedro Bertoleti
79e8a52d86 This commit implements I2C support for ESP32 (wrover kit).
It was missing and it wasn't possible to enable I2C (0 and/or 1)
before this fix.
To sum up, this fix implements a I2C register function in ESP32
bring-up routines (esp32_bringup.c) and call if for I2C0 and/or
I2C1 during ESP32 bringup (these function callings are conditioned
by CONFIG_ESP32_I2C (to check if I2C support has been configured),
CONFIG_ESP32_I2C0 (to check if I2C0 support has been configured)
and CONFIG_ESP32_I2C1 (to check if I2C1 support has been configured).

Once this fix is implemented, /dev/i2c0 and/or /dev/i2c1 interfaces
become available and work fine.
2021-02-21 23:33:21 +00:00
Abdelatif Guettouche
10fca18b55 boards/*/esp32: Add instructions on how to use the configs with QEMU.
Signed-off-by: Abdelatif Guettouche <abdelatif.guettouche@espressif.com>
2021-02-21 09:57:01 -08:00
Abdelatif Guettouche
067da56d0c esp32c3: Some cosmetics and style fixes.
Signed-off-by: Abdelatif Guettouche <abdelatif.guettouche@espressif.com>
2021-02-21 10:29:43 -03:00
Abdelatif Guettouche
10822799fb esp32c3: Add GPIO IRQ support.
The GPIO example was also extended to include testing an interrupt pin.

Co-authored-by: Abdelatif Guettouche <abdelatif.guettouche@espressif.com>
Co-authored-by: Alan Carvalho <alan.carvalho@espressif.com>
2021-02-21 10:29:43 -03:00
Alan Carvalho
4a42998f36 esp32-c3: Add the GPIO driver.
This commits adds support for the ESP32-C3 IO Mux and GPIO Matrix.  It
also includes necessary board logic to run the GPIO example with 2
outputs.

Co-authored-by: Alan Carvalho <alan.carvalho@espressif.com>
Co-authored-by: Abdelatif Guettouche <abdelatif.guettouche@espressif.com>
2021-02-21 10:29:43 -03:00
Masayuki Ishikawa
706740bfc3 boards: raspberrypi-pico: Introduce rp2040_reset.c to support reboot
Summary:
- This commit introduces rp2040_reset.c to support reboot

Impact:
- None

Testing:
- Tested with both BOOTSEL=ON and OFF
2021-02-21 13:22:35 +00:00
Masayuki Ishikawa
d68bfe1e1a boards: raspberrypi-pico: Introduce rp2040_bringup() to mount procfs
Summary:
- This commit introduces rp2040_bringup() to mount procfs

Impact:
- None

Testing:
- Tested with raspberrypi-pico:nsh
2021-02-21 13:22:35 +00:00
Yuichi Nakamura
b753eeabf1 boards/arm: Add Raspberry Pi Pico board support 2021-02-20 03:45:24 -08:00
Gustavo Henrique Nihei
4a6cdc8255 risc-v/esp32c3-devkit: Clean-up NSH configuration 2021-02-19 21:19:22 +00:00
Gustavo Henrique Nihei
303326bb52 risc-v/esp32c3: Enable stdio buffering for esp32c3-devkit NSH configuration 2021-02-19 21:19:22 +00:00
Gustavo Henrique Nihei
424a838021 esp32c3/nsh: Use Readline for NSH cmdline editor 2021-02-19 06:32:27 -08:00
Abdelatif Guettouche
adae5083ba esp32-dekitc:wapi_smp: Select the NETDEVICES dependency.
Signed-off-by: Abdelatif Guettouche <abdelatif.guettouche@espressif.com>
2021-02-19 03:29:10 -08:00
Masayuki Ishikawa
f344e7b5bf boards: esp32-devkitc: Add CONFIG_STACK_COLORATION=y to wapi_smp/defconfig
Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
2021-02-18 19:05:07 -08:00
Abdelatif Guettouche
5562f08369 boards: Add the ESP32-C3 DevKit board
Signed-off-by: Abdelatif Guettouche <abdelatif.guettouche@espressif.com>
2021-02-18 01:21:53 -08:00
Masayuki Ishikawa
74c56f53aa boards: esp32-devkitc: Add wapi_smp to test Wi-Fi in SMP mode
Summary:
- This commit adds wapi_smp to test Wi-Fi in SMP mode

Impact:
- None

Testing:
- Tested with wapi, telnetd, ostest

Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
2021-02-18 09:11:27 +00:00
Brennan Ashton
9f1017feb3 board/freedom-k64f: Add usbdev support with cdcacm example 2021-02-14 19:51:34 -08:00
David Jablonski
41bddc8461 litex: fix mtime and mtimecmp register address 2021-02-13 15:24:28 -08:00
David Jablonski
11167857c3 litex: nsh working 2021-02-13 15:24:28 -08:00
liang
5914af84c7 arch/risc-v/bl602: spi_master support. 2021-02-13 10:31:25 -08:00
hotislandn
256b83ef8a arch:risc-v:bl602:add support for elf file apps.
Signed-off-by: hotislandn <hotislandn@hotmail.com>
2021-02-13 10:29:12 -08:00
YAMAMOTO Takashi
702bc95cac tiva/lm3s6965-ek: Add a few configs for qemu
Mainly for me. I keep forgetting how to run this on qemu.
Hopefully this can be useful for others too.
2021-02-13 07:31:46 -08:00
YAMAMOTO Takashi
7df273baf9 boards/arm/tiva/lm3s6965-ek/README.txt: Replace a few non-ascii characters
0xae -> (R)
0x99 -> removed
0x96 -> -
2021-02-13 07:31:46 -08:00
Jeonghyun Kim
830ec0c371 board: nucleo-l432kc: Add missing i2c_master_s definition
i2c_master_s definition of each i2c device is necessary but it's missing on past commit. so correct it.
2021-02-12 04:31:07 -08:00
YAMAMOTO Takashi
aed24f1255 esp32: Retire XTENSA_IMEM_PROCFS
Now /proc/meminfo has the equivalent.
2021-02-12 03:16:03 -08:00
Alan C. Assis
f56ff40101 Add esp32_gpio_matrix_in/out to replace ROM functions 2021-02-11 20:39:51 +00:00
Jeonghyun Kim
042f6e696d board: nucleo-l432kc: fix code style correctly 2021-02-11 06:39:09 -03:00
Jeonghyun Kim
e5c90232af board: nucleo-l432kc: Add I2C3 registering logic on app init
I2C3 hasn't been registered on /dev because registering logic cares about only I2C1, not I2C3. So, added I2C3 on it.
2021-02-11 06:39:09 -03:00
Jeonghyun Kim
d594a171ac board: nucleo-l432kc: Add missing I2C3 GPIO definition
I2C3 not worked due to it's GPIO pin definition has been missing on board.h.
Fix it through include two pin macros on stm32l4x3xx_pinmap.h to board.h.
GPIO_I2C3_SCL and GPIO_I2C3_SDA is pointing A7 and B4 respectively.
2021-02-11 06:39:09 -03:00
Gustavo Henrique Nihei
ccc75a09e9 boards/esp32: Add module config to ESP32 boards defconfig 2021-02-08 21:17:22 +00:00
Gustavo Henrique Nihei
a8cf8abfaa esp32: Create chip selection config to improve capabilities refinement 2021-02-08 21:17:22 +00:00
hotislandn
84daebf2cc arch:risc-v:bl602: enable FPU for this target. 2021-02-08 00:29:34 -08:00
Masayuki Ishikawa
d87f350831 arch, boards, drivers, include, sched, wireless: Change spinlock APIs.
Summary:
- This commit changes spinlock APIs (spin_lock_irqsave/spin_unlock_irqrestore)
- In the previous implementation, the global spinlock (i.e. g_irq_spin) was used.
- This commit allows to use caller specific spinlock but also supports to use
  g_irq_spin for backword compatibility (In this case, NULL must be specified)

Impact:
- None

Testing:
- Tested with the following configurations
- spresnse:wifi, spresense:wifi_smp
- esp32-devkitc:smp (QEMU), sabre6-quad:smp (QEMU)
- maxi-bit:smp (QEMU), sim:smp
- stm32f4discovery:wifi

Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
2021-02-07 21:28:56 -08:00
Matias N
87596d74dd Documentation: introduce hardware platforms documentation 2021-02-07 08:38:51 -03:00
Gustavo Henrique Nihei
7f7416278d build: Deprecate NUTTXNAME variable
NUTTXNAME is used only as an alias for "nuttx", not actually a
configuration property. Its definition might erroneously imply that the
name of binary image may be configurable, which is not the case.
2021-02-06 07:18:46 -08:00
Masayuki Ishikawa
ad2e85433a boards, include, sched: Remove CONFIG_SPINLOCK_IRQ
Summary:
- This commit removes CONFIG_SPINLOCK_IRQ to avoid complexity

Impact:
- None

Testing:
- Tested with the following configs
- spresense:wifi, spresense:smp
- esp32-devkitc:smp (QEMU), sabre-6quad:smp (QEMU)
- maix-bit:smp (QEMU), sim:smp
- stm32f4discovery:wifi
2021-02-05 22:50:04 -08:00
Masayuki Ishikawa
7a58144ff2 boards: imxrt1050-evk: Fix style warnings in imxrt_ethernet.c
Summary:
- This commit fixes style warnings in imxrt_ethernet.c
Impact:
- None

Testing:
- Built with imxrt1050-evk:netnsh

Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
2021-02-04 21:49:16 -08:00
Masayuki Ishikawa
940d0cb964 boards: imxrt1020-evk: Fix style warnings in imxrt_ethernet.c
Summary:
- This commit fixes style warnings in imxrt_ethernet.c

Impact:
- None

Testing:
- Built with imxrt1020-evk:netnsh

Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
2021-02-04 21:49:16 -08:00
Alan C. Assis
c4f87977dc xtensa/esp32: Fix cache issue detected by DEBUG_ASSERTION 2021-02-04 21:22:01 +00:00
Masayuki Ishikawa
0c1e784245 boards: imxrt1060-evk: Add iperf to netnsh
Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
2021-02-04 00:29:07 -08:00
Gustavo Henrique Nihei
053a560aa1 esp32: Make esp32 boards share a common Config.mk with POSTBUILD command 2021-02-03 18:15:56 -03:00