2018-03-27 18:17:40 +08:00
|
|
|
#include <arm/armv7-m.dtsi>
|
2018-10-05 07:29:47 +08:00
|
|
|
#include <dt-bindings/gpio/gpio.h>
|
2018-03-27 18:17:40 +08:00
|
|
|
|
|
|
|
/ {
|
|
|
|
cpus {
|
2018-09-19 03:51:26 +08:00
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <0>;
|
|
|
|
|
2018-03-27 18:17:40 +08:00
|
|
|
cpu@0 {
|
|
|
|
compatible = "arm,cortex-m4f";
|
2018-09-18 20:50:37 +08:00
|
|
|
reg = <0>;
|
2018-03-27 18:17:40 +08:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2018-09-18 20:59:03 +08:00
|
|
|
flash0: flash@0 {
|
2018-03-27 18:17:40 +08:00
|
|
|
compatible = "soc-nv-flash";
|
|
|
|
label = "FLASH_0";
|
|
|
|
};
|
|
|
|
|
2018-09-18 20:59:03 +08:00
|
|
|
sram0: memory@20000000 {
|
|
|
|
device_type = "memory";
|
|
|
|
compatible = "mmio-sram";
|
|
|
|
};
|
|
|
|
|
2018-03-27 18:17:40 +08:00
|
|
|
soc {
|
|
|
|
uart0: uart@40010000 { /* USART0 */
|
|
|
|
compatible = "silabs,efm32-usart";
|
|
|
|
reg = <0x40010000 0x400>;
|
|
|
|
interrupts = <11 0 12 0>;
|
|
|
|
status = "disabled";
|
|
|
|
label = "UART_0";
|
|
|
|
};
|
|
|
|
|
|
|
|
uart1: uart@40010400 { /* USART1 */
|
|
|
|
compatible = "silabs,efm32-usart";
|
|
|
|
reg = <0x40010400 0x400>;
|
|
|
|
interrupts = <19 0 20 0>;
|
|
|
|
status = "disabled";
|
|
|
|
label = "UART_1";
|
|
|
|
};
|
2018-10-05 07:29:47 +08:00
|
|
|
|
|
|
|
gpio@4000a400 {
|
|
|
|
compatible = "silabs,efr32xg1-gpio";
|
|
|
|
reg = <0x4000a400 0xc00>;
|
|
|
|
interrupts = <9 2 17 2>;
|
|
|
|
interrupt-names = "GPIO_EVEN", "GPIO_ODD";
|
|
|
|
label = "GPIO";
|
|
|
|
|
|
|
|
ranges;
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <1>;
|
|
|
|
|
|
|
|
gpioa: gpio@4000a000 {
|
|
|
|
compatible = "silabs,efr32xg1-gpio-port";
|
|
|
|
reg = <0x4000a000 0x30>;
|
|
|
|
label = "GPIO_A";
|
|
|
|
gpio-controller;
|
|
|
|
#gpio-cells = <2>;
|
|
|
|
};
|
|
|
|
|
|
|
|
gpiob: gpio@4000a030 {
|
|
|
|
compatible = "silabs,efr32xg1-gpio-port";
|
|
|
|
reg = <0x4000a030 0x30>;
|
|
|
|
label = "GPIO_B";
|
|
|
|
gpio-controller;
|
|
|
|
#gpio-cells = <2>;
|
|
|
|
};
|
|
|
|
|
|
|
|
gpioc: gpio@4000a060 {
|
|
|
|
compatible = "silabs,efr32xg1-gpio-port";
|
|
|
|
reg = <0x4000a060 0x30>;
|
|
|
|
label = "GPIO_C";
|
|
|
|
gpio-controller;
|
|
|
|
#gpio-cells = <2>;
|
|
|
|
};
|
|
|
|
|
|
|
|
gpiod: gpio@4000a090 {
|
|
|
|
compatible = "silabs,efr32xg1-gpio-port";
|
|
|
|
reg = <0x4000a090 0x30>;
|
|
|
|
label = "GPIO_D";
|
|
|
|
gpio-controller;
|
|
|
|
#gpio-cells = <2>;
|
|
|
|
};
|
|
|
|
|
|
|
|
gpioe: gpio@4000a0c0 {
|
|
|
|
compatible = "silabs,efr32xg1-gpio-port";
|
|
|
|
reg = <0x4000a0c0 0x30>;
|
|
|
|
label = "GPIO_E";
|
|
|
|
gpio-controller;
|
|
|
|
#gpio-cells = <2>;
|
|
|
|
};
|
|
|
|
|
|
|
|
gpiof: gpio@4000a0f0 {
|
|
|
|
compatible = "silabs,efr32xg1-gpio-port";
|
|
|
|
reg = <0x4000af0 0x30>;
|
|
|
|
label = "GPIO_F";
|
|
|
|
gpio-controller;
|
|
|
|
#gpio-cells = <2>;
|
|
|
|
};
|
|
|
|
};
|
2018-03-27 18:17:40 +08:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
&nvic {
|
|
|
|
arm,num-irq-priority-bits = <3>;
|
|
|
|
};
|