Commit graph

115 commits

Author SHA1 Message Date
Kamil Piszczek c837d85c2b drivers: flash: add flash_simulator driver
This commit adds a flash driver implementation that writes to RAM and
exports statistics through stats.h. It can be used to simulate flash
memory for testing purposes.

Signed-off-by: Emanuele Di Santo <emdi@nordicsemi.no>
Signed-off-by: Andrzej Puzdrowski <andrzej.puzdrowski@nordicsemi.no>
Signed-off-by: Kamil Piszczek <Kamil.Piszczek@nordicsemi.no>
2019-04-24 13:05:11 -07:00
Andrew Boie 035bc2c6f4 CODEOWNERS: minor adjustment
I haven't worked on sanitycheck for quite some time.

Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
2019-04-24 13:00:13 -07:00
Jukka Rissanen 94857d3148 CODEOWNERS: Update networking files
Some networking related files were missing owner.

Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
2019-04-24 11:38:24 -07:00
Erwan Gouriou ea1f7fb1f2 CODEOWNERS: Add codeowner to dts/bindings/*/st,stm32
Set erwango as codeowner for stm32 dts bindings


Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
2019-04-24 08:19:20 -05:00
Erwan Gouriou 20b645165e CODEOWNERS: Set owner to ext/hal/st
ext/hal/st doesn't have an onwer, set @erwango and remove
entry for ext/hal/st/stm32cube.

Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
2019-04-24 08:19:20 -05:00
Anas Nashif 636a7af43e CODEOWNERS: update code owners
Replace owners who are not working on Zephyr anymore.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2019-04-23 15:11:06 -07:00
Manivannan Sadhasivam f73e157d87 CODEOWNERS: Add codeowner for 96b_wistrio
Add myself as the codeowner for 96Boards Wistrio.

Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
2019-04-22 08:54:18 -05:00
Alexander Wachter 9e8ad2dfe7 CODEOWNERS: Add codeowner for ams iAQcore and ENS210
Add @alexanderwachter as codeowner for AMS iAQcore and ENS210

Signed-off-by: Alexander Wachter <alexander.wachter@student.tugraz.at>
2019-04-19 08:37:17 -05:00
Ioannis Glaropoulos cebc26274f CODEOWNERS: add code-owner for Arduino Due
Assigning code-owner for Arduino Due board.

Signed-off-by: Ioannis Glaropoulos <Ioannis.Glaropoulos@nordicsemi.no>
2019-04-18 17:43:26 -04:00
Henrik Brix Andersen 8a4dbb5b03 drivers: i2c: rv32m1: add I2C driver for the RV32M1 RI5CY SoC
Add driver and device tree binding for the Low Power Inter-Integrated
Circuit (LPI2C) controllers found in the RV32M1 RI5CY SoC.

Signed-off-by: Henrik Brix Andersen <henrik@brixandersen.dk>
2019-04-18 16:04:23 -05:00
Karsten Koenig 35b9308488 drivers: can: mcp2515: Add driver for MCP2515 CAN controller
The MCP2515 is a CAN controller that can be connected via SPI to an
host MCU. This driver adds support for the MCP2515 as a new driver in
the CAN subsystem.
As it is a SPI peripheral it uses a thread for its interrupt
handling and the received message filtering is done inside this
interrupt thread, as the MCP2515 filter capabilities are not sufficient
for the Zephyr CAN interface.
The driver was validated with an external CAN logger and the adjusted
CAN sample application.

Signed-off-by: Karsten Koenig <karsten.koenig.030@gmail.com>
2019-04-17 16:12:30 -04:00
Ioannis Glaropoulos b8774ae8f6 CODEOWNERS: code-owner for SAM3X
Adding Code-Owner for Atmel SAM3X SOC (Cortex-M3).

Signed-off-by: Ioannis Glaropoulos <Ioannis.Glaropoulos@nordicsemi.no>
2019-04-17 15:03:32 -04:00
Charles E. Youse e039053546 uart/ns16550, drivers/pcie: add PCI(e) support
A parallel PCI implementation ("pcie") is added with features for PCIe.
In particular, message-signaled interrupts (MSI) are supported, which
are essential to the use of any non-trivial PCIe device.

The NS16550 UART driver is modified to use pcie.

pcie is a complete replacement for the old PCI support ("pci"). It is
smaller, by an order of magnitude, and cleaner. Both pci and pcie can
(and do) coexist in the same builds, but the intent is to rework any
existing drivers that depend on pci and ultimately remove pci entirely.

This patch is large, but things in mirror are smaller than they appear.
Most of the modified files are configuration-related, and are changed
only slightly to accommodate the modified UART driver.

Deficiencies:

64-bit support is minimal. The code works fine with 64-bit capable
devices, but will not cooperate with MMIO regions (or MSI targets) that
have high bits set. This is not needed on any current boards, and is
unlikely to be needed in the future. Only superficial changes would
be required if we change our minds.

The method specifying PCI endpoints in devicetree is somewhat kludgey.
The "right" way would be to hang PCI devices off a topological tree;
while this would be more aesthetically pleasing, I don't think it's
worth the effort, given our non-standard use of devicetree.

Signed-off-by: Charles E. Youse <charles.youse@intel.com>
2019-04-17 10:50:05 -07:00
Ioannis Glaropoulos 04ef68b85a CODEOWNERS: Adding missing code owner for Cortex-M SysTick driver
Adding code-owner for the ARM Cortex-M SysTick-based
timer driver.

Signed-off-by: Ioannis Glaropoulos <Ioannis.Glaropoulos@nordicsemi.no>
2019-04-11 13:50:41 -04:00
Andrew Boie 4ea404d9bf CODEOWNERS: add lib/os
Part of the core kernel, Andy and I will watch over it.

Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
2019-04-03 13:47:45 -04:00
Torsten Rasmussen bd7569f272 cmake: Extracted Zephyr module processing into python script
Fixes: #14513

This commit move the functionality of extracting zephyr modules into
generated CMake and Kconfig include files from CMake into python.

This allows other tools, especially CI to re-use the zephyr module
functionality.

Signed-off-by: Torsten Rasmussen <torsten.rasmussen@nordicsemi.no>
2019-03-29 23:10:59 -04:00
Anas Nashif 0b9dda321e CODEOWNERS: add owner for /dts/bindings/
@galak is now the proud owner of /dts/bindings/.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2019-03-28 10:25:02 -04:00
Krzysztof Chruscinski bc3891ef03 CODEOWNERS: Add @nordic-krch and @jarz-nordic to shell, logging samples
They are already owners of modules itself but not the samples.

Signed-off-by: Krzysztof Chruscinski <krzysztof.chruscinski@nordicsemi.no>
2019-03-28 08:41:28 -05:00
Mieszko Mierunski cbf4e54ead tests: uart: Add nrf9160_pca10090 to UART async test
Add nrf9160_pca10090 to UART async test.
Add myself as codeowner to uart_async_api tests.

Signed-off-by: Mieszko Mierunski <mieszko.mierunski@nordicsemi.no>
2019-03-28 09:30:57 -04:00
Andrzej Głąbek 2c3445b933 CODEOWNERS: Set @nordic-krch as the codeowner of the counter driver
As the author of the latest rework of the counter driver API,
@nordic-krch is a more appropriate person than me to be the codeowner
of this driver.

Signed-off-by: Andrzej Głąbek <andrzej.glabek@nordicsemi.no>
2019-03-27 11:56:22 +01:00
Charles E. Youse eaf1c3b8a6 drivers/pci: stop using LOG_DBG()
When the console UART is a PCI device, and PCI debug logging is enabled,
the system crashes because the UART is initialized before logging, but
the UART initialization invokes the PCI subsystem which invokes logging.
Reordering the initialization sequence will not fix this chicken/egg.

Luckily, the LOG_DBG() calls in the PCI subsystem appear to be bitrot
leftovers from early development, so they are simply removed.

Also mark myself as the owner of the PCI subsystem.

Fixes: #14763

Signed-off-by: Charles E. Youse <charles.youse@intel.com>
2019-03-26 23:56:02 +01:00
Ioannis Glaropoulos eb82bdd419 CODEOWNERS: add code-owner for cortex-m/cmse module
Code-owner for the ARM/Cortex-M/CMSE module (source
and include directories).

Signed-off-by: Ioannis Glaropoulos <Ioannis.Glaropoulos@nordicsemi.no>
2019-03-18 11:40:09 -05:00
Ramakrishna Pallala d910aa6029 samples: power: Add test for device Idle PM
Added test for Device Idle Power Management to invoke
device_pm_get/put API's.

Signed-off-by: Ramakrishna Pallala <ramakrishna.pallala@intel.com>
2019-03-14 14:26:15 +01:00
Ramakrishna Pallala 6b21e1b7a7 power: Add device idle power management support
Add framework for device Idle Power Management(IPM)
for suspending devices based on device idle. This will
help in saving power even while system(CPU) is active.

The framework uses device_set_power_state() API set the
device power state accordingly based on the usage count.

Signed-off-by: Ramakrishna Pallala <ramakrishna.pallala@intel.com>
2019-03-14 14:26:15 +01:00
Daniel Leung 212ec9a29a linker: sort app shared mem partition by alignment
If CONFIG_MPU_REQUIRES_POWER_OF_TWO_ALIGNMENT is enabled,
the app shared memory partition may cause waste of memory
due to the need for padding.

For example, tests/subsys/jwt and board mps2_an385:

  z_test_mem_partition: addr 0x20000000, size 52
  z_libc_partition    : addr 0x20000040, size 4
  k_mbedtls_partition : addr 0x20008000, size 32736

    ending at 0x2000ffff, taking up 65536 bytes

With power-of-two size and alignment requirement,
k_mbedtls_partition takes up 32KB memory and needs to be
aligned on 32KB boundary. If the above partitions are
ordered as shown, there needs to be a lot of padding
after z_libc_partition before k_mbedtls_partition can
start. In order to minimize padding, these partitions
need to be sort by size in descending order.

After the changes here,	the partitions are:

  k_mbedtls_partition : addr 0x20000000, size 32736
  z_test_mem_partition: addr 0x20008000, size 52
  z_libc_partition    : addr 0x20008040, size 4

    ending at 0x2000805f, taking up 32864 bytes

With the above example, sorting results in a saving
of 32672 bytes of saving.

Fixes #14121

Signed-off-by: Daniel Leung <daniel.leung@intel.com>
2019-03-13 18:26:51 +01:00
Gaute Gamnes baa1a62310 samples: servo_motor: Fix servo_motor sample to use new DT options
1. Remove microbit Kconfig conf file.
2. Include microbit DT overlay with prescaler setting.
3. Set codeowner of servo_motor bbc_microbit to @jhe

Signed-off-by: Gaute Gamnes <gaute.gamnes@nordicsemi.no>
2019-03-12 13:34:01 +01:00
Gaute Gamnes 281e251690 dts: nrf: Temp device node added to nRF5 devices with yaml binding
1. Temp device node added to all nRF5 DTSI files.
2. Added yaml binding for Nordic Temp node.
3. Set codeowner of nordic dts bindings to @anangl

Signed-off-by: Gaute Gamnes <gaute.gamnes@nordicsemi.no>
2019-03-12 13:33:36 +01:00
Kumar Gala 11cedc6c49 ext: libmetal: Update libmetal to snapshot for bug fixes
Pull in libmetal SHA 59a10acbb0bb684c1a75488f11878cb984170c81 to get
some build fixes related to newlib.

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2019-03-11 14:37:57 -05:00
Erwan Gouriou 7d168db9aa CODEOWNERS: Add codeowner to boards/shields
Following new shield introduction in #14057, it has been highlighted
there was no codeowner for boards/shields/.
Assign erwango as codeowner.

Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
2019-03-11 12:07:01 -04:00
Erwan Gouriou 831fbed3a7 scripts: Add hook calllable series-push-hook script
Running checkpatch in pre-commit hook could be a constraint
for day to day work. Though, running it before pushing to
zephyr repo is highly recommended.
Add a  series push script callable from pre-push hook.
Document how to use it in contribute section.

Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
2019-03-08 16:43:06 -05:00
Maureen Helm 8624797dc9 CODEOWNERS: Add code owner for nxp dts
Adds @MaureenHelm as code owner for nxp device tree bindings.

Signed-off-by: Maureen Helm <maureen.helm@nxp.com>
2019-03-08 04:37:56 -06:00
Vincent Wan 794c18932e CODEOWNERS: Update code ownership for TI SimpleLink code
Updated for SimpleLink-related code in ext, board and soc.

Signed-off-by: Vincent Wan <vincent.wan@linaro.org>
2019-03-05 11:37:10 -05:00
Andrew Boie e686aefe09 mbedtls: provide user mode access
The mbedtls library has some globals which results in faults
when user mode tries to access them.

Instantiate a memory partition for mbedtls's globals.
The linker will place all globals found by building this
library into this partition.

Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
2019-03-05 08:27:20 -05:00
Andrzej Puzdrowski b7a20d1ae5 CODEOWNERS: Add owners for tests of settings subsystems
The settings tests was not properly covered in terms of maintainership,
add maintainers for the corresponding subystems.

Signed-off-by: Andrzej Puzdrowski <andrzej.puzdrowski@nordicsemi.no>
2019-03-04 16:51:19 +01:00
Michael Scott 3f400e4d9a CODEOWNERS: add modem ownership
Add @mike-scott as modem drivers maintainer

Signed-off-by: Michael Scott <mike@foundries.io>
2019-03-03 23:42:39 -05:00
Marc Herbert c78be1bb7b CODEOWNERS: fix 3 check-compliance.py issues not reported by github
- PR #13722 moved 3 gen_*.py to /arch/x86/ without updating CODEOWNERS
- PR #13745 forgot a trailing slash in /dts/bindings/can
- PR #13675 forgot a trailing slash in /samples/boards/intel_s1000_crb

No idea why github doesn't keep reporting these every time and
impossible to tell as CI hides most of its logs.

Signed-off-by: Marc Herbert <marc.herbert@intel.com>
2019-03-01 09:16:25 +01:00
Erwan Gouriou 4fe3aea774 codeowner: add codeowner for ST stm32 development boards
Add codeowner for STM32 based ST development boards

Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
2019-02-26 00:40:43 -06:00
Alexander Wachter bcfe86b76b CODEOWNERS: Add hwinfo ownership
Add @alexanderwachter as hwinfo maintainer.

Signed-off-by: Alexander Wachter <alexander.wachter@student.tugraz.at>
2019-02-26 02:08:28 +01:00
Alexander Wachter 89ddc391fd CODEOWNERS: CAN ownership
Add @alexanderwachter as CAN maintainer

Signed-off-by: Alexander Wachter <alexander.wachter@student.tugraz.at>
2019-02-26 02:08:28 +01:00
Anas Nashif 7352d2b0c1 CODEOWNERS: update owners and added xcc/s1000 related lines
Updated for board and toolchain and a few minor fixes.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2019-02-24 17:48:10 -05:00
Ulf Magnusson 406e942949 CODEOWNERS: Add missing trailing / on some directories
Gets rid of some warnings from check_compliance.py:

  Wrong syntax: /home/ulf/z/subsys/fs/fcb
  Wrong syntax: /home/ulf/z/subsys/fs/nvs
  Wrong syntax: /home/ulf/z/subsys/storage

Signed-off-by: Ulf Magnusson <Ulf.Magnusson@nordicsemi.no>
2019-02-24 15:09:50 -05:00
Carles Cufi f897215289 CODEOWNERS: Add owners for storage-related subsystems
Storage was not properly covered in terms of maintainership, add
maintainers for the corresponding subystems.

Signed-off-by: Carles Cufi <carles.cufi@nordicsemi.no>
2019-02-20 09:14:22 -06:00
Anas Nashif cda614562c CODEOWNERS: fix syntax for directories
Add trailing "/" to signify directories.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2019-02-19 20:21:02 -05:00
Anas Nashif 6a86c551dd CODEOWNERS: prepend / to all entries
This will avoid globbing on files named the same deeper in the tree.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2019-02-19 20:21:02 -05:00
Anas Nashif d140e481f5 CODEOWNERS: fix path and remove outdated
Few directories and files have moved around, so update CODEOWNERS
accrodingly.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2019-02-19 20:21:02 -05:00
Anas Nashif 504855c8a3 CODEOWNERS: cleanup owners
Few people not working on those components anymore.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2019-02-19 20:21:02 -05:00
Paul Sokolovsky 834c50f00c CODEOWNERS: Add @pfalcon for POSIX-related things
I already did a bunch of POSIX API related work, and integration of
BSD Sockets API, etc. with full POSIX subsystem will require further
more work.

Signed-off-by: Paul Sokolovsky <paul.sokolovsky@linaro.org>
2019-02-01 05:28:55 -06:00
Anas Nashif a93651085e boards: remove pulpino board
This board is unmaintained and unsupported. It is not known to work and
has lots of conditional code across the tree that makes code
unmaintainable.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2019-01-31 22:47:18 -05:00
Marti Bolivar 5bb07d61d0 CODEOWNERS: add myself as maintainer for west commands
I forgot to do this when creating these files.

Signed-off-by: Marti Bolivar <marti@foundries.io>
2019-01-30 13:31:51 -05:00
Thomas Ebert Hansen ff0f0e4899 CODEOWNERS: Add @thoh-ot for subsys/bluetooth/controller
Add @thoh-ot as co-codeowner for subsys/bluetooth/controller

Signed-off-by: Thomas Ebert Hansen <thoh@oticon.com>
2019-01-30 08:24:36 -05:00