xref: /freebsd-src/sys/contrib/device-tree/src/arm/nxp/imx/imx6dl-aristainetos2_4.dts (revision 0e8011faf58b743cc652e3b2ad0f7671227610df)
1f126890aSEmmanuel Vadot/*
2f126890aSEmmanuel Vadot * support for the imx6 based aristainetos2 board
3f126890aSEmmanuel Vadot *
4f126890aSEmmanuel Vadot * Copyright (C) 2015 Heiko Schocher <hs@denx.de>
5f126890aSEmmanuel Vadot *
6f126890aSEmmanuel Vadot * This file is dual-licensed: you can use it either under the terms
7f126890aSEmmanuel Vadot * of the GPL or the X11 license, at your option. Note that this dual
8f126890aSEmmanuel Vadot * licensing only applies to this file, and not this project as a
9f126890aSEmmanuel Vadot * whole.
10f126890aSEmmanuel Vadot *
11f126890aSEmmanuel Vadot *  a) This file is free software; you can redistribute it and/or
12f126890aSEmmanuel Vadot *     modify it under the terms of the GNU General Public License
13f126890aSEmmanuel Vadot *     version 2 as published by the Free Software Foundation.
14f126890aSEmmanuel Vadot *
15f126890aSEmmanuel Vadot *     This file is distributed in the hope that it will be useful,
16f126890aSEmmanuel Vadot *     but WITHOUT ANY WARRANTY; without even the implied warranty of
17f126890aSEmmanuel Vadot *     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18f126890aSEmmanuel Vadot *     GNU General Public License for more details.
19f126890aSEmmanuel Vadot *
20f126890aSEmmanuel Vadot * Or, alternatively,
21f126890aSEmmanuel Vadot *
22f126890aSEmmanuel Vadot *  b) Permission is hereby granted, free of charge, to any person
23f126890aSEmmanuel Vadot *     obtaining a copy of this software and associated documentation
24f126890aSEmmanuel Vadot *     files (the "Software"), to deal in the Software without
25f126890aSEmmanuel Vadot *     restriction, including without limitation the rights to use,
26f126890aSEmmanuel Vadot *     copy, modify, merge, publish, distribute, sublicense, and/or
27f126890aSEmmanuel Vadot *     sell copies of the Software, and to permit persons to whom the
28f126890aSEmmanuel Vadot *     Software is furnished to do so, subject to the following
29f126890aSEmmanuel Vadot *     conditions:
30f126890aSEmmanuel Vadot *
31f126890aSEmmanuel Vadot *     The above copyright notice and this permission notice shall be
32f126890aSEmmanuel Vadot *     included in all copies or substantial portions of the Software.
33f126890aSEmmanuel Vadot *
34f126890aSEmmanuel Vadot *     THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
35f126890aSEmmanuel Vadot *     EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
36f126890aSEmmanuel Vadot *     OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
37f126890aSEmmanuel Vadot *     NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
38f126890aSEmmanuel Vadot *     HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
39f126890aSEmmanuel Vadot *     WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
40f126890aSEmmanuel Vadot *     FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
41f126890aSEmmanuel Vadot *     OTHER DEALINGS IN THE SOFTWARE.
42f126890aSEmmanuel Vadot */
43f126890aSEmmanuel Vadot/dts-v1/;
44f126890aSEmmanuel Vadot#include "imx6dl.dtsi"
45f126890aSEmmanuel Vadot#include "imx6qdl-aristainetos2.dtsi"
46f126890aSEmmanuel Vadot
47f126890aSEmmanuel Vadot/ {
48f126890aSEmmanuel Vadot	model = "aristainetos2 i.MX6 Dual Lite Board 4";
49f126890aSEmmanuel Vadot	compatible = "abb,aristainetos2-imx6dl-4", "fsl,imx6dl";
50f126890aSEmmanuel Vadot
51f126890aSEmmanuel Vadot	memory@10000000 {
52f126890aSEmmanuel Vadot		device_type = "memory";
53f126890aSEmmanuel Vadot		reg = <0x10000000 0x40000000>;
54f126890aSEmmanuel Vadot	};
55f126890aSEmmanuel Vadot
56f126890aSEmmanuel Vadot	display0: disp0 {
57f126890aSEmmanuel Vadot		#address-cells = <1>;
58f126890aSEmmanuel Vadot		#size-cells = <0>;
59f126890aSEmmanuel Vadot		compatible = "fsl,imx-parallel-display";
60f126890aSEmmanuel Vadot		interface-pix-fmt = "rgb24";
61f126890aSEmmanuel Vadot		pinctrl-names = "default";
62f126890aSEmmanuel Vadot		pinctrl-0 = <&pinctrl_ipu_disp>;
63f126890aSEmmanuel Vadot
64f126890aSEmmanuel Vadot		port@0 {
65f126890aSEmmanuel Vadot			reg = <0>;
66f126890aSEmmanuel Vadot			display0_in: endpoint {
67f126890aSEmmanuel Vadot				remote-endpoint = <&ipu1_di0_disp0>;
68f126890aSEmmanuel Vadot			};
69f126890aSEmmanuel Vadot		};
70f126890aSEmmanuel Vadot
71f126890aSEmmanuel Vadot		port@1 {
72f126890aSEmmanuel Vadot			reg = <1>;
73f126890aSEmmanuel Vadot			display_out: endpoint {
74f126890aSEmmanuel Vadot				remote-endpoint = <&panel_in>;
75f126890aSEmmanuel Vadot			};
76f126890aSEmmanuel Vadot		};
77f126890aSEmmanuel Vadot	};
78f126890aSEmmanuel Vadot};
79f126890aSEmmanuel Vadot
80f126890aSEmmanuel Vadot&ecspi1 {
81f126890aSEmmanuel Vadot	lcd_panel: display@0 {
82f126890aSEmmanuel Vadot		compatible = "lg,lg4573";
83f126890aSEmmanuel Vadot		spi-max-frequency = <10000000>;
84f126890aSEmmanuel Vadot		reg = <0>;
85f126890aSEmmanuel Vadot
86f126890aSEmmanuel Vadot		display-timings {
87*0e8011faSEmmanuel Vadot			native-mode = <&timing0>;
88*0e8011faSEmmanuel Vadot			timing0: timing-480x800p57 {
89f126890aSEmmanuel Vadot				clock-frequency = <27000027>;
90f126890aSEmmanuel Vadot				hactive = <480>;
91f126890aSEmmanuel Vadot				vactive = <800>;
92f126890aSEmmanuel Vadot				hfront-porch = <10>;
93f126890aSEmmanuel Vadot				hback-porch = <59>;
94f126890aSEmmanuel Vadot				hsync-len = <10>;
95f126890aSEmmanuel Vadot				vback-porch = <15>;
96f126890aSEmmanuel Vadot				vfront-porch = <15>;
97f126890aSEmmanuel Vadot				vsync-len = <15>;
98f126890aSEmmanuel Vadot				hsync-active = <1>;
99f126890aSEmmanuel Vadot				vsync-active = <1>;
100f126890aSEmmanuel Vadot			};
101f126890aSEmmanuel Vadot		};
102f126890aSEmmanuel Vadot
103f126890aSEmmanuel Vadot		port {
104f126890aSEmmanuel Vadot			panel_in: endpoint {
105f126890aSEmmanuel Vadot				remote-endpoint = <&display_out>;
106f126890aSEmmanuel Vadot			};
107f126890aSEmmanuel Vadot		};
108f126890aSEmmanuel Vadot	};
109f126890aSEmmanuel Vadot};
110f126890aSEmmanuel Vadot
111f126890aSEmmanuel Vadot&i2c3 {
112f126890aSEmmanuel Vadot	touch: touch@4b {
113f126890aSEmmanuel Vadot		compatible = "atmel,maxtouch";
114f126890aSEmmanuel Vadot		reg = <0x4b>;
115f126890aSEmmanuel Vadot		interrupt-parent = <&gpio2>;
116f126890aSEmmanuel Vadot		interrupts = <9 8>;
117f126890aSEmmanuel Vadot	};
118f126890aSEmmanuel Vadot};
119f126890aSEmmanuel Vadot
120f126890aSEmmanuel Vadot&ipu1_di0_disp0 {
121f126890aSEmmanuel Vadot	remote-endpoint = <&display0_in>;
122f126890aSEmmanuel Vadot};
123f126890aSEmmanuel Vadot
124f126890aSEmmanuel Vadot&iomuxc {
125f126890aSEmmanuel Vadot	pinctrl_ipu_disp: ipudisp1grp {
126f126890aSEmmanuel Vadot		fsl,pins = <
127f126890aSEmmanuel Vadot			MX6QDL_PAD_DI0_DISP_CLK__IPU1_DI0_DISP_CLK 0x31
128f126890aSEmmanuel Vadot			MX6QDL_PAD_DI0_PIN15__IPU1_DI0_PIN15       0xE1
129f126890aSEmmanuel Vadot			MX6QDL_PAD_DI0_PIN2__IPU1_DI0_PIN02        0x10
130f126890aSEmmanuel Vadot			MX6QDL_PAD_DI0_PIN3__IPU1_DI0_PIN03        0x10
131f126890aSEmmanuel Vadot			MX6QDL_PAD_DISP0_DAT0__IPU1_DISP0_DATA00   0xE1
132f126890aSEmmanuel Vadot			MX6QDL_PAD_DISP0_DAT1__IPU1_DISP0_DATA01   0xE1
133f126890aSEmmanuel Vadot			MX6QDL_PAD_DISP0_DAT2__IPU1_DISP0_DATA02   0xE1
134f126890aSEmmanuel Vadot			MX6QDL_PAD_DISP0_DAT3__IPU1_DISP0_DATA03   0xE1
135f126890aSEmmanuel Vadot			MX6QDL_PAD_DISP0_DAT4__IPU1_DISP0_DATA04   0xE1
136f126890aSEmmanuel Vadot			MX6QDL_PAD_DISP0_DAT5__IPU1_DISP0_DATA05   0xE1
137f126890aSEmmanuel Vadot			MX6QDL_PAD_DISP0_DAT6__IPU1_DISP0_DATA06   0xE1
138f126890aSEmmanuel Vadot			MX6QDL_PAD_DISP0_DAT7__IPU1_DISP0_DATA07   0xE1
139f126890aSEmmanuel Vadot			MX6QDL_PAD_DISP0_DAT8__IPU1_DISP0_DATA08   0xE1
140f126890aSEmmanuel Vadot			MX6QDL_PAD_DISP0_DAT9__IPU1_DISP0_DATA09   0xE1
141f126890aSEmmanuel Vadot			MX6QDL_PAD_DISP0_DAT10__IPU1_DISP0_DATA10  0xE1
142f126890aSEmmanuel Vadot			MX6QDL_PAD_DISP0_DAT11__IPU1_DISP0_DATA11  0xE1
143f126890aSEmmanuel Vadot			MX6QDL_PAD_DISP0_DAT12__IPU1_DISP0_DATA12  0xE1
144f126890aSEmmanuel Vadot			MX6QDL_PAD_DISP0_DAT13__IPU1_DISP0_DATA13  0xE1
145f126890aSEmmanuel Vadot			MX6QDL_PAD_DISP0_DAT14__IPU1_DISP0_DATA14  0xe1
146f126890aSEmmanuel Vadot			MX6QDL_PAD_DISP0_DAT15__IPU1_DISP0_DATA15  0xE1
147f126890aSEmmanuel Vadot			MX6QDL_PAD_DISP0_DAT16__IPU1_DISP0_DATA16  0xE1
148f126890aSEmmanuel Vadot			MX6QDL_PAD_DISP0_DAT17__IPU1_DISP0_DATA17  0xE1
149f126890aSEmmanuel Vadot			MX6QDL_PAD_DISP0_DAT18__IPU1_DISP0_DATA18  0xE1
150f126890aSEmmanuel Vadot			MX6QDL_PAD_DISP0_DAT19__IPU1_DISP0_DATA19  0xE1
151f126890aSEmmanuel Vadot			MX6QDL_PAD_DISP0_DAT20__IPU1_DISP0_DATA20  0xE1
152f126890aSEmmanuel Vadot			MX6QDL_PAD_DISP0_DAT21__IPU1_DISP0_DATA21  0xE1
153f126890aSEmmanuel Vadot			MX6QDL_PAD_DISP0_DAT22__IPU1_DISP0_DATA22  0xE1
154f126890aSEmmanuel Vadot			MX6QDL_PAD_DISP0_DAT23__IPU1_DISP0_DATA23  0xE1
155f126890aSEmmanuel Vadot		>;
156f126890aSEmmanuel Vadot	};
157f126890aSEmmanuel Vadot};
158