Merge branches 'pm-sleep' and 'powercap'
[sfrench/cifs-2.6.git] / arch / arm / boot / dts / imx6ul-isiot.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 #include <dt-bindings/gpio/gpio.h>
44 #include <dt-bindings/input/input.h>
45 #include "imx6ul.dtsi"
46
47 / {
48         memory {
49                 reg = <0x80000000 0x20000000>;
50         };
51
52         chosen {
53                 stdout-path = &uart1;
54         };
55
56         backlight {
57                 compatible = "pwm-backlight";
58                 pwms = <&pwm8 0 100000>;
59                 brightness-levels = < 0  1  2  3  4  5  6  7  8  9
60                                      10 11 12 13 14 15 16 17 18 19
61                                      20 21 22 23 24 25 26 27 28 29
62                                      30 31 32 33 34 35 36 37 38 39
63                                      40 41 42 43 44 45 46 47 48 49
64                                      50 51 52 53 54 55 56 57 58 59
65                                      60 61 62 63 64 65 66 67 68 69
66                                      70 71 72 73 74 75 76 77 78 79
67                                      80 81 82 83 84 85 86 87 88 89
68                                      90 91 92 93 94 95 96 97 98 99
69                                     100>;
70                 default-brightness-level = <100>;
71         };
72 };
73
74 &i2c1 {
75         clock-frequency = <100000>;
76         pinctrl-names = "default";
77         pinctrl-0 = <&pinctrl_i2c1>;
78         status = "okay";
79 };
80
81 &i2c2 {
82         clock_frequency = <100000>;
83         pinctrl-names = "default";
84         pinctrl-0 = <&pinctrl_i2c2>;
85         status = "okay";
86 };
87
88 &pwm8 {
89         pinctrl-names = "default";
90         pinctrl-0 = <&pinctrl_pwm8>;
91         status = "okay";
92 };
93
94 &sai2 {
95         pinctrl-names = "default";
96         pinctrl-0 = <&pinctrl_sai2>;
97         status = "okay";
98 };
99
100 &uart1 {
101         pinctrl-names = "default";
102         pinctrl-0 = <&pinctrl_uart1>;
103         status = "okay";
104 };
105
106 &usdhc1 {
107         pinctrl-names = "default", "state_100mhz", "state_200mhz";
108         pinctrl-0 = <&pinctrl_usdhc1>;
109         pinctrl-1 = <&pinctrl_usdhc1_100mhz>;
110         pinctrl-2 = <&pinctrl_usdhc1_200mhz>;
111         cd-gpios = <&gpio1 19 GPIO_ACTIVE_LOW>;
112         bus-width = <4>;
113         no-1-8-v;
114         status = "okay";
115 };
116
117 &iomuxc {
118         pinctrl_i2c1: i2c1grp {
119                 fsl,pins = <
120                         MX6UL_PAD_UART4_TX_DATA__I2C1_SCL 0x4001b8b0
121                         MX6UL_PAD_UART4_RX_DATA__I2C1_SDA 0x4001b8b0
122                 >;
123         };
124
125         pinctrl_i2c2: i2c2grp {
126                 fsl,pins = <
127                         MX6UL_PAD_GPIO1_IO00__I2C2_SCL 0x4001b8b0
128                         MX6UL_PAD_GPIO1_IO01__I2C2_SDA 0x4001b8b0
129                 >;
130         };
131
132         pinctrl_pwm8: pwm8grp {
133                 fsl,pins = <
134                         MX6UL_PAD_ENET1_RX_ER__PWM8_OUT   0x110b0
135                 >;
136         };
137
138         pinctrl_sai2: sai2grp {
139                 fsl,pins = <
140                         MX6UL_PAD_JTAG_TCK__SAI2_RX_DATA        0x130b0
141                         MX6UL_PAD_JTAG_TMS__CCM_CLKO1           0x4001b031
142                         MX6UL_PAD_JTAG_TDI__SAI2_TX_BCLK        0x17088
143                         MX6UL_PAD_JTAG_TDO__SAI2_TX_SYNC        0x17088
144                         MX6UL_PAD_JTAG_TRST_B__SAI2_TX_DATA     0x120b0
145                 >;
146         };
147
148         pinctrl_uart1: uart1grp {
149                 fsl,pins = <
150                         MX6UL_PAD_UART1_TX_DATA__UART1_DCE_TX 0x1b0b1
151                         MX6UL_PAD_UART1_RX_DATA__UART1_DCE_RX 0x1b0b1
152                 >;
153         };
154
155         pinctrl_usdhc1: usdhc1grp {
156                 fsl,pins = <
157                         MX6UL_PAD_SD1_CMD__USDHC1_CMD     0x17059
158                         MX6UL_PAD_SD1_CLK__USDHC1_CLK     0x10059
159                         MX6UL_PAD_SD1_DATA0__USDHC1_DATA0 0x17059
160                         MX6UL_PAD_SD1_DATA1__USDHC1_DATA1 0x17059
161                         MX6UL_PAD_SD1_DATA2__USDHC1_DATA2 0x17059
162                         MX6UL_PAD_SD1_DATA3__USDHC1_DATA3 0x17059
163                 >;
164         };
165
166         pinctrl_usdhc1_100mhz: usdhc1grp100mhz {
167                 fsl,pins = <
168                         MX6UL_PAD_SD1_CMD__USDHC1_CMD     0x170b9
169                         MX6UL_PAD_SD1_CLK__USDHC1_CLK     0x100b9
170                         MX6UL_PAD_SD1_DATA0__USDHC1_DATA0 0x170b9
171                         MX6UL_PAD_SD1_DATA1__USDHC1_DATA1 0x170b9
172                         MX6UL_PAD_SD1_DATA2__USDHC1_DATA2 0x170b9
173                         MX6UL_PAD_SD1_DATA3__USDHC1_DATA3 0x170b9
174                 >;
175         };
176
177         pinctrl_usdhc1_200mhz: usdhc1grp200mhz {
178                 fsl,pins = <
179                         MX6UL_PAD_SD1_CMD__USDHC1_CMD     0x170f9
180                         MX6UL_PAD_SD1_CLK__USDHC1_CLK     0x100f9
181                         MX6UL_PAD_SD1_DATA0__USDHC1_DATA0 0x170f9
182                         MX6UL_PAD_SD1_DATA1__USDHC1_DATA1 0x170f9
183                         MX6UL_PAD_SD1_DATA2__USDHC1_DATA2 0x170f9
184                         MX6UL_PAD_SD1_DATA3__USDHC1_DATA3 0x170f9
185                 >;
186         };
187 };