1 // SPDX-License-Identifier: GPL-2.0+ OR MIT 2 /* 3 * Device Tree Source for mangOH Green Board w 4 * 5 * Copyright (C) 2016 BayLibre, SAS. 6 * Author : Neil Armstrong <narmstrong@baylibre 7 */ 8 9 #include <dt-bindings/gpio/gpio.h> 10 #include <dt-bindings/input/input.h> 11 #include <dt-bindings/interrupt-controller/irq 12 13 #include "qcom-mdm9615-wp8548.dtsi" 14 15 / { 16 model = "MangOH Green with WP8548 Modu 17 compatible = "swir,mangoh-green-wp8548 18 19 aliases { 20 spi0 = &gsbi3_spi; 21 serial0 = &gsbi4_serial; 22 serial1 = &gsbi5_serial; 23 i2c0 = &gsbi5_i2c; 24 mmc0 = &sdcc1; 25 }; 26 27 chosen { 28 stdout-path = "serial1:115200n 29 }; 30 }; 31 32 &msmgpio { 33 /* MangOH GPIO Mapping : 34 * - 2 : GPIOEXP_INT2 35 * - 7 : IOT1_GPIO2 36 * - 8 : IOT0_GPIO4 37 * - 13: IOT0_GPIO3 38 * - 21: IOT1_GPIO4 39 * - 22: IOT2_GPIO1 40 * - 23: IOT2_GPIO2 41 * - 24: IOT2_GPIO3 42 * - 25: IOT1_GPIO1 43 * - 32: IOT1_GPIO3 44 * - 33: IOT0_GPIO2 45 * - 42: IOT0_GPIO1 and SD Card Detect 46 */ 47 48 gpioext1_pins: gpioext1-state { 49 gpioext1-pins { 50 pins = "gpio2"; 51 function = "gpio"; 52 bias-disable; 53 }; 54 }; 55 56 sdc_cd_pins: sdc-cd-state { 57 sdc-cd-pins { 58 pins = "gpio42"; 59 function = "gpio"; 60 drive-strength = <2>; 61 bias-pull-up; 62 }; 63 }; 64 }; 65 66 &gsbi3_spi { 67 spi@0 { 68 compatible = "swir,mangoh-iotp 69 spi-max-frequency = <24000000> 70 reg = <0>; 71 }; 72 }; 73 74 &gsbi5_i2c { 75 mux@71 { 76 compatible = "nxp,pca9548"; 77 #address-cells = <1>; 78 #size-cells = <0>; 79 reg = <0x71>; 80 81 i2c_iot0: i2c@0 { 82 #address-cells = <1>; 83 #size-cells = <0>; 84 reg = <0>; 85 }; 86 87 i2c_iot1: i2c@1 { 88 #address-cells = <1>; 89 #size-cells = <0>; 90 reg = <1>; 91 }; 92 93 i2c_iot2: i2c@2 { 94 #address-cells = <1>; 95 #size-cells = <0>; 96 reg = <2>; 97 }; 98 99 i2c@3 { 100 #address-cells = <1>; 101 #size-cells = <0>; 102 reg = <3>; 103 104 usbhub: hub@8 { 105 compatible = " 106 reg = <0x8>; 107 connect-gpios 108 intn-gpios = < 109 initial-mode = 110 }; 111 }; 112 113 i2c@4 { 114 #address-cells = <1>; 115 #size-cells = <0>; 116 reg = <4>; 117 118 gpioext0: pinctrl@3e { 119 /* GPIO Expand 120 * - 0: ARDUIN 121 * - 1: BattCh 122 * - 2: BattGa 123 * - 3: LED_ON 124 * - 4: ATmega 125 * - 5: X 126 * - 6: PCM_AN 127 * - 7: X 128 * - 8: Board_ 129 * - 9: Board_ 130 * - 10: UART_ 131 * - 11: UART_ 132 * - 12: UART_ 133 * - 13: SDIO_ 134 * - 14: SPI_E 135 * - 15: SPI_E 136 */ 137 #gpio-cells = 138 #interrupt-cel 139 compatible = " 140 reg = <0x3e>; 141 interrupt-pare 142 interrupts = < 143 144 semtech,probe- 145 146 gpio-controlle 147 interrupt-cont 148 }; 149 }; 150 151 i2c@5 { 152 #address-cells = <1>; 153 #size-cells = <0>; 154 reg = <5>; 155 156 gpioext1: pinctrl@3f { 157 /* GPIO Expand 158 * - 0: GPIOEX 159 * - 1: Batter 160 * - 2: GPIO_S 161 * - 3: LED_CA 162 * - 4: LED_CA 163 * - 5: LED_CA 164 * - 6: UIM2_P 165 * - 7: UIM2_M 166 * - 8: TP900 167 * - 9: SENSOR 168 * - 10: SENSO 169 * - 11: CARD_ 170 * - 12: CARD_ 171 * - 13: CARD_ 172 * - 14: GPIOE 173 * - 15: BattC 174 */ 175 pinctrl-0 = <& 176 pinctrl-names 177 178 #gpio-cells = 179 #interrupt-cel 180 compatible = " 181 reg = <0x3f>; 182 interrupt-pare 183 interrupts = < 184 185 semtech,probe- 186 187 gpio-controlle 188 interrupt-cont 189 }; 190 }; 191 192 i2c@6 { 193 #address-cells = <1>; 194 #size-cells = <0>; 195 reg = <6>; 196 197 gpioext2: pinctrl@70 { 198 /* GPIO Expand 199 * - 0: USB_HU 200 * - 1: HUB_CO 201 * - 2: GPIO_I 202 * - 3: GPIO_I 203 * - 4: GPIO_I 204 * - 5: TP901 205 * - 6: TP902 206 * - 7: TP903 207 * - 8: UART_E 208 * - 9: PCM_EX 209 * - 10: PCM_E 210 * - 11: ARD_F 211 * - 12: TP904 212 * - 13: TP905 213 * - 14: TP906 214 * - 15: RS232 215 */ 216 #gpio-cells = 217 #interrupt-cel 218 compatible = " 219 reg = <0x70>; 220 interrupt-pare 221 interrupts = < 222 223 semtech,probe- 224 225 gpio-controlle 226 interrupt-cont 227 }; 228 }; 229 230 i2c@7 { 231 #address-cells = <1>; 232 #size-cells = <0>; 233 reg = <7>; 234 }; 235 }; 236 }; 237 238 &sdcc1 { 239 pinctrl-0 = <&sdc_cd_pins>; 240 pinctrl-names = "default"; 241 disable-wp; 242 cd-gpios = <&msmgpio 42 GPIO_ACTIVE_LO 243 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.