6f0a5961e3
Different nRF52 devices have different maximum TWI DMA transfer size, and it's easy to hit the limit with i2c displays on nrf52832 (8 bit) and nrf52810 (10 bit). Currently neither the driver or the hal validate the limit, leading to random NACK errors when trying to transfer more data. Add a check on the driver to fail gracefully when going over the limit. Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com>
25 lines
535 B
YAML
25 lines
535 B
YAML
# Copyright (c) 2018 Aapo Vienamo
|
|
# Copyright (c) 2018 Nordic Semiconductor ASA
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
# Common fields for Nordic nRF family TWI peripherals
|
|
|
|
include: [i2c-controller.yaml, pinctrl-device.yaml]
|
|
|
|
properties:
|
|
reg:
|
|
required: true
|
|
|
|
interrupts:
|
|
required: true
|
|
|
|
pinctrl-0:
|
|
required: true
|
|
|
|
easydma-maxcnt-bits:
|
|
type: int
|
|
required: true
|
|
description: |
|
|
Maximum number of bits available in the EasyDMA MAXCNT register. This
|
|
property must be set at SoC level DTS files.
|