Rabeeh Khoury | 4cd4f50 | 2014-08-23 10:11:36 +0100 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2013,2014 Russell King |
Russell King | 42919c5 | 2015-03-02 20:00:50 +0000 | [diff] [blame] | 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 as |
| 11 | * published by the Free Software Foundation; either version 2 of the |
| 12 | * License. |
| 13 | * |
| 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. |
| 18 | * |
| 19 | * Or, alternatively |
| 20 | * |
| 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 |
| 28 | * conditions: |
| 29 | * |
| 30 | * The above copyright notice and this permission notice shall be |
| 31 | * included in all copies or substantial portions of the Software. |
| 32 | * |
| 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. |
Rabeeh Khoury | 4cd4f50 | 2014-08-23 10:11:36 +0100 | [diff] [blame] | 41 | */ |
| 42 | #include "imx6qdl-microsom.dtsi" |
| 43 | #include "imx6qdl-microsom-ar8035.dtsi" |
| 44 | |
| 45 | / { |
| 46 | chosen { |
| 47 | stdout-path = &uart1; |
| 48 | }; |
| 49 | |
| 50 | ir_recv: ir-receiver { |
| 51 | compatible = "gpio-ir-receiver"; |
Rabeeh Khoury | af3f973 | 2014-08-23 10:11:47 +0100 | [diff] [blame] | 52 | gpios = <&gpio3 5 1>; |
Rabeeh Khoury | 4cd4f50 | 2014-08-23 10:11:36 +0100 | [diff] [blame] | 53 | pinctrl-names = "default"; |
Rabeeh Khoury | af3f973 | 2014-08-23 10:11:47 +0100 | [diff] [blame] | 54 | pinctrl-0 = <&pinctrl_hummingboard_gpio3_5>; |
Rabeeh Khoury | 4cd4f50 | 2014-08-23 10:11:36 +0100 | [diff] [blame] | 55 | }; |
| 56 | |
| 57 | regulators { |
| 58 | compatible = "simple-bus"; |
| 59 | |
| 60 | reg_3p3v: 3p3v { |
| 61 | compatible = "regulator-fixed"; |
| 62 | regulator-name = "3P3V"; |
| 63 | regulator-min-microvolt = <3300000>; |
| 64 | regulator-max-microvolt = <3300000>; |
| 65 | regulator-always-on; |
| 66 | }; |
| 67 | |
| 68 | reg_usbh1_vbus: usb-h1-vbus { |
| 69 | compatible = "regulator-fixed"; |
| 70 | enable-active-high; |
| 71 | gpio = <&gpio1 0 0>; |
| 72 | pinctrl-names = "default"; |
| 73 | pinctrl-0 = <&pinctrl_hummingboard_usbh1_vbus>; |
| 74 | regulator-name = "usb_h1_vbus"; |
| 75 | regulator-min-microvolt = <5000000>; |
| 76 | regulator-max-microvolt = <5000000>; |
| 77 | }; |
| 78 | |
| 79 | reg_usbotg_vbus: usb-otg-vbus { |
| 80 | compatible = "regulator-fixed"; |
| 81 | enable-active-high; |
| 82 | gpio = <&gpio3 22 0>; |
| 83 | pinctrl-names = "default"; |
| 84 | pinctrl-0 = <&pinctrl_hummingboard_usbotg_vbus>; |
| 85 | regulator-name = "usb_otg_vbus"; |
| 86 | regulator-min-microvolt = <5000000>; |
| 87 | regulator-max-microvolt = <5000000>; |
| 88 | }; |
| 89 | }; |
| 90 | |
Russell King | 8e047c1 | 2015-03-30 13:06:57 +0100 | [diff] [blame] | 91 | sound-sgtl5000 { |
| 92 | audio-codec = <&sgtl5000>; |
| 93 | audio-routing = |
| 94 | "MIC_IN", "Mic Jack", |
| 95 | "Mic Jack", "Mic Bias", |
| 96 | "Headphone Jack", "HP_OUT"; |
| 97 | compatible = "fsl,imx-audio-sgtl5000"; |
| 98 | model = "On-board Codec"; |
| 99 | mux-ext-port = <5>; |
| 100 | mux-int-port = <1>; |
| 101 | ssi-controller = <&ssi1>; |
| 102 | }; |
| 103 | |
Rabeeh Khoury | 4cd4f50 | 2014-08-23 10:11:36 +0100 | [diff] [blame] | 104 | sound-spdif { |
| 105 | compatible = "fsl,imx-audio-spdif"; |
| 106 | model = "On-board SPDIF"; |
| 107 | /* IMX6 doesn't implement this yet */ |
| 108 | spdif-controller = <&spdif>; |
| 109 | spdif-out; |
| 110 | }; |
| 111 | }; |
| 112 | |
Russell King | 8e047c1 | 2015-03-30 13:06:57 +0100 | [diff] [blame] | 113 | &audmux { |
| 114 | status = "okay"; |
| 115 | }; |
| 116 | |
Rabeeh Khoury | 4cd4f50 | 2014-08-23 10:11:36 +0100 | [diff] [blame] | 117 | &can1 { |
| 118 | pinctrl-names = "default"; |
| 119 | pinctrl-0 = <&pinctrl_hummingboard_flexcan1>; |
| 120 | status = "okay"; |
| 121 | }; |
| 122 | |
| 123 | &hdmi { |
| 124 | pinctrl-names = "default"; |
| 125 | pinctrl-0 = <&pinctrl_hummingboard_hdmi>; |
| 126 | ddc-i2c-bus = <&i2c2>; |
| 127 | status = "okay"; |
| 128 | }; |
| 129 | |
| 130 | &i2c1 { |
| 131 | pinctrl-names = "default"; |
| 132 | pinctrl-0 = <&pinctrl_hummingboard_i2c1>; |
Rabeeh Khoury | 4cd4f50 | 2014-08-23 10:11:36 +0100 | [diff] [blame] | 133 | status = "okay"; |
| 134 | |
Russell King | a931bbb | 2015-03-02 20:03:54 +0000 | [diff] [blame] | 135 | /* Pro baseboard model */ |
Rabeeh Khoury | 4cd4f50 | 2014-08-23 10:11:36 +0100 | [diff] [blame] | 136 | rtc: pcf8523@68 { |
| 137 | compatible = "nxp,pcf8523"; |
| 138 | reg = <0x68>; |
| 139 | }; |
Russell King | 8e047c1 | 2015-03-30 13:06:57 +0100 | [diff] [blame] | 140 | |
| 141 | /* Pro baseboard model */ |
| 142 | sgtl5000: sgtl5000@0a { |
| 143 | clocks = <&clks IMX6QDL_CLK_CKO>; |
| 144 | compatible = "fsl,sgtl5000"; |
| 145 | pinctrl-names = "default"; |
| 146 | pinctrl-0 = <&pinctrl_hummingboard_sgtl5000>; |
| 147 | reg = <0x0a>; |
| 148 | VDDA-supply = <®_3p3v>; |
| 149 | VDDIO-supply = <®_3p3v>; |
| 150 | }; |
Rabeeh Khoury | 4cd4f50 | 2014-08-23 10:11:36 +0100 | [diff] [blame] | 151 | }; |
| 152 | |
| 153 | &i2c2 { |
| 154 | clock-frequency = <100000>; |
| 155 | pinctrl-names = "default"; |
| 156 | pinctrl-0 = <&pinctrl_hummingboard_i2c2>; |
| 157 | status = "okay"; |
| 158 | }; |
| 159 | |
| 160 | &iomuxc { |
| 161 | hummingboard { |
| 162 | pinctrl_hummingboard_flexcan1: hummingboard-flexcan1 { |
| 163 | fsl,pins = < |
| 164 | MX6QDL_PAD_SD3_CLK__FLEXCAN1_RX 0x80000000 |
| 165 | MX6QDL_PAD_SD3_CMD__FLEXCAN1_TX 0x80000000 |
| 166 | >; |
| 167 | }; |
| 168 | |
Rabeeh Khoury | af3f973 | 2014-08-23 10:11:47 +0100 | [diff] [blame] | 169 | pinctrl_hummingboard_gpio3_5: hummingboard-gpio3_5 { |
Rabeeh Khoury | 4cd4f50 | 2014-08-23 10:11:36 +0100 | [diff] [blame] | 170 | fsl,pins = < |
Russell King | d56ac19 | 2014-08-23 15:34:07 +0100 | [diff] [blame] | 171 | MX6QDL_PAD_EIM_DA5__GPIO3_IO05 0x1b0b1 |
Rabeeh Khoury | 4cd4f50 | 2014-08-23 10:11:36 +0100 | [diff] [blame] | 172 | >; |
| 173 | }; |
| 174 | |
| 175 | pinctrl_hummingboard_hdmi: hummingboard-hdmi { |
| 176 | fsl,pins = < |
| 177 | MX6QDL_PAD_KEY_ROW2__HDMI_TX_CEC_LINE 0x1f8b0 |
| 178 | >; |
| 179 | }; |
| 180 | |
| 181 | pinctrl_hummingboard_i2c1: hummingboard-i2c1 { |
| 182 | fsl,pins = < |
| 183 | MX6QDL_PAD_EIM_D21__I2C1_SCL 0x4001b8b1 |
| 184 | MX6QDL_PAD_EIM_D28__I2C1_SDA 0x4001b8b1 |
| 185 | >; |
| 186 | }; |
| 187 | |
| 188 | pinctrl_hummingboard_i2c2: hummingboard-i2c2 { |
| 189 | fsl,pins = < |
| 190 | MX6QDL_PAD_KEY_COL3__I2C2_SCL 0x4001b8b1 |
| 191 | MX6QDL_PAD_KEY_ROW3__I2C2_SDA 0x4001b8b1 |
| 192 | >; |
| 193 | }; |
| 194 | |
Rabeeh Khoury | ffbae6b | 2015-03-02 20:03:59 +0000 | [diff] [blame] | 195 | pinctrl_hummingboard_pwm1: pwm1grp { |
| 196 | fsl,pins = <MX6QDL_PAD_DISP0_DAT8__PWM1_OUT 0x1b0b1>; |
| 197 | }; |
| 198 | |
Russell King | 8e047c1 | 2015-03-30 13:06:57 +0100 | [diff] [blame] | 199 | pinctrl_hummingboard_sgtl5000: hummingboard-sgtl5000 { |
| 200 | fsl,pins = < |
| 201 | MX6QDL_PAD_DISP0_DAT19__AUD5_RXD 0x130b0 |
| 202 | MX6QDL_PAD_KEY_COL0__AUD5_TXC 0x130b0 |
| 203 | MX6QDL_PAD_KEY_ROW0__AUD5_TXD 0x110b0 |
| 204 | MX6QDL_PAD_KEY_COL1__AUD5_TXFS 0x130b0 |
| 205 | MX6QDL_PAD_GPIO_5__CCM_CLKO1 0x130b0 |
| 206 | >; |
| 207 | }; |
| 208 | |
Rabeeh Khoury | 4cd4f50 | 2014-08-23 10:11:36 +0100 | [diff] [blame] | 209 | pinctrl_hummingboard_spdif: hummingboard-spdif { |
| 210 | fsl,pins = <MX6QDL_PAD_GPIO_17__SPDIF_OUT 0x13091>; |
| 211 | }; |
| 212 | |
| 213 | pinctrl_hummingboard_usbh1_vbus: hummingboard-usbh1-vbus { |
| 214 | fsl,pins = <MX6QDL_PAD_GPIO_0__GPIO1_IO00 0x1b0b0>; |
| 215 | }; |
| 216 | |
| 217 | pinctrl_hummingboard_usbotg_id: hummingboard-usbotg-id { |
| 218 | /* |
| 219 | * Similar to pinctrl_usbotg_2, but we want it |
| 220 | * pulled down for a fixed host connection. |
| 221 | */ |
| 222 | fsl,pins = <MX6QDL_PAD_GPIO_1__USB_OTG_ID 0x13059>; |
| 223 | }; |
| 224 | |
| 225 | pinctrl_hummingboard_usbotg_vbus: hummingboard-usbotg-vbus { |
| 226 | fsl,pins = <MX6QDL_PAD_EIM_D22__GPIO3_IO22 0x1b0b0>; |
| 227 | }; |
| 228 | |
| 229 | pinctrl_hummingboard_usdhc2_aux: hummingboard-usdhc2-aux { |
| 230 | fsl,pins = < |
| 231 | MX6QDL_PAD_GPIO_4__GPIO1_IO04 0x1f071 |
| 232 | >; |
| 233 | }; |
| 234 | |
| 235 | pinctrl_hummingboard_usdhc2: hummingboard-usdhc2 { |
| 236 | fsl,pins = < |
| 237 | MX6QDL_PAD_SD2_CMD__SD2_CMD 0x17059 |
| 238 | MX6QDL_PAD_SD2_CLK__SD2_CLK 0x10059 |
| 239 | MX6QDL_PAD_SD2_DAT0__SD2_DATA0 0x17059 |
| 240 | MX6QDL_PAD_SD2_DAT1__SD2_DATA1 0x17059 |
| 241 | MX6QDL_PAD_SD2_DAT2__SD2_DATA2 0x17059 |
| 242 | MX6QDL_PAD_SD2_DAT3__SD2_DATA3 0x13059 |
| 243 | >; |
| 244 | }; |
| 245 | }; |
| 246 | }; |
| 247 | |
Rabeeh Khoury | ffbae6b | 2015-03-02 20:03:59 +0000 | [diff] [blame] | 248 | &pwm1 { |
| 249 | pinctrl-names = "default"; |
| 250 | pinctrl-0 = <&pinctrl_hummingboard_pwm1>; |
| 251 | status = "okay"; |
| 252 | }; |
| 253 | |
| 254 | &pwm2 { |
| 255 | pinctrl-names = "default"; |
| 256 | status = "okay"; |
| 257 | }; |
| 258 | |
Rabeeh Khoury | 4cd4f50 | 2014-08-23 10:11:36 +0100 | [diff] [blame] | 259 | &spdif { |
| 260 | pinctrl-names = "default"; |
| 261 | pinctrl-0 = <&pinctrl_hummingboard_spdif>; |
| 262 | status = "okay"; |
| 263 | }; |
| 264 | |
Russell King | 8e047c1 | 2015-03-30 13:06:57 +0100 | [diff] [blame] | 265 | &ssi1 { |
| 266 | fsl,mode = "i2s-slave"; |
| 267 | status = "okay"; |
| 268 | }; |
| 269 | |
Rabeeh Khoury | 4cd4f50 | 2014-08-23 10:11:36 +0100 | [diff] [blame] | 270 | &usbh1 { |
| 271 | disable-over-current; |
| 272 | vbus-supply = <®_usbh1_vbus>; |
| 273 | status = "okay"; |
| 274 | }; |
| 275 | |
| 276 | &usbotg { |
| 277 | disable-over-current; |
| 278 | pinctrl-names = "default"; |
| 279 | pinctrl-0 = <&pinctrl_hummingboard_usbotg_id>; |
| 280 | vbus-supply = <®_usbotg_vbus>; |
| 281 | status = "okay"; |
| 282 | }; |
| 283 | |
| 284 | &usdhc2 { |
| 285 | pinctrl-names = "default"; |
| 286 | pinctrl-0 = < |
| 287 | &pinctrl_hummingboard_usdhc2_aux |
| 288 | &pinctrl_hummingboard_usdhc2 |
| 289 | >; |
| 290 | vmmc-supply = <®_3p3v>; |
| 291 | cd-gpios = <&gpio1 4 0>; |
| 292 | status = "okay"; |
| 293 | }; |