Merge tag 'scsi-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi
[sfrench/cifs-2.6.git] / arch / arm / boot / dts / imx6ul-isiot-common.dtsi
1 /*
2  * Copyright (C) 2016 Amarula Solutions B.V.
3  * Copyright (C) 2016 Engicam S.r.l.
4  *
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
8  * whole.
9  *
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
12  *     version 2 as published by the Free Software Foundation.
13  *
14  *     This file is distributed in the hope that it will be useful,
15  *     but WITHOUT ANY WARRANTY; without even the implied warranty of
16  *     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17  *     GNU General Public License for more details.
18  *
19  * Or, alternatively,
20  *
21  *  b) Permission is hereby granted, free of charge, to any person
22  *     obtaining a copy of this software and associated documentation
23  *     files (the "Software"), to deal in the Software without
24  *     restriction, including without limitation the rights to use,
25  *     copy, modify, merge, publish, distribute, sublicense, and/or
26  *     sell copies of the Software, and to permit persons to whom the
27  *     Software is furnished to do so, subject to the following
28  *     conditions:
29  *
30  *     The above copyright notice and this permission notice shall be
31  *     included in all copies or substantial portions of the Software.
32  *
33  *     THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
34  *     EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
35  *     OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
36  *     NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
37  *     HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
38  *     WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
39  *     FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
40  *     OTHER DEALINGS IN THE SOFTWARE.
41  */
42
43 &i2c1 {
44         stmpe811: gpio-expander@44 {
45                 compatible = "st,stmpe811";
46                 reg = <0x44>;
47                 #address-cells = <1>;
48                 #size-cells = <0>;
49                 pinctrl-names = "default";
50                 pinctrl-0 = <&pinctrl_stmpe>;
51                 interrupt-parent = <&gpio1>;
52                 interrupts = <18 IRQ_TYPE_EDGE_FALLING>;
53                 interrupt-controller;
54                 #interrupt-cells = <2>;
55
56                 stmpe: touchscreen {
57                         compatible = "st,stmpe-ts";
58                         st,sample-time = <4>;
59                         st,mod-12b = <1>;
60                         st,ref-sel = <0>;
61                         st,adc-freq = <1>;
62                         st,ave-ctrl = <1>;
63                         st,touch-det-delay = <2>;
64                         st,settling = <2>;
65                         st,fraction-z = <7>;
66                         st,i-drive = <1>;
67                 };
68         };
69 };
70
71 &lcdif {
72         pinctrl-names = "default";
73         pinctrl-0 = <&pinctrl_lcdif_dat
74                      &pinctrl_lcdif_ctrl>;
75         display = <&display0>;
76         status = "okay";
77
78         display0: display {
79                 bits-per-pixel = <16>;
80                 bus-width = <18>;
81
82                 display-timings {
83                         native-mode = <&timing0>;
84                         timing0: timing0 {
85                                 clock-frequency = <28000000>;
86                                 hactive = <800>;
87                                 vactive = <480>;
88                                 hfront-porch = <30>;
89                                 hback-porch = <30>;
90                                 hsync-len = <64>;
91                                 vback-porch = <5>;
92                                 vfront-porch = <5>;
93                                 vsync-len = <20>;
94                                 hsync-active = <0>;
95                                 vsync-active = <0>;
96                                 de-active = <1>;
97                                 pixelclk-active = <0>;
98                         };
99                 };
100         };
101 };
102
103 &iomuxc {
104         pinctrl_lcdif_ctrl: lcdifctrlgrp {
105                 fsl,pins = <
106                         MX6UL_PAD_LCD_CLK__LCDIF_CLK        0x79
107                         MX6UL_PAD_LCD_ENABLE__LCDIF_ENABLE  0x79
108                         MX6UL_PAD_LCD_HSYNC__LCDIF_HSYNC    0x79
109                         MX6UL_PAD_LCD_VSYNC__LCDIF_VSYNC    0x79
110                 >;
111         };
112
113         pinctrl_lcdif_dat: lcdifdatgrp {
114                 fsl,pins = <
115                         MX6UL_PAD_LCD_DATA00__LCDIF_DATA00  0x79
116                         MX6UL_PAD_LCD_DATA01__LCDIF_DATA01  0x79
117                         MX6UL_PAD_LCD_DATA02__LCDIF_DATA02  0x79
118                         MX6UL_PAD_LCD_DATA03__LCDIF_DATA03  0x79
119                         MX6UL_PAD_LCD_DATA04__LCDIF_DATA04  0x79
120                         MX6UL_PAD_LCD_DATA05__LCDIF_DATA05  0x79
121                         MX6UL_PAD_LCD_DATA06__LCDIF_DATA06  0x79
122                         MX6UL_PAD_LCD_DATA07__LCDIF_DATA07  0x79
123                         MX6UL_PAD_LCD_DATA08__LCDIF_DATA08  0x79
124                         MX6UL_PAD_LCD_DATA09__LCDIF_DATA09  0x79
125                         MX6UL_PAD_LCD_DATA10__LCDIF_DATA10  0x79
126                         MX6UL_PAD_LCD_DATA11__LCDIF_DATA11  0x79
127                         MX6UL_PAD_LCD_DATA12__LCDIF_DATA12  0x79
128                         MX6UL_PAD_LCD_DATA13__LCDIF_DATA13  0x79
129                         MX6UL_PAD_LCD_DATA14__LCDIF_DATA14  0x79
130                         MX6UL_PAD_LCD_DATA15__LCDIF_DATA15  0x79
131                         MX6UL_PAD_LCD_DATA16__LCDIF_DATA16  0x79
132                         MX6UL_PAD_LCD_DATA17__LCDIF_DATA17  0x79
133                 >;
134         };
135
136         pinctrl_stmpe: stmpegrp  {
137                 fsl,pins = <
138                         MX6UL_PAD_UART1_CTS_B__GPIO1_IO18 0x1b0b0
139                 >;
140         };
141 };