Browse Source
Switch the SoC device tree to define a single entry per SERCOM instead of one per mode. Define a Device Tree binding for the SAM0 SPI and use it instead of Kconfig for enabling / disabaling instances Switch the Arduino Zero, Adafruit Feather M0 Basic Proto, and Trinket M0 to use the new defintion. Add the APA102 LED that's on the Trinket as a test. Signed-off-by: Michael Hope <mlhx@google.com> Signed-off-by: Kumar Gala <kumar.gala@linaro.org>pull/6552/head
12 changed files with 124 additions and 71 deletions
@ -0,0 +1,27 @@
@@ -0,0 +1,27 @@
|
||||
--- |
||||
title: Atmel SERCOM binding |
||||
id: atmel,sam0-sercom |
||||
version: 0.1 |
||||
|
||||
description: > |
||||
Binding for the Atmel SAM0 multi-protocol (UART, SPI, I2C) SERCOM unit. |
||||
|
||||
properties: |
||||
compatible: |
||||
type: string |
||||
category: required |
||||
description: compatible strings |
||||
constraint: "atmel,sam0-sercom" |
||||
|
||||
reg: |
||||
type: array |
||||
description: mmio register space |
||||
generation: define |
||||
category: required |
||||
|
||||
interrupts: |
||||
type: array |
||||
category: required |
||||
description: required interrupts |
||||
generation: define |
||||
... |
@ -0,0 +1,29 @@
@@ -0,0 +1,29 @@
|
||||
# |
||||
# Copyright (c) 2018, Google LLC. |
||||
# |
||||
# SPDX-License-Identifier: Apache-2.0 |
||||
# |
||||
--- |
||||
title: Atmel SAM0 SERCOM SPI driver |
||||
id: atmel,sam0-spi |
||||
version: 0.1 |
||||
|
||||
description: > |
||||
This binding gives a base representation of the Atmel SAM0 SERCOM SPI controller |
||||
|
||||
inherits: |
||||
!include spi.yaml |
||||
|
||||
properties: |
||||
compatible: |
||||
type: string |
||||
category: required |
||||
description: compatible strings |
||||
constraint: "atmel,sam0-spi" |
||||
|
||||
reg: |
||||
type: array |
||||
description: mmio register space |
||||
generation: define |
||||
category: required |
||||
... |
Loading…
Reference in new issue