Skip to content

Commit

Permalink
dts: add CC13xx / CC26xx SPI bindings and nodes
Browse files Browse the repository at this point in the history
Add bindings and device tree nodes for TI CC13xx / CC26xx SPI support.

Signed-off-by: Brett Witherspoon <spoonb@cdspooner.com>
  • Loading branch information
bwitherspoon authored and nashif committed May 27, 2019
1 parent f2eea2e commit 7713c85
Show file tree
Hide file tree
Showing 2 changed files with 69 additions and 0 deletions.
20 changes: 20 additions & 0 deletions dts/arm/ti/cc13x2_cc26x2.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,26 @@
status = "disabled";
label = "I2C_0";
};

spi0: spi@40000000 {
compatible = "ti,cc13xx-cc26xx-spi";
#address-cells = <1>;
#size-cells = <0>;
reg = <0x40000000 0x1000>;
interrupts = <7 0>;
status = "disabled";
label = "SPI_0";
};

spi1: spi@40008000 {
compatible = "ti,cc13xx-cc26xx-spi";
#address-cells = <1>;
#size-cells = <0>;
reg = <0x40008000 0x1000>;
interrupts = <8 0>;
status = "disabled";
label = "SPI_1";
};
};
};

Expand Down
49 changes: 49 additions & 0 deletions dts/bindings/spi/ti,cc13xx-cc26xx-spi.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
#
# Copyright (c) 2019 Brett Witherspoon
#
# SPDX-License-Identifier: Apache-2.0
#
---
title: TI SimpleLink CC13xx / CC26xx SPI
version: 0.1

description: >
This is a representation of the TI SimpleLink CC13xx / CC26xx SPI node
inherits:
!include spi.yaml

properties:
compatible:
constraint: "ti,cc13xx-cc26xx-spi"

reg:
type: array
category: required
description: mmio register space
generation: define

sck-pin:
type: int
category: required
description: SCK pin
generation: define

mosi-pin:
type: int
category: required
description: MOSI pin
generation: define

miso-pin:
type: int
category: required
description: MISO pin
generation: define

cs-pin:
type: int
category: optional
description: CS pin
generation: define
...

0 comments on commit 7713c85

Please sign in to comment.