~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/scripts/dtc/include-prefixes/arm/nxp/imx/imx6qdl-cubox-i.dtsi

Version: ~ [ linux-6.12-rc7 ] ~ [ linux-6.11.7 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.60 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.116 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.171 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.229 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.285 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.323 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.12 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 /*
  2  * Copyright (C) 2014 Russell King
  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
 11  *     version 2 as published by the Free Software Foundation.
 12  *
 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.
 17  *
 18  * Or, alternatively,
 19  *
 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
 27  *     conditions:
 28  *
 29  *     The above copyright notice and this permission notice shall be
 30  *     included in all copies or substantial portions of the Software.
 31  *
 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.
 40  */
 41 #include <dt-bindings/input/input.h>
 42 #include <dt-bindings/gpio/gpio.h>
 43 
 44 / {
 45         /* Will be filled by the bootloader */
 46         memory@10000000 {
 47                 device_type = "memory";
 48                 reg = <0x10000000 0>;
 49         };
 50 
 51         ir_recv: ir-receiver {
 52                 compatible = "gpio-ir-receiver";
 53                 gpios = <&gpio3 9 1>;
 54                 pinctrl-names = "default";
 55                 pinctrl-0 = <&pinctrl_cubox_i_ir>;
 56         };
 57 
 58         led-controller {
 59                 compatible = "pwm-leds";
 60                 pinctrl-names = "default";
 61                 pinctrl-0 = <&pinctrl_cubox_i_pwm1>;
 62 
 63                 led-1 {
 64                         active-low;
 65                         label = "imx6:red:front";
 66                         max-brightness = <248>;
 67                         pwms = <&pwm1 0 50000 0>;
 68                 };
 69         };
 70 
 71         v_5v0: regulator-v-5v0 {
 72                 compatible = "regulator-fixed";
 73                 regulator-always-on;
 74                 regulator-max-microvolt = <5000000>;
 75                 regulator-min-microvolt = <5000000>;
 76                 regulator-name = "v_5v0";
 77         };
 78 
 79         v_usb2: regulator-v-usb2 {
 80                 compatible = "regulator-fixed";
 81                 enable-active-high;
 82                 gpio = <&gpio1 0 GPIO_ACTIVE_HIGH>;
 83                 pinctrl-names = "default";
 84                 pinctrl-0 = <&pinctrl_cubox_i_usbh1_vbus>;
 85                 regulator-max-microvolt = <5000000>;
 86                 regulator-min-microvolt = <5000000>;
 87                 regulator-name = "v_usb2";
 88                 vin-supply = <&v_5v0>;
 89         };
 90 
 91         v_usb1: regulator-v-usb1 {
 92                 compatible = "regulator-fixed";
 93                 enable-active-high;
 94                 gpio = <&gpio3 22 GPIO_ACTIVE_HIGH>;
 95                 pinctrl-names = "default";
 96                 pinctrl-0 = <&pinctrl_cubox_i_usbotg_vbus>;
 97                 regulator-max-microvolt = <5000000>;
 98                 regulator-min-microvolt = <5000000>;
 99                 regulator-name = "v_usb1";
100                 vin-supply = <&v_5v0>;
101         };
102 
103         spdif_out: spdif-out {
104                 compatible = "linux,spdif-dit";
105                 #sound-dai-cells = <0>;
106         };
107 
108         sound-spdif {
109                 compatible = "fsl,imx-audio-spdif";
110                 model = "Integrated SPDIF";
111                 /* IMX6 doesn't implement this yet */
112                 audio-cpu = <&spdif>;
113                 audio-codec = <&spdif_out>;
114         };
115 
116         gpio-keys {
117                 compatible = "gpio-keys";
118                 pinctrl-0 = <&pinctrl_gpio_key>;
119                 pinctrl-names = "default";
120 
121                 button_0 {
122                         label = "Button 0";
123                         gpios = <&gpio3 8 GPIO_ACTIVE_LOW>;
124                         linux,code = <BTN_0>;
125                 };
126         };
127 };
128 
129 &hdmi {
130         pinctrl-names = "default";
131         pinctrl-0 = <&pinctrl_cubox_i_hdmi>;
132         ddc-i2c-bus = <&i2c2>;
133         status = "okay";
134 };
135 
136 &i2c2 {
137         clock-frequency = <100000>;
138         pinctrl-names = "default";
139         pinctrl-0 = <&pinctrl_cubox_i_i2c2>;
140         status = "okay";
141 };
142 
143 &i2c3 {
144         pinctrl-names = "default";
145         pinctrl-0 = <&pinctrl_cubox_i_i2c3>;
146 
147         status = "okay";
148 
149         rtc@68 {
150                 compatible = "nxp,pcf8523";
151                 reg = <0x68>;
152         };
153 };
154 
155 &iomuxc {
156         cubox_i {
157                 pinctrl_cubox_i_hdmi: cubox-i-hdmi {
158                         fsl,pins = <
159                                 MX6QDL_PAD_KEY_ROW2__HDMI_TX_CEC_LINE 0x1f8b0
160                         >;
161                 };
162 
163                 pinctrl_cubox_i_i2c2: cubox-i-i2c2 {
164                         fsl,pins = <
165                                 MX6QDL_PAD_KEY_COL3__I2C2_SCL 0x4001b8b1
166                                 MX6QDL_PAD_KEY_ROW3__I2C2_SDA 0x4001b8b1
167                         >;
168                 };
169 
170                 pinctrl_cubox_i_i2c3: cubox-i-i2c3 {
171                         fsl,pins = <
172                                 MX6QDL_PAD_EIM_D17__I2C3_SCL 0x4001b8b1
173                                 MX6QDL_PAD_EIM_D18__I2C3_SDA 0x4001b8b1
174                         >;
175                 };
176 
177                 pinctrl_cubox_i_ir: cubox-i-ir {
178                         fsl,pins = <
179                                 MX6QDL_PAD_EIM_DA9__GPIO3_IO09 0x80000000
180                         >;
181                 };
182 
183                 pinctrl_cubox_i_pwm1: cubox-i-pwm1-front-led {
184                         fsl,pins = <MX6QDL_PAD_DISP0_DAT8__PWM1_OUT 0x1b0b0>;
185                 };
186 
187                 pinctrl_cubox_i_spdif: cubox-i-spdif {
188                         fsl,pins = <MX6QDL_PAD_GPIO_17__SPDIF_OUT 0x13091>;
189                 };
190 
191                 pinctrl_cubox_i_usbh1: cubox-i-usbh1 {
192                         fsl,pins = <MX6QDL_PAD_GPIO_3__USB_H1_OC 0x1b0b0>;
193                 };
194 
195                 pinctrl_cubox_i_usbh1_vbus: cubox-i-usbh1-vbus {
196                         fsl,pins = <MX6QDL_PAD_GPIO_0__GPIO1_IO00 0x4001b0b0>;
197                 };
198 
199                 pinctrl_cubox_i_usbotg: cubox-i-usbotg {
200                         /*
201                          * The Cubox-i pulls ID low, but as it's pointless
202                          * leaving it as a pull-up, even if it is just 10uA.
203                          */
204                         fsl,pins = <
205                                 MX6QDL_PAD_GPIO_1__USB_OTG_ID 0x13059
206                                 MX6QDL_PAD_KEY_COL4__USB_OTG_OC 0x1b0b0
207                         >;
208                 };
209 
210                 pinctrl_cubox_i_usbotg_vbus: cubox-i-usbotg-vbus {
211                         fsl,pins = <MX6QDL_PAD_EIM_D22__GPIO3_IO22 0x4001b0b0>;
212                 };
213 
214                 pinctrl_cubox_i_usdhc2_aux: cubox-i-usdhc2-aux {
215                         fsl,pins = <
216                                 MX6QDL_PAD_GPIO_4__GPIO1_IO04    0x1f071
217                                 MX6QDL_PAD_KEY_ROW1__SD2_VSELECT 0x1b071
218                         >;
219                 };
220 
221                 pinctrl_cubox_i_usdhc2: cubox-i-usdhc2 {
222                         fsl,pins = <
223                                 MX6QDL_PAD_SD2_CMD__SD2_CMD    0x17059
224                                 MX6QDL_PAD_SD2_CLK__SD2_CLK    0x10059
225                                 MX6QDL_PAD_SD2_DAT0__SD2_DATA0 0x17059
226                                 MX6QDL_PAD_SD2_DAT1__SD2_DATA1 0x17059
227                                 MX6QDL_PAD_SD2_DAT2__SD2_DATA2 0x17059
228                                 MX6QDL_PAD_SD2_DAT3__SD2_DATA3 0x13059
229                         >;
230                 };
231 
232                 pinctrl_gpio_key: gpio-key {
233                         fsl,pins = <
234                                 MX6QDL_PAD_EIM_DA8__GPIO3_IO08  0x17059
235                         >;
236                 };
237         };
238 };
239 
240 &pwm1 {
241         status = "okay";
242 };
243 
244 &spdif {
245         pinctrl-names = "default";
246         pinctrl-0 = <&pinctrl_cubox_i_spdif>;
247         status = "okay";
248 };
249 
250 &usbh1 {
251         pinctrl-names = "default";
252         pinctrl-0 = <&pinctrl_cubox_i_usbh1>;
253         vbus-supply = <&v_usb2>;
254         status = "okay";
255 };
256 
257 &usbotg {
258         pinctrl-names = "default";
259         pinctrl-0 = <&pinctrl_cubox_i_usbotg>;
260         vbus-supply = <&v_usb1>;
261         status = "okay";
262 };
263 
264 &usdhc2 {
265         pinctrl-names = "default";
266         pinctrl-0 = <&pinctrl_cubox_i_usdhc2_aux &pinctrl_cubox_i_usdhc2>;
267         vmmc-supply = <&vcc_3v3>;
268         cd-gpios = <&gpio1 4 GPIO_ACTIVE_LOW>;
269         status = "okay";
270 };
271 
272 &vcc_3v3 {
273         vin-supply = <&v_5v0>;
274 };

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php