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>
14 ethernet0 = ðernet0;
18 stdout-path = "serial0:115200n8";
21 clk_ext_audio_codec: clock-codec {
22 compatible = "fixed-clock";
24 clock-frequency = <24000000>;
27 display_bl: display-bl {
28 compatible = "pwm-backlight";
29 pwms = <&pwm2 0 500000 PWM_POLARITY_INVERTED>;
30 brightness-levels = <0 16 22 30 40 55 75 102 138 188 255>;
31 default-brightness-level = <8>;
32 enable-gpios = <&gpioi 0 GPIO_ACTIVE_HIGH>;
36 ethernet_vio: vioregulator {
37 compatible = "regulator-fixed";
38 regulator-name = "vio";
39 regulator-min-microvolt = <3300000>;
40 regulator-max-microvolt = <3300000>;
41 gpio = <&gpiog 3 GPIO_ACTIVE_LOW>;
47 compatible = "gpio-keys-polled";
52 * The EXTi IRQ line 3 is shared with touchscreen and ethernet,
53 * so mark this as polled GPIO key.
58 gpios = <&gpiof 3 GPIO_ACTIVE_LOW>;
63 compatible = "gpio-keys";
69 gpios = <&gpiod 6 GPIO_ACTIVE_LOW>;
76 gpios = <&gpioi 11 GPIO_ACTIVE_LOW>;
83 gpios = <&gpiod 12 GPIO_ACTIVE_LOW>;
89 compatible = "gpio-leds";
93 gpios = <&gpiog 2 GPIO_ACTIVE_HIGH>;
94 default-state = "off";
99 gpios = <&gpiod 11 GPIO_ACTIVE_HIGH>;
100 default-state = "off";
104 label = "green:led7";
105 gpios = <&gpioi 2 GPIO_ACTIVE_HIGH>;
106 default-state = "off";
110 label = "green:led8";
111 gpios = <&gpioi 3 GPIO_ACTIVE_HIGH>;
112 default-state = "off";
117 compatible = "edt,etm0700g0edh6";
118 backlight = <&display_bl>;
121 lcd_panel_in: endpoint {
122 remote-endpoint = <&lcd_display_out>;
128 compatible = "audio-graph-card";
131 "Capture", "Mic Bias",
132 "Playback", "HP_OUT";
133 dais = <&sai2a_port &sai2b_port>;
139 pinctrl-names = "default";
140 pinctrl-0 = <&cec_pins_a>;
146 pinctrl-0 = <ðernet0_rmii_pins_a>;
147 pinctrl-1 = <ðernet0_rmii_sleep_pins_a>;
148 pinctrl-names = "default", "sleep";
151 phy-handle = <&phy0>;
153 phy-reset-gpios = <&gpioh 15 GPIO_ACTIVE_LOW>;
156 #address-cells = <1>;
158 compatible = "snps,dwmac-mdio";
160 phy0: ethernet-phy@1 {
166 &i2c2 { /* Header X22 */
167 pinctrl-names = "default";
168 pinctrl-0 = <&i2c2_pins_a>;
169 i2c-scl-rising-time-ns = <185>;
170 i2c-scl-falling-time-ns = <20>;
172 /* spare dmas for other usage */
173 /delete-property/dmas;
174 /delete-property/dma-names;
178 &i2c5 { /* Header X21 */
179 pinctrl-names = "default";
180 pinctrl-0 = <&i2c5_pins_a>;
181 i2c-scl-rising-time-ns = <185>;
182 i2c-scl-falling-time-ns = <20>;
184 /* spare dmas for other usage */
185 /delete-property/dmas;
186 /delete-property/dma-names;
189 compatible = "fsl,sgtl5000";
191 #sound-dai-cells = <0>;
192 clocks = <&clk_ext_audio_codec>;
193 VDDA-supply = <&v3v3>;
194 VDDIO-supply = <&vdd>;
196 sgtl5000_port: port {
197 #address-cells = <1>;
200 sgtl5000_tx_endpoint: endpoint@0 {
202 remote-endpoint = <&sai2a_endpoint>;
207 sgtl5000_rx_endpoint: endpoint@1 {
209 remote-endpoint = <&sai2b_endpoint>;
218 compatible = "edt,edt-ft5x06";
220 interrupt-parent = <&gpiog>;
221 interrupts = <2 IRQ_TYPE_EDGE_FALLING>; /* GPIO E */
227 pinctrl-names = "default", "sleep";
228 pinctrl-0 = <<dc_pins_b>;
229 pinctrl-1 = <<dc_sleep_pins_b>;
233 lcd_display_out: endpoint {
234 remote-endpoint = <&lcd_panel_in>;
240 clocks = <&rcc SAI2>, <&rcc PLL3_Q>, <&rcc PLL3_R>;
241 clock-names = "pclk", "x8k", "x11k";
242 pinctrl-names = "default", "sleep";
243 pinctrl-0 = <&sai2a_pins_b &sai2b_pins_b>;
244 pinctrl-1 = <&sai2a_sleep_pins_b &sai2b_sleep_pins_b>;
247 sai2a: audio-controller@4400b004 {
250 clocks = <&rcc SAI2_K>;
251 clock-names = "sai_ck";
255 sai2a_endpoint: endpoint {
256 remote-endpoint = <&sgtl5000_tx_endpoint>;
259 dai-tdm-slot-num = <2>;
260 dai-tdm-slot-width = <16>;
265 sai2b: audio-controller@4400b024 {
267 st,sync = <&sai2a 2>;
268 clocks = <&rcc SAI2_K>, <&sai2a>;
269 clock-names = "sai_ck", "MCLK";
273 sai2b_endpoint: endpoint {
274 remote-endpoint = <&sgtl5000_rx_endpoint>;
277 dai-tdm-slot-num = <2>;
278 dai-tdm-slot-width = <16>;
285 /* spare dmas for other usage (un-delete to enable pwm capture) */
286 /delete-property/dmas;
287 /delete-property/dma-names;
290 pinctrl-0 = <&pwm2_pins_a>;
291 pinctrl-names = "default";
300 pinctrl-names = "default";
301 pinctrl-0 = <&usart3_pins_a>;
306 pinctrl-names = "default";
307 pinctrl-0 = <&uart8_pins_a>;
312 phys = <&usbphyc_port0>;
317 dr_mode = "peripheral";
318 phys = <&usbphyc_port1 0>;
319 phy-names = "usb2-phy";
328 phy-supply = <&vdd_usb>;
329 vdda1v1-supply = <®11>;
330 vdda1v8-supply = <®18>;
334 phy-supply = <&vdd_usb>;
335 vdda1v1-supply = <®11>;
336 vdda1v8-supply = <®18>;