2019-04-06 15:08:09 +02:00
|
|
|
/* SPDX-License-Identifier: Apache-2.0 */
|
|
|
|
|
2017-05-08 18:13:53 +02:00
|
|
|
/dts-v1/;
|
|
|
|
|
|
|
|
#include <arm/armv7-m.dtsi>
|
2018-03-09 22:06:53 +01:00
|
|
|
#include <dt-bindings/i2c/i2c.h>
|
2017-05-08 18:13:53 +02:00
|
|
|
|
|
|
|
/ {
|
|
|
|
compatible = "arm,mps2";
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <1>;
|
|
|
|
|
2019-10-22 21:24:32 +02:00
|
|
|
aliases {
|
|
|
|
led0 = &led_0;
|
|
|
|
led1 = &led_1;
|
|
|
|
sw0 = &user_button_0;
|
|
|
|
sw1 = &user_button_1;
|
2019-11-04 18:27:22 +01:00
|
|
|
watchdog0 = &wdog0;
|
2019-10-22 21:24:32 +02:00
|
|
|
};
|
|
|
|
|
2017-05-08 18:13:53 +02:00
|
|
|
chosen {
|
|
|
|
zephyr,console = &uart0;
|
2018-11-27 12:11:04 +01:00
|
|
|
zephyr,shell-uart = &uart0;
|
2019-01-03 19:32:15 +01:00
|
|
|
zephyr,uart-pipe = &uart1;
|
2017-05-08 18:13:53 +02:00
|
|
|
zephyr,sram = &sram0;
|
|
|
|
zephyr,flash = &flash0;
|
|
|
|
};
|
|
|
|
|
2019-10-22 21:24:32 +02:00
|
|
|
leds {
|
|
|
|
compatible = "gpio-leds";
|
|
|
|
led_0: led_0 {
|
|
|
|
gpios = <&gpio_led0 0>;
|
|
|
|
label = "USERLED0";
|
|
|
|
};
|
|
|
|
led_1: led_1 {
|
|
|
|
gpios = <&gpio_led0 1>;
|
|
|
|
label = "USERLED1";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
gpio_keys {
|
|
|
|
compatible = "gpio-keys";
|
|
|
|
user_button_0: button_0 {
|
|
|
|
label = "USERPB0";
|
|
|
|
gpios = <&gpio_button 0>;
|
|
|
|
};
|
|
|
|
user_button_1: button_1 {
|
|
|
|
label = "USERPB1";
|
|
|
|
gpios = <&gpio_button 1>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2017-05-08 18:13:53 +02:00
|
|
|
cpus {
|
2018-09-18 21:51:26 +02:00
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <0>;
|
|
|
|
|
2017-05-08 18:13:53 +02:00
|
|
|
cpu@0 {
|
|
|
|
compatible = "arm,cortex-m3";
|
2018-09-18 14:50:37 +02:00
|
|
|
reg = <0>;
|
2017-05-08 18:13:53 +02:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2018-09-18 14:59:03 +02:00
|
|
|
sram0: memory@20000000 {
|
2017-07-20 14:59:29 +02:00
|
|
|
compatible = "mmio-sram";
|
2017-05-08 18:13:53 +02:00
|
|
|
reg = <0x20000000 0x400000>;
|
|
|
|
};
|
|
|
|
|
2018-09-18 14:59:03 +02:00
|
|
|
flash0: flash@0 {
|
2018-09-21 01:39:55 +02:00
|
|
|
compatible = "soc-nv-flash";
|
2017-05-08 18:13:53 +02:00
|
|
|
reg = <0 0x400000>;
|
|
|
|
};
|
|
|
|
|
2019-06-21 14:49:23 +02:00
|
|
|
sysclk: system-clock {
|
|
|
|
compatible = "fixed-clock";
|
|
|
|
clock-frequency = <25000000>;
|
|
|
|
#clock-cells = <0>;
|
|
|
|
};
|
|
|
|
|
2017-05-08 18:13:53 +02:00
|
|
|
soc {
|
2017-05-11 15:05:54 +02:00
|
|
|
timer0: timer@40000000 {
|
|
|
|
compatible = "arm,cmsdk-timer";
|
|
|
|
reg = <0x40000000 0x1000>;
|
2018-03-09 22:21:51 +01:00
|
|
|
interrupts = <8 3>;
|
2019-01-31 19:28:17 +01:00
|
|
|
label = "TIMER_0";
|
2017-05-11 15:05:54 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
timer1: timer@40001000 {
|
|
|
|
compatible = "arm,cmsdk-timer";
|
|
|
|
reg = <0x40001000 0x1000>;
|
2018-03-09 22:21:51 +01:00
|
|
|
interrupts = <9 3>;
|
2019-01-31 19:28:17 +01:00
|
|
|
label = "TIMER_1";
|
2017-05-11 15:05:54 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
dtimer0: dtimer@40002000 {
|
|
|
|
compatible = "arm,cmsdk-dtimer";
|
2018-09-18 10:23:25 +02:00
|
|
|
reg = <0x40002000 0x1000>;
|
2018-03-09 22:21:51 +01:00
|
|
|
interrupts = <10 3>;
|
2019-01-31 19:28:17 +01:00
|
|
|
label = "DTIMER_0";
|
2017-05-11 15:05:54 +02:00
|
|
|
};
|
|
|
|
|
2017-05-08 18:13:53 +02:00
|
|
|
uart0: uart@40004000 {
|
|
|
|
compatible = "arm,cmsdk-uart";
|
2017-05-11 15:05:54 +02:00
|
|
|
reg = <0x40004000 0x1000>;
|
2018-03-09 22:21:51 +01:00
|
|
|
interrupts = <1 3 0 3>;
|
|
|
|
interrupt-names = "tx", "rx";
|
2019-06-21 14:49:23 +02:00
|
|
|
clocks = <&sysclk>;
|
2017-05-08 18:13:53 +02:00
|
|
|
current-speed = <115200>;
|
2017-05-17 04:04:29 +02:00
|
|
|
label = "UART_0";
|
2017-05-08 18:13:53 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
uart1: uart@40005000 {
|
|
|
|
compatible = "arm,cmsdk-uart";
|
2017-05-11 15:05:54 +02:00
|
|
|
reg = <0x40005000 0x1000>;
|
2018-03-09 22:21:51 +01:00
|
|
|
interrupts = <3 3 2 3>;
|
|
|
|
interrupt-names = "tx", "rx";
|
2019-06-21 14:49:23 +02:00
|
|
|
clocks = <&sysclk>;
|
2017-05-08 18:13:53 +02:00
|
|
|
current-speed = <115200>;
|
2017-05-17 04:04:29 +02:00
|
|
|
label = "UART_1";
|
2017-05-08 18:13:53 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
uart2: uart@40006000 {
|
|
|
|
compatible = "arm,cmsdk-uart";
|
2017-05-11 15:05:54 +02:00
|
|
|
reg = <0x40006000 0x1000>;
|
2018-03-09 22:21:51 +01:00
|
|
|
interrupts = <5 3 4 3>;
|
|
|
|
interrupt-names = "tx", "rx";
|
2019-06-21 14:49:23 +02:00
|
|
|
clocks = <&sysclk>;
|
2017-05-08 18:13:53 +02:00
|
|
|
current-speed = <115200>;
|
2017-05-17 04:04:29 +02:00
|
|
|
label = "UART_2";
|
2017-05-08 18:13:53 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
uart3: uart@40007000 {
|
|
|
|
compatible = "arm,cmsdk-uart";
|
2017-05-11 15:05:54 +02:00
|
|
|
reg = <0x40007000 0x1000>;
|
2018-03-09 22:21:51 +01:00
|
|
|
interrupts = <19 3 18 3>;
|
|
|
|
interrupt-names = "tx", "rx";
|
2019-06-21 14:49:23 +02:00
|
|
|
clocks = <&sysclk>;
|
2017-05-08 18:13:53 +02:00
|
|
|
current-speed = <115200>;
|
2017-05-17 04:04:29 +02:00
|
|
|
label = "UART_3";
|
2017-05-08 18:13:53 +02:00
|
|
|
};
|
|
|
|
|
2017-05-11 15:05:54 +02:00
|
|
|
wdog0: wdog@40008000 {
|
|
|
|
compatible = "arm,cmsdk-watchdog";
|
2019-06-21 14:49:23 +02:00
|
|
|
clocks = <&sysclk>;
|
2017-05-11 15:05:54 +02:00
|
|
|
reg = <0x40008000 0x1000>;
|
2019-11-04 18:27:22 +01:00
|
|
|
label = "WATCHDOG";
|
2017-05-11 15:05:54 +02:00
|
|
|
};
|
|
|
|
|
2017-05-08 18:13:53 +02:00
|
|
|
uart4: uart@40009000 {
|
|
|
|
compatible = "arm,cmsdk-uart";
|
2017-05-11 15:05:54 +02:00
|
|
|
reg = <0x40009000 0x1000>;
|
2018-03-09 22:21:51 +01:00
|
|
|
interrupts = <21 3 20 3>;
|
|
|
|
interrupt-names = "tx", "rx";
|
2019-06-21 14:49:23 +02:00
|
|
|
clocks = <&sysclk>;
|
2017-05-08 18:13:53 +02:00
|
|
|
current-speed = <115200>;
|
2017-05-17 04:04:29 +02:00
|
|
|
label = "UART_4";
|
2017-05-08 18:13:53 +02:00
|
|
|
};
|
2017-05-11 15:05:54 +02:00
|
|
|
|
|
|
|
gpio0: gpio@40010000 {
|
|
|
|
compatible = "arm,cmsdk-gpio";
|
|
|
|
reg = <0x40010000 0x1000>;
|
2018-03-09 22:21:51 +01:00
|
|
|
interrupts = <6 3>;
|
2019-08-09 16:41:58 +02:00
|
|
|
gpio-controller;
|
|
|
|
#gpio-cells = <2>;
|
2020-04-01 03:25:43 +02:00
|
|
|
label = "GPIO_0";
|
2017-05-11 15:05:54 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
gpio1: gpio@40011000 {
|
|
|
|
compatible = "arm,cmsdk-gpio";
|
|
|
|
reg = <0x40011000 0x1000>;
|
2018-03-09 22:21:51 +01:00
|
|
|
interrupts = <7 3>;
|
2019-08-09 16:41:58 +02:00
|
|
|
gpio-controller;
|
|
|
|
#gpio-cells = <2>;
|
2020-04-01 03:25:43 +02:00
|
|
|
label = "GPIO_1";
|
2017-05-11 15:05:54 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
gpio2: gpio@40012000 {
|
|
|
|
compatible = "arm,cmsdk-gpio";
|
|
|
|
reg = <0x40012000 0x1000>;
|
2018-03-09 22:21:51 +01:00
|
|
|
interrupts = <16 3>;
|
2019-08-09 16:41:58 +02:00
|
|
|
gpio-controller;
|
|
|
|
#gpio-cells = <2>;
|
2020-04-01 03:25:43 +02:00
|
|
|
label = "GPIO_2";
|
2017-05-11 15:05:54 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
gpio3: gpio@40013000 {
|
|
|
|
compatible = "arm,cmsdk-gpio";
|
|
|
|
reg = <0x40013000 0x1000>;
|
2018-03-09 22:21:51 +01:00
|
|
|
interrupts = <17 3>;
|
2019-08-09 16:41:58 +02:00
|
|
|
gpio-controller;
|
|
|
|
#gpio-cells = <2>;
|
2020-04-01 03:25:43 +02:00
|
|
|
label = "GPIO_3";
|
2017-05-11 15:05:54 +02:00
|
|
|
};
|
2018-03-09 22:06:53 +01:00
|
|
|
|
2019-01-24 22:10:18 +01:00
|
|
|
eth0: eth@40200000 {
|
2018-09-20 19:32:20 +02:00
|
|
|
/* Linux has "smsc,lan9115" */
|
|
|
|
compatible = "smsc,lan9220";
|
|
|
|
/* Such a big size from memory map in AN385 */
|
|
|
|
/* Actual reg range is ~0x200 */
|
|
|
|
reg = <0x40200000 0x100000>;
|
|
|
|
label = "eth0";
|
|
|
|
interrupts = <13 3>;
|
|
|
|
};
|
|
|
|
|
2018-03-09 22:06:53 +01:00
|
|
|
i2c_touch: i2c@40022000 {
|
|
|
|
compatible = "arm,versatile-i2c";
|
|
|
|
clock-frequency = <I2C_BITRATE_STANDARD>;
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <0>;
|
|
|
|
reg = <0x40022000 0x1000>;
|
|
|
|
label = "I2C_TOUCH";
|
|
|
|
};
|
|
|
|
|
|
|
|
i2c_audio_conf: i2c@40023000 {
|
|
|
|
compatible = "arm,versatile-i2c";
|
|
|
|
clock-frequency = <I2C_BITRATE_STANDARD>;
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <0>;
|
|
|
|
reg = <0x40023000 0x1000>;
|
|
|
|
label = "I2C_AUDIO_CONF";
|
|
|
|
};
|
|
|
|
|
|
|
|
i2c_shield0: i2c@40029000 {
|
|
|
|
compatible = "arm,versatile-i2c";
|
|
|
|
clock-frequency = <I2C_BITRATE_STANDARD>;
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <0>;
|
|
|
|
reg = <0x40029000 0x1000>;
|
|
|
|
label = "I2C_SHIELD0";
|
|
|
|
};
|
|
|
|
|
|
|
|
i2c_shield1: i2c@4002a000 {
|
|
|
|
compatible = "arm,versatile-i2c";
|
|
|
|
clock-frequency = <I2C_BITRATE_STANDARD>;
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <0>;
|
|
|
|
reg = <0x4002a000 0x1000>;
|
|
|
|
label = "I2C_SHIELD1";
|
|
|
|
};
|
2019-10-22 21:01:03 +02:00
|
|
|
|
|
|
|
gpio_led0: mps2_fpgaio@40028000 {
|
|
|
|
compatible = "arm,mps2-fpgaio-gpio";
|
|
|
|
|
|
|
|
reg = <0x40028000 0x4>;
|
|
|
|
gpio-controller;
|
|
|
|
#gpio-cells = <1>;
|
|
|
|
ngpios = <2>;
|
|
|
|
label = "FPGA_LED0";
|
|
|
|
};
|
|
|
|
|
|
|
|
gpio_button: mps2_fpgaio@40028008 {
|
|
|
|
compatible = "arm,mps2-fpgaio-gpio";
|
|
|
|
|
|
|
|
reg = <0x40028008 0x4>;
|
|
|
|
gpio-controller;
|
|
|
|
#gpio-cells = <1>;
|
|
|
|
ngpios = <2>;
|
|
|
|
label = "FPGA_BUTTON";
|
|
|
|
};
|
|
|
|
|
|
|
|
gpio_misc: mps2_fpgaio@4002804c {
|
|
|
|
compatible = "arm,mps2-fpgaio-gpio";
|
|
|
|
|
|
|
|
reg = <0x4002804c 0x4>;
|
|
|
|
gpio-controller;
|
|
|
|
#gpio-cells = <1>;
|
|
|
|
ngpios = <10>;
|
|
|
|
label = "FPGA_MISC";
|
|
|
|
};
|
|
|
|
|
2017-05-08 18:13:53 +02:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
&nvic {
|
|
|
|
arm,num-irq-priority-bits = <3>;
|
|
|
|
};
|