Adam Ford | f479cec | 2017-04-07 10:25:34 -0500 | [diff] [blame] | 1 | /* |
| 2 | * Copyright 2016 Logic PD |
| 3 | * This file is adapted from imx6qdl-sabresd.dtsi. |
| 4 | * Copyright 2012 Freescale Semiconductor, Inc. |
| 5 | * Copyright 2011 Linaro Ltd. |
| 6 | * |
| 7 | * The code contained herein is licensed under the GNU General Public |
| 8 | * License. You may obtain a copy of the GNU General Public License |
| 9 | * Version 2 or later at the following locations: |
| 10 | * |
| 11 | * http://www.opensource.org/licenses/gpl-license.html |
| 12 | * http://www.gnu.org/copyleft/gpl.html |
| 13 | */ |
| 14 | |
| 15 | #include <dt-bindings/gpio/gpio.h> |
| 16 | #include <dt-bindings/input/input.h> |
| 17 | #include "imx6q.dtsi" |
| 18 | |
| 19 | / { |
| 20 | chosen { |
| 21 | stdout-path = &uart1; |
| 22 | }; |
| 23 | |
| 24 | memory { |
| 25 | reg = <0x10000000 0x80000000>; |
| 26 | }; |
| 27 | }; |
| 28 | |
| 29 | /* Reroute power feeding the CPU to come from the external PMIC */ |
| 30 | ®_arm |
| 31 | { |
| 32 | vin-supply = <&sw1a_reg>; |
| 33 | }; |
| 34 | |
| 35 | ®_soc |
| 36 | { |
| 37 | vin-supply = <&sw1c_reg>; |
| 38 | }; |
| 39 | |
| 40 | &clks { |
| 41 | assigned-clocks = <&clks IMX6QDL_CLK_LDB_DI0_SEL>, |
| 42 | <&clks IMX6QDL_CLK_LDB_DI1_SEL>; |
| 43 | assigned-clock-parents = <&clks IMX6QDL_CLK_PLL3_USB_OTG>, |
| 44 | <&clks IMX6QDL_CLK_PLL3_USB_OTG>; |
| 45 | }; |
| 46 | |
| 47 | &i2c3 { |
| 48 | clock-frequency = <100000>; |
| 49 | pinctrl-names = "default"; |
| 50 | pinctrl-0 = <&pinctrl_i2c3>; |
| 51 | status = "okay"; |
| 52 | |
| 53 | pmic: pfuze100@08 { |
| 54 | compatible = "fsl,pfuze100"; |
| 55 | reg = <0x08>; |
| 56 | |
| 57 | regulators { |
| 58 | sw1a_reg: sw1ab { |
| 59 | regulator-min-microvolt = <725000>; |
| 60 | regulator-max-microvolt = <1450000>; |
| 61 | regulator-name = "vddcore"; |
| 62 | regulator-boot-on; |
| 63 | regulator-always-on; |
| 64 | regulator-ramp-delay = <6250>; |
| 65 | }; |
| 66 | |
| 67 | sw1c_reg: sw1c { |
| 68 | regulator-min-microvolt = <725000>; |
| 69 | regulator-max-microvolt = <1450000>; |
| 70 | regulator-name = "vddsoc"; |
| 71 | regulator-boot-on; |
| 72 | regulator-always-on; |
| 73 | regulator-ramp-delay = <6250>; |
| 74 | }; |
| 75 | |
| 76 | sw2_reg: sw2 { |
| 77 | regulator-min-microvolt = <3300000>; |
| 78 | regulator-max-microvolt = <3300000>; |
| 79 | regulator-name = "gen_3v3"; |
| 80 | regulator-boot-on; |
| 81 | regulator-always-on; |
| 82 | }; |
| 83 | |
| 84 | sw3a_reg: sw3a { |
| 85 | regulator-min-microvolt = <400000>; |
| 86 | regulator-max-microvolt = <1975000>; |
| 87 | regulator-name = "sw3a_vddr"; |
| 88 | regulator-boot-on; |
| 89 | regulator-always-on; |
| 90 | }; |
| 91 | |
| 92 | sw3b_reg: sw3b { |
| 93 | regulator-min-microvolt = <400000>; |
| 94 | regulator-max-microvolt = <1975000>; |
| 95 | regulator-name = "sw3b_vddr"; |
| 96 | regulator-boot-on; |
| 97 | regulator-always-on; |
| 98 | }; |
| 99 | |
| 100 | sw4_reg: sw4 { |
| 101 | regulator-min-microvolt = <800000>; |
| 102 | regulator-max-microvolt = <3300000>; |
| 103 | regulator-name = "gen_rgmii"; |
| 104 | }; |
| 105 | |
| 106 | |
| 107 | swbst_reg: swbst { |
| 108 | regulator-min-microvolt = <5000000>; |
| 109 | regulator-max-microvolt = <5150000>; |
| 110 | regulator-name = "gen_5v0"; |
| 111 | }; |
| 112 | |
| 113 | snvs_reg: vsnvs { |
| 114 | regulator-min-microvolt = <1000000>; |
| 115 | regulator-max-microvolt = <3000000>; |
| 116 | regulator-name = "gen_vsns"; |
| 117 | regulator-boot-on; |
| 118 | regulator-always-on; |
| 119 | }; |
| 120 | |
| 121 | vref_reg: vrefddr { |
| 122 | regulator-boot-on; |
| 123 | regulator-always-on; |
| 124 | }; |
| 125 | |
| 126 | vgen1_reg: vgen1 { |
| 127 | regulator-min-microvolt = <1500000>; |
| 128 | regulator-max-microvolt = <1500000>; |
| 129 | regulator-name = "gen_1v5"; |
| 130 | }; |
| 131 | |
| 132 | vgen2_reg: vgen2 { |
| 133 | regulator-name = "vgen2"; |
| 134 | regulator-min-microvolt = <800000>; |
| 135 | regulator-max-microvolt = <1550000>; |
| 136 | }; |
| 137 | |
| 138 | vgen3_reg: vgen3 { |
| 139 | regulator-name = "gen_vadj_0"; |
| 140 | regulator-min-microvolt = <3000000>; |
| 141 | regulator-max-microvolt = <3000000>; |
| 142 | }; |
| 143 | |
| 144 | vgen4_reg: vgen4 { |
| 145 | regulator-name = "gen_1v8"; |
| 146 | regulator-min-microvolt = <1800000>; |
| 147 | regulator-max-microvolt = <1800000>; |
| 148 | regulator-always-on; |
| 149 | }; |
| 150 | |
| 151 | vgen5_reg: vgen5 { |
| 152 | regulator-name = "gen_adj_1"; |
| 153 | regulator-min-microvolt = <3300000>; |
| 154 | regulator-max-microvolt = <3300000>; |
| 155 | regulator-always-on; |
| 156 | }; |
| 157 | |
| 158 | vgen6_reg: vgen6 { |
| 159 | regulator-name = "gen_2v5"; |
| 160 | regulator-min-microvolt = <2500000>; |
| 161 | regulator-max-microvolt = <2500000>; |
| 162 | regulator-always-on; |
| 163 | }; |
| 164 | }; |
| 165 | }; |
| 166 | |
| 167 | mfg_eeprom: at24@51 { |
| 168 | compatible = "atmel,24c64"; |
| 169 | pagesize = <32>; |
| 170 | read-only; |
| 171 | reg = <0x51>; |
| 172 | }; |
| 173 | |
| 174 | user_eeprom: at24@52 { |
| 175 | compatible = "atmel,24c64"; |
| 176 | pagesize = <32>; |
| 177 | reg = <0x52>; |
| 178 | }; |
| 179 | }; |
| 180 | |
| 181 | &iomuxc { |
| 182 | pinctrl-names = "default"; |
| 183 | pinctrl-0 = <&pinctrl_hog>; |
| 184 | |
| 185 | pinctrl_hog: hoggrp { |
| 186 | fsl,pins = < |
| 187 | MX6QDL_PAD_CSI0_MCLK__ARM_TRACE_CTL 0x1b0b0 |
| 188 | MX6QDL_PAD_CSI0_DATA_EN__ARM_TRACE_CLK 0x1b0b0 |
| 189 | MX6QDL_PAD_CSI0_VSYNC__ARM_TRACE00 0x1b0b0 |
| 190 | MX6QDL_PAD_CSI0_DAT4__ARM_TRACE01 0x1b0b0 |
| 191 | MX6QDL_PAD_CSI0_DAT5__ARM_TRACE02 0x1b0b0 |
| 192 | MX6QDL_PAD_CSI0_DAT6__ARM_TRACE03 0x1b0b0 |
| 193 | MX6QDL_PAD_CSI0_DAT7__ARM_TRACE04 0x1b0b0 |
| 194 | MX6QDL_PAD_CSI0_DAT8__ARM_TRACE05 0x1b0b0 |
| 195 | MX6QDL_PAD_CSI0_DAT9__ARM_TRACE06 0x1b0b0 |
| 196 | MX6QDL_PAD_CSI0_DAT10__ARM_TRACE07 0x1b0b0 |
| 197 | MX6QDL_PAD_CSI0_DAT11__ARM_TRACE08 0x1b0b0 |
| 198 | MX6QDL_PAD_CSI0_DAT12__ARM_TRACE09 0x1b0b0 |
| 199 | MX6QDL_PAD_CSI0_DAT13__ARM_TRACE10 0x1b0b0 |
| 200 | MX6QDL_PAD_CSI0_DAT14__ARM_TRACE11 0x1b0b0 |
| 201 | MX6QDL_PAD_CSI0_DAT15__ARM_TRACE12 0x1b0b0 |
| 202 | MX6QDL_PAD_CSI0_DAT16__ARM_TRACE13 0x1b0b0 |
| 203 | MX6QDL_PAD_CSI0_DAT17__ARM_TRACE14 0x1b0b0 |
| 204 | MX6QDL_PAD_CSI0_DAT18__ARM_TRACE15 0x1b0b0 |
| 205 | MX6QDL_PAD_CSI0_DAT19__GPIO6_IO05 0x1b0b0 |
| 206 | MX6QDL_PAD_EIM_LBA__GPIO2_IO27 0x80000000 |
| 207 | MX6QDL_PAD_EIM_OE__GPIO2_IO25 0x80000000 |
| 208 | MX6QDL_PAD_EIM_RW__GPIO2_IO26 0x80000000 |
| 209 | MX6QDL_PAD_EIM_CS0__GPIO2_IO23 0x80000000 |
| 210 | MX6QDL_PAD_EIM_CS1__GPIO2_IO24 0x80000000 |
| 211 | MX6QDL_PAD_EIM_A16__GPIO2_IO22 0x80000000 |
| 212 | MX6QDL_PAD_EIM_A17__GPIO2_IO21 0x80000000 |
| 213 | MX6QDL_PAD_EIM_A18__GPIO2_IO20 0x80000000 |
| 214 | MX6QDL_PAD_EIM_A19__GPIO2_IO19 0x80000000 |
| 215 | MX6QDL_PAD_EIM_A20__GPIO2_IO18 0x80000000 |
| 216 | MX6QDL_PAD_EIM_A21__GPIO2_IO17 0x80000000 |
| 217 | MX6QDL_PAD_EIM_A22__GPIO2_IO16 0x80000000 |
| 218 | MX6QDL_PAD_EIM_A23__GPIO6_IO06 0x80000000 |
| 219 | MX6QDL_PAD_EIM_A24__GPIO5_IO04 0x80000000 |
| 220 | MX6QDL_PAD_EIM_A25__GPIO5_IO02 0x80000000 |
| 221 | MX6QDL_PAD_EIM_DA0__GPIO3_IO00 0x80000000 |
| 222 | MX6QDL_PAD_EIM_DA1__GPIO3_IO01 0x80000000 |
| 223 | MX6QDL_PAD_EIM_DA2__GPIO3_IO02 0x80000000 |
| 224 | MX6QDL_PAD_EIM_DA3__GPIO3_IO03 0x80000000 |
| 225 | MX6QDL_PAD_EIM_DA4__GPIO3_IO04 0x80000000 |
| 226 | MX6QDL_PAD_EIM_DA5__GPIO3_IO05 0x80000000 |
| 227 | MX6QDL_PAD_EIM_DA6__GPIO3_IO06 0x80000000 |
| 228 | MX6QDL_PAD_EIM_DA7__GPIO3_IO07 0x80000000 |
| 229 | MX6QDL_PAD_EIM_DA8__GPIO3_IO08 0x80000000 |
| 230 | MX6QDL_PAD_EIM_DA9__GPIO3_IO09 0x80000000 |
| 231 | MX6QDL_PAD_EIM_DA10__GPIO3_IO10 0x80000000 |
| 232 | MX6QDL_PAD_EIM_DA11__GPIO3_IO11 0x80000000 |
| 233 | MX6QDL_PAD_EIM_DA12__GPIO3_IO12 0x80000000 |
| 234 | MX6QDL_PAD_EIM_DA13__GPIO3_IO13 0x80000000 |
| 235 | MX6QDL_PAD_EIM_DA14__GPIO3_IO14 0x80000000 |
| 236 | MX6QDL_PAD_EIM_DA15__GPIO3_IO15 0x80000000 |
| 237 | MX6QDL_PAD_EIM_D16__GPIO3_IO16 0x80000000 |
| 238 | MX6QDL_PAD_EIM_D19__GPIO3_IO19 0x80000000 |
| 239 | MX6QDL_PAD_EIM_D20__GPIO3_IO20 0x80000000 |
| 240 | MX6QDL_PAD_EIM_D21__GPIO3_IO21 0x80000000 |
| 241 | MX6QDL_PAD_EIM_D22__GPIO3_IO22 0x80000000 |
| 242 | MX6QDL_PAD_EIM_D26__GPIO3_IO26 0x80000000 |
| 243 | MX6QDL_PAD_EIM_D27__GPIO3_IO27 0x80000000 |
| 244 | MX6QDL_PAD_EIM_EB0__GPIO2_IO28 0x80000000 |
| 245 | MX6QDL_PAD_EIM_EB1__GPIO2_IO29 0x80000000 |
| 246 | MX6QDL_PAD_EIM_EB2__GPIO2_IO30 0x80000000 |
| 247 | MX6QDL_PAD_EIM_BCLK__GPIO6_IO31 0x80000000 |
| 248 | MX6QDL_PAD_EIM_WAIT__GPIO5_IO00 0x80000000 |
| 249 | MX6QDL_PAD_GPIO_2__GPIO1_IO02 0x80000000 |
| 250 | MX6QDL_PAD_GPIO_4__GPIO1_IO04 0x80000000 |
| 251 | MX6QDL_PAD_GPIO_7__GPIO1_IO07 0x80000000 |
| 252 | MX6QDL_PAD_GPIO_8__GPIO1_IO08 0x80000000 |
| 253 | MX6QDL_PAD_GPIO_9__GPIO1_IO09 0x80000000 |
| 254 | MX6QDL_PAD_GPIO_17__GPIO7_IO12 0x80000000 |
| 255 | MX6QDL_PAD_GPIO_18__GPIO7_IO13 0x80000000 |
| 256 | MX6QDL_PAD_GPIO_19__GPIO4_IO05 0x80000000 |
| 257 | MX6QDL_PAD_KEY_COL0__GPIO4_IO06 0x80000000 |
| 258 | MX6QDL_PAD_KEY_ROW0__GPIO4_IO07 0x80000000 |
| 259 | MX6QDL_PAD_KEY_COL1__GPIO4_IO08 0x80000000 |
| 260 | MX6QDL_PAD_NANDF_CS1__GPIO6_IO14 0x80000000 |
| 261 | MX6QDL_PAD_NANDF_CS3__GPIO6_IO16 0x80000000 |
| 262 | MX6QDL_PAD_RGMII_TD0__GPIO6_IO20 0x80000000 |
| 263 | MX6QDL_PAD_RGMII_TD1__GPIO6_IO21 0x80000000 |
| 264 | MX6QDL_PAD_RGMII_TD2__GPIO6_IO22 0x80000000 |
| 265 | MX6QDL_PAD_RGMII_TD3__GPIO6_IO23 0x80000000 |
| 266 | MX6QDL_PAD_RGMII_RD0__GPIO6_IO25 0x80000000 |
| 267 | MX6QDL_PAD_RGMII_RD1__GPIO6_IO27 0x80000000 |
| 268 | MX6QDL_PAD_RGMII_RD2__GPIO6_IO28 0x80000000 |
| 269 | MX6QDL_PAD_RGMII_RD3__GPIO6_IO29 0x80000000 |
| 270 | MX6QDL_PAD_SD4_DAT0__GPIO2_IO08 0x80000000 |
| 271 | MX6QDL_PAD_SD4_DAT3__GPIO2_IO11 0x80000000 |
| 272 | >; |
| 273 | }; |
| 274 | |
| 275 | pinctrl_i2c3: i2c3grp { |
| 276 | fsl,pins = < |
| 277 | MX6QDL_PAD_EIM_D17__I2C3_SCL 0x4001b8b1 |
| 278 | MX6QDL_PAD_EIM_D18__I2C3_SDA 0x4001b8b1 |
| 279 | >; |
| 280 | }; |
| 281 | |
| 282 | pinctrl_uart1: uart1grp { |
| 283 | fsl,pins = < |
| 284 | MX6QDL_PAD_SD3_DAT6__UART1_RX_DATA 0x1b0b1 |
| 285 | MX6QDL_PAD_SD3_DAT7__UART1_TX_DATA 0x1b0b1 |
| 286 | >; |
| 287 | }; |
| 288 | |
| 289 | pinctrl_uart2: uart2grp { |
| 290 | fsl,pins = < |
| 291 | MX6QDL_PAD_SD4_DAT4__UART2_RX_DATA 0x1b0b1 |
| 292 | MX6QDL_PAD_SD4_DAT5__UART2_RTS_B 0x1b0b1 |
| 293 | MX6QDL_PAD_SD4_DAT6__UART2_CTS_B 0x1b0b1 |
| 294 | MX6QDL_PAD_SD4_DAT7__UART2_TX_DATA 0x1b0b1 |
| 295 | >; |
| 296 | }; |
| 297 | |
| 298 | pinctrl_usdhc1: usdhc1grp { |
| 299 | fsl,pins = < |
| 300 | MX6QDL_PAD_SD1_CMD__SD1_CMD 0x17071 |
| 301 | MX6QDL_PAD_SD1_CLK__SD1_CLK 0x10071 |
| 302 | MX6QDL_PAD_SD1_DAT0__SD1_DATA0 0x17071 |
| 303 | MX6QDL_PAD_SD1_DAT1__SD1_DATA1 0x17071 |
| 304 | MX6QDL_PAD_SD1_DAT2__SD1_DATA2 0x17071 |
| 305 | MX6QDL_PAD_SD1_DAT3__SD1_DATA3 0x17071 |
| 306 | >; |
| 307 | }; |
| 308 | |
| 309 | pinctrl_usdhc3: usdhc3grp { |
| 310 | fsl,pins = < |
| 311 | MX6QDL_PAD_SD3_CMD__SD3_CMD 0x17059 |
| 312 | MX6QDL_PAD_SD3_CLK__SD3_CLK 0x10059 |
| 313 | MX6QDL_PAD_SD3_DAT0__SD3_DATA0 0x17059 |
| 314 | MX6QDL_PAD_SD3_DAT1__SD3_DATA1 0x17059 |
| 315 | MX6QDL_PAD_SD3_DAT2__SD3_DATA2 0x17059 |
| 316 | MX6QDL_PAD_SD3_DAT3__SD3_DATA3 0x17059 |
| 317 | MX6QDL_PAD_SD3_DAT4__GPIO7_IO01 0x1f0b0 /* WL_IRQ */ |
| 318 | MX6QDL_PAD_SD3_DAT5__GPIO7_IO00 0x1f0b0 /* WLAN_EN */ |
| 319 | MX6QDL_PAD_SD3_RST__GPIO7_IO08 0x1f0b0 /* BT_EN */ |
| 320 | >; |
| 321 | }; |
| 322 | }; |
| 323 | |
| 324 | &uart1 { |
| 325 | pinctrl-names = "default"; |
| 326 | pinctrl-0 = <&pinctrl_uart1>; |
| 327 | status = "okay"; |
| 328 | }; |
| 329 | |
| 330 | &uart2 { |
| 331 | pinctrl-names = "default"; |
| 332 | pinctrl-0 = <&pinctrl_uart2>; |
| 333 | status = "okay"; |
| 334 | }; |
| 335 | |
| 336 | &usdhc1 { |
| 337 | pinctrl-names = "default"; |
| 338 | pinctrl-0 = <&pinctrl_usdhc1>; |
| 339 | cd-gpios = <&gpio6 16 GPIO_ACTIVE_HIGH>; |
| 340 | keep-power-in-suspend; |
| 341 | enable-sdio-wakeup; |
| 342 | status = "okay"; |
| 343 | }; |
| 344 | |
| 345 | &usdhc3 { |
| 346 | pinctrl-names = "default"; |
| 347 | pinctrl-0 = <&pinctrl_usdhc3>; |
| 348 | non-removable; |
| 349 | keep-power-in-suspend; |
| 350 | enable-sdio-wakeup; |
| 351 | vmmc-supply = <&sw2_reg>; |
| 352 | status = "okay"; |
| 353 | #address-cells = <1>; |
| 354 | #size-cells = <0>; |
| 355 | wlcore: wlcore@0 { |
| 356 | compatible = "ti,wl1837"; |
| 357 | reg = <2>; |
| 358 | interrupt-parent = <&gpio7>; |
| 359 | interrupts = <1 GPIO_ACTIVE_HIGH>; |
| 360 | }; |
| 361 | }; |