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>;
32 power-supply = <®_panel_bl>;
37 compatible = "gpio-keys-polled";
41 * The EXTi IRQ line 3 is shared with ethernet,
42 * so mark this as polled GPIO key.
47 gpios = <&gpiof 3 GPIO_ACTIVE_LOW>;
51 * The EXTi IRQ line 6 is shared with touchscreen,
52 * so mark this as polled GPIO key.
57 gpios = <&gpiod 6 GPIO_ACTIVE_LOW>;
61 * The EXTi IRQ line 0 is shared with PMIC,
62 * so mark this as polled GPIO key.
67 gpios = <&gpiog 0 GPIO_ACTIVE_LOW>;
72 compatible = "gpio-keys";
77 gpios = <&gpiod 12 GPIO_ACTIVE_LOW>;
83 compatible = "gpio-leds";
87 gpios = <&gpioc 6 GPIO_ACTIVE_HIGH>;
88 default-state = "off";
94 gpios = <&gpiod 11 GPIO_ACTIVE_HIGH>;
95 default-state = "off";
100 gpios = <&gpioi 2 GPIO_ACTIVE_HIGH>;
101 default-state = "off";
105 label = "green:led8";
106 gpios = <&gpioi 3 GPIO_ACTIVE_HIGH>;
107 default-state = "off";
112 compatible = "edt,etm0700g0edh6";
113 backlight = <&display_bl>;
114 power-supply = <®_panel_bl>;
117 lcd_panel_in: endpoint {
118 remote-endpoint = <&lcd_display_out>;
123 reg_panel_bl: regulator-panel-bl {
124 compatible = "regulator-fixed";
125 regulator-name = "panel_backlight";
126 regulator-min-microvolt = <3300000>;
127 regulator-max-microvolt = <3300000>;
128 vin-supply = <®_panel_supply>;
131 reg_panel_supply: regulator-panel-supply {
132 compatible = "regulator-fixed";
133 regulator-name = "panel_supply";
134 regulator-min-microvolt = <24000000>;
135 regulator-max-microvolt = <24000000>;
139 compatible = "audio-graph-card";
140 widgets = "Headphone", "Headphone Jack",
141 "Line", "Line In Jack",
142 "Microphone", "Microphone Jack";
143 routing = "Headphone Jack", "HP_OUT",
144 "LINE_IN", "Line In Jack",
145 "MIC_IN", "Microphone Jack",
146 "Microphone Jack", "Mic Bias";
147 dais = <&sai2a_port &sai2b_port>;
153 pinctrl-names = "default";
154 pinctrl-0 = <&cec_pins_a>;
158 &i2c2 { /* Header X22 */
159 pinctrl-names = "default";
160 pinctrl-0 = <&i2c2_pins_a>;
161 i2c-scl-rising-time-ns = <185>;
162 i2c-scl-falling-time-ns = <20>;
164 /* spare dmas for other usage */
165 /delete-property/dmas;
166 /delete-property/dma-names;
170 &i2c5 { /* Header X21 */
171 pinctrl-names = "default";
172 pinctrl-0 = <&i2c5_pins_a>;
173 i2c-scl-rising-time-ns = <185>;
174 i2c-scl-falling-time-ns = <20>;
176 /* spare dmas for other usage */
177 /delete-property/dmas;
178 /delete-property/dma-names;
181 compatible = "fsl,sgtl5000";
183 #sound-dai-cells = <0>;
184 clocks = <&clk_ext_audio_codec>;
185 VDDA-supply = <&v3v3>;
186 VDDIO-supply = <&vdd>;
188 sgtl5000_port: port {
189 #address-cells = <1>;
192 sgtl5000_tx_endpoint: endpoint@0 {
194 remote-endpoint = <&sai2a_endpoint>;
195 frame-master = <&sgtl5000_tx_endpoint>;
196 bitclock-master = <&sgtl5000_tx_endpoint>;
199 sgtl5000_rx_endpoint: endpoint@1 {
201 remote-endpoint = <&sai2b_endpoint>;
202 frame-master = <&sgtl5000_rx_endpoint>;
203 bitclock-master = <&sgtl5000_rx_endpoint>;
210 compatible = "edt,edt-ft5406";
212 interrupt-parent = <&gpioc>;
213 interrupts = <6 IRQ_TYPE_EDGE_FALLING>; /* GPIO E */
218 pinctrl-names = "default", "sleep";
219 pinctrl-0 = <<dc_pins_b>;
220 pinctrl-1 = <<dc_sleep_pins_b>;
224 lcd_display_out: endpoint {
225 remote-endpoint = <&lcd_panel_in>;
231 clocks = <&rcc SAI2>, <&rcc PLL3_Q>, <&rcc PLL3_R>;
232 clock-names = "pclk", "x8k", "x11k";
233 pinctrl-names = "default", "sleep";
234 pinctrl-0 = <&sai2a_pins_b &sai2b_pins_b>;
235 pinctrl-1 = <&sai2a_sleep_pins_b &sai2b_sleep_pins_b>;
238 sai2a: audio-controller@4400b004 {
241 clocks = <&rcc SAI2_K>;
242 clock-names = "sai_ck";
246 sai2a_endpoint: endpoint {
247 remote-endpoint = <&sgtl5000_tx_endpoint>;
250 dai-tdm-slot-num = <2>;
251 dai-tdm-slot-width = <16>;
256 sai2b: audio-controller@4400b024 {
258 st,sync = <&sai2a 2>;
259 clocks = <&rcc SAI2_K>, <&sai2a>;
260 clock-names = "sai_ck", "MCLK";
264 sai2b_endpoint: endpoint {
265 remote-endpoint = <&sgtl5000_rx_endpoint>;
268 dai-tdm-slot-num = <2>;
269 dai-tdm-slot-width = <16>;
276 /* spare dmas for other usage (un-delete to enable pwm capture) */
277 /delete-property/dmas;
278 /delete-property/dma-names;
281 pinctrl-0 = <&pwm2_pins_a>;
282 pinctrl-names = "default";
291 pinctrl-names = "default";
292 pinctrl-0 = <&usart3_pins_a>;
293 /delete-property/dmas;
294 /delete-property/dma-names;
299 pinctrl-names = "default";
300 pinctrl-0 = <&uart8_pins_a &uart8_rtscts_pins_a>;
302 /delete-property/dmas;
303 /delete-property/dma-names;
308 phys = <&usbphyc_port0>;
314 pinctrl-0 = <&usbotg_hs_pins_a>;
315 pinctrl-names = "default";
316 phy-names = "usb2-phy";
317 phys = <&usbphyc_port1 0>;
318 vbus-supply = <&vbus_otg>;
327 phy-supply = <&vdd_usb>;
331 phy-supply = <&vdd_usb>;