2 * Copyright (C) 2014 Russell King
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
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
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.
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
30 * The above copyright notice and this permission notice shall be
31 * included in all copies or substantial portions of the Software.
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.
42 #include "imx6qdl-microsom.dtsi"
43 #include "imx6qdl-microsom-ar8035.dtsi"
44 #include <dt-bindings/input/input.h>
45 #include <dt-bindings/gpio/gpio.h>
48 ir_recv: ir-receiver {
49 compatible = "gpio-ir-receiver";
51 pinctrl-names = "default";
52 pinctrl-0 = <&pinctrl_cubox_i_ir>;
56 compatible = "pwm-leds";
57 pinctrl-names = "default";
58 pinctrl-0 = <&pinctrl_cubox_i_pwm1>;
62 label = "imx6:red:front";
63 max-brightness = <248>;
64 pwms = <&pwm1 0 50000>;
69 compatible = "simple-bus";
72 compatible = "regulator-fixed";
73 regulator-name = "3P3V";
74 regulator-min-microvolt = <3300000>;
75 regulator-max-microvolt = <3300000>;
79 reg_usbh1_vbus: usb-h1-vbus {
80 compatible = "regulator-fixed";
83 pinctrl-names = "default";
84 pinctrl-0 = <&pinctrl_cubox_i_usbh1_vbus>;
85 regulator-name = "usb_h1_vbus";
86 regulator-min-microvolt = <5000000>;
87 regulator-max-microvolt = <5000000>;
90 reg_usbotg_vbus: usb-otg-vbus {
91 compatible = "regulator-fixed";
94 pinctrl-names = "default";
95 pinctrl-0 = <&pinctrl_cubox_i_usbotg_vbus>;
96 regulator-name = "usb_otg_vbus";
97 regulator-min-microvolt = <5000000>;
98 regulator-max-microvolt = <5000000>;
103 compatible = "fsl,imx-audio-spdif";
104 model = "Integrated SPDIF";
105 /* IMX6 doesn't implement this yet */
106 spdif-controller = <&spdif>;
111 compatible = "gpio-keys";
112 pinctrl-0 = <&pinctrl_gpio_key>;
113 pinctrl-names = "default";
117 gpios = <&gpio3 8 GPIO_ACTIVE_LOW>;
118 linux,code = <BTN_0>;
124 pinctrl-names = "default";
125 pinctrl-0 = <&pinctrl_cubox_i_hdmi>;
126 ddc-i2c-bus = <&i2c2>;
131 clock-frequency = <100000>;
132 pinctrl-names = "default";
133 pinctrl-0 = <&pinctrl_cubox_i_i2c2>;
138 pinctrl-names = "default";
139 pinctrl-0 = <&pinctrl_cubox_i_i2c3>;
144 compatible = "nxp,pcf8523";
151 pinctrl_cubox_i_hdmi: cubox-i-hdmi {
153 MX6QDL_PAD_KEY_ROW2__HDMI_TX_CEC_LINE 0x1f8b0
157 pinctrl_cubox_i_i2c2: cubox-i-i2c2 {
159 MX6QDL_PAD_KEY_COL3__I2C2_SCL 0x4001b8b1
160 MX6QDL_PAD_KEY_ROW3__I2C2_SDA 0x4001b8b1
164 pinctrl_cubox_i_i2c3: cubox-i-i2c3 {
166 MX6QDL_PAD_EIM_D17__I2C3_SCL 0x4001b8b1
167 MX6QDL_PAD_EIM_D18__I2C3_SDA 0x4001b8b1
171 pinctrl_cubox_i_ir: cubox-i-ir {
173 MX6QDL_PAD_EIM_DA9__GPIO3_IO09 0x80000000
177 pinctrl_cubox_i_pwm1: cubox-i-pwm1-front-led {
178 fsl,pins = <MX6QDL_PAD_DISP0_DAT8__PWM1_OUT 0x1b0b0>;
181 pinctrl_cubox_i_spdif: cubox-i-spdif {
182 fsl,pins = <MX6QDL_PAD_GPIO_17__SPDIF_OUT 0x13091>;
185 pinctrl_cubox_i_usbh1: cubox-i-usbh1 {
186 fsl,pins = <MX6QDL_PAD_GPIO_3__USB_H1_OC 0x1b0b0>;
189 pinctrl_cubox_i_usbh1_vbus: cubox-i-usbh1-vbus {
190 fsl,pins = <MX6QDL_PAD_GPIO_0__GPIO1_IO00 0x4001b0b0>;
193 pinctrl_cubox_i_usbotg: cubox-i-usbotg {
195 * The Cubox-i pulls ID low, but as it's pointless
196 * leaving it as a pull-up, even if it is just 10uA.
199 MX6QDL_PAD_GPIO_1__USB_OTG_ID 0x13059
200 MX6QDL_PAD_KEY_COL4__USB_OTG_OC 0x1b0b0
204 pinctrl_cubox_i_usbotg_vbus: cubox-i-usbotg-vbus {
205 fsl,pins = <MX6QDL_PAD_EIM_D22__GPIO3_IO22 0x4001b0b0>;
208 pinctrl_cubox_i_usdhc2_aux: cubox-i-usdhc2-aux {
210 MX6QDL_PAD_GPIO_4__GPIO1_IO04 0x1f071
211 MX6QDL_PAD_KEY_ROW1__SD2_VSELECT 0x1b071
215 pinctrl_cubox_i_usdhc2: cubox-i-usdhc2 {
217 MX6QDL_PAD_SD2_CMD__SD2_CMD 0x17059
218 MX6QDL_PAD_SD2_CLK__SD2_CLK 0x10059
219 MX6QDL_PAD_SD2_DAT0__SD2_DATA0 0x17059
220 MX6QDL_PAD_SD2_DAT1__SD2_DATA1 0x17059
221 MX6QDL_PAD_SD2_DAT2__SD2_DATA2 0x17059
222 MX6QDL_PAD_SD2_DAT3__SD2_DATA3 0x13059
226 pinctrl_gpio_key: gpio-key {
228 MX6QDL_PAD_EIM_DA8__GPIO3_IO08 0x17059
239 pinctrl-names = "default";
240 pinctrl-0 = <&pinctrl_cubox_i_spdif>;
245 pinctrl-names = "default";
246 pinctrl-0 = <&pinctrl_cubox_i_usbh1>;
247 vbus-supply = <®_usbh1_vbus>;
252 pinctrl-names = "default";
253 pinctrl-0 = <&pinctrl_cubox_i_usbotg>;
254 vbus-supply = <®_usbotg_vbus>;
259 pinctrl-names = "default";
260 pinctrl-0 = <&pinctrl_cubox_i_usdhc2_aux &pinctrl_cubox_i_usdhc2>;
261 vmmc-supply = <®_3p3v>;
262 cd-gpios = <&gpio1 4 0>;