.. | .. |
---|
| 1 | +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) |
---|
1 | 2 | /* |
---|
2 | 3 | * Copyright (c) 2016 Andreas Färber |
---|
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 library 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, or (at your option) any later version. |
---|
13 | | - * |
---|
14 | | - * This library 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 "AS IS", 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. |
---|
41 | 4 | */ |
---|
42 | 5 | |
---|
43 | 6 | #include "imx6sx.dtsi" |
---|
.. | .. |
---|
106 | 69 | gpio = <&gpio2 12 GPIO_ACTIVE_HIGH>; |
---|
107 | 70 | startup-delay-us = <70000>; |
---|
108 | 71 | enable-active-high; |
---|
109 | | - }; |
---|
110 | | - |
---|
111 | | - reg_bt: regulator-bt { |
---|
112 | | - compatible = "regulator-fixed"; |
---|
113 | | - pinctrl-names = "default"; |
---|
114 | | - pinctrl-0 = <&pinctrl_bt_reg>; |
---|
115 | | - enable-active-high; |
---|
116 | | - gpio = <&gpio2 17 GPIO_ACTIVE_HIGH>; |
---|
117 | | - regulator-name = "bt_reg"; |
---|
118 | | - regulator-min-microvolt = <1800000>; |
---|
119 | | - regulator-max-microvolt = <1800000>; |
---|
120 | | - regulator-always-on; |
---|
121 | 72 | }; |
---|
122 | 73 | }; |
---|
123 | 74 | |
---|
.. | .. |
---|
225 | 176 | }; |
---|
226 | 177 | }; |
---|
227 | 178 | |
---|
| 179 | +&i2c2 { /* Brick snap in sensors connector */ |
---|
| 180 | + pinctrl-names = "default"; |
---|
| 181 | + pinctrl-0 = <&pinctrl_i2c2>; |
---|
| 182 | + clock-frequency = <100000>; |
---|
| 183 | + status = "okay"; |
---|
| 184 | +}; |
---|
| 185 | + |
---|
| 186 | +&i2c4 { /* Onboard Motion sensors */ |
---|
| 187 | + pinctrl-names = "default"; |
---|
| 188 | + pinctrl-0 = <&pinctrl_i2c4>; |
---|
| 189 | + clock-frequency = <100000>; |
---|
| 190 | + status = "disabled"; |
---|
| 191 | +}; |
---|
| 192 | + |
---|
228 | 193 | &iomuxc { |
---|
229 | 194 | pinctrl_bt_reg: btreggrp { |
---|
230 | 195 | fsl,pins = |
---|
.. | .. |
---|
256 | 221 | <MX6SX_PAD_GPIO1_IO01__I2C1_SDA 0x4001b8b1>; |
---|
257 | 222 | }; |
---|
258 | 223 | |
---|
| 224 | + pinctrl_i2c2: i2c2grp { |
---|
| 225 | + fsl,pins = |
---|
| 226 | + <MX6SX_PAD_GPIO1_IO03__I2C2_SDA 0x4001b8b1>, |
---|
| 227 | + <MX6SX_PAD_GPIO1_IO02__I2C2_SCL 0x4001b8b1>; |
---|
| 228 | + }; |
---|
| 229 | + |
---|
| 230 | + pinctrl_i2c4: i2c4grp { |
---|
| 231 | + fsl,pins = |
---|
| 232 | + <MX6SX_PAD_USB_H_DATA__I2C4_SDA 0x4001b8b1>, |
---|
| 233 | + <MX6SX_PAD_USB_H_STROBE__I2C4_SCL 0x4001b8b1>; |
---|
| 234 | + }; |
---|
| 235 | + |
---|
259 | 236 | pinctrl_uart1: uart1grp { |
---|
260 | 237 | fsl,pins = |
---|
261 | | - <MX6SX_PAD_GPIO1_IO04__UART1_TX 0x1b0b1>, |
---|
262 | | - <MX6SX_PAD_GPIO1_IO05__UART1_RX 0x1b0b1>; |
---|
| 238 | + <MX6SX_PAD_GPIO1_IO04__UART1_DCE_TX 0x1b0b1>, |
---|
| 239 | + <MX6SX_PAD_GPIO1_IO05__UART1_DCE_RX 0x1b0b1>; |
---|
263 | 240 | }; |
---|
264 | 241 | |
---|
265 | 242 | pinctrl_uart2: uart2grp { |
---|
266 | 243 | fsl,pins = |
---|
267 | | - <MX6SX_PAD_GPIO1_IO06__UART2_TX 0x1b0b1>, |
---|
268 | | - <MX6SX_PAD_GPIO1_IO07__UART2_RX 0x1b0b1>; |
---|
| 244 | + <MX6SX_PAD_GPIO1_IO06__UART2_DCE_TX 0x1b0b1>, |
---|
| 245 | + <MX6SX_PAD_GPIO1_IO07__UART2_DCE_RX 0x1b0b1>; |
---|
269 | 246 | }; |
---|
270 | 247 | |
---|
271 | 248 | pinctrl_uart3: uart3grp { |
---|
272 | 249 | fsl,pins = |
---|
273 | | - <MX6SX_PAD_SD3_DATA4__UART3_RX 0x13059>, |
---|
274 | | - <MX6SX_PAD_SD3_DATA5__UART3_TX 0x13059>, |
---|
275 | | - <MX6SX_PAD_SD3_DATA6__UART3_RTS_B 0x13059>, |
---|
276 | | - <MX6SX_PAD_SD3_DATA7__UART3_CTS_B 0x13059>; |
---|
| 250 | + <MX6SX_PAD_SD3_DATA4__UART3_DCE_RX 0x13059>, |
---|
| 251 | + <MX6SX_PAD_SD3_DATA5__UART3_DCE_TX 0x13059>, |
---|
| 252 | + <MX6SX_PAD_SD3_DATA6__UART3_DCE_RTS 0x13059>, |
---|
| 253 | + <MX6SX_PAD_SD3_DATA7__UART3_DCE_CTS 0x13059>; |
---|
277 | 254 | }; |
---|
278 | 255 | |
---|
279 | 256 | pinctrl_uart5: uart5grp { |
---|
280 | 257 | fsl,pins = |
---|
281 | | - <MX6SX_PAD_SD4_DATA4__UART5_RX 0x1b0b1>, |
---|
282 | | - <MX6SX_PAD_SD4_DATA5__UART5_TX 0x1b0b1>; |
---|
| 258 | + <MX6SX_PAD_SD4_DATA4__UART5_DCE_RX 0x1b0b1>, |
---|
| 259 | + <MX6SX_PAD_SD4_DATA5__UART5_DCE_TX 0x1b0b1>; |
---|
283 | 260 | }; |
---|
284 | 261 | |
---|
285 | 262 | pinctrl_uart6: uart6grp { |
---|
.. | .. |
---|
288 | 265 | <MX6SX_PAD_CSI_DATA01__UART6_DSR_B 0x1b0b1>, |
---|
289 | 266 | <MX6SX_PAD_CSI_DATA02__UART6_DTR_B 0x1b0b1>, |
---|
290 | 267 | <MX6SX_PAD_CSI_DATA03__UART6_DCD_B 0x1b0b1>, |
---|
291 | | - <MX6SX_PAD_CSI_DATA04__UART6_RX 0x1b0b1>, |
---|
292 | | - <MX6SX_PAD_CSI_DATA05__UART6_TX 0x1b0b1>, |
---|
293 | | - <MX6SX_PAD_CSI_DATA06__UART6_RTS_B 0x1b0b1>, |
---|
294 | | - <MX6SX_PAD_CSI_DATA07__UART6_CTS_B 0x1b0b1>; |
---|
| 268 | + <MX6SX_PAD_CSI_DATA04__UART6_DCE_RX 0x1b0b1>, |
---|
| 269 | + <MX6SX_PAD_CSI_DATA05__UART6_DCE_TX 0x1b0b1>, |
---|
| 270 | + <MX6SX_PAD_CSI_DATA06__UART6_DCE_RTS 0x1b0b1>, |
---|
| 271 | + <MX6SX_PAD_CSI_DATA07__UART6_DCE_CTS 0x1b0b1>; |
---|
295 | 272 | }; |
---|
296 | 273 | |
---|
297 | 274 | pinctrl_otg1_reg: otg1grp { |
---|
.. | .. |
---|
354 | 331 | status = "disabled"; |
---|
355 | 332 | }; |
---|
356 | 333 | |
---|
357 | | -&uart3 { /* Bluetooth */ |
---|
| 334 | +&uart3 { /* Bluetooth - only on Extended/Full versions */ |
---|
358 | 335 | pinctrl-names = "default"; |
---|
359 | 336 | pinctrl-0 = <&pinctrl_uart3>; |
---|
360 | 337 | uart-has-rtscts; |
---|
361 | | - status = "okay"; |
---|
| 338 | + status = "disabled"; |
---|
| 339 | + |
---|
| 340 | + bluetooth { |
---|
| 341 | + compatible = "ti,wl1831-st"; |
---|
| 342 | + enable-gpios = <&gpio2 17 GPIO_ACTIVE_HIGH>; |
---|
| 343 | + pinctrl-names = "default"; |
---|
| 344 | + pinctrl-0 = <&pinctrl_bt_reg>; |
---|
| 345 | + max-speed = <921600>; |
---|
| 346 | + }; |
---|
362 | 347 | }; |
---|
363 | 348 | |
---|
364 | 349 | /* Arduino serial */ |
---|