| 1 |
// SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) |
| 2 |
/* |
| 3 |
* Tesla FSD board device tree source |
| 4 |
* |
| 5 |
* Copyright (c) 2017-2021 Samsung Electronics Co., Ltd. |
| 6 |
* https://www.samsung.com |
| 7 |
* Copyright (c) 2017-2021 Tesla, Inc. |
| 8 |
* https://www.tesla.com |
| 9 |
*/ |
| 10 |
|
| 11 |
/dts-v1/; |
| 12 |
#include "fsd.dtsi" |
| 13 |
#include <dt-bindings/gpio/gpio.h> |
| 14 |
|
| 15 |
/ { |
| 16 |
model = "Tesla Full Self-Driving (FSD) Evaluation board"; |
| 17 |
compatible = "tesla,fsd-evb", "tesla,fsd"; |
| 18 |
|
| 19 |
aliases { |
| 20 |
serial0 = &serial_0; |
| 21 |
serial1 = &serial_1; |
| 22 |
}; |
| 23 |
|
| 24 |
chosen { |
| 25 |
stdout-path = &serial_0; |
| 26 |
}; |
| 27 |
|
| 28 |
memory@80000000 { |
| 29 |
device_type = "memory"; |
| 30 |
reg = <0x0 0x80000000 0x2 0x00000000>; |
| 31 |
}; |
| 32 |
|
| 33 |
sound { |
| 34 |
compatible = "simple-audio-card"; |
| 35 |
|
| 36 |
#address-cells = <1>; |
| 37 |
#size-cells = <0>; |
| 38 |
|
| 39 |
simple-audio-card,name = "FSD Audio Card"; |
| 40 |
simple-audio-card,widgets = "Line", "Line Out", |
| 41 |
"Line", "Line In"; |
| 42 |
simple-audio-card,routing = "Line Out", "LLOUT", |
| 43 |
"Line Out", "RLOUT", |
| 44 |
"MIC2L", "Line In", |
| 45 |
"MIC2R", "Line In"; |
| 46 |
|
| 47 |
simple-audio-card,dai-link@0 { |
| 48 |
reg = <0>; |
| 49 |
format = "i2s"; |
| 50 |
bitclock-master = <&tlv320aic3x>; |
| 51 |
frame-master = <&tlv320aic3x>; |
| 52 |
|
| 53 |
cpu-0 { |
| 54 |
sound-dai = <&i2s_0 0>; |
| 55 |
}; |
| 56 |
cpu-1 { |
| 57 |
sound-dai = <&i2s_0 1>; |
| 58 |
}; |
| 59 |
codec { |
| 60 |
sound-dai = <&tlv320aic3x>; |
| 61 |
system-clock-frequency = <33000000>; |
| 62 |
}; |
| 63 |
}; |
| 64 |
}; |
| 65 |
}; |
| 66 |
|
| 67 |
ðernet0 { |
| 68 |
status = "okay"; |
| 69 |
|
| 70 |
phy-mode = "rgmii-id"; |
| 71 |
fixed-link { |
| 72 |
speed = <1000>; |
| 73 |
full-duplex; |
| 74 |
}; |
| 75 |
}; |
| 76 |
|
| 77 |
ðernet1 { |
| 78 |
status = "okay"; |
| 79 |
|
| 80 |
phy-mode = "rgmii-id"; |
| 81 |
fixed-link { |
| 82 |
speed = <1000>; |
| 83 |
full-duplex; |
| 84 |
}; |
| 85 |
}; |
| 86 |
|
| 87 |
&fin_pll { |
| 88 |
clock-frequency = <24000000>; |
| 89 |
}; |
| 90 |
|
| 91 |
&hsi2c_5 { |
| 92 |
status = "okay"; |
| 93 |
|
| 94 |
tlv320aic3x: codec@18 { |
| 95 |
compatible = "ti,tlv320aic3104"; |
| 96 |
reg = <0x18>; |
| 97 |
#sound-dai-cells = <0>; |
| 98 |
reset-gpios = <&gpg1 6 GPIO_ACTIVE_LOW>; |
| 99 |
}; |
| 100 |
}; |
| 101 |
|
| 102 |
&i2s_0 { |
| 103 |
status = "okay"; |
| 104 |
}; |
| 105 |
|
| 106 |
&i2s_1 { |
| 107 |
status = "okay"; |
| 108 |
}; |
| 109 |
|
| 110 |
&m_can0 { |
| 111 |
status = "okay"; |
| 112 |
}; |
| 113 |
|
| 114 |
&m_can1 { |
| 115 |
status = "okay"; |
| 116 |
}; |
| 117 |
|
| 118 |
&m_can2 { |
| 119 |
status = "okay"; |
| 120 |
}; |
| 121 |
|
| 122 |
&m_can3 { |
| 123 |
status = "okay"; |
| 124 |
}; |
| 125 |
|
| 126 |
&serial_0 { |
| 127 |
status = "okay"; |
| 128 |
}; |
| 129 |
|
| 130 |
&ufs { |
| 131 |
status = "okay"; |
| 132 |
}; |