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";
40 * The EXTi IRQ line 3 is shared with touchscreen and ethernet,
41 * so mark this as polled GPIO key.
46 gpios = <&gpiof 3 GPIO_ACTIVE_LOW>;
50 * The EXTi IRQ line 0 is shared with PMIC,
51 * so mark this as polled GPIO key.
56 gpios = <&gpiog 0 GPIO_ACTIVE_LOW>;
61 compatible = "gpio-keys";
66 gpios = <&gpiod 6 GPIO_ACTIVE_LOW>;
73 gpios = <&gpiod 12 GPIO_ACTIVE_LOW>;
79 compatible = "gpio-leds";
83 gpios = <&gpioc 6 GPIO_ACTIVE_HIGH>;
84 default-state = "off";
89 gpios = <&gpiod 11 GPIO_ACTIVE_HIGH>;
90 default-state = "off";
95 gpios = <&gpioi 2 GPIO_ACTIVE_HIGH>;
96 default-state = "off";
100 label = "green:led8";
101 gpios = <&gpioi 3 GPIO_ACTIVE_HIGH>;
102 default-state = "off";
107 compatible = "edt,etm0700g0edh6";
108 backlight = <&display_bl>;
111 lcd_panel_in: endpoint {
112 remote-endpoint = <&lcd_display_out>;
118 compatible = "audio-graph-card";
121 "Capture", "Mic Bias",
122 "Playback", "HP_OUT";
123 dais = <&sai2a_port &sai2b_port>;
129 pinctrl-names = "default";
130 pinctrl-0 = <&cec_pins_a>;
134 &i2c2 { /* Header X22 */
135 pinctrl-names = "default";
136 pinctrl-0 = <&i2c2_pins_a>;
137 i2c-scl-rising-time-ns = <185>;
138 i2c-scl-falling-time-ns = <20>;
140 /* spare dmas for other usage */
141 /delete-property/dmas;
142 /delete-property/dma-names;
146 &i2c5 { /* Header X21 */
147 pinctrl-names = "default";
148 pinctrl-0 = <&i2c5_pins_a>;
149 i2c-scl-rising-time-ns = <185>;
150 i2c-scl-falling-time-ns = <20>;
152 /* spare dmas for other usage */
153 /delete-property/dmas;
154 /delete-property/dma-names;
157 compatible = "fsl,sgtl5000";
159 #sound-dai-cells = <0>;
160 clocks = <&clk_ext_audio_codec>;
161 VDDA-supply = <&v3v3>;
162 VDDIO-supply = <&vdd>;
164 sgtl5000_port: port {
165 #address-cells = <1>;
168 sgtl5000_tx_endpoint: endpoint@0 {
170 remote-endpoint = <&sai2a_endpoint>;
175 sgtl5000_rx_endpoint: endpoint@1 {
177 remote-endpoint = <&sai2b_endpoint>;
186 compatible = "edt,edt-ft5406";
188 interrupt-parent = <&gpiog>;
189 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>;
303 phy-supply = <&vdd_usb>;