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 ethernet,
41 * so mark this as polled GPIO key.
46 gpios = <&gpiof 3 GPIO_ACTIVE_LOW>;
50 * The EXTi IRQ line 6 is shared with touchscreen,
51 * so mark this as polled GPIO key.
56 gpios = <&gpiod 6 GPIO_ACTIVE_LOW>;
60 * The EXTi IRQ line 0 is shared with PMIC,
61 * so mark this as polled GPIO key.
66 gpios = <&gpiog 0 GPIO_ACTIVE_LOW>;
71 compatible = "gpio-keys";
76 gpios = <&gpiod 12 GPIO_ACTIVE_LOW>;
82 compatible = "gpio-leds";
86 gpios = <&gpioc 6 GPIO_ACTIVE_HIGH>;
87 default-state = "off";
93 gpios = <&gpiod 11 GPIO_ACTIVE_HIGH>;
94 default-state = "off";
99 gpios = <&gpioi 2 GPIO_ACTIVE_HIGH>;
100 default-state = "off";
104 label = "green:led8";
105 gpios = <&gpioi 3 GPIO_ACTIVE_HIGH>;
106 default-state = "off";
111 compatible = "edt,etm0700g0edh6";
112 backlight = <&display_bl>;
115 lcd_panel_in: endpoint {
116 remote-endpoint = <&lcd_display_out>;
122 compatible = "audio-graph-card";
125 "Capture", "Mic Bias",
126 "Playback", "HP_OUT";
127 dais = <&sai2a_port &sai2b_port>;
133 pinctrl-names = "default";
134 pinctrl-0 = <&cec_pins_a>;
138 &i2c2 { /* Header X22 */
139 pinctrl-names = "default";
140 pinctrl-0 = <&i2c2_pins_a>;
141 i2c-scl-rising-time-ns = <185>;
142 i2c-scl-falling-time-ns = <20>;
144 /* spare dmas for other usage */
145 /delete-property/dmas;
146 /delete-property/dma-names;
150 &i2c5 { /* Header X21 */
151 pinctrl-names = "default";
152 pinctrl-0 = <&i2c5_pins_a>;
153 i2c-scl-rising-time-ns = <185>;
154 i2c-scl-falling-time-ns = <20>;
156 /* spare dmas for other usage */
157 /delete-property/dmas;
158 /delete-property/dma-names;
161 compatible = "fsl,sgtl5000";
163 #sound-dai-cells = <0>;
164 clocks = <&clk_ext_audio_codec>;
165 VDDA-supply = <&v3v3>;
166 VDDIO-supply = <&vdd>;
168 sgtl5000_port: port {
169 #address-cells = <1>;
172 sgtl5000_tx_endpoint: endpoint@0 {
174 remote-endpoint = <&sai2a_endpoint>;
179 sgtl5000_rx_endpoint: endpoint@1 {
181 remote-endpoint = <&sai2b_endpoint>;
190 compatible = "edt,edt-ft5406";
192 interrupt-parent = <&gpioc>;
193 interrupts = <6 IRQ_TYPE_EDGE_FALLING>; /* GPIO E */
198 pinctrl-names = "default", "sleep";
199 pinctrl-0 = <<dc_pins_b>;
200 pinctrl-1 = <<dc_sleep_pins_b>;
204 lcd_display_out: endpoint {
205 remote-endpoint = <&lcd_panel_in>;
211 clocks = <&rcc SAI2>, <&rcc PLL3_Q>, <&rcc PLL3_R>;
212 clock-names = "pclk", "x8k", "x11k";
213 pinctrl-names = "default", "sleep";
214 pinctrl-0 = <&sai2a_pins_b &sai2b_pins_b>;
215 pinctrl-1 = <&sai2a_sleep_pins_b &sai2b_sleep_pins_b>;
218 sai2a: audio-controller@4400b004 {
221 clocks = <&rcc SAI2_K>;
222 clock-names = "sai_ck";
226 sai2a_endpoint: endpoint {
227 remote-endpoint = <&sgtl5000_tx_endpoint>;
230 dai-tdm-slot-num = <2>;
231 dai-tdm-slot-width = <16>;
236 sai2b: audio-controller@4400b024 {
238 st,sync = <&sai2a 2>;
239 clocks = <&rcc SAI2_K>, <&sai2a>;
240 clock-names = "sai_ck", "MCLK";
244 sai2b_endpoint: endpoint {
245 remote-endpoint = <&sgtl5000_rx_endpoint>;
248 dai-tdm-slot-num = <2>;
249 dai-tdm-slot-width = <16>;
256 /* spare dmas for other usage (un-delete to enable pwm capture) */
257 /delete-property/dmas;
258 /delete-property/dma-names;
261 pinctrl-0 = <&pwm2_pins_a>;
262 pinctrl-names = "default";
271 pinctrl-names = "default";
272 pinctrl-0 = <&usart3_pins_a>;
277 pinctrl-names = "default";
278 pinctrl-0 = <&uart8_pins_a &uart8_rtscts_pins_a>;
284 phys = <&usbphyc_port0>;
290 pinctrl-0 = <&usbotg_hs_pins_a>;
291 pinctrl-names = "default";
292 phy-names = "usb2-phy";
293 phys = <&usbphyc_port1 0>;
294 vbus-supply = <&vbus_otg>;
303 phy-supply = <&vdd_usb>;
307 phy-supply = <&vdd_usb>;