-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathtegra234-antmicro-job.dtsi
More file actions
172 lines (149 loc) · 3.94 KB
/
tegra234-antmicro-job.dtsi
File metadata and controls
172 lines (149 loc) · 3.94 KB
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
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
/*
* Copyright (c) 2022, NVIDIA CORPORATION. All rights reserved.
* Copyright (c) 2023 Antmicro <www.antmicro.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; version 2 of the License.
*
* This program is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
* more details.
*/
#include <dt-bindings/gpio/tegra234-gpio.h>
#include <dt-bindings/input/input.h>
#include <dt-bindings/leds/common.h>
#include "tegra234-antmicro-job-pinmux.dtsi"
#include "tegra234-antmicro-job-fixed-regulators.dtsi"
#include "tegra234-antmicro-job-i2c-buses.dtsi"
#include "tegra234-antmicro-job-gpioex.dtsi"
#include "tegra234-antmicro-job-usb.dtsi"
#include "tegra234-antmicro-job-pcie.dtsi"
/ {
/delete-node/ gpio-keys;
gpio-keys {
compatible = "gpio-keys";
status = "okay";
user_btn0 {
label = "USER_BTN0";
gpios = <&gpio_aon TEGRA234_AON_GPIO(CC, 2) GPIO_ACTIVE_LOW>;
linux,code = <BTN_0>;
};
user_btn1 {
label = "USER_BTN1";
gpios = <&gpio_aon TEGRA234_AON_GPIO(CC, 3) GPIO_ACTIVE_LOW>;
linux,code = <BTN_1>;
};
forcerecovery {
label = "FORCE_RECOVERY";
gpios = <&gpio TEGRA234_MAIN_GPIO(G, 0) GPIO_ACTIVE_LOW>;
linux,code = <BTN_2>;
};
};
gpio-leds {
compatible = "gpio-leds";
status = "okay";
user_led0 {
label = "USER_LED0";
gpios = <&gpio_aon TEGRA234_AON_GPIO(CC, 0) GPIO_ACTIVE_HIGH>;
color = <LED_COLOR_ID_GREEN>;
function = LED_FUNCTION_INDICATOR;
linux,default-trigger = "activity";
};
user_led1 {
label = "USER_LED1";
gpios = <&gpio_aon TEGRA234_AON_GPIO(CC, 1) GPIO_ACTIVE_HIGH>;
color = <LED_COLOR_ID_GREEN>;
function = LED_FUNCTION_INDICATOR;
};
};
bus@0 {
spi@3210000{ /* SPI1 in 40 pin conn */
status = "okay";
spi@0 { /* chip select 0 */
compatible = "tegra-spidev";
reg = <0x0>;
spi-max-frequency = <50000000>;
controller-data {
nvidia,enable-hw-based-cs;
nvidia,rx-clk-tap-delay = <0x10>;
nvidia,tx-clk-tap-delay = <0x0>;
};
};
spi@1 { /* chip select 1 */
compatible = "tegra-spidev";
reg = <0x1>;
spi-max-frequency = <50000000>;
controller-data {
nvidia,enable-hw-based-cs;
nvidia,rx-clk-tap-delay = <0x10>;
nvidia,tx-clk-tap-delay = <0x0>;
};
};
};
spi@3230000{ /* SPI3 in 40 pin conn */
status = "okay";
spi@0 { /* chip select 0 */
compatible = "tegra-spidev";
reg = <0x0>;
spi-max-frequency = <50000000>;
controller-data {
nvidia,enable-hw-based-cs;
nvidia,rx-clk-tap-delay = <0x10>;
nvidia,tx-clk-tap-delay = <0x0>;
};
};
spi@1 { /* chips select 1 */
compatible = "tegra-spidev";
reg = <0x1>;
spi-max-frequency = <50000000>;
controller-data {
nvidia,enable-hw-based-cs;
nvidia,rx-clk-tap-delay = <0x10>;
nvidia,tx-clk-tap-delay = <0x0>;
};
};
};
serial@3100000 {/* UARTA, for 40 pin header */
status = "okay";
};
mttcan@c310000 {
status = "okay";
};
serial@3140000 {
/* UARTE, Goes to M2.E and also some of the pins to bootstrap */
status = "okay";
};
serial@31d0000 {/* UARTI - SBSA */
status = "okay";
};
tachometer@39c0000 {
status = "okay";
upper-threshold = <0xfffff>;
lower-threshold = <0x0>;
};
pwm@3280000 {/* PWM1 40pin header, pin 15 */
status = "okay";
};
pwm@32a0000 {/* PWM3 - FAN */
status = "okay";
};
pwm@c340000 { /* PWM4 - OVR */
status = "disabled";
};
pwm@32c0000 {/* PWM5 40 pin header, pin 33 */
status = "okay";
};
pwm@32d0000 {/* PWM6 OVR */
status = "disabled";
};
bluedroid_pm {
status = "disabled";
};
};
display@13800000 {
status = "okay";
os_gpio_hotplug_a = <&gpio TEGRA234_MAIN_GPIO(M, 0) GPIO_ACTIVE_HIGH>;
};
};