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