2019-04-06 21:08:09 +08:00
|
|
|
/* SPDX-License-Identifier: Apache-2.0 */
|
|
|
|
|
2018-02-19 03:43:24 +08:00
|
|
|
#include <arm/armv6-m.dtsi>
|
|
|
|
#include <dt-bindings/gpio/gpio.h>
|
2019-02-01 22:43:19 +08:00
|
|
|
#include <dt-bindings/i2c/i2c.h>
|
2019-01-14 23:39:40 +08:00
|
|
|
#include "gpio_gecko.h"
|
2018-02-19 03:43:24 +08:00
|
|
|
|
|
|
|
/ {
|
|
|
|
cpus {
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <0>;
|
|
|
|
|
2019-06-21 20:47:08 +08:00
|
|
|
cpu0: cpu@0 {
|
2018-02-19 03:43:24 +08:00
|
|
|
compatible = "arm,cortex-m0+";
|
|
|
|
reg = <0>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
sram0: memory@20000000 {
|
|
|
|
compatible = "mmio-sram";
|
|
|
|
};
|
|
|
|
|
|
|
|
soc {
|
2018-08-07 20:11:45 +08:00
|
|
|
flash-controller@400c0000 {
|
|
|
|
compatible = "silabs,gecko-flash-controller";
|
|
|
|
label = "FLASH_CTRL";
|
|
|
|
reg = <0x400c0000 0x5c>;
|
|
|
|
interrupts = <15 0>;
|
|
|
|
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <1>;
|
|
|
|
|
|
|
|
flash0: flash@0 {
|
|
|
|
compatible = "soc-nv-flash";
|
|
|
|
label = "FLASH_0";
|
|
|
|
write-block-size = <4>;
|
2019-04-02 16:54:29 +08:00
|
|
|
erase-block-size = <1024>;
|
2018-08-07 20:11:45 +08:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2018-10-17 00:51:01 +08:00
|
|
|
usart0: usart@4000c000 { /* USART0 */
|
|
|
|
compatible = "silabs,gecko-usart";
|
2018-02-19 03:43:24 +08:00
|
|
|
reg = <0x4000c000 0x400>;
|
2018-10-17 00:51:01 +08:00
|
|
|
interrupts = <17 0>, <18 0>;
|
|
|
|
interrupt-names = "rx", "tx";
|
2019-09-20 14:34:57 +08:00
|
|
|
peripheral-id = <0>;
|
2018-02-19 03:43:24 +08:00
|
|
|
status = "disabled";
|
|
|
|
label = "UART_0";
|
|
|
|
};
|
|
|
|
|
2018-10-17 00:51:01 +08:00
|
|
|
usart1: usart@4000c400 { /* USART1 */
|
|
|
|
compatible = "silabs,gecko-usart";
|
2018-02-19 03:43:24 +08:00
|
|
|
reg = <0x4000c400 0x400>;
|
2018-10-17 00:51:01 +08:00
|
|
|
interrupts = <8 0>, <9 0>;
|
|
|
|
interrupt-names = "rx", "tx";
|
2019-09-20 14:34:57 +08:00
|
|
|
peripheral-id = <1>;
|
2018-02-19 03:43:24 +08:00
|
|
|
status = "disabled";
|
|
|
|
label = "UART_1";
|
|
|
|
};
|
|
|
|
|
2019-01-31 22:27:21 +08:00
|
|
|
leuart0: leuart@40084000 { /* LEUART0 */
|
|
|
|
compatible = "silabs,gecko-leuart";
|
|
|
|
reg = <0x40084000 0x400>;
|
|
|
|
interrupts = <10 0>;
|
2019-09-20 14:34:57 +08:00
|
|
|
peripheral-id = <0>;
|
2019-01-31 22:27:21 +08:00
|
|
|
status = "disabled";
|
|
|
|
label = "LEUART_0";
|
|
|
|
};
|
|
|
|
|
2019-02-01 22:43:19 +08:00
|
|
|
i2c0: i2c@4000a000 {
|
|
|
|
compatible = "silabs,gecko-i2c";
|
|
|
|
clock-frequency = <I2C_BITRATE_STANDARD>;
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <0>;
|
|
|
|
reg = <0x4000a000 0x400>;
|
|
|
|
interrupts = <5 0>;
|
|
|
|
label = "I2C_0";
|
|
|
|
status = "disabled";
|
|
|
|
};
|
|
|
|
|
2018-02-19 03:43:24 +08:00
|
|
|
gpio@40006100 {
|
|
|
|
compatible = "silabs,efm32-gpio";
|
|
|
|
reg = <0x40006100 0xf00>;
|
|
|
|
interrupts = <1 0 6 0>;
|
|
|
|
interrupt-names = "GPIO_EVEN", "GPIO_ODD";
|
|
|
|
label = "GPIO";
|
|
|
|
|
|
|
|
ranges;
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <1>;
|
|
|
|
|
|
|
|
gpioa: gpio@40006000 {
|
|
|
|
compatible = "silabs,efm32-gpio-port";
|
|
|
|
reg = <0x40006000 0x24>;
|
|
|
|
label = "GPIO_A";
|
|
|
|
gpio-controller;
|
|
|
|
#gpio-cells = <2>;
|
|
|
|
};
|
|
|
|
|
|
|
|
gpiob: gpio@40006024 {
|
|
|
|
compatible = "silabs,efm32-gpio-port";
|
|
|
|
reg = <0x40006024 0x24>;
|
|
|
|
label = "GPIO_B";
|
|
|
|
gpio-controller;
|
|
|
|
#gpio-cells = <2>;
|
|
|
|
};
|
|
|
|
|
|
|
|
gpioc: gpio@40006048 {
|
|
|
|
compatible = "silabs,efm32-gpio-port";
|
|
|
|
reg = <0x40006048 0x24>;
|
|
|
|
label = "GPIO_C";
|
|
|
|
gpio-controller;
|
|
|
|
#gpio-cells = <2>;
|
|
|
|
};
|
|
|
|
|
|
|
|
gpiod: gpio@4000606c {
|
|
|
|
compatible = "silabs,efm32-gpio-port";
|
|
|
|
reg = <0x4000606c 0x24>;
|
|
|
|
label = "GPIO_D";
|
|
|
|
gpio-controller;
|
|
|
|
#gpio-cells = <2>;
|
|
|
|
};
|
|
|
|
|
|
|
|
gpioe: gpio@40006090 {
|
|
|
|
compatible = "silabs,efm32-gpio-port";
|
|
|
|
reg = <0x40006090 0x24>;
|
|
|
|
label = "GPIO_E";
|
|
|
|
gpio-controller;
|
|
|
|
#gpio-cells = <2>;
|
|
|
|
};
|
|
|
|
|
|
|
|
gpiof: gpio@400060b4 {
|
|
|
|
compatible = "silabs,efm32-gpio-port";
|
|
|
|
reg = <0x400060b4 0x24>;
|
|
|
|
label = "GPIO_F";
|
|
|
|
gpio-controller;
|
|
|
|
#gpio-cells = <2>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
&nvic {
|
|
|
|
arm,num-irq-priority-bits = <2>;
|
|
|
|
};
|