2 * Device Tree Source for mangOH Green Board with WP8548 Module
4 * Copyright (C) 2016 BayLibre, SAS.
5 * Author : Neil Armstrong <narmstrong@baylibre.com>
7 * This file is dual-licensed: you can use it either under the terms
8 * of the GPL or the X11 license, at your option. Note that this dual
9 * licensing only applies to this file, and not this project as a
12 * a) This file is free software; you can redistribute it and/or
13 * modify it under the terms of the GNU General Public License as
14 * published by the Free Software Foundation; either version 2 of the
15 * License, or (at your option) any later version.
17 * This file is distributed in the hope that it will be useful,
18 * but WITHOUT ANY WARRANTY; without even the implied warranty of
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 * GNU General Public License for more details.
24 * b) Permission is hereby granted, free of charge, to any person
25 * obtaining a copy of this software and associated documentation
26 * files (the "Software"), to deal in the Software without
27 * restriction, including without limitation the rights to use,
28 * copy, modify, merge, publish, distribute, sublicense, and/or
29 * sell copies of the Software, and to permit persons to whom the
30 * Software is furnished to do so, subject to the following
33 * The above copyright notice and this permission notice shall be
34 * included in all copies or substantial portions of the Software.
36 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
37 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
38 * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
39 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
40 * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
41 * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
42 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
43 * OTHER DEALINGS IN THE SOFTWARE.
46 #include <dt-bindings/input/input.h>
48 #include "qcom-mdm9615-wp8548.dtsi"
49 #include <dt-bindings/interrupt-controller/irq.h>
50 #include <dt-bindings/gpio/gpio.h>
53 model = "MangOH Green with WP8548 Module";
54 compatible = "swir,mangoh-green-wp8548", "swir,wp8548", "qcom,mdm9615";
58 serial0 = &gsbi4_serial;
59 serial1 = &gsbi5_serial;
65 stdout-path = "serial1:115200n8";
70 /* MangOH GPIO Mapping :
82 * - 42: IOT0_GPIO1 and SD Card Detect
85 gpioext1_pins: gpioext1_pins {
94 sdc_cd_pins: sdc_cd_pins {
106 compatible = "swir,mangoh-iotport-spi", "spidev";
107 spi-max-frequency = <24000000>;
114 compatible = "nxp,pca9548";
115 #address-cells = <1>;
120 #address-cells = <1>;
126 #address-cells = <1>;
132 #address-cells = <1>;
138 #address-cells = <1>;
143 compatible = "smsc,usb3503a";
145 connect-gpios = <&gpioext2 1 GPIO_ACTIVE_HIGH>;
146 intn-gpios = <&gpioext2 0 GPIO_ACTIVE_LOW>;
152 #address-cells = <1>;
157 /* GPIO Expander 0 Mapping :
158 * - 0: ARDUINO_RESET_Level shift
159 * - 1: BattChrgr_PG_N
160 * - 2: BattGauge_GPIO
161 * - 3: LED_ON (out active high)
162 * - 4: ATmega_reset_GPIO
164 * - 6: PCM_ANALOG_SELECT (out active high)
166 * - 8: Board_rev_res1 (in)
167 * - 9: Board_rev_res2 (in)
168 * - 10: UART_EXP1_ENn (out active low / pull-down)
169 * - 11: UART_EXP1_IN (out pull-down)
170 * - 12: UART_EXP2_IN (out pull-down)
171 * - 13: SDIO_SEL (out pull-down)
172 * - 14: SPI_EXP1_ENn (out active low / pull-down)
173 * - 15: SPI_EXP1_IN (out pull-down)
176 #interrupt-cells = <2>;
177 compatible = "semtech,sx1509q";
179 interrupt-parent = <&gpioext1>;
180 interrupts = <0 IRQ_TYPE_EDGE_FALLING>;
185 interrupt-controller;
190 #address-cells = <1>;
195 /* GPIO Expander 1 Mapping :
197 * - 1: Battery detect
198 * - 2: GPIO_SCF3_RESET
199 * - 3: LED_CARD_DETECT_IOT0 (in)
200 * - 4: LED_CARD_DETECT_IOT1 (in)
201 * - 5: LED_CARD_DETECT_IOT2 (in)
202 * - 6: UIM2_PWM_SELECT
203 * - 7: UIM2_M2_S_SELECT
205 * - 9: SENSOR_INT1 (in)
206 * - 10: SENSOR_INT2 (in)
207 * - 11: CARD_DETECT_IOT0 (in pull-up)
208 * - 12: CARD_DETECT_IOT2 (in pull-up)
209 * - 13: CARD_DETECT_IOT1 (in pull-up)
210 * - 14: GPIOEXP_INT3 (in active low / pull-up)
211 * - 15: BattChrgr_INT_N
213 pinctrl-0 = <&gpioext1_pins>;
214 pinctrl-names = "default";
217 #interrupt-cells = <2>;
218 compatible = "semtech,sx1509q";
220 interrupt-parent = <&msmgpio>;
221 interrupts = <0 IRQ_TYPE_EDGE_FALLING>;
226 interrupt-controller;
231 #address-cells = <1>;
236 /* GPIO Expander 2 Mapping :
239 * - 2: GPIO_IOT2_RESET (out active low / pull-up)
240 * - 3: GPIO_IOT1_RESET (out active low / pull-up)
241 * - 4: GPIO_IOT0_RESET (out active low / pull-up)
245 * - 8: UART_EXP2_ENn (out active low / pull-down)
246 * - 9: PCM_EXP1_ENn (out active low)
247 * - 10: PCM_EXP1_SEL (out)
252 * - 15: RS232_Enable (out active high / pull-up)
255 #interrupt-cells = <2>;
256 compatible = "semtech,sx1509q";
258 interrupt-parent = <&gpioext1>;
259 interrupts = <14 IRQ_TYPE_EDGE_FALLING>;
264 interrupt-controller;
269 #address-cells = <1>;
277 pinctrl-0 = <&sdc_cd_pins>;
278 pinctrl-names = "default";
280 cd-gpios = <&msmgpio 42 GPIO_ACTIVE_LOW>; /* Active low CD */