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>;
51 * The EXTi IRQ line 0 is shared with PMIC,
52 * so mark this as polled GPIO key.
57 gpios = <&gpiog 0 GPIO_ACTIVE_LOW>;
62 compatible = "gpio-keys";
68 gpios = <&gpiod 6 GPIO_ACTIVE_LOW>;
75 gpios = <&gpiod 12 GPIO_ACTIVE_LOW>;
81 compatible = "gpio-leds";
85 gpios = <&gpioc 6 GPIO_ACTIVE_HIGH>;
86 default-state = "off";
91 gpios = <&gpiod 11 GPIO_ACTIVE_HIGH>;
92 default-state = "off";
97 gpios = <&gpioi 2 GPIO_ACTIVE_HIGH>;
98 default-state = "off";
102 label = "green:led8";
103 gpios = <&gpioi 3 GPIO_ACTIVE_HIGH>;
104 default-state = "off";
109 compatible = "edt,etm0700g0edh6";
110 backlight = <&display_bl>;
113 lcd_panel_in: endpoint {
114 remote-endpoint = <&lcd_display_out>;
120 compatible = "audio-graph-card";
123 "Capture", "Mic Bias",
124 "Playback", "HP_OUT";
125 dais = <&sai2a_port &sai2b_port>;
131 pinctrl-names = "default";
132 pinctrl-0 = <&cec_pins_a>;
136 &i2c2 { /* Header X22 */
137 pinctrl-names = "default";
138 pinctrl-0 = <&i2c2_pins_a>;
139 i2c-scl-rising-time-ns = <185>;
140 i2c-scl-falling-time-ns = <20>;
142 /* spare dmas for other usage */
143 /delete-property/dmas;
144 /delete-property/dma-names;
148 &i2c5 { /* Header X21 */
149 pinctrl-names = "default";
150 pinctrl-0 = <&i2c5_pins_a>;
151 i2c-scl-rising-time-ns = <185>;
152 i2c-scl-falling-time-ns = <20>;
154 /* spare dmas for other usage */
155 /delete-property/dmas;
156 /delete-property/dma-names;
159 compatible = "fsl,sgtl5000";
161 #sound-dai-cells = <0>;
162 clocks = <&clk_ext_audio_codec>;
163 VDDA-supply = <&v3v3>;
164 VDDIO-supply = <&vdd>;
166 sgtl5000_port: port {
167 #address-cells = <1>;
170 sgtl5000_tx_endpoint: endpoint@0 {
172 remote-endpoint = <&sai2a_endpoint>;
177 sgtl5000_rx_endpoint: endpoint@1 {
179 remote-endpoint = <&sai2b_endpoint>;
188 compatible = "edt,edt-ft5x06";
190 interrupt-parent = <&gpiog>;
191 interrupts = <2 IRQ_TYPE_EDGE_FALLING>; /* GPIO E */
197 pinctrl-names = "default", "sleep";
198 pinctrl-0 = <<dc_pins_b>;
199 pinctrl-1 = <<dc_sleep_pins_b>;
203 lcd_display_out: endpoint {
204 remote-endpoint = <&lcd_panel_in>;
210 clocks = <&rcc SAI2>, <&rcc PLL3_Q>, <&rcc PLL3_R>;
211 clock-names = "pclk", "x8k", "x11k";
212 pinctrl-names = "default", "sleep";
213 pinctrl-0 = <&sai2a_pins_b &sai2b_pins_b>;
214 pinctrl-1 = <&sai2a_sleep_pins_b &sai2b_sleep_pins_b>;
217 sai2a: audio-controller@4400b004 {
220 clocks = <&rcc SAI2_K>;
221 clock-names = "sai_ck";
225 sai2a_endpoint: endpoint {
226 remote-endpoint = <&sgtl5000_tx_endpoint>;
229 dai-tdm-slot-num = <2>;
230 dai-tdm-slot-width = <16>;
235 sai2b: audio-controller@4400b024 {
237 st,sync = <&sai2a 2>;
238 clocks = <&rcc SAI2_K>, <&sai2a>;
239 clock-names = "sai_ck", "MCLK";
243 sai2b_endpoint: endpoint {
244 remote-endpoint = <&sgtl5000_rx_endpoint>;
247 dai-tdm-slot-num = <2>;
248 dai-tdm-slot-width = <16>;
255 /* spare dmas for other usage (un-delete to enable pwm capture) */
256 /delete-property/dmas;
257 /delete-property/dma-names;
260 pinctrl-0 = <&pwm2_pins_a>;
261 pinctrl-names = "default";
270 pinctrl-names = "default";
271 pinctrl-0 = <&usart3_pins_a>;
276 pinctrl-names = "default";
277 pinctrl-0 = <&uart8_pins_a &uart8_rtscts_pins_a>;
283 phys = <&usbphyc_port0>;
289 pinctrl-0 = <&usbotg_hs_pins_a>;
290 pinctrl-names = "default";
291 phy-names = "usb2-phy";
292 phys = <&usbphyc_port1 0>;
293 vbus-supply = <&vbus_otg>;
302 phy-supply = <&vdd_usb>;
303 vdda1v1-supply = <®11>;
304 vdda1v8-supply = <®18>;
308 phy-supply = <&vdd_usb>;
309 vdda1v1-supply = <®11>;
310 vdda1v8-supply = <®18>;