2017-04-04 02:38:40 +08:00
|
|
|
#include "armv6-m.dtsi"
|
2017-08-11 00:25:49 +08:00
|
|
|
#include <dt-bindings/i2c/i2c.h>
|
2017-04-04 02:38:40 +08:00
|
|
|
|
|
|
|
/ {
|
|
|
|
cpus {
|
2017-07-16 02:57:32 +08:00
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <0>;
|
|
|
|
|
2017-04-04 02:38:40 +08:00
|
|
|
cpu@0 {
|
2017-07-16 02:57:32 +08:00
|
|
|
device_type = "cpu";
|
2017-04-04 02:38:40 +08:00
|
|
|
compatible = "arm,cortex-m0+";
|
2017-07-16 02:57:32 +08:00
|
|
|
reg = <0>;
|
2017-04-04 02:38:40 +08:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2017-07-21 20:43:01 +08:00
|
|
|
sram0: memory@1FFFF000 {
|
2017-07-21 23:57:58 +08:00
|
|
|
device_type = "memory";
|
2017-04-04 02:38:40 +08:00
|
|
|
compatible = "mmio-sram";
|
|
|
|
reg = <0x1FFFF000 0x4000>;
|
|
|
|
};
|
|
|
|
|
|
|
|
soc {
|
|
|
|
flash0: flash@0 {
|
|
|
|
reg = <0 0x20000>;
|
|
|
|
};
|
|
|
|
|
2017-07-11 23:38:09 +08:00
|
|
|
i2c0: i2c@40066000 {
|
|
|
|
compatible = "nxp,kinetis-i2c";
|
2017-08-11 00:25:49 +08:00
|
|
|
clock-frequency = <I2C_BITRATE_STANDARD>;
|
2017-07-11 23:38:09 +08:00
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <0>;
|
|
|
|
reg = <0x40066000 0x1000>;
|
|
|
|
interrupts = <8 0>;
|
|
|
|
label = "I2C_0";
|
|
|
|
status = "disabled";
|
|
|
|
};
|
|
|
|
|
|
|
|
i2c1: i2c@40067000 {
|
|
|
|
compatible = "nxp,kinetis-i2c";
|
2017-08-11 00:25:49 +08:00
|
|
|
clock-frequency = <I2C_BITRATE_STANDARD>;
|
2017-07-11 23:38:09 +08:00
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <0>;
|
|
|
|
reg = <0x40067000 0x1000>;
|
|
|
|
interrupts = <9 0>;
|
|
|
|
label = "I2C_1";
|
|
|
|
status = "disabled";
|
|
|
|
};
|
|
|
|
|
2017-04-04 02:38:40 +08:00
|
|
|
uart0: uart@4006A000 {
|
|
|
|
compatible = "nxp,kinetis-lpsci";
|
|
|
|
reg = <0x4006A000 0xc>;
|
|
|
|
interrupts = <12 0>;
|
2017-05-17 05:36:51 +08:00
|
|
|
label = "UART_0";
|
2017-04-04 02:38:40 +08:00
|
|
|
|
|
|
|
status = "disabled";
|
|
|
|
};
|
2017-07-12 09:49:08 +08:00
|
|
|
|
|
|
|
adc0: adc@4003b000{
|
|
|
|
compatible = "nxp,kinetis-adc16";
|
|
|
|
reg = <0x4003b000 0x70>;
|
|
|
|
interrupts = <15 0>;
|
|
|
|
label = "ADC_0";
|
|
|
|
status = "disabled";
|
|
|
|
};
|
2017-04-04 02:38:40 +08:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
&nvic {
|
|
|
|
arm,num-irq-priority-bits = <2>;
|
|
|
|
};
|