0001 /*
0002 * Device Tree Source for Sierra Wireless WP8548 Module
0003 *
0004 * Copyright (C) 2016 BayLibre, SAS.
0005 * Author : Neil Armstrong <narmstrong@baylibre.com>
0006 *
0007 * This file is dual-licensed: you can use it either under the terms
0008 * of the GPL or the X11 license, at your option. Note that this dual
0009 * licensing only applies to this file, and not this project as a
0010 * whole.
0011 *
0012 * a) This file is free software; you can redistribute it and/or
0013 * modify it under the terms of the GNU General Public License as
0014 * published by the Free Software Foundation; either version 2 of the
0015 * License, or (at your option) any later version.
0016 *
0017 * This file is distributed in the hope that it will be useful,
0018 * but WITHOUT ANY WARRANTY; without even the implied warranty of
0019 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
0020 * GNU General Public License for more details.
0021 *
0022 * Or, alternatively,
0023 *
0024 * b) Permission is hereby granted, free of charge, to any person
0025 * obtaining a copy of this software and associated documentation
0026 * files (the "Software"), to deal in the Software without
0027 * restriction, including without limitation the rights to use,
0028 * copy, modify, merge, publish, distribute, sublicense, and/or
0029 * sell copies of the Software, and to permit persons to whom the
0030 * Software is furnished to do so, subject to the following
0031 * conditions:
0032 *
0033 * The above copyright notice and this permission notice shall be
0034 * included in all copies or substantial portions of the Software.
0035 *
0036 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
0037 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
0038 * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
0039 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
0040 * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
0041 * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
0042 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
0043 * OTHER DEALINGS IN THE SOFTWARE.
0044 */
0045
0046 #include "qcom-mdm9615.dtsi"
0047
0048 / {
0049 model = "Sierra Wireless WP8548 Module";
0050 compatible = "swir,wp8548", "qcom,mdm9615";
0051
0052 memory@48000000 {
0053 device_type = "memory";
0054 reg = <0x48000000 0x7F00000>;
0055 };
0056 };
0057
0058 &msmgpio {
0059 pinctrl-0 = <&reset_out_pins>;
0060 pinctrl-names = "default";
0061
0062 gsbi3_pins: gsbi3_pins {
0063 mux {
0064 pins = "gpio8", "gpio9", "gpio10", "gpio11";
0065 function = "gsbi3";
0066 drive-strength = <8>;
0067 bias-disable;
0068 };
0069 };
0070
0071 gsbi4_pins: gsbi4_pins {
0072 mux {
0073 pins = "gpio12", "gpio13", "gpio14", "gpio15";
0074 function = "gsbi4";
0075 drive-strength = <8>;
0076 bias-disable;
0077 };
0078 };
0079
0080 gsbi5_i2c_pins: gsbi5_i2c_pins {
0081 pin16 {
0082 pins = "gpio16";
0083 function = "gsbi5_i2c";
0084 drive-strength = <8>;
0085 bias-disable;
0086 };
0087
0088 pin17 {
0089 pins = "gpio17";
0090 function = "gsbi5_i2c";
0091 drive-strength = <2>;
0092 bias-disable;
0093 };
0094 };
0095
0096 gsbi5_uart_pins: gsbi5_uart_pins {
0097 mux {
0098 pins = "gpio18", "gpio19";
0099 function = "gsbi5_uart";
0100 drive-strength = <8>;
0101 bias-disable;
0102 };
0103 };
0104
0105 reset_out_pins: reset_out_pins {
0106 pins {
0107 pins = "gpio66";
0108 function = "gpio";
0109 drive-strength = <2>;
0110 bias-pull-up;
0111 output-high;
0112 };
0113 };
0114 };
0115
0116 &pmicgpio {
0117 usb_vbus_5v_pins: usb-vbus-5v-state {
0118 pins = "gpio4";
0119 function = "normal";
0120 output-high;
0121 bias-disable;
0122 qcom,drive-strength = <1>;
0123 power-source = <2>;
0124 };
0125 };
0126
0127 &gsbi3 {
0128 status = "okay";
0129 qcom,mode = <GSBI_PROT_SPI>;
0130 };
0131
0132 &gsbi3_spi {
0133 status = "okay";
0134 pinctrl-0 = <&gsbi3_pins>;
0135 pinctrl-names = "default";
0136 assigned-clocks = <&gcc GSBI3_QUP_CLK>;
0137 assigned-clock-rates = <24000000>;
0138 };
0139
0140 &gsbi4 {
0141 status = "okay";
0142 qcom,mode = <GSBI_PROT_UART_W_FC>;
0143 };
0144
0145 &gsbi4_serial {
0146 status = "okay";
0147 pinctrl-0 = <&gsbi4_pins>;
0148 pinctrl-names = "default";
0149 };
0150
0151 &gsbi5 {
0152 status = "okay";
0153 qcom,mode = <GSBI_PROT_I2C_UART>;
0154 };
0155
0156 &gsbi5_i2c {
0157 status = "okay";
0158 clock-frequency = <200000>;
0159 pinctrl-0 = <&gsbi5_i2c_pins>;
0160 pinctrl-names = "default";
0161 };
0162
0163 &gsbi5_serial {
0164 status = "okay";
0165 pinctrl-0 = <&gsbi5_uart_pins>;
0166 pinctrl-names = "default";
0167 };
0168
0169 &sdcc1 {
0170 status = "okay";
0171 };