Skip to content
Permalink
Browse files

soc: sam0: Fix SAMD20 IRQ assignments

SAMD20 does not have the DMA or USB peripherals and as a result
the IRQs for all subsequent lines are shifted down from SAMD21.
This splits the interrupt assignment for the SERCOMs into the
SoC specific DTS file and moves the USB definition to SAMD21 only.

Signed-off-by: Derek Hageman <hageman@inthat.cloud>
  • Loading branch information...
Sizurka authored and galak committed Apr 2, 2019
1 parent c8b17ec commit a17730da18f1333f78d0bddbd0eb94866df560e9
Showing with 61 additions and 15 deletions.
  1. +0 −15 dts/arm/atmel/samd.dtsi
  2. +24 −0 dts/arm/atmel/samd20.dtsi
  3. +37 −0 dts/arm/atmel/samd21.dtsi
@@ -65,47 +65,41 @@
sercom0: sercom@42000800 {
compatible = "atmel,sam0-sercom";
reg = <0x42000800 0x40>;
interrupts = <9 0>;
status = "disabled";
label = "SERCOM0";
};

sercom1: sercom@42000c00 {
compatible = "atmel,sam0-sercom";
reg = <0x42000c00 0x40>;
interrupts = <10 0>;
status = "disabled";
label = "SERCOM1";
};

sercom2: sercom@42001000 {
compatible = "atmel,sam0-sercom";
reg = <0x42001000 0x40>;
interrupts = <11 0>;
status = "disabled";
label = "SERCOM2";
};

sercom3: sercom@42001400 {
compatible = "atmel,sam0-sercom";
reg = <0x42001400 0x40>;
interrupts = <12 0>;
status = "disabled";
label = "SERCOM3";
};

sercom4: sercom@42001800 {
compatible = "atmel,sam0-sercom";
reg = <0x42001800 0x40>;
interrupts = <13 0>;
status = "disabled";
label = "SERCOM4";
};

sercom5: sercom@42001c00 {
compatible = "atmel,sam0-sercom";
reg = <0x42001c00 0x40>;
interrupts = <14 0>;
status = "disabled";
label = "SERCOM5";
};
@@ -126,15 +120,6 @@
#gpio-cells = <2>;
};

usb0: usb@41005000 {
compatible = "atmel,sam0-usb";
status = "disabled";
reg = <0x41005000 0x1000>;
interrupts = <7 0>;
num-bidir-endpoints = <8>;
label = "USB0";
};

rtc: rtc@40001400 {
compatible = "atmel,sam0-rtc";
reg = <0x40001400 0x1C>;
@@ -5,3 +5,27 @@
*/

#include <atmel/samd.dtsi>

&sercom0 {
interrupts = <7 0>;
};

&sercom1 {
interrupts = <8 0>;
};

&sercom2 {
interrupts = <9 0>;
};

&sercom3 {
interrupts = <10 0>;
};

&sercom4 {
interrupts = <11 0>;
};

&sercom5 {
interrupts = <12 0>;
};
@@ -5,3 +5,40 @@
*/

#include <atmel/samd.dtsi>

/ {
soc {
usb0: usb@41005000 {
compatible = "atmel,sam0-usb";
status = "disabled";
reg = <0x41005000 0x1000>;
interrupts = <7 0>;
num-bidir-endpoints = <8>;
label = "USB0";
};
};
};

&sercom0 {
interrupts = <9 0>;
};

&sercom1 {
interrupts = <10 0>;
};

&sercom2 {
interrupts = <11 0>;
};

&sercom3 {
interrupts = <12 0>;
};

&sercom4 {
interrupts = <13 0>;
};

&sercom5 {
interrupts = <14 0>;
};

0 comments on commit a17730d

Please sign in to comment.
You can’t perform that action at this time.