0001 /*
0002 * support for the imx6 based aristainetos2 board
0003 *
0004 * Copyright (C) 2015 Heiko Schocher <hs@denx.de>
0005 *
0006 * This file is dual-licensed: you can use it either under the terms
0007 * of the GPL or the X11 license, at your option. Note that this dual
0008 * licensing only applies to this file, and not this project as a
0009 * whole.
0010 *
0011 * a) This file is free software; you can redistribute it and/or
0012 * modify it under the terms of the GNU General Public License
0013 * version 2 as published by the Free Software Foundation.
0014 *
0015 * This file is distributed in the hope that it will be useful,
0016 * but WITHOUT ANY WARRANTY; without even the implied warranty of
0017 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
0018 * GNU General Public License for more details.
0019 *
0020 * Or, alternatively,
0021 *
0022 * b) Permission is hereby granted, free of charge, to any person
0023 * obtaining a copy of this software and associated documentation
0024 * files (the "Software"), to deal in the Software without
0025 * restriction, including without limitation the rights to use,
0026 * copy, modify, merge, publish, distribute, sublicense, and/or
0027 * sell copies of the Software, and to permit persons to whom the
0028 * Software is furnished to do so, subject to the following
0029 * conditions:
0030 *
0031 * The above copyright notice and this permission notice shall be
0032 * included in all copies or substantial portions of the Software.
0033 *
0034 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
0035 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
0036 * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
0037 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
0038 * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
0039 * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
0040 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
0041 * OTHER DEALINGS IN THE SOFTWARE.
0042 */
0043 /dts-v1/;
0044 #include "imx6dl.dtsi"
0045 #include "imx6qdl-aristainetos2.dtsi"
0046
0047 / {
0048 model = "aristainetos2 i.MX6 Dual Lite Board 4";
0049 compatible = "abb,aristainetos2-imx6dl-4", "fsl,imx6dl";
0050
0051 memory@10000000 {
0052 device_type = "memory";
0053 reg = <0x10000000 0x40000000>;
0054 };
0055
0056 display0: disp0 {
0057 #address-cells = <1>;
0058 #size-cells = <0>;
0059 compatible = "fsl,imx-parallel-display";
0060 interface-pix-fmt = "rgb24";
0061 pinctrl-names = "default";
0062 pinctrl-0 = <&pinctrl_ipu_disp>;
0063
0064 port@0 {
0065 reg = <0>;
0066 display0_in: endpoint {
0067 remote-endpoint = <&ipu1_di0_disp0>;
0068 };
0069 };
0070
0071 port@1 {
0072 reg = <1>;
0073 display_out: endpoint {
0074 remote-endpoint = <&panel_in>;
0075 };
0076 };
0077 };
0078 };
0079
0080 &ecspi1 {
0081 lcd_panel: display@0 {
0082 compatible = "lg,lg4573";
0083 spi-max-frequency = <10000000>;
0084 reg = <0>;
0085 power-on-delay = <10>;
0086
0087 display-timings {
0088 480x800p57 {
0089 native-mode;
0090 clock-frequency = <27000027>;
0091 hactive = <480>;
0092 vactive = <800>;
0093 hfront-porch = <10>;
0094 hback-porch = <59>;
0095 hsync-len = <10>;
0096 vback-porch = <15>;
0097 vfront-porch = <15>;
0098 vsync-len = <15>;
0099 hsync-active = <1>;
0100 vsync-active = <1>;
0101 };
0102 };
0103
0104 port {
0105 panel_in: endpoint {
0106 remote-endpoint = <&display_out>;
0107 };
0108 };
0109 };
0110 };
0111
0112 &i2c3 {
0113 touch: touch@4b {
0114 compatible = "atmel,maxtouch";
0115 reg = <0x4b>;
0116 interrupt-parent = <&gpio2>;
0117 interrupts = <9 8>;
0118 };
0119 };
0120
0121 &ipu1_di0_disp0 {
0122 remote-endpoint = <&display0_in>;
0123 };
0124
0125 &iomuxc {
0126 pinctrl_ipu_disp: ipudisp1grp {
0127 fsl,pins = <
0128 MX6QDL_PAD_DI0_DISP_CLK__IPU1_DI0_DISP_CLK 0x31
0129 MX6QDL_PAD_DI0_PIN15__IPU1_DI0_PIN15 0xE1
0130 MX6QDL_PAD_DI0_PIN2__IPU1_DI0_PIN02 0x10
0131 MX6QDL_PAD_DI0_PIN3__IPU1_DI0_PIN03 0x10
0132 MX6QDL_PAD_DISP0_DAT0__IPU1_DISP0_DATA00 0xE1
0133 MX6QDL_PAD_DISP0_DAT1__IPU1_DISP0_DATA01 0xE1
0134 MX6QDL_PAD_DISP0_DAT2__IPU1_DISP0_DATA02 0xE1
0135 MX6QDL_PAD_DISP0_DAT3__IPU1_DISP0_DATA03 0xE1
0136 MX6QDL_PAD_DISP0_DAT4__IPU1_DISP0_DATA04 0xE1
0137 MX6QDL_PAD_DISP0_DAT5__IPU1_DISP0_DATA05 0xE1
0138 MX6QDL_PAD_DISP0_DAT6__IPU1_DISP0_DATA06 0xE1
0139 MX6QDL_PAD_DISP0_DAT7__IPU1_DISP0_DATA07 0xE1
0140 MX6QDL_PAD_DISP0_DAT8__IPU1_DISP0_DATA08 0xE1
0141 MX6QDL_PAD_DISP0_DAT9__IPU1_DISP0_DATA09 0xE1
0142 MX6QDL_PAD_DISP0_DAT10__IPU1_DISP0_DATA10 0xE1
0143 MX6QDL_PAD_DISP0_DAT11__IPU1_DISP0_DATA11 0xE1
0144 MX6QDL_PAD_DISP0_DAT12__IPU1_DISP0_DATA12 0xE1
0145 MX6QDL_PAD_DISP0_DAT13__IPU1_DISP0_DATA13 0xE1
0146 MX6QDL_PAD_DISP0_DAT14__IPU1_DISP0_DATA14 0xe1
0147 MX6QDL_PAD_DISP0_DAT15__IPU1_DISP0_DATA15 0xE1
0148 MX6QDL_PAD_DISP0_DAT16__IPU1_DISP0_DATA16 0xE1
0149 MX6QDL_PAD_DISP0_DAT17__IPU1_DISP0_DATA17 0xE1
0150 MX6QDL_PAD_DISP0_DAT18__IPU1_DISP0_DATA18 0xE1
0151 MX6QDL_PAD_DISP0_DAT19__IPU1_DISP0_DATA19 0xE1
0152 MX6QDL_PAD_DISP0_DAT20__IPU1_DISP0_DATA20 0xE1
0153 MX6QDL_PAD_DISP0_DAT21__IPU1_DISP0_DATA21 0xE1
0154 MX6QDL_PAD_DISP0_DAT22__IPU1_DISP0_DATA22 0xE1
0155 MX6QDL_PAD_DISP0_DAT23__IPU1_DISP0_DATA23 0xE1
0156 >;
0157 };
0158 };