/
hifive1.dts
91 lines (75 loc) · 1.25 KB
/
hifive1.dts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
/* SPDX-License-Identifier: Apache-2.0 */
/dts-v1/;
#include <riscv32-fe310.dtsi>
/ {
model = "SiFive HiFive 1";
compatible = "sifive,hifive1";
aliases {
led0 = &led0;
led1 = &led1;
led2 = &led2;
};
chosen {
zephyr,console = &uart0;
zephyr,shell-uart = &uart0;
zephyr,flash = &flash0;
};
leds {
compatible = "pwm-leds";
led0: led_0 {
pwms = <&pwm1 1 0>;
label = "Green LED";
};
led1: led_1 {
pwms = <&pwm1 2 0>;
label = "Blue LED";
};
led2: led_2 {
pwms = <&pwm1 3 0>;
label = "Red LED";
};
};
};
&gpio0 {
status = "ok";
};
&uart0 {
status = "ok";
current-speed = <115200>;
clock-frequency = <16000000>;
};
&uart1 {
clock-frequency = <16000000>;
};
&spi0 {
status = "ok";
clock-frequency = <16000000>;
#address-cells = <1>;
#size-cells = <0>;
reg = <0x10014000 0x1000 0x20400000 0xc00000>;
flash0: flash@0 {
compatible = "issi,is25lp128", "jedec,spi-nor";
jedec-id = <0x96 0x60 0x18>;
reg = <0>;
};
};
&spi1 {
status = "ok";
clock-frequency = <16000000>;
};
&spi2 {
status = "ok";
clock-frequency = <16000000>;
};
&pwm0 {
status = "ok";
clock-frequency = <16000000>;
};
&pwm1 {
status = "ok";
clock-frequency = <16000000>;
};
&pwm2 {
status = "ok";
clock-frequency = <16000000>;
};