1/* 2 * Copyright (C) 2013,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/sound/fsl-imx-audmux.h> 42 43/ { 44 aliases { 45 rtc0 = &carrier_rtc; 46 rtc1 = &snvs_rtc; 47 }; 48 49 /* Will be filled by the bootloader */ 50 memory@10000000 { 51 device_type = "memory"; 52 reg = <0x10000000 0>; 53 }; 54 55 chosen { 56 stdout-path = &uart1; 57 }; 58 59 ir_recv: ir-receiver { 60 compatible = "gpio-ir-receiver"; 61 gpios = <&gpio3 5 GPIO_ACTIVE_LOW>; 62 pinctrl-names = "default"; 63 pinctrl-0 = <&pinctrl_hummingboard_gpio3_5>; 64 }; 65 66 v_3v2: regulator-v-3v2 { 67 compatible = "regulator-fixed"; 68 regulator-always-on; 69 regulator-max-microvolt = <3300000>; 70 regulator-min-microvolt = <3300000>; 71 regulator-name = "v_3v2"; 72 vin-supply = <&v_5v0>; 73 }; 74 75 v_5v0: regulator-v-5v0 { 76 compatible = "regulator-fixed"; 77 regulator-always-on; 78 regulator-max-microvolt = <5000000>; 79 regulator-min-microvolt = <5000000>; 80 regulator-name = "v_5v0"; 81 }; 82 83 v_sd: regulator-v-sd { 84 compatible = "regulator-fixed"; 85 gpio = <&gpio4 30 GPIO_ACTIVE_HIGH>; 86 pinctrl-names = "default"; 87 pinctrl-0 = <&pinctrl_hummingboard_vmmc>; 88 regulator-boot-on; 89 regulator-max-microvolt = <3300000>; 90 regulator-min-microvolt = <3300000>; 91 regulator-name = "v_sd"; 92 startup-delay-us = <1000>; 93 vin-supply = <&v_3v2>; 94 }; 95 96 v_usb2: regulator-v-usb2 { 97 compatible = "regulator-fixed"; 98 enable-active-high; 99 gpio = <&gpio1 0 GPIO_ACTIVE_HIGH>; 100 pinctrl-names = "default"; 101 pinctrl-0 = <&pinctrl_hummingboard_usbh1_vbus>; 102 regulator-max-microvolt = <5000000>; 103 regulator-min-microvolt = <5000000>; 104 regulator-name = "v_usb2"; 105 vin-supply = <&v_5v0>; 106 }; 107 108 v_usb1: regulator-v-usb1 { 109 compatible = "regulator-fixed"; 110 enable-active-high; 111 gpio = <&gpio3 22 GPIO_ACTIVE_HIGH>; 112 pinctrl-names = "default"; 113 pinctrl-0 = <&pinctrl_hummingboard_usbotg_vbus>; 114 regulator-max-microvolt = <5000000>; 115 regulator-min-microvolt = <5000000>; 116 regulator-name = "v_usb1"; 117 vin-supply = <&v_5v0>; 118 }; 119 120 audio: sound-sgtl5000 { 121 compatible = "simple-audio-card"; 122 simple-audio-card,name = "On-board Codec"; 123 simple-audio-card,format = "i2s"; 124 simple-audio-card,bitclock-master = <&sound_codec>; 125 simple-audio-card,frame-master = <&sound_codec>; 126 simple-audio-card,widgets = 127 "Microphone", "Headphone Jack", 128 "Headphone", "Headphone Jack"; 129 simple-audio-card,routing = 130 "MIC_IN", "Headphone Jack", 131 "Headphone Jack", "Mic Bias", 132 "Headphone Jack", "HP_OUT"; 133 134 sound_cpu: simple-audio-card,cpu { 135 sound-dai = <&ssi1>; 136 }; 137 138 sound_codec: simple-audio-card,codec { 139 sound-dai = <&sgtl5000>; 140 }; 141 }; 142 143 sound-spdif { 144 compatible = "fsl,imx-audio-spdif"; 145 model = "On-board SPDIF"; 146 /* IMX6 doesn't implement this yet */ 147 spdif-controller = <&spdif>; 148 spdif-out; 149 }; 150}; 151 152&audmux { 153 status = "okay"; 154 155 mux-ssi1 { 156 fsl,audmux-port = <0>; 157 fsl,port-config = < 158 (IMX_AUDMUX_V2_PTCR_SYN | 159 IMX_AUDMUX_V2_PTCR_TFSEL(4) | 160 IMX_AUDMUX_V2_PTCR_TCSEL(4) | 161 IMX_AUDMUX_V2_PTCR_TFSDIR | 162 IMX_AUDMUX_V2_PTCR_TCLKDIR) 163 IMX_AUDMUX_V2_PDCR_RXDSEL(4) 164 >; 165 }; 166 167 mux-pins5 { 168 fsl,audmux-port = <4>; 169 fsl,port-config = < 170 IMX_AUDMUX_V2_PTCR_SYN 171 IMX_AUDMUX_V2_PDCR_RXDSEL(0) 172 >; 173 }; 174}; 175 176&can1 { 177 pinctrl-names = "default"; 178 pinctrl-0 = <&pinctrl_hummingboard_flexcan1>; 179 status = "okay"; 180}; 181 182&hdmi { 183 pinctrl-names = "default"; 184 pinctrl-0 = <&pinctrl_hummingboard_hdmi>; 185 ddc-i2c-bus = <&i2c2>; 186 status = "okay"; 187}; 188 189&i2c1 { 190 pinctrl-names = "default"; 191 pinctrl-0 = <&pinctrl_hummingboard_i2c1>; 192 status = "okay"; 193 194 /* Pro baseboard model */ 195 carrier_rtc: rtc@68 { 196 compatible = "nxp,pcf8523"; 197 reg = <0x68>; 198 }; 199 200 /* Pro baseboard model */ 201 sgtl5000: codec@a { 202 clocks = <&clks IMX6QDL_CLK_CKO>; 203 compatible = "fsl,sgtl5000"; 204 pinctrl-names = "default"; 205 pinctrl-0 = <&pinctrl_hummingboard_sgtl5000>; 206 #sound-dai-cells = <0>; 207 reg = <0x0a>; 208 VDDA-supply = <&v_3v2>; 209 VDDIO-supply = <&v_3v2>; 210 }; 211}; 212 213&i2c2 { 214 clock-frequency = <100000>; 215 pinctrl-names = "default"; 216 pinctrl-0 = <&pinctrl_hummingboard_i2c2>; 217 status = "okay"; 218}; 219 220&iomuxc { 221 hummingboard { 222 pinctrl_hummingboard_flexcan1: hummingboard-flexcan1 { 223 fsl,pins = < 224 MX6QDL_PAD_SD3_CLK__FLEXCAN1_RX 0x80000000 225 MX6QDL_PAD_SD3_CMD__FLEXCAN1_TX 0x80000000 226 >; 227 }; 228 229 pinctrl_hummingboard_gpio3_5: hummingboard-gpio3_5 { 230 fsl,pins = < 231 MX6QDL_PAD_EIM_DA5__GPIO3_IO05 0x1b0b1 232 >; 233 }; 234 235 pinctrl_hummingboard_hdmi: hummingboard-hdmi { 236 fsl,pins = < 237 MX6QDL_PAD_KEY_ROW2__HDMI_TX_CEC_LINE 0x1f8b0 238 >; 239 }; 240 241 pinctrl_hummingboard_i2c1: hummingboard-i2c1 { 242 fsl,pins = < 243 MX6QDL_PAD_EIM_D21__I2C1_SCL 0x4001b8b1 244 MX6QDL_PAD_EIM_D28__I2C1_SDA 0x4001b8b1 245 >; 246 }; 247 248 pinctrl_hummingboard_i2c2: hummingboard-i2c2 { 249 fsl,pins = < 250 MX6QDL_PAD_KEY_COL3__I2C2_SCL 0x4001b8b1 251 MX6QDL_PAD_KEY_ROW3__I2C2_SDA 0x4001b8b1 252 >; 253 }; 254 255 pinctrl_hummingboard_pcie_reset: hummingboard-pcie-reset { 256 fsl,pins = < 257 MX6QDL_PAD_EIM_DA4__GPIO3_IO04 0x1b0b1 258 >; 259 }; 260 261 pinctrl_hummingboard_pwm1: pwm1grp { 262 fsl,pins = <MX6QDL_PAD_DISP0_DAT8__PWM1_OUT 0x1b0b1>; 263 }; 264 265 pinctrl_hummingboard_sgtl5000: hummingboard-sgtl5000 { 266 fsl,pins = < 267 MX6QDL_PAD_DISP0_DAT19__AUD5_RXD 0x130b0 268 MX6QDL_PAD_KEY_COL0__AUD5_TXC 0x130b0 269 MX6QDL_PAD_KEY_ROW0__AUD5_TXD 0x110b0 270 MX6QDL_PAD_KEY_COL1__AUD5_TXFS 0x130b0 271 MX6QDL_PAD_GPIO_5__CCM_CLKO1 0x130b0 272 >; 273 }; 274 275 pinctrl_hummingboard_spdif: hummingboard-spdif { 276 fsl,pins = <MX6QDL_PAD_GPIO_17__SPDIF_OUT 0x13091>; 277 }; 278 279 pinctrl_hummingboard_usbh1_vbus: hummingboard-usbh1-vbus { 280 fsl,pins = <MX6QDL_PAD_GPIO_0__GPIO1_IO00 0x1b0b0>; 281 }; 282 283 pinctrl_hummingboard_usbotg_id: hummingboard-usbotg-id { 284 /* 285 * We want it pulled down for a fixed host connection. 286 */ 287 fsl,pins = <MX6QDL_PAD_ENET_RX_ER__USB_OTG_ID 0x13059>; 288 }; 289 290 pinctrl_hummingboard_usbotg_vbus: hummingboard-usbotg-vbus { 291 fsl,pins = <MX6QDL_PAD_EIM_D22__GPIO3_IO22 0x1b0b0>; 292 }; 293 294 pinctrl_hummingboard_usdhc2_aux: hummingboard-usdhc2-aux { 295 fsl,pins = < 296 MX6QDL_PAD_GPIO_4__GPIO1_IO04 0x1f071 297 >; 298 }; 299 300 pinctrl_hummingboard_usdhc2: hummingboard-usdhc2 { 301 fsl,pins = < 302 MX6QDL_PAD_SD2_CMD__SD2_CMD 0x17059 303 MX6QDL_PAD_SD2_CLK__SD2_CLK 0x10059 304 MX6QDL_PAD_SD2_DAT0__SD2_DATA0 0x17059 305 MX6QDL_PAD_SD2_DAT1__SD2_DATA1 0x17059 306 MX6QDL_PAD_SD2_DAT2__SD2_DATA2 0x17059 307 MX6QDL_PAD_SD2_DAT3__SD2_DATA3 0x13059 308 >; 309 }; 310 pinctrl_hummingboard_vmmc: hummingboard-vmmc { 311 fsl,pins = < 312 MX6QDL_PAD_DISP0_DAT9__GPIO4_IO30 0x1b0b0 313 >; 314 }; 315 }; 316}; 317 318&pcie { 319 pinctrl-names = "default"; 320 pinctrl-0 = <&pinctrl_hummingboard_pcie_reset>; 321 reset-gpio = <&gpio3 4 GPIO_ACTIVE_LOW>; 322 status = "okay"; 323}; 324 325&pwm1 { 326 pinctrl-names = "default"; 327 pinctrl-0 = <&pinctrl_hummingboard_pwm1>; 328 status = "okay"; 329}; 330 331&pwm2 { 332 pinctrl-names = "default"; 333 status = "okay"; 334}; 335 336&spdif { 337 pinctrl-names = "default"; 338 pinctrl-0 = <&pinctrl_hummingboard_spdif>; 339 status = "okay"; 340}; 341 342&ssi1 { 343 status = "okay"; 344}; 345 346&usbh1 { 347 disable-over-current; 348 vbus-supply = <&v_usb2>; 349 status = "okay"; 350}; 351 352&usbotg { 353 disable-over-current; 354 pinctrl-names = "default"; 355 pinctrl-0 = <&pinctrl_hummingboard_usbotg_id>; 356 vbus-supply = <&v_usb1>; 357 status = "okay"; 358}; 359 360&usdhc2 { 361 pinctrl-names = "default"; 362 pinctrl-0 = < 363 &pinctrl_hummingboard_usdhc2_aux 364 &pinctrl_hummingboard_usdhc2 365 >; 366 vmmc-supply = <&v_sd>; 367 cd-gpios = <&gpio1 4 GPIO_ACTIVE_LOW>; 368 status = "okay"; 369}; 370 371&vcc_3v3 { 372 vin-supply = <&v_3v2>; 373}; 374