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
11 * version 2 as published by the Free Software Foundation.
13 * This file is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
20 * b) Permission is hereby granted, free of charge, to any person
21 * obtaining a copy of this software and associated documentation
22 * files (the "Software"), to deal in the Software without
23 * restriction, including without limitation the rights to use,
24 * copy, modify, merge, publish, distribute, sublicense, and/or
25 * sell copies of the Software, and to permit persons to whom the
26 * Software is furnished to do so, subject to the following
29 * The above copyright notice and this permission notice shall be
30 * included in all copies or substantial portions of the Software.
32 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
33 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
34 * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
35 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
36 * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
37 * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
38 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
39 * OTHER DEALINGS IN THE SOFTWARE.
41 #include <dt-bindings/input/input.h>
42 #include <dt-bindings/gpio/gpio.h>
45 ir_recv: ir-receiver {
46 compatible = "gpio-ir-receiver";
48 pinctrl-names = "default";
49 pinctrl-0 = <&pinctrl_cubox_i_ir>;
53 compatible = "pwm-leds";
54 pinctrl-names = "default";
55 pinctrl-0 = <&pinctrl_cubox_i_pwm1>;
59 label = "imx6:red:front";
60 max-brightness = <248>;
61 pwms = <&pwm1 0 50000>;
65 v_5v0: regulator-v-5v0 {
66 compatible = "regulator-fixed";
68 regulator-max-microvolt = <5000000>;
69 regulator-min-microvolt = <5000000>;
70 regulator-name = "v_5v0";
73 v_usb2: regulator-v-usb2 {
74 compatible = "regulator-fixed";
76 gpio = <&gpio1 0 GPIO_ACTIVE_HIGH>;
77 pinctrl-names = "default";
78 pinctrl-0 = <&pinctrl_cubox_i_usbh1_vbus>;
79 regulator-max-microvolt = <5000000>;
80 regulator-min-microvolt = <5000000>;
81 regulator-name = "v_usb2";
82 vin-supply = <&v_5v0>;
85 v_usb1: regulator-v-usb1 {
86 compatible = "regulator-fixed";
88 gpio = <&gpio3 22 GPIO_ACTIVE_HIGH>;
89 pinctrl-names = "default";
90 pinctrl-0 = <&pinctrl_cubox_i_usbotg_vbus>;
91 regulator-max-microvolt = <5000000>;
92 regulator-min-microvolt = <5000000>;
93 regulator-name = "v_usb1";
94 vin-supply = <&v_5v0>;
98 compatible = "fsl,imx-audio-spdif";
99 model = "Integrated SPDIF";
100 /* IMX6 doesn't implement this yet */
101 spdif-controller = <&spdif>;
106 compatible = "gpio-keys";
107 pinctrl-0 = <&pinctrl_gpio_key>;
108 pinctrl-names = "default";
112 gpios = <&gpio3 8 GPIO_ACTIVE_LOW>;
113 linux,code = <BTN_0>;
119 pinctrl-names = "default";
120 pinctrl-0 = <&pinctrl_cubox_i_hdmi>;
121 ddc-i2c-bus = <&i2c2>;
126 clock-frequency = <100000>;
127 pinctrl-names = "default";
128 pinctrl-0 = <&pinctrl_cubox_i_i2c2>;
133 pinctrl-names = "default";
134 pinctrl-0 = <&pinctrl_cubox_i_i2c3>;
139 compatible = "nxp,pcf8523";
146 pinctrl_cubox_i_hdmi: cubox-i-hdmi {
148 MX6QDL_PAD_KEY_ROW2__HDMI_TX_CEC_LINE 0x1f8b0
152 pinctrl_cubox_i_i2c2: cubox-i-i2c2 {
154 MX6QDL_PAD_KEY_COL3__I2C2_SCL 0x4001b8b1
155 MX6QDL_PAD_KEY_ROW3__I2C2_SDA 0x4001b8b1
159 pinctrl_cubox_i_i2c3: cubox-i-i2c3 {
161 MX6QDL_PAD_EIM_D17__I2C3_SCL 0x4001b8b1
162 MX6QDL_PAD_EIM_D18__I2C3_SDA 0x4001b8b1
166 pinctrl_cubox_i_ir: cubox-i-ir {
168 MX6QDL_PAD_EIM_DA9__GPIO3_IO09 0x80000000
172 pinctrl_cubox_i_pwm1: cubox-i-pwm1-front-led {
173 fsl,pins = <MX6QDL_PAD_DISP0_DAT8__PWM1_OUT 0x1b0b0>;
176 pinctrl_cubox_i_spdif: cubox-i-spdif {
177 fsl,pins = <MX6QDL_PAD_GPIO_17__SPDIF_OUT 0x13091>;
180 pinctrl_cubox_i_usbh1: cubox-i-usbh1 {
181 fsl,pins = <MX6QDL_PAD_GPIO_3__USB_H1_OC 0x1b0b0>;
184 pinctrl_cubox_i_usbh1_vbus: cubox-i-usbh1-vbus {
185 fsl,pins = <MX6QDL_PAD_GPIO_0__GPIO1_IO00 0x4001b0b0>;
188 pinctrl_cubox_i_usbotg: cubox-i-usbotg {
190 * The Cubox-i pulls ID low, but as it's pointless
191 * leaving it as a pull-up, even if it is just 10uA.
194 MX6QDL_PAD_GPIO_1__USB_OTG_ID 0x13059
195 MX6QDL_PAD_KEY_COL4__USB_OTG_OC 0x1b0b0
199 pinctrl_cubox_i_usbotg_vbus: cubox-i-usbotg-vbus {
200 fsl,pins = <MX6QDL_PAD_EIM_D22__GPIO3_IO22 0x4001b0b0>;
203 pinctrl_cubox_i_usdhc2_aux: cubox-i-usdhc2-aux {
205 MX6QDL_PAD_GPIO_4__GPIO1_IO04 0x1f071
206 MX6QDL_PAD_KEY_ROW1__SD2_VSELECT 0x1b071
210 pinctrl_cubox_i_usdhc2: cubox-i-usdhc2 {
212 MX6QDL_PAD_SD2_CMD__SD2_CMD 0x17059
213 MX6QDL_PAD_SD2_CLK__SD2_CLK 0x10059
214 MX6QDL_PAD_SD2_DAT0__SD2_DATA0 0x17059
215 MX6QDL_PAD_SD2_DAT1__SD2_DATA1 0x17059
216 MX6QDL_PAD_SD2_DAT2__SD2_DATA2 0x17059
217 MX6QDL_PAD_SD2_DAT3__SD2_DATA3 0x13059
221 pinctrl_gpio_key: gpio-key {
223 MX6QDL_PAD_EIM_DA8__GPIO3_IO08 0x17059
234 pinctrl-names = "default";
235 pinctrl-0 = <&pinctrl_cubox_i_spdif>;
240 pinctrl-names = "default";
241 pinctrl-0 = <&pinctrl_cubox_i_usbh1>;
242 vbus-supply = <&v_usb2>;
247 pinctrl-names = "default";
248 pinctrl-0 = <&pinctrl_cubox_i_usbotg>;
249 vbus-supply = <&v_usb1>;
254 pinctrl-names = "default";
255 pinctrl-0 = <&pinctrl_cubox_i_usdhc2_aux &pinctrl_cubox_i_usdhc2>;
256 vmmc-supply = <&vcc_3v3>;
257 cd-gpios = <&gpio1 4 GPIO_ACTIVE_LOW>;
262 vin-supply = <&v_5v0>;