WIP: device tree MVP

This commit is contained in:
Daniel Agar
2022-01-06 17:20:17 -05:00
parent 07d75d85cf
commit 1f39b42525
1395 changed files with 68755 additions and 0 deletions
@@ -0,0 +1,34 @@
# Copyright (c) 2019 Nordic Semiconductor ASA
# SPDX-License-Identifier: Apache-2.0
description: |
Configures SPI slave settings for a Bluetooth controller that uses
Zephyr's Bluetooth Host Controller Interface SPI (HCI SPI) driver.
A node defined via devicetree overlay should look like this:
&myspi {
bt-hci@0 {
compatible = "zephyr,bt-hci-spi-slave";
reg = <0>;
irq-gpios = <&gpio1 2 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>;
};
};
The bt-hci@0 node configures an HCI SPI slave on SPI slave
interface myspi.
The host interrupt GPIO is set to gpio1 pin 2 via irq-gpios. The
GPIO flags are just for example and may be different depending on
hardware.
compatible: "zephyr,bt-hci-spi-slave"
include: base.yaml
on-bus: spi
properties:
irq-gpios:
type: phandle-array
required: true
@@ -0,0 +1,19 @@
# Copyright (c) 2018, I-SENSE group of ICCS
# SPDX-License-Identifier: Apache-2.0
description: |
Bluetooth module that uses Zephyr's Bluetooth Host Controller Interface SPI
driver (e.g. nRF51822)
compatible: "zephyr,bt-hci-spi"
include: spi-device.yaml
properties:
irq-gpios:
type: phandle-array
required: true
reset-gpios:
type: phandle-array
required: true