From 5a07a1215d1e6a96e3d8ae182c783859efe92eee Mon Sep 17 00:00:00 2001 From: qianfan Zhao Date: Tue, 9 Oct 2018 11:34:27 +0800 Subject: [PATCH] dts: Add spi node for atmel sam series soc Add SPI1 and SPI2 support Signed-off-by: qianfan Zhao --- dts/arm/atmel/same70.dtsi | 22 +++++++++++++++++ dts/bindings/spi/atmel,sam-spi.yaml | 38 +++++++++++++++++++++++++++++ 2 files changed, 60 insertions(+) create mode 100644 dts/bindings/spi/atmel,sam-spi.yaml diff --git a/dts/arm/atmel/same70.dtsi b/dts/arm/atmel/same70.dtsi index e86cccb47ed..39814755603 100644 --- a/dts/arm/atmel/same70.dtsi +++ b/dts/arm/atmel/same70.dtsi @@ -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>; diff --git a/dts/bindings/spi/atmel,sam-spi.yaml b/dts/bindings/spi/atmel,sam-spi.yaml new file mode 100644 index 00000000000..aff72db340c --- /dev/null +++ b/dts/bindings/spi/atmel,sam-spi.yaml @@ -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 +...