2019-04-18 04:34:57 +08:00
|
|
|
/*
|
|
|
|
* Copyright 2018 Foundries.io Ltd
|
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
|
|
*/
|
|
|
|
|
2022-04-30 05:17:02 +08:00
|
|
|
#include <riscv/openisa/rv32m1.dtsi>
|
2019-04-18 04:34:57 +08:00
|
|
|
|
|
|
|
/ {
|
|
|
|
aliases {
|
|
|
|
intmux = &intmux1;
|
|
|
|
system-lptmr = &lptmr2;
|
|
|
|
};
|
|
|
|
|
|
|
|
cpus {
|
|
|
|
/delete-node/ cpu@0;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2019-05-07 02:50:52 +08:00
|
|
|
&m0_flash {
|
|
|
|
partitions {
|
|
|
|
compatible = "fixed-partitions";
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <1>;
|
|
|
|
|
|
|
|
/* This configuration assumes the Arm cores are disabled, as
|
|
|
|
* these base addresses contain the Arm core vector tables if
|
|
|
|
* they are used.
|
|
|
|
*/
|
|
|
|
|
|
|
|
zero_riscy_code_partition: partition@1000000 {
|
|
|
|
reg = <0x01000000 0x0003ff00>;
|
|
|
|
};
|
|
|
|
|
|
|
|
zero_riscy_vector_partition: partition@3ff00 {
|
|
|
|
reg = <0x0003ff00 0x100>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2019-04-18 04:34:57 +08:00
|
|
|
/*
|
|
|
|
* INTMUX channels below are somewhat arbitrary.
|
|
|
|
*
|
|
|
|
* The peripherals are all placed in channel 0. This can be overridden with
|
|
|
|
* overlays, e.g. to manage IRQ priorities, and it will Just Work, but using
|
|
|
|
* fewer channels here allows disabling unused ones in Kconfig, making the
|
|
|
|
* binary smaller.
|
|
|
|
*
|
|
|
|
* Each enabled channel requires 256 bytes in _sw_isr_table, so the savings for
|
|
|
|
* disabling channels can add up.
|
|
|
|
*/
|
|
|
|
|
2019-08-09 03:30:08 +08:00
|
|
|
/delete-node/ &intmux0;
|
|
|
|
|
2019-04-18 04:34:57 +08:00
|
|
|
&intmux1 {
|
2019-08-09 03:30:08 +08:00
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
|
|
|
&intmux1_ch0 {
|
2019-04-18 04:34:57 +08:00
|
|
|
interrupt-parent = <&event1>;
|
2019-07-19 23:26:20 +08:00
|
|
|
status = "okay";
|
2019-04-18 04:34:57 +08:00
|
|
|
};
|
|
|
|
|
2019-08-09 03:30:08 +08:00
|
|
|
&intmux1_ch1 {
|
|
|
|
interrupt-parent = <&event1>;
|
|
|
|
};
|
|
|
|
|
|
|
|
&intmux1_ch2 {
|
|
|
|
interrupt-parent = <&event1>;
|
|
|
|
};
|
|
|
|
|
|
|
|
&intmux1_ch3 {
|
|
|
|
interrupt-parent = <&event1>;
|
|
|
|
};
|
|
|
|
|
|
|
|
&intmux1_ch4 {
|
|
|
|
interrupt-parent = <&event1>;
|
|
|
|
};
|
|
|
|
|
|
|
|
&intmux1_ch5 {
|
|
|
|
interrupt-parent = <&event1>;
|
|
|
|
};
|
|
|
|
|
|
|
|
&intmux1_ch6 {
|
|
|
|
interrupt-parent = <&event1>;
|
|
|
|
};
|
|
|
|
|
|
|
|
&intmux1_ch7 {
|
|
|
|
interrupt-parent = <&event1>;
|
|
|
|
};
|
|
|
|
|
2019-04-18 04:34:57 +08:00
|
|
|
&lptmr0 {
|
2019-08-09 03:30:08 +08:00
|
|
|
interrupt-parent = <&intmux1_ch0>;
|
2019-08-09 03:38:34 +08:00
|
|
|
interrupts = <6>;
|
2019-04-18 04:34:57 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
&lptmr1 {
|
2019-08-09 03:30:08 +08:00
|
|
|
interrupt-parent = <&intmux1_ch0>;
|
2019-08-09 03:38:34 +08:00
|
|
|
interrupts = <7>;
|
2019-04-18 04:34:57 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
&lptmr2 {
|
|
|
|
interrupt-parent = <&event1>;
|
|
|
|
interrupts = <14>;
|
|
|
|
};
|
|
|
|
|
|
|
|
&gpioa {
|
2019-08-09 03:30:08 +08:00
|
|
|
interrupt-parent = <&intmux1_ch0>;
|
2019-08-09 03:38:34 +08:00
|
|
|
interrupts = <25>;
|
2019-04-18 04:34:57 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
&gpiob {
|
2019-08-09 03:30:08 +08:00
|
|
|
interrupt-parent = <&intmux1_ch0>;
|
2019-08-09 03:38:34 +08:00
|
|
|
interrupts = <26>;
|
2019-04-18 04:34:57 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
&gpioc {
|
2019-08-09 03:30:08 +08:00
|
|
|
interrupt-parent = <&intmux1_ch0>;
|
2019-08-09 03:38:34 +08:00
|
|
|
interrupts = <27>;
|
2019-04-18 04:34:57 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
&gpiod {
|
2019-08-09 03:30:08 +08:00
|
|
|
interrupt-parent = <&intmux1_ch0>;
|
2019-08-09 03:38:34 +08:00
|
|
|
interrupts = <28>;
|
2019-04-18 04:34:57 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
&gpioe {
|
|
|
|
interrupt-parent = <&event1>;
|
|
|
|
interrupts = <21>;
|
|
|
|
};
|
|
|
|
|
2020-04-02 21:37:21 +08:00
|
|
|
&lpuart0 {
|
2019-08-09 03:30:08 +08:00
|
|
|
interrupt-parent = <&intmux1_ch0>;
|
2019-08-09 03:38:34 +08:00
|
|
|
interrupts = <21>;
|
2019-04-18 04:34:57 +08:00
|
|
|
};
|
|
|
|
|
2020-04-02 21:37:21 +08:00
|
|
|
&lpuart1 {
|
2019-08-09 03:30:08 +08:00
|
|
|
interrupt-parent = <&intmux1_ch0>;
|
2019-08-09 03:38:34 +08:00
|
|
|
interrupts = <22>;
|
2019-04-18 04:34:57 +08:00
|
|
|
};
|
|
|
|
|
2020-04-02 21:37:21 +08:00
|
|
|
&lpuart2 {
|
2019-08-09 03:30:08 +08:00
|
|
|
interrupt-parent = <&intmux1_ch0>;
|
2019-08-09 03:38:34 +08:00
|
|
|
interrupts = <23>;
|
2019-04-18 04:34:57 +08:00
|
|
|
};
|
|
|
|
|
2020-04-02 21:37:21 +08:00
|
|
|
&lpuart3 {
|
2019-04-18 04:34:57 +08:00
|
|
|
interrupt-parent = <&event1>;
|
|
|
|
interrupts = <20>;
|
|
|
|
};
|
|
|
|
|
2020-04-02 21:37:21 +08:00
|
|
|
&lpi2c0 {
|
2019-08-09 03:30:08 +08:00
|
|
|
interrupt-parent = <&intmux1_ch0>;
|
2019-08-09 03:38:34 +08:00
|
|
|
interrupts = <13>;
|
2019-04-18 04:34:57 +08:00
|
|
|
};
|
|
|
|
|
2020-04-02 21:37:21 +08:00
|
|
|
&lpi2c1 {
|
2019-08-09 03:30:08 +08:00
|
|
|
interrupt-parent = <&intmux1_ch0>;
|
2019-08-09 03:38:34 +08:00
|
|
|
interrupts = <14>;
|
2019-04-18 04:34:57 +08:00
|
|
|
};
|
|
|
|
|
2020-04-02 21:37:21 +08:00
|
|
|
&lpi2c2 {
|
2019-08-09 03:30:08 +08:00
|
|
|
interrupt-parent = <&intmux1_ch0>;
|
2019-08-09 03:38:34 +08:00
|
|
|
interrupts = <15>;
|
2019-04-18 04:34:57 +08:00
|
|
|
};
|
|
|
|
|
2020-04-02 21:37:21 +08:00
|
|
|
&lpi2c3 {
|
2019-04-18 04:34:57 +08:00
|
|
|
interrupt-parent = <&event1>;
|
|
|
|
interrupts = <16>;
|
|
|
|
};
|
2019-08-07 23:13:35 +08:00
|
|
|
|
2020-04-02 21:37:21 +08:00
|
|
|
&lpspi0 {
|
2019-08-07 23:13:35 +08:00
|
|
|
interrupt-parent = <&intmux1_ch0>;
|
|
|
|
interrupts = <18>;
|
|
|
|
};
|
|
|
|
|
2020-04-02 21:37:21 +08:00
|
|
|
&lpspi1 {
|
2019-08-07 23:13:35 +08:00
|
|
|
interrupt-parent = <&intmux1_ch0>;
|
|
|
|
interrupts = <19>;
|
|
|
|
};
|
|
|
|
|
2020-04-02 21:37:21 +08:00
|
|
|
&lpspi2 {
|
2019-08-07 23:13:35 +08:00
|
|
|
interrupt-parent = <&intmux1_ch0>;
|
|
|
|
interrupts = <20>;
|
|
|
|
};
|
|
|
|
|
2020-04-02 21:37:21 +08:00
|
|
|
&lpspi3 {
|
2019-08-07 23:13:35 +08:00
|
|
|
interrupt-parent = <&event1>;
|
|
|
|
interrupts = <19>;
|
|
|
|
};
|
2019-09-13 22:20:48 +08:00
|
|
|
|
|
|
|
&generic_fsk {
|
|
|
|
interrupt-parent = <&intmux1_ch0>;
|
|
|
|
interrupts = <17>;
|
|
|
|
};
|
2019-12-04 00:13:24 +08:00
|
|
|
|
2020-04-02 21:37:21 +08:00
|
|
|
&tpm0 {
|
2019-12-04 00:13:24 +08:00
|
|
|
interrupt-parent = <&intmux1_ch0>;
|
|
|
|
interrupts = <8>;
|
|
|
|
};
|
|
|
|
|
2020-04-02 21:37:21 +08:00
|
|
|
&tpm1 {
|
2019-12-04 00:13:24 +08:00
|
|
|
interrupt-parent = <&intmux1_ch0>;
|
|
|
|
interrupts = <9>;
|
|
|
|
};
|
|
|
|
|
2020-04-02 21:37:21 +08:00
|
|
|
&tpm2 {
|
2019-12-04 00:13:24 +08:00
|
|
|
interrupt-parent = <&intmux1_ch0>;
|
|
|
|
interrupts = <10>;
|
|
|
|
};
|
|
|
|
|
2020-04-02 21:37:21 +08:00
|
|
|
&tpm3 {
|
2019-12-04 00:13:24 +08:00
|
|
|
interrupt-parent = <&event1>;
|
|
|
|
interrupts = <15>;
|
|
|
|
};
|
2020-04-02 00:10:31 +08:00
|
|
|
|
|
|
|
&trng {
|
|
|
|
interrupt-parent = <&event1>;
|
|
|
|
interrupts = <12>;
|
|
|
|
};
|