-
Notifications
You must be signed in to change notification settings - Fork 6.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
boards: arduino_due: Added DTS to the Arduino Due.
Change-Id: I006f9d4080a1351534ede5cc601e43526c39aa83 Origin: Original Signed-off-by: Justin Watson <[email protected]>
- Loading branch information
Showing
7 changed files
with
100 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,3 +11,4 @@ CONFIG_UART_ATMEL_SAM3=y | |
CONFIG_SOC_ATMEL_SAM3X_EXT_MAINCK=y | ||
CONFIG_PINMUX=y | ||
CONFIG_WATCHDOG=n | ||
CONFIG_HAS_DTS=y |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
/dts-v1/; | ||
|
||
#include <atmel/sam3x.dtsi> | ||
|
||
/ { | ||
model = "Arduino Due with an Atmel SAM3X8E SoC"; | ||
compatible = "arduino,due", "atmel,sam3x8e", "atmel,sam3x"; | ||
|
||
aliases { | ||
uart_0 = &uart0; | ||
}; | ||
|
||
chosen { | ||
zephyr,sram = &sram0; | ||
zephyr,flash = &flash0; | ||
}; | ||
}; | ||
|
||
&uart0 { | ||
status = "ok"; | ||
current-speed = <115200>; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
/* This file is a temporary workaround for mapping of the generated information | ||
* to the current driver definitions. This will be removed when the drivers | ||
* are modified to handle the generated information, or the mapping of | ||
* generated data matches the driver definitions. | ||
*/ | ||
|
||
|
||
#define CONFIG_NUM_IRQ_PRIO_BITS ARM_V7M_NVIC_E000E100_ARM_NUM_IRQ_PRIORITY_BITS |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
/* | ||
* Copyright (c) 2017 Justin Watson | ||
* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
#include <arm/armv7-m.dtsi> | ||
|
||
/ { | ||
cpus { | ||
cpu@0 { | ||
compatible = "arm,cortex-m4"; | ||
}; | ||
}; | ||
|
||
sram0: memory { | ||
compatible = "sram"; | ||
reg = <0x20070000 0x18000>; | ||
}; | ||
|
||
flash0: flash { | ||
compatible = "flash"; | ||
reg = <0x00080000 0x80000>; | ||
}; | ||
|
||
soc { | ||
uart0: uart@400E0800 { | ||
compatible = "atmel,sam3x-uart"; | ||
reg = <0x400E0800 0x124>; | ||
interrupts = <8 0>; | ||
status = "disabled"; | ||
}; | ||
}; | ||
}; | ||
|
||
&nvic { | ||
arm,num-irq-priority-bits = <3>; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
--- | ||
title: SAM3X UART | ||
id: atmel,sam3x-uart | ||
version: 0.1 | ||
|
||
description: > | ||
This binding gives a base representation of the SAM3X UART | ||
inherits: | ||
- !include uart.yaml | ||
|
||
properties: | ||
- compatible: | ||
type: string | ||
category: required | ||
description: compatible strings | ||
constraint: "atmel,sam3x-uart" | ||
|
||
- reg: | ||
type: array | ||
description: mmio register space | ||
generation: define | ||
category: required | ||
|
||
- interrupts: | ||
type: array | ||
category: required | ||
description: required interrupts | ||
generation: define | ||
... |