2 * Copyright 2018 Logic PD, Inc.
3 * Based on SabreSD, Copyright 2016 Freescale Semiconductor, Inc.
5 * This file is dual-licensed: you can use it either under the terms
6 * of the GPL or the X11 license, at your option. Note that this dual
7 * licensing only applies to this file, and not this project as a
10 * a) This file is free software; you can redistribute it and/or
11 * modify it under the terms of the GNU General Public License as
12 * published by the Free Software Foundation; either version 2 of the
13 * License, or (at your option) any later version.
15 * This file is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU General Public License for more details.
22 * b) Permission is hereby granted, free of charge, to any person
23 * obtaining a copy of this software and associated documentation
24 * files (the "Software"), to deal in the Software without
25 * restriction, including without limitation the rights to use,
26 * copy, modify, merge, publish, distribute, sublicense, and/or
27 * sell copies of the Software, and to permit persons to whom the
28 * Software is furnished to do so, subject to the following
31 * The above copyright notice and this permission notice shall be
32 * included in all copies or substantial portions of the Software.
34 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
35 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
36 * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
37 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
38 * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
39 * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
40 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
41 * OTHER DEALINGS IN THE SOFTWARE.
46 #include "imx6-logicpd-som.dtsi"
47 #include "imx6-logicpd-baseboard.dtsi"
50 model = "Logic PD i.MX6QD SOM-M3 (HDMI)";
51 compatible = "fsl,imx6q";
53 backlight: backlight_lvds {
54 compatible = "pwm-backlight";
55 pwms = <&pwm3 0 20000>;
56 brightness-levels = <0 4 8 16 32 64 128 255>;
57 default-brightness-level = <6>;
58 power-supply = <®_lcd>;
61 reg_lcd: regulator-lcd {
62 pinctrl-names = "default";
63 pinctrl-0 = <&pinctrl_lcd_reg>;
64 compatible = "regulator-fixed";
65 regulator-name = "lcd_panel_pwr";
66 regulator-min-microvolt = <3300000>;
67 regulator-max-microvolt = <3300000>;
68 gpio = <&gpio4 17 GPIO_ACTIVE_HIGH>;
71 vin-supply = <®_3v3>;
72 startup-delay-us = <500000>;
75 lcd_reset: lcd_reset {
76 pinctrl-names = "default";
77 pinctrl-0 = <&pinctrl_lcd_reset>;
78 compatible = "regulator-fixed";
79 regulator-name = "nLCD_RESET";
80 regulator-min-microvolt = <3300000>;
81 regulator-max-microvolt = <3300000>;
82 gpio = <&gpio5 2 GPIO_ACTIVE_HIGH>;
85 vin-supply = <®_lcd>;
89 compatible = "ampire,am800480b3tmqw";
90 backlight = <&backlight>;
93 panel_in_lvds0: endpoint {
94 remote-endpoint = <&lvds0_out>;
101 ddc-i2c-bus = <&i2c3>;
106 ili_touch: ilitouch@26 {
107 compatible = "ili,ili2117a";
109 pinctrl-names = "default";
110 pinctrl-0 = <&pinctrl_touchscreen>;
111 interrupts-extended = <&gpio1 6 IRQ_TYPE_EDGE_RISING>;
112 ili2117a,poll-period = <10>;
113 ili2117a,max-touch = <2>;
125 fsl,data-mapping = "spwg";
126 fsl,data-width = <24>;
132 lvds0_out: endpoint {
133 remote-endpoint = <&panel_in_lvds0>;
141 assigned-clocks = <&clks IMX6QDL_CLK_LDB_DI0_SEL>,
142 <&clks IMX6QDL_CLK_LDB_DI1_SEL>,
143 <&clks IMX6QDL_CLK_IPU1_DI0_PRE_SEL>,
144 <&clks IMX6QDL_CLK_IPU2_DI0_PRE_SEL>;
145 assigned-clock-parents = <&clks IMX6QDL_CLK_PLL5_VIDEO_DIV>,
146 <&clks IMX6QDL_CLK_PLL5_VIDEO_DIV>,
147 <&clks IMX6QDL_CLK_PLL2_PFD2_396M>,
148 <&clks IMX6QDL_CLK_PLL2_PFD2_396M>;
156 cd-gpios = <&gpio1 4 GPIO_ACTIVE_LOW>;
160 pinctrl_lcd_reg: lcdreg {
162 MX6QDL_PAD_DI0_PIN15__GPIO4_IO17 0x100b0 /* R_LCD_PANEL_PWR */
166 pinctrl_lcd_reset: lcdreset {
168 MX6QDL_PAD_EIM_A25__GPIO5_IO02 0x100b0 /* LCD_nRESET */
172 pinctrl_touchscreen: touchscreengrp {
174 MX6QDL_PAD_GPIO_6__GPIO1_IO06 0x1b0b0 /* TOUCH_nPINTDAV */