ARM: dts: STi: STih407: Switch LPC mode from RTC to Clocksource
[deliverable/linux.git] / arch / arm / boot / dts / imx6q-apalis-ixora.dts
1 /*
2 * Copyright 2014-2016 Toradex AG
3 * Copyright 2012 Freescale Semiconductor, Inc.
4 * Copyright 2011 Linaro Ltd.
5 *
6 * This file is dual-licensed: you can use it either under the terms
7 * of the GPL or the X11 license, at your option. Note that this dual
8 * licensing only applies to this file, and not this project as a
9 * whole.
10 *
11 * a) This file is free software; you can redistribute it and/or
12 * modify it under the terms of the GNU General Public License
13 * version 2 as published by the Free Software Foundation.
14 *
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.
19 *
20 * Or, alternatively
21 *
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
29 * conditions:
30 *
31 * The above copyright notice and this permission notice shall be
32 * included in all copies or substantial portions of the Software.
33 *
34 * THE SOFTWARE IS PROVIDED , 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.
42 */
43
44 /dts-v1/;
45
46 #include <dt-bindings/gpio/gpio.h>
47 #include <dt-bindings/input/input.h>
48 #include <dt-bindings/interrupt-controller/irq.h>
49 #include "imx6q.dtsi"
50 #include "imx6qdl-apalis.dtsi"
51
52 / {
53 model = "Toradex Apalis iMX6Q/D Module on Ixora Carrier Board";
54 compatible = "toradex,apalis_imx6q-ixora", "toradex,apalis_imx6q",
55 "fsl,imx6q";
56
57 aliases {
58 i2c0 = &i2cddc;
59 i2c1 = &i2c1;
60 i2c2 = &i2c2;
61 i2c3 = &i2c3;
62 };
63
64 aliases {
65 rtc0 = &rtc_i2c;
66 rtc1 = &snvs_rtc;
67 };
68
69 gpio-keys {
70 compatible = "gpio-keys";
71 pinctrl-names = "default";
72 pinctrl-0 = <&pinctrl_gpio_keys>;
73
74 wakeup {
75 label = "Wake-Up";
76 gpios = <&gpio1 4 GPIO_ACTIVE_LOW>;
77 linux,code = <KEY_WAKEUP>;
78 debounce-interval = <10>;
79 wakeup-source;
80 };
81 };
82
83 leds {
84 compatible = "gpio-leds";
85
86 pinctrl-names = "default";
87 pinctrl-0 = <&pinctrl_leds_ixora>;
88
89 led4-green {
90 label = "LED_4_GREEN";
91 gpios = <&gpio1 17 GPIO_ACTIVE_HIGH>;
92 };
93
94 led4-red {
95 label = "LED_4_RED";
96 gpios = <&gpio1 21 GPIO_ACTIVE_HIGH>;
97 };
98
99 led5-green {
100 label = "LED_5_GREEN";
101 gpios = <&gpio2 1 GPIO_ACTIVE_HIGH>;
102 };
103
104 led5-red {
105 label = "LED_5_RED";
106 gpios = <&gpio2 2 GPIO_ACTIVE_HIGH>;
107 };
108 };
109
110 pwmleds {
111 compatible = "pwm-leds";
112
113 ledpwm1 {
114 label = "PWM1";
115 pwms = <&pwm1 0 50000>;
116 max-brightness = <255>;
117 };
118
119 ledpwm2 {
120 label = "PWM2";
121 pwms = <&pwm2 0 50000>;
122 max-brightness = <255>;
123 };
124
125 ledpwm3 {
126 label = "PWM3";
127 pwms = <&pwm3 0 50000>;
128 max-brightness = <255>;
129 };
130 };
131 };
132
133 &backlight {
134 brightness-levels = <0 127 191 223 239 247 251 255>;
135 default-brightness-level = <1>;
136 status = "okay";
137 };
138
139 &can1 {
140 status = "okay";
141 };
142
143 &can2 {
144 status = "okay";
145 };
146
147 &hdmi {
148 ddc-i2c-bus = <&i2cddc>;
149 status = "okay";
150 };
151
152 &i2cddc {
153 status = "okay";
154 };
155
156 /* GEN1_I2C: I2C1_SDA/SCL on MXM3 209/211 (e.g. RTC on carrier board) */
157 &i2c1 {
158 status = "okay";
159
160 eeprom@50 {
161 compatible = "atmel,24c02";
162 reg = <0x50>;
163 };
164
165 /* M41T0M6 real time clock on carrier board */
166 rtc_i2c: rtc@68 {
167 compatible = "st,m41t00";
168 reg = <0x68>;
169 };
170 };
171
172 &ldb {
173 status = "okay";
174 };
175
176 &pcie {
177 /* active-low meaning opposite of regular PERST# active-low polarity */
178 reset-gpio = <&gpio1 28 GPIO_ACTIVE_LOW>;
179 status = "okay";
180 };
181
182 &pwm1 {
183 status = "okay";
184 };
185
186 &pwm2 {
187 status = "okay";
188 };
189
190 &pwm3 {
191 status = "okay";
192 };
193
194 &pwm4 {
195 status = "okay";
196 };
197
198 &reg_usb_otg_vbus {
199 status = "okay";
200 };
201
202 &reg_usb_host_vbus {
203 status = "okay";
204 };
205
206 &sata {
207 status = "okay";
208 };
209
210 &sound_spdif {
211 status = "okay";
212 };
213
214 &spdif {
215 status = "okay";
216 };
217
218 &uart1 {
219 status = "okay";
220 };
221
222 &uart2 {
223 status = "okay";
224 };
225
226 &uart4 {
227 status = "okay";
228 };
229
230 &uart5 {
231 status = "okay";
232 };
233
234 &usbh1 {
235 vbus-supply = <&reg_usb_host_vbus>;
236 status = "okay";
237 };
238
239 &usbotg {
240 vbus-supply = <&reg_usb_otg_vbus>;
241 status = "okay";
242 };
243
244 /* SD1 */
245 &usdhc2 {
246 pinctrl-names = "default";
247 pinctrl-0 = <&pinctrl_sd_cd>;
248 cd-gpios = <&gpio6 14 GPIO_ACTIVE_LOW>;
249 status = "okay";
250 };
251
252 &iomuxc {
253 /*
254 * Mux the Apalis GPIOs
255 * GPIO5, 6 used by optional fusion_F0710A kernel module
256 */
257 pinctrl-names = "default";
258 pinctrl-0 = <&pinctrl_apalis_gpio1 &pinctrl_apalis_gpio2
259 &pinctrl_apalis_gpio3 &pinctrl_apalis_gpio4
260 &pinctrl_apalis_gpio5 &pinctrl_apalis_gpio6
261 &pinctrl_apalis_gpio7 &pinctrl_apalis_gpio8
262 >;
263
264 pinctrl_leds_ixora: ledsixoragrp {
265 fsl,pins = <
266 MX6QDL_PAD_SD1_DAT1__GPIO1_IO17 0x1b0b0
267 MX6QDL_PAD_SD1_DAT3__GPIO1_IO21 0x1b0b0
268 MX6QDL_PAD_NANDF_D1__GPIO2_IO01 0x1b0b0
269 MX6QDL_PAD_NANDF_D2__GPIO2_IO02 0x1b0b0
270 >;
271 };
272 };
This page took 0.061809 seconds and 5 git commands to generate.