1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
3 * Copyright (C) 2018 PHYTEC Messtechnik GmbH
4 * Author: Christian Hemp <c.hemp@phytec.de>
13 backlight: backlight {
14 compatible = "pwm-backlight";
15 brightness-levels = <0 4 8 16 32 64 128 255>;
16 default-brightness-level = <7>;
17 power-supply = <®_backlight>;
18 pwms = <&pwm1 0 5000000>;
23 compatible = "gpio-leds";
24 pinctrl-names = "default";
25 pinctrl-0 = <&pinctrl_gpioleds>;
29 label = "phyboard-mira:red";
30 gpios = <&gpio5 22 GPIO_ACTIVE_HIGH>;
34 label = "phyboard-mira:green";
35 gpios = <&gpio5 23 GPIO_ACTIVE_HIGH>;
39 label = "phyboard-mira:blue";
40 gpios = <&gpio5 24 GPIO_ACTIVE_HIGH>;
41 linux,default-trigger = "mmc0";
45 reg_backlight: regulator-backlight {
46 compatible = "regulator-fixed";
47 regulator-name = "backlight_3v3";
48 regulator-min-microvolt = <3300000>;
49 regulator-max-microvolt = <3300000>;
53 reg_en_switch: regulator-en-switch {
54 compatible = "regulator-fixed";
55 pinctrl-names = "default";
56 pinctrl-0 = <&pinctrl_en_switch>;
57 regulator-name = "Enable Switch";
58 regulator-min-microvolt = <3300000>;
59 regulator-max-microvolt = <3300000>;
61 gpio = <&gpio3 4 GPIO_ACTIVE_HIGH>;
65 reg_flexcan1: regulator-flexcan1 {
66 compatible = "regulator-fixed";
67 pinctrl-names = "default";
68 pinctrl-0 = <&pinctrl_flexcan1_en>;
69 regulator-name = "flexcan1-reg";
70 regulator-min-microvolt = <1500000>;
71 regulator-max-microvolt = <1500000>;
72 gpio = <&gpio2 20 GPIO_ACTIVE_HIGH>;
76 reg_panel: regulator-panel {
77 compatible = "regulator-fixed";
78 regulator-name = "panel-power-supply";
79 regulator-min-microvolt = <12000000>;
80 regulator-max-microvolt = <12000000>;
84 reg_pcie: regulator-pcie {
85 compatible = "regulator-fixed";
86 pinctrl-names = "default";
87 pinctrl-0 = <&pinctrl_pcie_reg>;
88 regulator-name = "mPCIe_1V5";
89 regulator-min-microvolt = <1500000>;
90 regulator-max-microvolt = <1500000>;
91 gpio = <&gpio3 0 GPIO_ACTIVE_HIGH>;
95 reg_usb_h1_vbus: usb-h1-vbus {
96 compatible = "regulator-fixed";
97 pinctrl-names = "default";
98 pinctrl-0 = <&pinctrl_usbh1_vbus>;
99 regulator-name = "usb_h1_vbus";
100 regulator-min-microvolt = <5000000>;
101 regulator-max-microvolt = <5000000>;
102 gpio = <&gpio2 18 GPIO_ACTIVE_HIGH>;
106 reg_usbotg_vbus: usbotg-vbus {
107 compatible = "regulator-fixed";
108 pinctrl-names = "default";
109 pinctrl-0 = <&pinctrl_usbotg_vbus>;
110 regulator-name = "usb_otg_vbus";
111 regulator-min-microvolt = <5000000>;
112 regulator-max-microvolt = <5000000>;
113 gpio = <&gpio2 19 GPIO_ACTIVE_HIGH>;
118 compatible = "auo,g104sn02";
119 pinctrl-names = "default";
120 pinctrl-0 = <&pinctrl_panel_en>;
121 power-supply = <®_panel>;
122 enable-gpios = <&gpio2 28 GPIO_ACTIVE_LOW>;
123 backlight = <&backlight>;
127 remote-endpoint = <&lvds0_out>;
134 pinctrl-names = "default";
135 pinctrl-0 = <&pinctrl_flexcan1>;
136 xceiver-supply = <®_flexcan1>;
141 pinctrl-names = "default";
142 pinctrl-0 = <&pinctrl_hdmicec>;
143 ddc-i2c-bus = <&i2c2>;
148 pinctrl-names = "default";
149 pinctrl-0 = <&pinctrl_i2c1>;
150 clock-frequency = <400000>;
153 stmpe: touchctrl@44 {
154 compatible = "st,stmpe811";
155 pinctrl-names = "default";
156 pinctrl-0 = <&pinctrl_stmpe>;
158 interrupt-parent = <&gpio7>;
159 interrupts = <12 IRQ_TYPE_NONE>;
163 compatible = "st,stmpe-ts";
164 st,sample-time = <4>;
169 st,touch-det-delay = <2>;
177 compatible = "microcrystal,rv4162";
178 pinctrl-names = "default";
179 pinctrl-0 = <&pinctrl_rtc_int>;
181 interrupt-parent = <&gpio7>;
182 interrupts = <8 IRQ_TYPE_LEVEL_HIGH>;
188 pinctrl-names = "default";
189 pinctrl-0 = <&pinctrl_i2c2>;
190 clock-frequency = <100000>;
198 fsl,data-mapping = "spwg";
199 fsl,data-width = <24>;
205 lvds0_out: endpoint {
206 remote-endpoint = <&panel_in>;
213 pinctrl-names = "default";
214 pinctrl-0 = <&pinctrl_pcie>;
215 reset-gpio = <&gpio2 25 GPIO_ACTIVE_LOW>;
216 vpcie-supply = <®_pcie>;
221 pinctrl-names = "default";
222 pinctrl-0 = <&pinctrl_pwm1>;
227 pinctrl-names = "default";
228 pinctrl-0 = <&pinctrl_uart2>;
233 pinctrl-names = "default";
234 pinctrl-0 = <&pinctrl_uart3>;
240 vbus-supply = <®_usb_h1_vbus>;
241 disable-over-current;
246 pinctrl-names = "default";
247 pinctrl-0 = <&pinctrl_usbotg>;
248 vbus-supply = <®_usbotg_vbus>;
249 disable-over-current;
254 pinctrl-names = "default";
255 pinctrl-0 = <&pinctrl_usdhc1>;
256 cd-gpios = <&gpio6 31 GPIO_ACTIVE_LOW>;
262 pinctrl_panel_en: panelen1grp {
264 MX6QDL_PAD_EIM_EB0__GPIO2_IO28 0xb0b1
268 pinctrl_en_switch: enswitchgrp {
270 MX6QDL_PAD_EIM_DA4__GPIO3_IO04 0xb0b1
274 pinctrl_flexcan1: flexcan1grp {
276 MX6QDL_PAD_GPIO_7__FLEXCAN1_TX 0x1b0b0
277 MX6QDL_PAD_GPIO_8__FLEXCAN1_RX 0x1b0b0
281 pinctrl_flexcan1_en: flexcan1engrp {
283 MX6QDL_PAD_EIM_A18__GPIO2_IO20 0xb0b1
287 pinctrl_gpioleds: gpioledsgrp {
289 MX6QDL_PAD_CSI0_DAT4__GPIO5_IO22 0x1b0b0
290 MX6QDL_PAD_CSI0_DAT5__GPIO5_IO23 0x1b0b0
291 MX6QDL_PAD_CSI0_DAT6__GPIO5_IO24 0x1b0b0
295 pinctrl_hdmicec: hdmicecgrp {
297 MX6QDL_PAD_KEY_ROW2__HDMI_TX_CEC_LINE 0x1f8b0
301 pinctrl_i2c2: i2c2grp {
303 MX6QDL_PAD_KEY_ROW3__I2C2_SDA 0x4001b8b1
304 MX6QDL_PAD_KEY_COL3__I2C2_SCL 0x4001b8b1
308 pinctrl_i2c1: i2c1grp {
310 MX6QDL_PAD_EIM_D21__I2C1_SCL 0x4001b8b1
311 MX6QDL_PAD_EIM_D28__I2C1_SDA 0x4001b8b1
315 pinctrl_pcie: pciegrp {
317 MX6QDL_PAD_EIM_OE__GPIO2_IO25 0xb0b1
321 pinctrl_pcie_reg: pciereggrp {
323 MX6QDL_PAD_EIM_DA0__GPIO3_IO00 0xb0b1
327 pinctrl_pwm1: pwm1grp {
329 MX6QDL_PAD_GPIO_9__PWM1_OUT 0x1b0b1
333 pinctrl_rtc_int: rtcintgrp {
335 MX6QDL_PAD_SD3_RST__GPIO7_IO08 0x1b0b0
339 pinctrl_stmpe: stmpegrp {
341 MX6QDL_PAD_GPIO_17__GPIO7_IO12 0x1b0b0
345 pinctrl_uart2: uart2grp {
347 MX6QDL_PAD_EIM_D26__UART2_TX_DATA 0x1b0b1
348 MX6QDL_PAD_EIM_D27__UART2_RX_DATA 0x1b0b1
352 pinctrl_uart3: uart3grp {
354 MX6QDL_PAD_EIM_EB3__UART3_CTS_B 0x1b0b1
355 MX6QDL_PAD_EIM_D23__UART3_RTS_B 0x1b0b1
356 MX6QDL_PAD_EIM_D24__UART3_TX_DATA 0x1b0b1
357 MX6QDL_PAD_EIM_D25__UART3_RX_DATA 0x1b0b1
361 pinctrl_usbh1_vbus: usbh1vbusgrp {
363 MX6QDL_PAD_EIM_A20__GPIO2_IO18 0xb0b1
367 pinctrl_usbotg: usbotggrp {
369 MX6QDL_PAD_GPIO_1__USB_OTG_ID 0x17059
373 pinctrl_usbotg_vbus: usbotgvbusgrp {
375 MX6QDL_PAD_EIM_A19__GPIO2_IO19 0xb0b1
379 pinctrl_usdhc1: usdhc1grp {
381 MX6QDL_PAD_SD1_CMD__SD1_CMD 0x170f9
382 MX6QDL_PAD_SD1_CLK__SD1_CLK 0x100f9
383 MX6QDL_PAD_SD1_DAT0__SD1_DATA0 0x170f9
384 MX6QDL_PAD_SD1_DAT1__SD1_DATA1 0x170f9
385 MX6QDL_PAD_SD1_DAT2__SD1_DATA2 0x170f9
386 MX6QDL_PAD_SD1_DAT3__SD1_DATA3 0x170f9
387 MX6QDL_PAD_EIM_BCLK__GPIO6_IO31 0xb0b1 /* CD */