1 // SPDX-License-Identifier: GPL-2.0+ OR MIT 1 // SPDX-License-Identifier: GPL-2.0+ OR MIT 2 /* 2 /* 3 * Device Tree Source for Sierra Wireless WP85 3 * Device Tree Source for Sierra Wireless WP8548 Module 4 * 4 * 5 * Copyright (C) 2016 BayLibre, SAS. 5 * Copyright (C) 2016 BayLibre, SAS. 6 * Author : Neil Armstrong <narmstrong@baylibre 6 * Author : Neil Armstrong <narmstrong@baylibre.com> 7 */ 7 */ 8 8 9 #include "qcom-mdm9615.dtsi" 9 #include "qcom-mdm9615.dtsi" 10 #include "pm8018.dtsi" 10 #include "pm8018.dtsi" 11 11 12 / { 12 / { 13 model = "Sierra Wireless WP8548 Module 13 model = "Sierra Wireless WP8548 Module"; 14 compatible = "swir,wp8548", "qcom,mdm9 14 compatible = "swir,wp8548", "qcom,mdm9615"; 15 15 16 memory@48000000 { 16 memory@48000000 { 17 device_type = "memory"; 17 device_type = "memory"; 18 reg = <0x48000000 0x7F00000>; 18 reg = <0x48000000 0x7F00000>; 19 }; 19 }; 20 }; 20 }; 21 21 22 &msmgpio { 22 &msmgpio { 23 pinctrl-0 = <&reset_out_pins>; 23 pinctrl-0 = <&reset_out_pins>; 24 pinctrl-names = "default"; 24 pinctrl-names = "default"; 25 25 26 gsbi3_pins: gsbi3-state { 26 gsbi3_pins: gsbi3-state { 27 gsbi3-pins { 27 gsbi3-pins { 28 pins = "gpio8", "gpio9 28 pins = "gpio8", "gpio9", "gpio10", "gpio11"; 29 function = "gsbi3"; 29 function = "gsbi3"; 30 drive-strength = <8>; 30 drive-strength = <8>; 31 bias-disable; 31 bias-disable; 32 }; 32 }; 33 }; 33 }; 34 34 35 gsbi4_pins: gsbi4-state { 35 gsbi4_pins: gsbi4-state { 36 gsbi4-pins { 36 gsbi4-pins { 37 pins = "gpio12", "gpio 37 pins = "gpio12", "gpio13", "gpio14", "gpio15"; 38 function = "gsbi4"; 38 function = "gsbi4"; 39 drive-strength = <8>; 39 drive-strength = <8>; 40 bias-disable; 40 bias-disable; 41 }; 41 }; 42 }; 42 }; 43 43 44 gsbi5_i2c_pins: gsbi5-i2c-state { 44 gsbi5_i2c_pins: gsbi5-i2c-state { 45 sda-pins { 45 sda-pins { 46 pins = "gpio16"; 46 pins = "gpio16"; 47 function = "gsbi5_i2c" 47 function = "gsbi5_i2c"; 48 drive-strength = <8>; 48 drive-strength = <8>; 49 bias-disable; 49 bias-disable; 50 }; 50 }; 51 51 52 scl-pins { 52 scl-pins { 53 pins = "gpio17"; 53 pins = "gpio17"; 54 function = "gsbi5_i2c" 54 function = "gsbi5_i2c"; 55 drive-strength = <2>; 55 drive-strength = <2>; 56 bias-disable; 56 bias-disable; 57 }; 57 }; 58 }; 58 }; 59 59 60 gsbi5_uart_pins: gsbi5-uart-state { 60 gsbi5_uart_pins: gsbi5-uart-state { 61 gsbi5-uart-pins { 61 gsbi5-uart-pins { 62 pins = "gpio18", "gpio 62 pins = "gpio18", "gpio19"; 63 function = "gsbi5_uart 63 function = "gsbi5_uart"; 64 drive-strength = <8>; 64 drive-strength = <8>; 65 bias-disable; 65 bias-disable; 66 }; 66 }; 67 }; 67 }; 68 68 69 reset_out_pins: reset-out-state { 69 reset_out_pins: reset-out-state { 70 reset-out-pins { 70 reset-out-pins { 71 pins = "gpio66"; 71 pins = "gpio66"; 72 function = "gpio"; 72 function = "gpio"; 73 drive-strength = <2>; 73 drive-strength = <2>; 74 bias-pull-up; 74 bias-pull-up; 75 output-high; 75 output-high; 76 }; 76 }; 77 }; 77 }; 78 }; 78 }; 79 79 80 &pm8018 { 80 &pm8018 { 81 interrupts-extended = <&intc GIC_PPI 2 81 interrupts-extended = <&intc GIC_PPI 226 IRQ_TYPE_LEVEL_HIGH>; 82 }; 82 }; 83 83 84 &pm8018_gpio { 84 &pm8018_gpio { 85 usb_vbus_5v_pins: usb-vbus-5v-state { 85 usb_vbus_5v_pins: usb-vbus-5v-state { 86 pins = "gpio4"; 86 pins = "gpio4"; 87 function = "normal"; 87 function = "normal"; 88 output-high; 88 output-high; 89 bias-disable; 89 bias-disable; 90 qcom,drive-strength = <1>; 90 qcom,drive-strength = <1>; 91 power-source = <2>; 91 power-source = <2>; 92 }; 92 }; 93 }; 93 }; 94 94 95 &gsbi3 { 95 &gsbi3 { 96 status = "okay"; 96 status = "okay"; 97 qcom,mode = <GSBI_PROT_SPI>; 97 qcom,mode = <GSBI_PROT_SPI>; 98 }; 98 }; 99 99 100 &gsbi3_spi { 100 &gsbi3_spi { 101 status = "okay"; 101 status = "okay"; 102 pinctrl-0 = <&gsbi3_pins>; 102 pinctrl-0 = <&gsbi3_pins>; 103 pinctrl-names = "default"; 103 pinctrl-names = "default"; 104 assigned-clocks = <&gcc GSBI3_QUP_CLK> 104 assigned-clocks = <&gcc GSBI3_QUP_CLK>; 105 assigned-clock-rates = <24000000>; 105 assigned-clock-rates = <24000000>; 106 }; 106 }; 107 107 108 &gsbi4 { 108 &gsbi4 { 109 status = "okay"; 109 status = "okay"; 110 qcom,mode = <GSBI_PROT_UART_W_FC>; 110 qcom,mode = <GSBI_PROT_UART_W_FC>; 111 }; 111 }; 112 112 113 &gsbi4_serial { 113 &gsbi4_serial { 114 status = "okay"; 114 status = "okay"; 115 pinctrl-0 = <&gsbi4_pins>; 115 pinctrl-0 = <&gsbi4_pins>; 116 pinctrl-names = "default"; 116 pinctrl-names = "default"; 117 }; 117 }; 118 118 119 &gsbi5 { 119 &gsbi5 { 120 status = "okay"; 120 status = "okay"; 121 qcom,mode = <GSBI_PROT_I2C_UART>; 121 qcom,mode = <GSBI_PROT_I2C_UART>; 122 }; 122 }; 123 123 124 &gsbi5_i2c { 124 &gsbi5_i2c { 125 status = "okay"; 125 status = "okay"; 126 clock-frequency = <200000>; 126 clock-frequency = <200000>; 127 pinctrl-0 = <&gsbi5_i2c_pins>; 127 pinctrl-0 = <&gsbi5_i2c_pins>; 128 pinctrl-names = "default"; 128 pinctrl-names = "default"; 129 }; 129 }; 130 130 131 &gsbi5_serial { 131 &gsbi5_serial { 132 status = "okay"; 132 status = "okay"; 133 pinctrl-0 = <&gsbi5_uart_pins>; 133 pinctrl-0 = <&gsbi5_uart_pins>; 134 pinctrl-names = "default"; 134 pinctrl-names = "default"; 135 }; 135 }; 136 136 137 &rpm { 137 &rpm { 138 regulators { 138 regulators { 139 compatible = "qcom,rpm-pm8018- 139 compatible = "qcom,rpm-pm8018-regulators"; 140 140 141 vin_lvs1-supply = <&pm8018_s3> 141 vin_lvs1-supply = <&pm8018_s3>; 142 142 143 vdd_l7-supply = <&pm8018_s4>; 143 vdd_l7-supply = <&pm8018_s4>; 144 vdd_l8-supply = <&pm8018_s3>; 144 vdd_l8-supply = <&pm8018_s3>; 145 vdd_l9_l10_l11_l12-supply = <& 145 vdd_l9_l10_l11_l12-supply = <&pm8018_s5>; 146 146 147 /* Buck SMPS */ 147 /* Buck SMPS */ 148 pm8018_s1: s1 { 148 pm8018_s1: s1 { 149 regulator-min-microvol 149 regulator-min-microvolt = <500000>; 150 regulator-max-microvol 150 regulator-max-microvolt = <1150000>; 151 qcom,switch-mode-frequ 151 qcom,switch-mode-frequency = <1600000>; 152 bias-pull-down; 152 bias-pull-down; 153 }; 153 }; 154 154 155 pm8018_s2: s2 { 155 pm8018_s2: s2 { 156 regulator-min-microvol 156 regulator-min-microvolt = <1225000>; 157 regulator-max-microvol 157 regulator-max-microvolt = <1300000>; 158 qcom,switch-mode-frequ 158 qcom,switch-mode-frequency = <1600000>; 159 bias-pull-down; 159 bias-pull-down; 160 }; 160 }; 161 161 162 pm8018_s3: s3 { 162 pm8018_s3: s3 { 163 regulator-always-on; 163 regulator-always-on; 164 regulator-min-microvol 164 regulator-min-microvolt = <1800000>; 165 regulator-max-microvol 165 regulator-max-microvolt = <1800000>; 166 qcom,switch-mode-frequ 166 qcom,switch-mode-frequency = <1600000>; 167 bias-pull-down; 167 bias-pull-down; 168 }; 168 }; 169 169 170 pm8018_s4: s4 { 170 pm8018_s4: s4 { 171 regulator-min-microvol 171 regulator-min-microvolt = <2100000>; 172 regulator-max-microvol 172 regulator-max-microvolt = <2200000>; 173 qcom,switch-mode-frequ 173 qcom,switch-mode-frequency = <1600000>; 174 bias-pull-down; 174 bias-pull-down; 175 }; 175 }; 176 176 177 pm8018_s5: s5 { 177 pm8018_s5: s5 { 178 regulator-always-on; 178 regulator-always-on; 179 regulator-min-microvol 179 regulator-min-microvolt = <1350000>; 180 regulator-max-microvol 180 regulator-max-microvolt = <1350000>; 181 qcom,switch-mode-frequ 181 qcom,switch-mode-frequency = <1600000>; 182 bias-pull-down; 182 bias-pull-down; 183 }; 183 }; 184 184 185 /* PMOS LDO */ 185 /* PMOS LDO */ 186 pm8018_l2: l2 { 186 pm8018_l2: l2 { 187 regulator-always-on; 187 regulator-always-on; 188 regulator-min-microvol 188 regulator-min-microvolt = <1800000>; 189 regulator-max-microvol 189 regulator-max-microvolt = <1800000>; 190 bias-pull-down; 190 bias-pull-down; 191 }; 191 }; 192 192 193 pm8018_l3: l3 { 193 pm8018_l3: l3 { 194 regulator-always-on; 194 regulator-always-on; 195 regulator-min-microvol 195 regulator-min-microvolt = <1800000>; 196 regulator-max-microvol 196 regulator-max-microvolt = <1800000>; 197 bias-pull-down; 197 bias-pull-down; 198 }; 198 }; 199 199 200 pm8018_l4: l4 { 200 pm8018_l4: l4 { 201 regulator-min-microvol 201 regulator-min-microvolt = <3300000>; 202 regulator-max-microvol 202 regulator-max-microvolt = <3300000>; 203 bias-pull-down; 203 bias-pull-down; 204 }; 204 }; 205 205 206 pm8018_l5: l5 { 206 pm8018_l5: l5 { 207 regulator-min-microvol 207 regulator-min-microvolt = <2850000>; 208 regulator-max-microvol 208 regulator-max-microvolt = <2850000>; 209 bias-pull-down; 209 bias-pull-down; 210 }; 210 }; 211 211 212 pm8018_l6: l6 { 212 pm8018_l6: l6 { 213 regulator-min-microvol 213 regulator-min-microvolt = <1800000>; 214 regulator-max-microvol 214 regulator-max-microvolt = <2850000>; 215 bias-pull-down; 215 bias-pull-down; 216 }; 216 }; 217 217 218 pm8018_l7: l7 { 218 pm8018_l7: l7 { 219 regulator-min-microvol 219 regulator-min-microvolt = <1850000>; 220 regulator-max-microvol 220 regulator-max-microvolt = <1900000>; 221 bias-pull-down; 221 bias-pull-down; 222 }; 222 }; 223 223 224 pm8018_l8: l8 { 224 pm8018_l8: l8 { 225 regulator-min-microvol 225 regulator-min-microvolt = <1200000>; 226 regulator-max-microvol 226 regulator-max-microvolt = <1200000>; 227 bias-pull-down; 227 bias-pull-down; 228 }; 228 }; 229 229 230 pm8018_l9: l9 { 230 pm8018_l9: l9 { 231 regulator-min-microvol 231 regulator-min-microvolt = <750000>; 232 regulator-max-microvol 232 regulator-max-microvolt = <1150000>; 233 bias-pull-down; 233 bias-pull-down; 234 }; 234 }; 235 235 236 pm8018_l10: l10 { 236 pm8018_l10: l10 { 237 regulator-min-microvol 237 regulator-min-microvolt = <1050000>; 238 regulator-max-microvol 238 regulator-max-microvolt = <1050000>; 239 bias-pull-down; 239 bias-pull-down; 240 }; 240 }; 241 241 242 pm8018_l11: l11 { 242 pm8018_l11: l11 { 243 regulator-min-microvol 243 regulator-min-microvolt = <1050000>; 244 regulator-max-microvol 244 regulator-max-microvolt = <1050000>; 245 bias-pull-down; 245 bias-pull-down; 246 }; 246 }; 247 247 248 pm8018_l12: l12 { 248 pm8018_l12: l12 { 249 regulator-min-microvol 249 regulator-min-microvolt = <1050000>; 250 regulator-max-microvol 250 regulator-max-microvolt = <1050000>; 251 bias-pull-down; 251 bias-pull-down; 252 }; 252 }; 253 253 254 pm8018_l13: l13 { 254 pm8018_l13: l13 { 255 regulator-min-microvol 255 regulator-min-microvolt = <1850000>; 256 regulator-max-microvol 256 regulator-max-microvolt = <2950000>; 257 bias-pull-down; 257 bias-pull-down; 258 }; 258 }; 259 259 260 pm8018_l14: l14 { 260 pm8018_l14: l14 { 261 regulator-min-microvol 261 regulator-min-microvolt = <2850000>; 262 regulator-max-microvol 262 regulator-max-microvolt = <2850000>; 263 bias-pull-down; 263 bias-pull-down; 264 }; 264 }; 265 265 266 /* Low Voltage Switch */ 266 /* Low Voltage Switch */ 267 pm8018_lvs1: lvs1 { 267 pm8018_lvs1: lvs1 { 268 bias-pull-down; 268 bias-pull-down; 269 }; 269 }; 270 }; 270 }; 271 }; 271 }; 272 272 273 &sdcc1 { 273 &sdcc1 { 274 status = "okay"; 274 status = "okay"; 275 }; 275 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.