ARM: dts: hummingboard: enable PCF8523 RTC support
[deliverable/linux.git] / arch / arm / boot / dts / imx6qdl-hummingboard.dtsi
CommitLineData
4cd4f509
RK
1/*
2 * Copyright (C) 2013,2014 Russell King
42919c5c
RK
3 *
4 * This file is dual-licensed: you can use it either under the terms
5 * of the GPL or the X11 license, at your option. Note that this dual
6 * licensing only applies to this file, and not this project as a
7 * whole.
8 *
9 * a) This file is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU General Public License as
11 * published by the Free Software Foundation; either version 2 of the
12 * License.
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 , 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.
4cd4f509
RK
41 */
42#include "imx6qdl-microsom.dtsi"
43#include "imx6qdl-microsom-ar8035.dtsi"
44
45/ {
46 chosen {
47 stdout-path = &uart1;
48 };
49
50 ir_recv: ir-receiver {
51 compatible = "gpio-ir-receiver";
af3f973b 52 gpios = <&gpio3 5 1>;
4cd4f509 53 pinctrl-names = "default";
af3f973b 54 pinctrl-0 = <&pinctrl_hummingboard_gpio3_5>;
4cd4f509
RK
55 };
56
57 regulators {
58 compatible = "simple-bus";
59
60 reg_3p3v: 3p3v {
61 compatible = "regulator-fixed";
62 regulator-name = "3P3V";
63 regulator-min-microvolt = <3300000>;
64 regulator-max-microvolt = <3300000>;
65 regulator-always-on;
66 };
67
68 reg_usbh1_vbus: usb-h1-vbus {
69 compatible = "regulator-fixed";
70 enable-active-high;
71 gpio = <&gpio1 0 0>;
72 pinctrl-names = "default";
73 pinctrl-0 = <&pinctrl_hummingboard_usbh1_vbus>;
74 regulator-name = "usb_h1_vbus";
75 regulator-min-microvolt = <5000000>;
76 regulator-max-microvolt = <5000000>;
77 };
78
79 reg_usbotg_vbus: usb-otg-vbus {
80 compatible = "regulator-fixed";
81 enable-active-high;
82 gpio = <&gpio3 22 0>;
83 pinctrl-names = "default";
84 pinctrl-0 = <&pinctrl_hummingboard_usbotg_vbus>;
85 regulator-name = "usb_otg_vbus";
86 regulator-min-microvolt = <5000000>;
87 regulator-max-microvolt = <5000000>;
88 };
89 };
90
91 sound-spdif {
92 compatible = "fsl,imx-audio-spdif";
93 model = "On-board SPDIF";
94 /* IMX6 doesn't implement this yet */
95 spdif-controller = <&spdif>;
96 spdif-out;
97 };
98};
99
100&can1 {
101 pinctrl-names = "default";
102 pinctrl-0 = <&pinctrl_hummingboard_flexcan1>;
103 status = "okay";
104};
105
106&hdmi {
107 pinctrl-names = "default";
108 pinctrl-0 = <&pinctrl_hummingboard_hdmi>;
109 ddc-i2c-bus = <&i2c2>;
110 status = "okay";
111};
112
113&i2c1 {
114 pinctrl-names = "default";
115 pinctrl-0 = <&pinctrl_hummingboard_i2c1>;
4cd4f509
RK
116 status = "okay";
117
a931bbbc 118 /* Pro baseboard model */
4cd4f509
RK
119 rtc: pcf8523@68 {
120 compatible = "nxp,pcf8523";
121 reg = <0x68>;
122 };
4cd4f509
RK
123};
124
125&i2c2 {
126 clock-frequency = <100000>;
127 pinctrl-names = "default";
128 pinctrl-0 = <&pinctrl_hummingboard_i2c2>;
129 status = "okay";
130};
131
132&iomuxc {
133 hummingboard {
134 pinctrl_hummingboard_flexcan1: hummingboard-flexcan1 {
135 fsl,pins = <
136 MX6QDL_PAD_SD3_CLK__FLEXCAN1_RX 0x80000000
137 MX6QDL_PAD_SD3_CMD__FLEXCAN1_TX 0x80000000
138 >;
139 };
140
af3f973b 141 pinctrl_hummingboard_gpio3_5: hummingboard-gpio3_5 {
4cd4f509 142 fsl,pins = <
d56ac192 143 MX6QDL_PAD_EIM_DA5__GPIO3_IO05 0x1b0b1
4cd4f509
RK
144 >;
145 };
146
147 pinctrl_hummingboard_hdmi: hummingboard-hdmi {
148 fsl,pins = <
149 MX6QDL_PAD_KEY_ROW2__HDMI_TX_CEC_LINE 0x1f8b0
150 >;
151 };
152
153 pinctrl_hummingboard_i2c1: hummingboard-i2c1 {
154 fsl,pins = <
155 MX6QDL_PAD_EIM_D21__I2C1_SCL 0x4001b8b1
156 MX6QDL_PAD_EIM_D28__I2C1_SDA 0x4001b8b1
157 >;
158 };
159
160 pinctrl_hummingboard_i2c2: hummingboard-i2c2 {
161 fsl,pins = <
162 MX6QDL_PAD_KEY_COL3__I2C2_SCL 0x4001b8b1
163 MX6QDL_PAD_KEY_ROW3__I2C2_SDA 0x4001b8b1
164 >;
165 };
166
167 pinctrl_hummingboard_spdif: hummingboard-spdif {
168 fsl,pins = <MX6QDL_PAD_GPIO_17__SPDIF_OUT 0x13091>;
169 };
170
171 pinctrl_hummingboard_usbh1_vbus: hummingboard-usbh1-vbus {
172 fsl,pins = <MX6QDL_PAD_GPIO_0__GPIO1_IO00 0x1b0b0>;
173 };
174
175 pinctrl_hummingboard_usbotg_id: hummingboard-usbotg-id {
176 /*
177 * Similar to pinctrl_usbotg_2, but we want it
178 * pulled down for a fixed host connection.
179 */
180 fsl,pins = <MX6QDL_PAD_GPIO_1__USB_OTG_ID 0x13059>;
181 };
182
183 pinctrl_hummingboard_usbotg_vbus: hummingboard-usbotg-vbus {
184 fsl,pins = <MX6QDL_PAD_EIM_D22__GPIO3_IO22 0x1b0b0>;
185 };
186
187 pinctrl_hummingboard_usdhc2_aux: hummingboard-usdhc2-aux {
188 fsl,pins = <
189 MX6QDL_PAD_GPIO_4__GPIO1_IO04 0x1f071
190 >;
191 };
192
193 pinctrl_hummingboard_usdhc2: hummingboard-usdhc2 {
194 fsl,pins = <
195 MX6QDL_PAD_SD2_CMD__SD2_CMD 0x17059
196 MX6QDL_PAD_SD2_CLK__SD2_CLK 0x10059
197 MX6QDL_PAD_SD2_DAT0__SD2_DATA0 0x17059
198 MX6QDL_PAD_SD2_DAT1__SD2_DATA1 0x17059
199 MX6QDL_PAD_SD2_DAT2__SD2_DATA2 0x17059
200 MX6QDL_PAD_SD2_DAT3__SD2_DATA3 0x13059
201 >;
202 };
203 };
204};
205
206&spdif {
207 pinctrl-names = "default";
208 pinctrl-0 = <&pinctrl_hummingboard_spdif>;
209 status = "okay";
210};
211
212&usbh1 {
213 disable-over-current;
214 vbus-supply = <&reg_usbh1_vbus>;
215 status = "okay";
216};
217
218&usbotg {
219 disable-over-current;
220 pinctrl-names = "default";
221 pinctrl-0 = <&pinctrl_hummingboard_usbotg_id>;
222 vbus-supply = <&reg_usbotg_vbus>;
223 status = "okay";
224};
225
226&usdhc2 {
227 pinctrl-names = "default";
228 pinctrl-0 = <
229 &pinctrl_hummingboard_usdhc2_aux
230 &pinctrl_hummingboard_usdhc2
231 >;
232 vmmc-supply = <&reg_3p3v>;
233 cd-gpios = <&gpio1 4 0>;
234 status = "okay";
235};
This page took 0.074482 seconds and 5 git commands to generate.