1 // SPDX-License-Identifier: GPL-2.0+ OR BSD-3-Clause
3 * Copyright (C) 2019-2020 Marek Vasut <marex@denx.de>
6 #include <dt-bindings/input/input.h>
7 #include <dt-bindings/pwm/pwm.h>
17 stdout-path = "serial0:115200n8";
20 clk_ext_audio_codec: clock-codec {
21 compatible = "fixed-clock";
23 clock-frequency = <24000000>;
26 display_bl: display-bl {
27 compatible = "pwm-backlight";
28 pwms = <&pwm2 3 500000 PWM_POLARITY_INVERTED>;
29 brightness-levels = <0 16 22 30 40 55 75 102 138 188 255>;
30 default-brightness-level = <8>;
31 enable-gpios = <&gpioi 0 GPIO_ACTIVE_HIGH>;
36 compatible = "gpio-keys-polled";
41 * The EXTi IRQ line 3 is shared with touchscreen and ethernet,
42 * so mark this as polled GPIO key.
47 gpios = <&gpiof 3 GPIO_ACTIVE_LOW>;
52 compatible = "gpio-keys";
58 gpios = <&gpiod 6 GPIO_ACTIVE_LOW>;
65 gpios = <&gpioi 11 GPIO_ACTIVE_LOW>;
72 gpios = <&gpiod 12 GPIO_ACTIVE_LOW>;
78 compatible = "gpio-leds";
82 gpios = <&gpiog 2 GPIO_ACTIVE_HIGH>;
83 default-state = "off";
88 gpios = <&gpiod 11 GPIO_ACTIVE_HIGH>;
89 default-state = "off";
94 gpios = <&gpioi 2 GPIO_ACTIVE_HIGH>;
95 default-state = "off";
100 gpios = <&gpioi 3 GPIO_ACTIVE_HIGH>;
101 default-state = "off";
106 compatible = "edt,etm0700g0edh6";
107 backlight = <&display_bl>;
110 lcd_panel_in: endpoint {
111 remote-endpoint = <&lcd_display_out>;
117 compatible = "audio-graph-card";
120 "Capture", "Mic Bias",
121 "Playback", "HP_OUT";
122 dais = <&sai2a_port &sai2b_port>;
128 pinctrl-names = "default";
129 pinctrl-0 = <&cec_pins_a>;
133 &i2c2 { /* Header X22 */
134 pinctrl-names = "default";
135 pinctrl-0 = <&i2c2_pins_a>;
136 i2c-scl-rising-time-ns = <185>;
137 i2c-scl-falling-time-ns = <20>;
139 /* spare dmas for other usage */
140 /delete-property/dmas;
141 /delete-property/dma-names;
145 &i2c5 { /* Header X21 */
146 pinctrl-names = "default";
147 pinctrl-0 = <&i2c5_pins_a>;
148 i2c-scl-rising-time-ns = <185>;
149 i2c-scl-falling-time-ns = <20>;
151 /* spare dmas for other usage */
152 /delete-property/dmas;
153 /delete-property/dma-names;
156 compatible = "fsl,sgtl5000";
158 #sound-dai-cells = <0>;
159 clocks = <&clk_ext_audio_codec>;
160 VDDA-supply = <&v3v3>;
161 VDDIO-supply = <&vdd>;
163 sgtl5000_port: port {
164 #address-cells = <1>;
167 sgtl5000_tx_endpoint: endpoint@0 {
169 remote-endpoint = <&sai2a_endpoint>;
174 sgtl5000_rx_endpoint: endpoint@1 {
176 remote-endpoint = <&sai2b_endpoint>;
185 compatible = "edt,edt-ft5x06";
187 interrupt-parent = <&gpiog>;
188 interrupts = <2 IRQ_TYPE_EDGE_FALLING>; /* GPIO E */
194 pinctrl-names = "default", "sleep";
195 pinctrl-0 = <<dc_pins_b>;
196 pinctrl-1 = <<dc_sleep_pins_b>;
200 lcd_display_out: endpoint {
201 remote-endpoint = <&lcd_panel_in>;
207 clocks = <&rcc SAI2>, <&rcc PLL3_Q>, <&rcc PLL3_R>;
208 clock-names = "pclk", "x8k", "x11k";
209 pinctrl-names = "default", "sleep";
210 pinctrl-0 = <&sai2a_pins_b &sai2b_pins_b>;
211 pinctrl-1 = <&sai2a_sleep_pins_b &sai2b_sleep_pins_b>;
214 sai2a: audio-controller@4400b004 {
217 clocks = <&rcc SAI2_K>;
218 clock-names = "sai_ck";
222 sai2a_endpoint: endpoint {
223 remote-endpoint = <&sgtl5000_tx_endpoint>;
226 dai-tdm-slot-num = <2>;
227 dai-tdm-slot-width = <16>;
232 sai2b: audio-controller@4400b024 {
234 st,sync = <&sai2a 2>;
235 clocks = <&rcc SAI2_K>, <&sai2a>;
236 clock-names = "sai_ck", "MCLK";
240 sai2b_endpoint: endpoint {
241 remote-endpoint = <&sgtl5000_rx_endpoint>;
244 dai-tdm-slot-num = <2>;
245 dai-tdm-slot-width = <16>;
252 /* spare dmas for other usage (un-delete to enable pwm capture) */
253 /delete-property/dmas;
254 /delete-property/dma-names;
257 pinctrl-0 = <&pwm2_pins_a>;
258 pinctrl-names = "default";
267 pinctrl-names = "default";
268 pinctrl-0 = <&usart3_pins_a>;
273 pinctrl-names = "default";
274 pinctrl-0 = <&uart8_pins_a &uart8_rtscts_pins_a>;
280 phys = <&usbphyc_port0>;
286 pinctrl-0 = <&usbotg_hs_pins_a>;
287 pinctrl-names = "default";
288 phy-names = "usb2-phy";
289 phys = <&usbphyc_port1 0>;
290 vbus-supply = <&vbus_otg>;
299 phy-supply = <&vdd_usb>;
300 vdda1v1-supply = <®11>;
301 vdda1v8-supply = <®18>;
305 phy-supply = <&vdd_usb>;
306 vdda1v1-supply = <®11>;
307 vdda1v8-supply = <®18>;