dts: Add spi node for atmel sam series soc
Add SPI1 and SPI2 support Signed-off-by: qianfan Zhao <qianfanguijin@163.com>
This commit is contained in:
parent
6e4963b978
commit
5a07a1215d
2 changed files with 60 additions and 0 deletions
|
@ -68,6 +68,28 @@
|
|||
status = "disabled";
|
||||
};
|
||||
|
||||
spi0: spi@40008000 {
|
||||
compatible = "atmel,sam-spi";
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
reg = <0x40008000 0x4000>;
|
||||
interrupts = <21 0>;
|
||||
peripheral-id = <21>;
|
||||
label = "SPI_0";
|
||||
status = "disabled";
|
||||
};
|
||||
|
||||
spi1: spi@40058000 {
|
||||
compatible = "atmel,sam-spi";
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
reg = <0x40058000 0x4000>;
|
||||
interrupts = <42 0>;
|
||||
peripheral-id = <42>;
|
||||
label = "SPI_1";
|
||||
status = "disabled";
|
||||
};
|
||||
|
||||
uart0: uart@400E0800 {
|
||||
compatible = "atmel,sam-uart";
|
||||
reg = <0x400E0800 0x100>;
|
||||
|
|
38
dts/bindings/spi/atmel,sam-spi.yaml
Normal file
38
dts/bindings/spi/atmel,sam-spi.yaml
Normal file
|
@ -0,0 +1,38 @@
|
|||
#
|
||||
# Copyright (c) 2018, qianfan Zhao
|
||||
#
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
#
|
||||
---
|
||||
title: Atmel SAM SPI driver
|
||||
id: atmel,sam-spi
|
||||
version: 0.1
|
||||
|
||||
description: >
|
||||
This binding gives a base representation of the Atmel SAM SPI controller
|
||||
|
||||
inherits:
|
||||
!include spi.yaml
|
||||
|
||||
properties:
|
||||
compatible:
|
||||
constraint: "atmel,sam-spi"
|
||||
|
||||
reg:
|
||||
type: array
|
||||
description: mmio register space
|
||||
generation: define
|
||||
category: required
|
||||
|
||||
interrupts:
|
||||
type: array
|
||||
category: required
|
||||
description: required interrupts
|
||||
generation: define
|
||||
|
||||
peripheral-id:
|
||||
type: int
|
||||
description: peripheral ID
|
||||
generation: define
|
||||
category: required
|
||||
...
|
Loading…
Add table
Add a link
Reference in a new issue