forked from zephyrproject-rtos/zephyr
-
Notifications
You must be signed in to change notification settings - Fork 0
/
faze.dts
155 lines (134 loc) · 2.69 KB
/
faze.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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
/*
* Copyright (c) 2020 Seagate Technology LLC
*
* SPDX-License-Identifier: Apache-2.0
*/
/dts-v1/;
#include <nxp/nxp_lpc11u67.dtsi>
#include <zephyr/dt-bindings/led/led.h>
#include "faze-pinctrl.dtsi"
/ {
model = "Seagate FireCuda Gaming SSD (FaZe)";
compatible = "faze", "seagate,faze";
chosen {
zephyr,sram = &sram0;
zephyr,flash = &flash0;
zephyr,console = &uart0;
zephyr,shell-uart = &uart0;
};
/* These aliases are provided for compatibility with samples. */
aliases {
led0 = &sata_led;
sw0 = &usb_sleep_button;
eeprom-0 = &eeprom0;
led-controller-0 = &led_controller_0;
};
gpio_keys {
compatible = "gpio-keys";
/* Handle the USB_SLEEP GPIO as a button. */
usb_sleep_button: button_0 {
gpios = <&gpio0 20 GPIO_ACTIVE_HIGH>;
label = "USB sleep button";
};
};
leds {
compatible = "gpio-leds";
sata_led: led_0 {
gpios = <&gpio1 23 GPIO_ACTIVE_LOW>;
label = "SSD activity LED";
};
};
};
&uart0 {
pinctrl-0 = <&uart0_default>;
pinctrl-names = "default";
current-speed = <115200>;
status = "okay";
};
&i2c0 {
pinctrl-0 = <&i2c0_default>;
pinctrl-1 = <&i2c0_fast>;
pinctrl-names = "default", "fast-plus";
status = "okay";
asm2364: asm2364@30 {
compatible = "asmedia,asm2364";
int-gpios = <&gpio0 2 0>;
reg = <0x30>;
};
};
&i2c1 {
pinctrl-0 = <&i2c1_default>;
pinctrl-1 = <&i2c1_fast>;
pinctrl-names = "default", "fast-plus";
status = "okay";
/* TI LP5030 LED controller connected to I2C1. */
led_controller_0: lp5030@30 {
compatible = "ti,lp5030", "ti,lp503x";
reg = <0x30>;
label = "LP5030";
led0: led_0 {
label = "LED LP5030 0";
index = <0>;
color-mapping =
<LED_COLOR_ID_RED>,
<LED_COLOR_ID_GREEN>,
<LED_COLOR_ID_BLUE>;
};
led1: led_1 {
label = "LED LP5030 1";
index = <1>;
color-mapping =
<LED_COLOR_ID_RED>,
<LED_COLOR_ID_GREEN>,
<LED_COLOR_ID_BLUE>;
};
led2: led_2 {
label = "LED LP5030 2";
index = <2>;
color-mapping =
<LED_COLOR_ID_RED>,
<LED_COLOR_ID_GREEN>,
<LED_COLOR_ID_BLUE>;
};
led3: led_3 {
label = "LED LP5030 3";
index = <3>;
color-mapping =
<LED_COLOR_ID_RED>,
<LED_COLOR_ID_GREEN>,
<LED_COLOR_ID_BLUE>;
};
led4: led_4 {
label = "LED LP5030 4";
index = <4>;
color-mapping =
<LED_COLOR_ID_RED>,
<LED_COLOR_ID_GREEN>,
<LED_COLOR_ID_BLUE>;
};
led5: led_5 {
label = "LED LP5030 5";
index = <5>;
color-mapping =
<LED_COLOR_ID_RED>,
<LED_COLOR_ID_GREEN>,
<LED_COLOR_ID_BLUE>;
};
};
};
&syscon {
pinctrl-0 = <&syscon_default>;
pinctrl-names = "default";
};
&cpu0 {
clock-frequency = <48000000>;
};
&gpio0 {
status = "okay";
};
&gpio1 {
status = "okay";
};
&gpio2 {
status = "okay";
};