18c2ecf20Sopenharmony_ci/* 28c2ecf20Sopenharmony_ci * Device Tree Source for Sierra Wireless WP8548 Module 38c2ecf20Sopenharmony_ci * 48c2ecf20Sopenharmony_ci * Copyright (C) 2016 BayLibre, SAS. 58c2ecf20Sopenharmony_ci * Author : Neil Armstrong <narmstrong@baylibre.com> 68c2ecf20Sopenharmony_ci * 78c2ecf20Sopenharmony_ci * This file is dual-licensed: you can use it either under the terms 88c2ecf20Sopenharmony_ci * of the GPL or the X11 license, at your option. Note that this dual 98c2ecf20Sopenharmony_ci * licensing only applies to this file, and not this project as a 108c2ecf20Sopenharmony_ci * whole. 118c2ecf20Sopenharmony_ci * 128c2ecf20Sopenharmony_ci * a) This file is free software; you can redistribute it and/or 138c2ecf20Sopenharmony_ci * modify it under the terms of the GNU General Public License as 148c2ecf20Sopenharmony_ci * published by the Free Software Foundation; either version 2 of the 158c2ecf20Sopenharmony_ci * License, or (at your option) any later version. 168c2ecf20Sopenharmony_ci * 178c2ecf20Sopenharmony_ci * This file is distributed in the hope that it will be useful, 188c2ecf20Sopenharmony_ci * but WITHOUT ANY WARRANTY; without even the implied warranty of 198c2ecf20Sopenharmony_ci * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 208c2ecf20Sopenharmony_ci * GNU General Public License for more details. 218c2ecf20Sopenharmony_ci * 228c2ecf20Sopenharmony_ci * Or, alternatively, 238c2ecf20Sopenharmony_ci * 248c2ecf20Sopenharmony_ci * b) Permission is hereby granted, free of charge, to any person 258c2ecf20Sopenharmony_ci * obtaining a copy of this software and associated documentation 268c2ecf20Sopenharmony_ci * files (the "Software"), to deal in the Software without 278c2ecf20Sopenharmony_ci * restriction, including without limitation the rights to use, 288c2ecf20Sopenharmony_ci * copy, modify, merge, publish, distribute, sublicense, and/or 298c2ecf20Sopenharmony_ci * sell copies of the Software, and to permit persons to whom the 308c2ecf20Sopenharmony_ci * Software is furnished to do so, subject to the following 318c2ecf20Sopenharmony_ci * conditions: 328c2ecf20Sopenharmony_ci * 338c2ecf20Sopenharmony_ci * The above copyright notice and this permission notice shall be 348c2ecf20Sopenharmony_ci * included in all copies or substantial portions of the Software. 358c2ecf20Sopenharmony_ci * 368c2ecf20Sopenharmony_ci * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 378c2ecf20Sopenharmony_ci * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES 388c2ecf20Sopenharmony_ci * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 398c2ecf20Sopenharmony_ci * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT 408c2ecf20Sopenharmony_ci * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 418c2ecf20Sopenharmony_ci * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 428c2ecf20Sopenharmony_ci * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 438c2ecf20Sopenharmony_ci * OTHER DEALINGS IN THE SOFTWARE. 448c2ecf20Sopenharmony_ci */ 458c2ecf20Sopenharmony_ci 468c2ecf20Sopenharmony_ci#include "qcom-mdm9615.dtsi" 478c2ecf20Sopenharmony_ci 488c2ecf20Sopenharmony_ci/ { 498c2ecf20Sopenharmony_ci model = "Sierra Wireless WP8548 Module"; 508c2ecf20Sopenharmony_ci compatible = "swir,wp8548", "qcom,mdm9615"; 518c2ecf20Sopenharmony_ci 528c2ecf20Sopenharmony_ci memory { 538c2ecf20Sopenharmony_ci device_type = "memory"; 548c2ecf20Sopenharmony_ci reg = <0x48000000 0x7F00000>; 558c2ecf20Sopenharmony_ci }; 568c2ecf20Sopenharmony_ci}; 578c2ecf20Sopenharmony_ci 588c2ecf20Sopenharmony_ci&msmgpio { 598c2ecf20Sopenharmony_ci pinctrl-0 = <&reset_out_pins>; 608c2ecf20Sopenharmony_ci pinctrl-names = "default"; 618c2ecf20Sopenharmony_ci 628c2ecf20Sopenharmony_ci gsbi3_pins: gsbi3_pins { 638c2ecf20Sopenharmony_ci mux { 648c2ecf20Sopenharmony_ci pins = "gpio8", "gpio9", "gpio10", "gpio11"; 658c2ecf20Sopenharmony_ci function = "gsbi3"; 668c2ecf20Sopenharmony_ci drive-strength = <8>; 678c2ecf20Sopenharmony_ci bias-disable; 688c2ecf20Sopenharmony_ci }; 698c2ecf20Sopenharmony_ci }; 708c2ecf20Sopenharmony_ci 718c2ecf20Sopenharmony_ci gsbi4_pins: gsbi4_pins { 728c2ecf20Sopenharmony_ci mux { 738c2ecf20Sopenharmony_ci pins = "gpio12", "gpio13", "gpio14", "gpio15"; 748c2ecf20Sopenharmony_ci function = "gsbi4"; 758c2ecf20Sopenharmony_ci drive-strength = <8>; 768c2ecf20Sopenharmony_ci bias-disable; 778c2ecf20Sopenharmony_ci }; 788c2ecf20Sopenharmony_ci }; 798c2ecf20Sopenharmony_ci 808c2ecf20Sopenharmony_ci gsbi5_i2c_pins: gsbi5_i2c_pins { 818c2ecf20Sopenharmony_ci pin16 { 828c2ecf20Sopenharmony_ci pins = "gpio16"; 838c2ecf20Sopenharmony_ci function = "gsbi5_i2c"; 848c2ecf20Sopenharmony_ci drive-strength = <8>; 858c2ecf20Sopenharmony_ci bias-disable; 868c2ecf20Sopenharmony_ci }; 878c2ecf20Sopenharmony_ci 888c2ecf20Sopenharmony_ci pin17 { 898c2ecf20Sopenharmony_ci pins = "gpio17"; 908c2ecf20Sopenharmony_ci function = "gsbi5_i2c"; 918c2ecf20Sopenharmony_ci drive-strength = <2>; 928c2ecf20Sopenharmony_ci bias-disable; 938c2ecf20Sopenharmony_ci }; 948c2ecf20Sopenharmony_ci }; 958c2ecf20Sopenharmony_ci 968c2ecf20Sopenharmony_ci gsbi5_uart_pins: gsbi5_uart_pins { 978c2ecf20Sopenharmony_ci mux { 988c2ecf20Sopenharmony_ci pins = "gpio18", "gpio19"; 998c2ecf20Sopenharmony_ci function = "gsbi5_uart"; 1008c2ecf20Sopenharmony_ci drive-strength = <8>; 1018c2ecf20Sopenharmony_ci bias-disable; 1028c2ecf20Sopenharmony_ci }; 1038c2ecf20Sopenharmony_ci }; 1048c2ecf20Sopenharmony_ci 1058c2ecf20Sopenharmony_ci reset_out_pins: reset_out_pins { 1068c2ecf20Sopenharmony_ci pins { 1078c2ecf20Sopenharmony_ci pins = "gpio66"; 1088c2ecf20Sopenharmony_ci function = "gpio"; 1098c2ecf20Sopenharmony_ci drive-strength = <2>; 1108c2ecf20Sopenharmony_ci bias-pull-up; 1118c2ecf20Sopenharmony_ci output-high; 1128c2ecf20Sopenharmony_ci }; 1138c2ecf20Sopenharmony_ci }; 1148c2ecf20Sopenharmony_ci}; 1158c2ecf20Sopenharmony_ci 1168c2ecf20Sopenharmony_ci&pmicgpio { 1178c2ecf20Sopenharmony_ci usb_vbus_5v_pins: usb_vbus_5v_pins { 1188c2ecf20Sopenharmony_ci pins = "gpio4"; 1198c2ecf20Sopenharmony_ci function = "normal"; 1208c2ecf20Sopenharmony_ci output-high; 1218c2ecf20Sopenharmony_ci bias-disable; 1228c2ecf20Sopenharmony_ci qcom,drive-strength = <1>; 1238c2ecf20Sopenharmony_ci power-source = <2>; 1248c2ecf20Sopenharmony_ci }; 1258c2ecf20Sopenharmony_ci}; 1268c2ecf20Sopenharmony_ci 1278c2ecf20Sopenharmony_ci&gsbi3 { 1288c2ecf20Sopenharmony_ci status = "ok"; 1298c2ecf20Sopenharmony_ci qcom,mode = <GSBI_PROT_SPI>; 1308c2ecf20Sopenharmony_ci}; 1318c2ecf20Sopenharmony_ci 1328c2ecf20Sopenharmony_ci&gsbi3_spi { 1338c2ecf20Sopenharmony_ci status = "ok"; 1348c2ecf20Sopenharmony_ci pinctrl-0 = <&gsbi3_pins>; 1358c2ecf20Sopenharmony_ci pinctrl-names = "default"; 1368c2ecf20Sopenharmony_ci assigned-clocks = <&gcc GSBI3_QUP_CLK>; 1378c2ecf20Sopenharmony_ci assigned-clock-rates = <24000000>; 1388c2ecf20Sopenharmony_ci}; 1398c2ecf20Sopenharmony_ci 1408c2ecf20Sopenharmony_ci&gsbi4 { 1418c2ecf20Sopenharmony_ci status = "ok"; 1428c2ecf20Sopenharmony_ci qcom,mode = <GSBI_PROT_UART_W_FC>; 1438c2ecf20Sopenharmony_ci}; 1448c2ecf20Sopenharmony_ci 1458c2ecf20Sopenharmony_ci&gsbi4_serial { 1468c2ecf20Sopenharmony_ci status = "ok"; 1478c2ecf20Sopenharmony_ci pinctrl-0 = <&gsbi4_pins>; 1488c2ecf20Sopenharmony_ci pinctrl-names = "default"; 1498c2ecf20Sopenharmony_ci}; 1508c2ecf20Sopenharmony_ci 1518c2ecf20Sopenharmony_ci&gsbi5 { 1528c2ecf20Sopenharmony_ci status = "ok"; 1538c2ecf20Sopenharmony_ci qcom,mode = <GSBI_PROT_I2C_UART>; 1548c2ecf20Sopenharmony_ci}; 1558c2ecf20Sopenharmony_ci 1568c2ecf20Sopenharmony_ci&gsbi5_i2c { 1578c2ecf20Sopenharmony_ci status = "ok"; 1588c2ecf20Sopenharmony_ci clock-frequency = <200000>; 1598c2ecf20Sopenharmony_ci pinctrl-0 = <&gsbi5_i2c_pins>; 1608c2ecf20Sopenharmony_ci pinctrl-names = "default"; 1618c2ecf20Sopenharmony_ci}; 1628c2ecf20Sopenharmony_ci 1638c2ecf20Sopenharmony_ci&gsbi5_serial { 1648c2ecf20Sopenharmony_ci status = "ok"; 1658c2ecf20Sopenharmony_ci pinctrl-0 = <&gsbi5_uart_pins>; 1668c2ecf20Sopenharmony_ci pinctrl-names = "default"; 1678c2ecf20Sopenharmony_ci}; 1688c2ecf20Sopenharmony_ci 1698c2ecf20Sopenharmony_ci&sdcc1 { 1708c2ecf20Sopenharmony_ci status = "ok"; 1718c2ecf20Sopenharmony_ci}; 172