2017-04-04 05:35:53 +08:00
|
|
|
#include <arm/armv7-m.dtsi>
|
2017-02-05 11:50:45 +08:00
|
|
|
#include <inc/hw_ints.h>
|
2017-04-19 05:18:50 +08:00
|
|
|
#include <ti/mem.h>
|
2017-02-05 11:50:45 +08:00
|
|
|
|
2017-04-19 05:18:50 +08:00
|
|
|
/* Note: Zephyr uses exception numbers, vs the IRQ #s used by the CC32XX SDK */
|
2017-02-05 11:50:45 +08:00
|
|
|
/* which are offset by 16: */
|
|
|
|
#define EXP_UARTA0 (INT_UARTA0 - 16)
|
|
|
|
#define EXP_UARTA1 (INT_UARTA1 - 16)
|
|
|
|
|
|
|
|
/ {
|
|
|
|
cpus {
|
2017-07-16 02:57:32 +08:00
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <0>;
|
|
|
|
|
2017-02-05 11:50:45 +08:00
|
|
|
cpu@0 {
|
2017-07-16 02:57:32 +08:00
|
|
|
device_type = "cpu";
|
2017-02-05 11:50:45 +08:00
|
|
|
compatible = "arm,cortex-m4";
|
2017-07-16 02:57:32 +08:00
|
|
|
reg = <0>;
|
2017-02-05 11:50:45 +08:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2017-07-21 20:43:01 +08:00
|
|
|
sram0: memory@20004000 {
|
2017-07-21 23:57:58 +08:00
|
|
|
device_type = "memory";
|
2017-07-20 20:59:29 +08:00
|
|
|
compatible = "mmio-sram";
|
2017-04-19 05:18:50 +08:00
|
|
|
reg = <DT_SRAM_START DT_SRAM_SIZE>;
|
2017-02-05 11:50:45 +08:00
|
|
|
};
|
|
|
|
|
2017-07-21 20:43:01 +08:00
|
|
|
flash0: serial-flash@0 {
|
2017-02-05 11:50:45 +08:00
|
|
|
compatible = "serial-flash";
|
2017-04-19 05:18:50 +08:00
|
|
|
reg = <0x0 DT_SFLASH_SIZE>;
|
2017-02-05 11:50:45 +08:00
|
|
|
};
|
|
|
|
|
2017-04-27 04:43:03 +08:00
|
|
|
#if defined(CONFIG_SOC_CC3220SF)
|
2017-07-21 20:43:01 +08:00
|
|
|
flash1: flash@1000000 {
|
2017-04-19 05:43:44 +08:00
|
|
|
reg = <0x01000000 DT_FLASH_SIZE>;
|
|
|
|
};
|
2017-04-27 04:43:03 +08:00
|
|
|
#endif
|
2017-04-19 05:43:44 +08:00
|
|
|
|
2017-02-05 11:50:45 +08:00
|
|
|
soc {
|
2017-04-13 06:18:44 +08:00
|
|
|
uart0: uart@4000C000 {
|
2017-02-05 11:50:45 +08:00
|
|
|
compatible = "ti,cc32xx-uart";
|
2017-04-13 06:18:44 +08:00
|
|
|
reg = <0x4000C000 0x4c>;
|
2017-03-24 02:41:32 +08:00
|
|
|
interrupts = <EXP_UARTA0 3>;
|
2017-02-05 11:50:45 +08:00
|
|
|
status = "disabled";
|
2017-05-17 10:07:38 +08:00
|
|
|
label = "UART_0";
|
2017-02-05 11:50:45 +08:00
|
|
|
};
|
|
|
|
|
2017-04-13 06:18:44 +08:00
|
|
|
uart1: uart@4000D000 {
|
2017-02-05 11:50:45 +08:00
|
|
|
compatible = "ti,cc32xx-uart";
|
2017-04-13 06:18:44 +08:00
|
|
|
reg = <0x4000D000 0x4c>;
|
2017-03-24 02:41:32 +08:00
|
|
|
interrupts = <EXP_UARTA1 3>;
|
2017-02-05 11:50:45 +08:00
|
|
|
status = "disabled";
|
2017-05-17 10:07:38 +08:00
|
|
|
label = "UART_1";
|
2017-02-05 11:50:45 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
&nvic {
|
2017-03-28 01:13:40 +08:00
|
|
|
arm,num-irq-priority-bits = <3>;
|
2017-02-05 11:50:45 +08:00
|
|
|
};
|