| 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 |
spdif_out: spdif-out { |
| 144 |
compatible = "linux,spdif-dit"; |
| 145 |
#sound-dai-cells = <0>; |
| 146 |
}; |
| 147 |
|
| 148 |
sound-spdif { |
| 149 |
compatible = "fsl,imx-audio-spdif"; |
| 150 |
model = "On-board SPDIF"; |
| 151 |
/* IMX6 doesn't implement this yet */ |
| 152 |
audio-cpu = <&spdif>; |
| 153 |
audio-codec = <&spdif_out>; |
| 154 |
}; |
| 155 |
}; |
| 156 |
|
| 157 |
&audmux { |
| 158 |
status = "okay"; |
| 159 |
|
| 160 |
mux-ssi1 { |
| 161 |
fsl,audmux-port = <0>; |
| 162 |
fsl,port-config = < |
| 163 |
(IMX_AUDMUX_V2_PTCR_SYN | |
| 164 |
IMX_AUDMUX_V2_PTCR_TFSEL(4) | |
| 165 |
IMX_AUDMUX_V2_PTCR_TCSEL(4) | |
| 166 |
IMX_AUDMUX_V2_PTCR_TFSDIR | |
| 167 |
IMX_AUDMUX_V2_PTCR_TCLKDIR) |
| 168 |
IMX_AUDMUX_V2_PDCR_RXDSEL(4) |
| 169 |
>; |
| 170 |
}; |
| 171 |
|
| 172 |
mux-pins5 { |
| 173 |
fsl,audmux-port = <4>; |
| 174 |
fsl,port-config = < |
| 175 |
IMX_AUDMUX_V2_PTCR_SYN |
| 176 |
IMX_AUDMUX_V2_PDCR_RXDSEL(0) |
| 177 |
>; |
| 178 |
}; |
| 179 |
}; |
| 180 |
|
| 181 |
&can1 { |
| 182 |
pinctrl-names = "default"; |
| 183 |
pinctrl-0 = <&pinctrl_hummingboard_flexcan1>; |
| 184 |
status = "okay"; |
| 185 |
}; |
| 186 |
|
| 187 |
&hdmi { |
| 188 |
pinctrl-names = "default"; |
| 189 |
pinctrl-0 = <&pinctrl_hummingboard_hdmi>; |
| 190 |
ddc-i2c-bus = <&i2c2>; |
| 191 |
status = "okay"; |
| 192 |
}; |
| 193 |
|
| 194 |
&i2c1 { |
| 195 |
pinctrl-names = "default"; |
| 196 |
pinctrl-0 = <&pinctrl_hummingboard_i2c1>; |
| 197 |
status = "okay"; |
| 198 |
|
| 199 |
/* Pro baseboard model */ |
| 200 |
carrier_rtc: rtc@68 { |
| 201 |
compatible = "nxp,pcf8523"; |
| 202 |
reg = <0x68>; |
| 203 |
}; |
| 204 |
|
| 205 |
/* Pro baseboard model */ |
| 206 |
sgtl5000: codec@a { |
| 207 |
clocks = <&clks IMX6QDL_CLK_CKO>; |
| 208 |
compatible = "fsl,sgtl5000"; |
| 209 |
pinctrl-names = "default"; |
| 210 |
pinctrl-0 = <&pinctrl_hummingboard_sgtl5000>; |
| 211 |
#sound-dai-cells = <0>; |
| 212 |
reg = <0x0a>; |
| 213 |
VDDA-supply = <&v_3v2>; |
| 214 |
VDDIO-supply = <&v_3v2>; |
| 215 |
}; |
| 216 |
}; |
| 217 |
|
| 218 |
&i2c2 { |
| 219 |
clock-frequency = <100000>; |
| 220 |
pinctrl-names = "default"; |
| 221 |
pinctrl-0 = <&pinctrl_hummingboard_i2c2>; |
| 222 |
status = "okay"; |
| 223 |
}; |
| 224 |
|
| 225 |
&iomuxc { |
| 226 |
pinctrl_hummingboard_flexcan1: hummingboard-flexcan1grp { |
| 227 |
fsl,pins = < |
| 228 |
MX6QDL_PAD_SD3_CLK__FLEXCAN1_RX 0x80000000 |
| 229 |
MX6QDL_PAD_SD3_CMD__FLEXCAN1_TX 0x80000000 |
| 230 |
>; |
| 231 |
}; |
| 232 |
|
| 233 |
pinctrl_hummingboard_gpio3_5: hummingboard-gpio3_5grp { |
| 234 |
fsl,pins = < |
| 235 |
MX6QDL_PAD_EIM_DA5__GPIO3_IO05 0x1b0b1 |
| 236 |
>; |
| 237 |
}; |
| 238 |
|
| 239 |
pinctrl_hummingboard_hdmi: hummingboard-hdmigrp { |
| 240 |
fsl,pins = < |
| 241 |
MX6QDL_PAD_KEY_ROW2__HDMI_TX_CEC_LINE 0x1f8b0 |
| 242 |
>; |
| 243 |
}; |
| 244 |
|
| 245 |
pinctrl_hummingboard_i2c1: hummingboard-i2c1grp { |
| 246 |
fsl,pins = < |
| 247 |
MX6QDL_PAD_EIM_D21__I2C1_SCL 0x4001b8b1 |
| 248 |
MX6QDL_PAD_EIM_D28__I2C1_SDA 0x4001b8b1 |
| 249 |
>; |
| 250 |
}; |
| 251 |
|
| 252 |
pinctrl_hummingboard_i2c2: hummingboard-i2c2grp { |
| 253 |
fsl,pins = < |
| 254 |
MX6QDL_PAD_KEY_COL3__I2C2_SCL 0x4001b8b1 |
| 255 |
MX6QDL_PAD_KEY_ROW3__I2C2_SDA 0x4001b8b1 |
| 256 |
>; |
| 257 |
}; |
| 258 |
|
| 259 |
pinctrl_hummingboard_pcie_reset: hummingboard-pcie-resetgrp { |
| 260 |
fsl,pins = < |
| 261 |
MX6QDL_PAD_EIM_DA4__GPIO3_IO04 0x1b0b1 |
| 262 |
>; |
| 263 |
}; |
| 264 |
|
| 265 |
pinctrl_hummingboard_pwm1: pwm1grp { |
| 266 |
fsl,pins = <MX6QDL_PAD_DISP0_DAT8__PWM1_OUT 0x1b0b1>; |
| 267 |
}; |
| 268 |
|
| 269 |
pinctrl_hummingboard_sgtl5000: hummingboard-sgtl5000grp { |
| 270 |
fsl,pins = < |
| 271 |
MX6QDL_PAD_DISP0_DAT19__AUD5_RXD 0x130b0 |
| 272 |
MX6QDL_PAD_KEY_COL0__AUD5_TXC 0x130b0 |
| 273 |
MX6QDL_PAD_KEY_ROW0__AUD5_TXD 0x110b0 |
| 274 |
MX6QDL_PAD_KEY_COL1__AUD5_TXFS 0x130b0 |
| 275 |
MX6QDL_PAD_GPIO_5__CCM_CLKO1 0x130b0 |
| 276 |
>; |
| 277 |
}; |
| 278 |
|
| 279 |
pinctrl_hummingboard_spdif: hummingboard-spdifgrp { |
| 280 |
fsl,pins = <MX6QDL_PAD_GPIO_17__SPDIF_OUT 0x13091>; |
| 281 |
}; |
| 282 |
|
| 283 |
pinctrl_hummingboard_usbh1_vbus: hummingboard-usbh1-vbusgrp { |
| 284 |
fsl,pins = <MX6QDL_PAD_GPIO_0__GPIO1_IO00 0x1b0b0>; |
| 285 |
}; |
| 286 |
|
| 287 |
pinctrl_hummingboard_usbotg_id: hummingboard-usbotg-idgrp { |
| 288 |
/* |
| 289 |
* We want it pulled down for a fixed host connection. |
| 290 |
*/ |
| 291 |
fsl,pins = <MX6QDL_PAD_ENET_RX_ER__USB_OTG_ID 0x13059>; |
| 292 |
}; |
| 293 |
|
| 294 |
pinctrl_hummingboard_usbotg_vbus: hummingboard-usbotg-vbusgrp { |
| 295 |
fsl,pins = <MX6QDL_PAD_EIM_D22__GPIO3_IO22 0x1b0b0>; |
| 296 |
}; |
| 297 |
|
| 298 |
pinctrl_hummingboard_usdhc2_aux: hummingboard-usdhc2-auxgrp { |
| 299 |
fsl,pins = < |
| 300 |
MX6QDL_PAD_GPIO_4__GPIO1_IO04 0x1f071 |
| 301 |
>; |
| 302 |
}; |
| 303 |
|
| 304 |
pinctrl_hummingboard_usdhc2: hummingboard-usdhc2grp { |
| 305 |
fsl,pins = < |
| 306 |
MX6QDL_PAD_SD2_CMD__SD2_CMD 0x17059 |
| 307 |
MX6QDL_PAD_SD2_CLK__SD2_CLK 0x10059 |
| 308 |
MX6QDL_PAD_SD2_DAT0__SD2_DATA0 0x17059 |
| 309 |
MX6QDL_PAD_SD2_DAT1__SD2_DATA1 0x17059 |
| 310 |
MX6QDL_PAD_SD2_DAT2__SD2_DATA2 0x17059 |
| 311 |
MX6QDL_PAD_SD2_DAT3__SD2_DATA3 0x13059 |
| 312 |
>; |
| 313 |
}; |
| 314 |
pinctrl_hummingboard_vmmc: hummingboard-vmmcgrp { |
| 315 |
fsl,pins = < |
| 316 |
MX6QDL_PAD_DISP0_DAT9__GPIO4_IO30 0x1b0b0 |
| 317 |
>; |
| 318 |
}; |
| 319 |
}; |
| 320 |
|
| 321 |
&pcie { |
| 322 |
pinctrl-names = "default"; |
| 323 |
pinctrl-0 = <&pinctrl_hummingboard_pcie_reset>; |
| 324 |
reset-gpio = <&gpio3 4 GPIO_ACTIVE_LOW>; |
| 325 |
status = "okay"; |
| 326 |
}; |
| 327 |
|
| 328 |
&pwm1 { |
| 329 |
pinctrl-names = "default"; |
| 330 |
pinctrl-0 = <&pinctrl_hummingboard_pwm1>; |
| 331 |
status = "okay"; |
| 332 |
}; |
| 333 |
|
| 334 |
&pwm2 { |
| 335 |
status = "okay"; |
| 336 |
}; |
| 337 |
|
| 338 |
&spdif { |
| 339 |
pinctrl-names = "default"; |
| 340 |
pinctrl-0 = <&pinctrl_hummingboard_spdif>; |
| 341 |
status = "okay"; |
| 342 |
}; |
| 343 |
|
| 344 |
&ssi1 { |
| 345 |
status = "okay"; |
| 346 |
}; |
| 347 |
|
| 348 |
&usbh1 { |
| 349 |
disable-over-current; |
| 350 |
vbus-supply = <&v_usb2>; |
| 351 |
status = "okay"; |
| 352 |
}; |
| 353 |
|
| 354 |
&usbotg { |
| 355 |
disable-over-current; |
| 356 |
pinctrl-names = "default"; |
| 357 |
pinctrl-0 = <&pinctrl_hummingboard_usbotg_id>; |
| 358 |
vbus-supply = <&v_usb1>; |
| 359 |
status = "okay"; |
| 360 |
}; |
| 361 |
|
| 362 |
&usdhc2 { |
| 363 |
pinctrl-names = "default"; |
| 364 |
pinctrl-0 = < |
| 365 |
&pinctrl_hummingboard_usdhc2_aux |
| 366 |
&pinctrl_hummingboard_usdhc2 |
| 367 |
>; |
| 368 |
vmmc-supply = <&v_sd>; |
| 369 |
cd-gpios = <&gpio1 4 GPIO_ACTIVE_LOW>; |
| 370 |
status = "okay"; |
| 371 |
}; |
| 372 |
|
| 373 |
&vcc_3v3 { |
| 374 |
vin-supply = <&v_3v2>; |
| 375 |
}; |