Mike Rapoport | 7dac24b | 2014-10-01 19:09:11 +0300 | [diff] [blame] | 1 | #include "qcom-apq8064-v2.0.dtsi" |
Srinivas Kandagatla | f0b6d95 | 2015-09-18 13:32:05 +0100 | [diff] [blame] | 2 | #include <dt-bindings/gpio/gpio.h> |
| 3 | #include <dt-bindings/pinctrl/qcom,pmic-gpio.h> |
Mike Rapoport | 7dac24b | 2014-10-01 19:09:11 +0300 | [diff] [blame] | 4 | |
| 5 | / { |
| 6 | model = "CompuLab CM-QS600"; |
| 7 | compatible = "qcom,apq8064-cm-qs600", "qcom,apq8064"; |
| 8 | |
Stephen Boyd | 4e19db1 | 2015-06-16 14:31:45 -0700 | [diff] [blame] | 9 | aliases { |
| 10 | serial0 = &gsbi7_serial; |
| 11 | }; |
| 12 | |
| 13 | chosen { |
| 14 | stdout-path = "serial0:115200n8"; |
| 15 | }; |
| 16 | |
Srinivas Kandagatla | f0b6d95 | 2015-09-18 13:32:05 +0100 | [diff] [blame] | 17 | pwrseq { |
| 18 | #address-cells = <1>; |
| 19 | #size-cells = <1>; |
| 20 | ranges; |
| 21 | compatible = "simple-bus"; |
| 22 | |
| 23 | sdcc4_pwrseq: sdcc4_pwrseq { |
| 24 | pinctrl-names = "default"; |
| 25 | pinctrl-0 = <&wlan_default_gpios>; |
| 26 | compatible = "mmc-pwrseq-simple"; |
| 27 | reset-gpios = <&pm8921_gpio 43 GPIO_ACTIVE_LOW>; |
| 28 | }; |
| 29 | }; |
| 30 | |
Mike Rapoport | 7dac24b | 2014-10-01 19:09:11 +0300 | [diff] [blame] | 31 | soc { |
Srinivas Kandagatla | 8eb8448 | 2015-09-18 13:32:18 +0100 | [diff] [blame] | 32 | pinctrl@800000 { |
| 33 | card_detect: card_detect { |
| 34 | mux { |
| 35 | pins = "gpio26"; |
| 36 | function = "gpio"; |
| 37 | bias-disable; |
| 38 | }; |
| 39 | }; |
Srinivas Kandagatla | 9d0801a | 2016-02-23 14:14:14 +0000 | [diff] [blame] | 40 | |
| 41 | pcie_pins: pcie_pinmux { |
| 42 | mux { |
| 43 | pins = "gpio27"; |
| 44 | function = "gpio"; |
| 45 | }; |
| 46 | conf { |
| 47 | pins = "gpio27"; |
| 48 | drive-strength = <12>; |
| 49 | bias-disable; |
| 50 | }; |
| 51 | }; |
Srinivas Kandagatla | 8eb8448 | 2015-09-18 13:32:18 +0100 | [diff] [blame] | 52 | }; |
| 53 | |
Srinivas Kandagatla | 1a621d3 | 2015-04-10 21:44:05 +0100 | [diff] [blame] | 54 | rpm@108000 { |
| 55 | regulators { |
| 56 | vin_lvs1_3_6-supply = <&pm8921_s4>; |
| 57 | vin_lvs2-supply = <&pm8921_s1>; |
| 58 | vin_lvs4_5_7-supply = <&pm8921_s4>; |
| 59 | |
| 60 | vdd_l1_l2_l12_l18-supply = <&pm8921_s4>; |
| 61 | vdd_l24-supply = <&pm8921_s1>; |
| 62 | vdd_l25-supply = <&pm8921_s1>; |
| 63 | vdd_l26-supply = <&pm8921_s7>; |
| 64 | vdd_l27-supply = <&pm8921_s7>; |
| 65 | vdd_l28-supply = <&pm8921_s7>; |
| 66 | |
| 67 | |
| 68 | /* Buck SMPS */ |
Bjorn Andersson | 2bce6e2 | 2015-10-22 11:13:49 -0700 | [diff] [blame] | 69 | s1 { |
Srinivas Kandagatla | 1a621d3 | 2015-04-10 21:44:05 +0100 | [diff] [blame] | 70 | regulator-always-on; |
| 71 | regulator-min-microvolt = <1225000>; |
| 72 | regulator-max-microvolt = <1225000>; |
| 73 | qcom,switch-mode-frequency = <3200000>; |
| 74 | bias-pull-down; |
| 75 | }; |
| 76 | |
Bjorn Andersson | 2bce6e2 | 2015-10-22 11:13:49 -0700 | [diff] [blame] | 77 | s3 { |
Srinivas Kandagatla | 1a621d3 | 2015-04-10 21:44:05 +0100 | [diff] [blame] | 78 | regulator-min-microvolt = <1000000>; |
| 79 | regulator-max-microvolt = <1400000>; |
| 80 | qcom,switch-mode-frequency = <4800000>; |
| 81 | }; |
| 82 | |
Bjorn Andersson | 2bce6e2 | 2015-10-22 11:13:49 -0700 | [diff] [blame] | 83 | s4 { |
Srinivas Kandagatla | 1a621d3 | 2015-04-10 21:44:05 +0100 | [diff] [blame] | 84 | regulator-min-microvolt = <1800000>; |
| 85 | regulator-max-microvolt = <1800000>; |
| 86 | qcom,switch-mode-frequency = <3200000>; |
| 87 | }; |
| 88 | |
Bjorn Andersson | 2bce6e2 | 2015-10-22 11:13:49 -0700 | [diff] [blame] | 89 | s7 { |
Srinivas Kandagatla | 1a621d3 | 2015-04-10 21:44:05 +0100 | [diff] [blame] | 90 | regulator-min-microvolt = <1300000>; |
| 91 | regulator-max-microvolt = <1300000>; |
| 92 | qcom,switch-mode-frequency = <3200000>; |
| 93 | }; |
| 94 | |
Bjorn Andersson | 2bce6e2 | 2015-10-22 11:13:49 -0700 | [diff] [blame] | 95 | l3 { |
Srinivas Kandagatla | 1a621d3 | 2015-04-10 21:44:05 +0100 | [diff] [blame] | 96 | regulator-min-microvolt = <3050000>; |
| 97 | regulator-max-microvolt = <3300000>; |
| 98 | bias-pull-down; |
| 99 | }; |
| 100 | |
Bjorn Andersson | 2bce6e2 | 2015-10-22 11:13:49 -0700 | [diff] [blame] | 101 | l4 { |
Srinivas Kandagatla | 1a621d3 | 2015-04-10 21:44:05 +0100 | [diff] [blame] | 102 | regulator-min-microvolt = <1000000>; |
| 103 | regulator-max-microvolt = <1800000>; |
| 104 | bias-pull-down; |
| 105 | }; |
| 106 | |
Bjorn Andersson | 2bce6e2 | 2015-10-22 11:13:49 -0700 | [diff] [blame] | 107 | l5 { |
Srinivas Kandagatla | baff39e | 2015-07-28 09:13:05 +0100 | [diff] [blame] | 108 | regulator-min-microvolt = <2750000>; |
| 109 | regulator-max-microvolt = <3000000>; |
| 110 | bias-pull-down; |
| 111 | }; |
| 112 | |
Bjorn Andersson | 2bce6e2 | 2015-10-22 11:13:49 -0700 | [diff] [blame] | 113 | l23 { |
Srinivas Kandagatla | 1a621d3 | 2015-04-10 21:44:05 +0100 | [diff] [blame] | 114 | regulator-min-microvolt = <1700000>; |
| 115 | regulator-max-microvolt = <1900000>; |
| 116 | bias-pull-down; |
| 117 | }; |
Srinivas Kandagatla | 9d0801a | 2016-02-23 14:14:14 +0000 | [diff] [blame] | 118 | |
| 119 | pm8921_lvs6: lvs6 { |
| 120 | bias-pull-down; |
| 121 | }; |
| 122 | |
Srinivas Kandagatla | 1a621d3 | 2015-04-10 21:44:05 +0100 | [diff] [blame] | 123 | }; |
| 124 | }; |
| 125 | |
Mike Rapoport | 7dac24b | 2014-10-01 19:09:11 +0300 | [diff] [blame] | 126 | gsbi@12440000 { |
| 127 | status = "okay"; |
| 128 | qcom,mode = <GSBI_PROT_I2C>; |
| 129 | |
| 130 | i2c@12460000 { |
| 131 | status = "okay"; |
| 132 | clock-frequency = <200000>; |
Mike Rapoport | 7dac24b | 2014-10-01 19:09:11 +0300 | [diff] [blame] | 133 | |
Srinivas Kandagatla | 2c9c2e5 | 2015-09-18 13:30:59 +0100 | [diff] [blame] | 134 | eeprom@50 { |
Mike Rapoport | 7dac24b | 2014-10-01 19:09:11 +0300 | [diff] [blame] | 135 | compatible = "24c02"; |
| 136 | reg = <0x50>; |
| 137 | pagesize = <32>; |
| 138 | }; |
| 139 | }; |
| 140 | }; |
| 141 | |
| 142 | gsbi@16600000 { |
| 143 | status = "ok"; |
| 144 | qcom,mode = <GSBI_PROT_I2C_UART>; |
| 145 | serial@16640000 { |
| 146 | status = "ok"; |
Srinivas Kandagatla | be87cd0 | 2015-09-18 13:31:53 +0100 | [diff] [blame] | 147 | pinctrl-names = "default"; |
| 148 | pinctrl-0 = <&gsbi7_uart_2pins>; |
Mike Rapoport | 7dac24b | 2014-10-01 19:09:11 +0300 | [diff] [blame] | 149 | }; |
| 150 | }; |
| 151 | |
Nicolas Dechesne | 08372ce | 2015-04-10 21:44:23 +0100 | [diff] [blame] | 152 | /* OTG */ |
Stephen Boyd | b993292 | 2017-01-26 16:47:27 -0800 | [diff] [blame] | 153 | usb@12500000 { |
Nicolas Dechesne | 08372ce | 2015-04-10 21:44:23 +0100 | [diff] [blame] | 154 | status = "ok"; |
Stephen Boyd | b993292 | 2017-01-26 16:47:27 -0800 | [diff] [blame] | 155 | dr_mode = "otg"; |
| 156 | ulpi { |
| 157 | phy { |
| 158 | v3p3-supply = <&pm8921_l3>; |
| 159 | v1p8-supply = <&pm8921_l4>; |
| 160 | }; |
| 161 | }; |
Nicolas Dechesne | 08372ce | 2015-04-10 21:44:23 +0100 | [diff] [blame] | 162 | }; |
| 163 | |
Stephen Boyd | b993292 | 2017-01-26 16:47:27 -0800 | [diff] [blame] | 164 | usb@12520000 { |
Nicolas Dechesne | 84db78b | 2015-04-10 21:44:15 +0100 | [diff] [blame] | 165 | status = "okay"; |
Stephen Boyd | b993292 | 2017-01-26 16:47:27 -0800 | [diff] [blame] | 166 | dr_mode = "host"; |
| 167 | ulpi { |
| 168 | phy { |
| 169 | v3p3-supply = <&pm8921_l3>; |
| 170 | v1p8-supply = <&pm8921_l23>; |
| 171 | }; |
| 172 | }; |
Nicolas Dechesne | 84db78b | 2015-04-10 21:44:15 +0100 | [diff] [blame] | 173 | }; |
| 174 | |
Stephen Boyd | b993292 | 2017-01-26 16:47:27 -0800 | [diff] [blame] | 175 | usb@12530000 { |
Nicolas Dechesne | 84db78b | 2015-04-10 21:44:15 +0100 | [diff] [blame] | 176 | status = "okay"; |
Stephen Boyd | b993292 | 2017-01-26 16:47:27 -0800 | [diff] [blame] | 177 | dr_mode = "host"; |
| 178 | ulpi { |
| 179 | phy { |
| 180 | v3p3-supply = <&pm8921_l3>; |
| 181 | v1p8-supply = <&pm8921_l23>; |
| 182 | }; |
| 183 | }; |
Nicolas Dechesne | 84db78b | 2015-04-10 21:44:15 +0100 | [diff] [blame] | 184 | }; |
| 185 | |
Srinivas Kandagatla | baff39e | 2015-07-28 09:13:05 +0100 | [diff] [blame] | 186 | /* on board fixed 3.3v supply */ |
| 187 | v3p3_fixed: v3p3 { |
| 188 | compatible = "regulator-fixed"; |
| 189 | regulator-name = "PCIE V3P3"; |
| 190 | regulator-min-microvolt = <3300000>; |
| 191 | regulator-max-microvolt = <3300000>; |
| 192 | regulator-always-on; |
| 193 | }; |
| 194 | |
Srinivas Kandagatla | f0b6d95 | 2015-09-18 13:32:05 +0100 | [diff] [blame] | 195 | qcom,ssbi@500000 { |
| 196 | pmic@0 { |
| 197 | gpio@150 { |
| 198 | wlan_default_gpios: wlan-gpios { |
| 199 | pios { |
| 200 | pins = "gpio43"; |
| 201 | function = "normal"; |
| 202 | bias-disable; |
| 203 | power-source = <PM8921_GPIO_S4>; |
| 204 | }; |
| 205 | }; |
| 206 | }; |
| 207 | }; |
| 208 | }; |
| 209 | |
Srinivas Kandagatla | 9d0801a | 2016-02-23 14:14:14 +0000 | [diff] [blame] | 210 | pci@1b500000 { |
| 211 | status = "ok"; |
| 212 | vdda-supply = <&pm8921_s3>; |
| 213 | vdda_phy-supply = <&pm8921_lvs6>; |
| 214 | vdda_refclk-supply = <&v3p3_fixed>; |
| 215 | pinctrl-0 = <&pcie_pins>; |
| 216 | pinctrl-names = "default"; |
| 217 | perst-gpio = <&tlmm_pinmux 27 GPIO_ACTIVE_LOW>; |
| 218 | }; |
| 219 | |
Mike Rapoport | 7dac24b | 2014-10-01 19:09:11 +0300 | [diff] [blame] | 220 | amba { |
| 221 | /* eMMC */ |
| 222 | sdcc1: sdcc@12400000 { |
| 223 | status = "okay"; |
Srinivas Kandagatla | baff39e | 2015-07-28 09:13:05 +0100 | [diff] [blame] | 224 | vmmc-supply = <&pm8921_l5>; |
| 225 | vqmmc-supply = <&pm8921_s4>; |
Mike Rapoport | 7dac24b | 2014-10-01 19:09:11 +0300 | [diff] [blame] | 226 | }; |
| 227 | |
| 228 | /* External micro SD card */ |
| 229 | sdcc3: sdcc@12180000 { |
| 230 | status = "okay"; |
Srinivas Kandagatla | baff39e | 2015-07-28 09:13:05 +0100 | [diff] [blame] | 231 | vmmc-supply = <&v3p3_fixed>; |
Srinivas Kandagatla | 8eb8448 | 2015-09-18 13:32:18 +0100 | [diff] [blame] | 232 | pinctrl-names = "default"; |
| 233 | pinctrl-0 = <&card_detect>; |
| 234 | cd-gpios = <&tlmm_pinmux 26 GPIO_ACTIVE_LOW>; |
Mike Rapoport | 7dac24b | 2014-10-01 19:09:11 +0300 | [diff] [blame] | 235 | }; |
| 236 | /* WLAN */ |
| 237 | sdcc4: sdcc@121c0000 { |
| 238 | status = "okay"; |
Srinivas Kandagatla | baff39e | 2015-07-28 09:13:05 +0100 | [diff] [blame] | 239 | vmmc-supply = <&v3p3_fixed>; |
| 240 | vqmmc-supply = <&v3p3_fixed>; |
Srinivas Kandagatla | f0b6d95 | 2015-09-18 13:32:05 +0100 | [diff] [blame] | 241 | mmc-pwrseq = <&sdcc4_pwrseq>; |
Mike Rapoport | 7dac24b | 2014-10-01 19:09:11 +0300 | [diff] [blame] | 242 | }; |
| 243 | }; |
| 244 | }; |
| 245 | }; |