1 // SPDX-License-Identifier: GPL-2.0+ OR MIT
3 * Device Tree Source for mangOH Green Board with WP8548 Module
5 * Copyright (C) 2016 BayLibre, SAS.
6 * Author : Neil Armstrong <narmstrong@baylibre.com>
9 #include <dt-bindings/input/input.h>
11 #include "qcom-mdm9615-wp8548.dtsi"
12 #include <dt-bindings/interrupt-controller/irq.h>
13 #include <dt-bindings/gpio/gpio.h>
16 model = "MangOH Green with WP8548 Module";
17 compatible = "swir,mangoh-green-wp8548", "swir,wp8548", "qcom,mdm9615";
21 serial0 = &gsbi4_serial;
22 serial1 = &gsbi5_serial;
28 stdout-path = "serial1:115200n8";
33 /* MangOH GPIO Mapping :
45 * - 42: IOT0_GPIO1 and SD Card Detect
48 gpioext1_pins: gpioext1-state {
56 sdc_cd_pins: sdc-cd-state {
68 compatible = "swir,mangoh-iotport-spi";
69 spi-max-frequency = <24000000>;
76 compatible = "nxp,pca9548";
100 #address-cells = <1>;
105 compatible = "smsc,usb3503a";
107 connect-gpios = <&gpioext2 1 GPIO_ACTIVE_HIGH>;
108 intn-gpios = <&gpioext2 0 GPIO_ACTIVE_HIGH>;
114 #address-cells = <1>;
118 gpioext0: pinctrl@3e {
119 /* GPIO Expander 0 Mapping :
120 * - 0: ARDUINO_RESET_Level shift
121 * - 1: BattChrgr_PG_N
122 * - 2: BattGauge_GPIO
123 * - 3: LED_ON (out active high)
124 * - 4: ATmega_reset_GPIO
126 * - 6: PCM_ANALOG_SELECT (out active high)
128 * - 8: Board_rev_res1 (in)
129 * - 9: Board_rev_res2 (in)
130 * - 10: UART_EXP1_ENn (out active low / pull-down)
131 * - 11: UART_EXP1_IN (out pull-down)
132 * - 12: UART_EXP2_IN (out pull-down)
133 * - 13: SDIO_SEL (out pull-down)
134 * - 14: SPI_EXP1_ENn (out active low / pull-down)
135 * - 15: SPI_EXP1_IN (out pull-down)
138 #interrupt-cells = <2>;
139 compatible = "semtech,sx1509q";
141 interrupt-parent = <&gpioext1>;
142 interrupts = <0 IRQ_TYPE_EDGE_FALLING>;
147 interrupt-controller;
152 #address-cells = <1>;
156 gpioext1: pinctrl@3f {
157 /* GPIO Expander 1 Mapping :
159 * - 1: Battery detect
160 * - 2: GPIO_SCF3_RESET
161 * - 3: LED_CARD_DETECT_IOT0 (in)
162 * - 4: LED_CARD_DETECT_IOT1 (in)
163 * - 5: LED_CARD_DETECT_IOT2 (in)
164 * - 6: UIM2_PWM_SELECT
165 * - 7: UIM2_M2_S_SELECT
167 * - 9: SENSOR_INT1 (in)
168 * - 10: SENSOR_INT2 (in)
169 * - 11: CARD_DETECT_IOT0 (in pull-up)
170 * - 12: CARD_DETECT_IOT2 (in pull-up)
171 * - 13: CARD_DETECT_IOT1 (in pull-up)
172 * - 14: GPIOEXP_INT3 (in active low / pull-up)
173 * - 15: BattChrgr_INT_N
175 pinctrl-0 = <&gpioext1_pins>;
176 pinctrl-names = "default";
179 #interrupt-cells = <2>;
180 compatible = "semtech,sx1509q";
182 interrupt-parent = <&msmgpio>;
183 interrupts = <0 IRQ_TYPE_EDGE_FALLING>;
188 interrupt-controller;
193 #address-cells = <1>;
197 gpioext2: pinctrl@70 {
198 /* GPIO Expander 2 Mapping :
201 * - 2: GPIO_IOT2_RESET (out active low / pull-up)
202 * - 3: GPIO_IOT1_RESET (out active low / pull-up)
203 * - 4: GPIO_IOT0_RESET (out active low / pull-up)
207 * - 8: UART_EXP2_ENn (out active low / pull-down)
208 * - 9: PCM_EXP1_ENn (out active low)
209 * - 10: PCM_EXP1_SEL (out)
214 * - 15: RS232_Enable (out active high / pull-up)
217 #interrupt-cells = <2>;
218 compatible = "semtech,sx1509q";
220 interrupt-parent = <&gpioext1>;
221 interrupts = <14 IRQ_TYPE_EDGE_FALLING>;
226 interrupt-controller;
231 #address-cells = <1>;
239 pinctrl-0 = <&sdc_cd_pins>;
240 pinctrl-names = "default";
242 cd-gpios = <&msmgpio 42 GPIO_ACTIVE_LOW>; /* Active low CD */