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 | }; |
| 40 | }; |
| 41 | |
Srinivas Kandagatla | 1a621d3 | 2015-04-10 21:44:05 +0100 | [diff] [blame] | 42 | rpm@108000 { |
| 43 | regulators { |
| 44 | vin_lvs1_3_6-supply = <&pm8921_s4>; |
| 45 | vin_lvs2-supply = <&pm8921_s1>; |
| 46 | vin_lvs4_5_7-supply = <&pm8921_s4>; |
| 47 | |
| 48 | vdd_l1_l2_l12_l18-supply = <&pm8921_s4>; |
| 49 | vdd_l24-supply = <&pm8921_s1>; |
| 50 | vdd_l25-supply = <&pm8921_s1>; |
| 51 | vdd_l26-supply = <&pm8921_s7>; |
| 52 | vdd_l27-supply = <&pm8921_s7>; |
| 53 | vdd_l28-supply = <&pm8921_s7>; |
| 54 | |
| 55 | |
| 56 | /* Buck SMPS */ |
| 57 | pm8921_s1: s1 { |
| 58 | regulator-always-on; |
| 59 | regulator-min-microvolt = <1225000>; |
| 60 | regulator-max-microvolt = <1225000>; |
| 61 | qcom,switch-mode-frequency = <3200000>; |
| 62 | bias-pull-down; |
| 63 | }; |
| 64 | |
| 65 | pm8921_s3: s3 { |
| 66 | regulator-min-microvolt = <1000000>; |
| 67 | regulator-max-microvolt = <1400000>; |
| 68 | qcom,switch-mode-frequency = <4800000>; |
| 69 | }; |
| 70 | |
| 71 | pm8921_s4: s4 { |
| 72 | regulator-min-microvolt = <1800000>; |
| 73 | regulator-max-microvolt = <1800000>; |
| 74 | qcom,switch-mode-frequency = <3200000>; |
| 75 | }; |
| 76 | |
| 77 | pm8921_s7: s7 { |
| 78 | regulator-min-microvolt = <1300000>; |
| 79 | regulator-max-microvolt = <1300000>; |
| 80 | qcom,switch-mode-frequency = <3200000>; |
| 81 | }; |
| 82 | |
| 83 | pm8921_l3: l3 { |
| 84 | regulator-min-microvolt = <3050000>; |
| 85 | regulator-max-microvolt = <3300000>; |
| 86 | bias-pull-down; |
| 87 | }; |
| 88 | |
| 89 | pm8921_l4: l4 { |
| 90 | regulator-min-microvolt = <1000000>; |
| 91 | regulator-max-microvolt = <1800000>; |
| 92 | bias-pull-down; |
| 93 | }; |
| 94 | |
Srinivas Kandagatla | baff39e | 2015-07-28 09:13:05 +0100 | [diff] [blame] | 95 | pm8921_l5: l5 { |
| 96 | regulator-min-microvolt = <2750000>; |
| 97 | regulator-max-microvolt = <3000000>; |
| 98 | bias-pull-down; |
| 99 | }; |
| 100 | |
Srinivas Kandagatla | 1a621d3 | 2015-04-10 21:44:05 +0100 | [diff] [blame] | 101 | pm8921_l23: l23 { |
| 102 | regulator-min-microvolt = <1700000>; |
| 103 | regulator-max-microvolt = <1900000>; |
| 104 | bias-pull-down; |
| 105 | }; |
| 106 | }; |
| 107 | }; |
| 108 | |
Mike Rapoport | 7dac24b | 2014-10-01 19:09:11 +0300 | [diff] [blame] | 109 | gsbi@12440000 { |
| 110 | status = "okay"; |
| 111 | qcom,mode = <GSBI_PROT_I2C>; |
| 112 | |
| 113 | i2c@12460000 { |
| 114 | status = "okay"; |
| 115 | clock-frequency = <200000>; |
Mike Rapoport | 7dac24b | 2014-10-01 19:09:11 +0300 | [diff] [blame] | 116 | |
Srinivas Kandagatla | 2c9c2e5 | 2015-09-18 13:30:59 +0100 | [diff] [blame] | 117 | eeprom@50 { |
Mike Rapoport | 7dac24b | 2014-10-01 19:09:11 +0300 | [diff] [blame] | 118 | compatible = "24c02"; |
| 119 | reg = <0x50>; |
| 120 | pagesize = <32>; |
| 121 | }; |
| 122 | }; |
| 123 | }; |
| 124 | |
| 125 | gsbi@16600000 { |
| 126 | status = "ok"; |
| 127 | qcom,mode = <GSBI_PROT_I2C_UART>; |
| 128 | serial@16640000 { |
| 129 | status = "ok"; |
Srinivas Kandagatla | be87cd0 | 2015-09-18 13:31:53 +0100 | [diff] [blame] | 130 | pinctrl-names = "default"; |
| 131 | pinctrl-0 = <&gsbi7_uart_2pins>; |
Mike Rapoport | 7dac24b | 2014-10-01 19:09:11 +0300 | [diff] [blame] | 132 | }; |
| 133 | }; |
| 134 | |
Nicolas Dechesne | 08372ce | 2015-04-10 21:44:23 +0100 | [diff] [blame] | 135 | /* OTG */ |
| 136 | usb1_phy: phy@12500000 { |
| 137 | status = "okay"; |
| 138 | vddcx-supply = <&pm8921_s3>; |
| 139 | v3p3-supply = <&pm8921_l3>; |
| 140 | v1p8-supply = <&pm8921_l4>; |
| 141 | }; |
| 142 | |
Nicolas Dechesne | 84db78b | 2015-04-10 21:44:15 +0100 | [diff] [blame] | 143 | usb3_phy: phy@12520000 { |
| 144 | status = "okay"; |
| 145 | vddcx-supply = <&pm8921_s3>; |
| 146 | v3p3-supply = <&pm8921_l3>; |
| 147 | v1p8-supply = <&pm8921_l23>; |
| 148 | }; |
| 149 | |
| 150 | usb4_phy: phy@12530000 { |
| 151 | status = "okay"; |
| 152 | vddcx-supply = <&pm8921_s3>; |
| 153 | v3p3-supply = <&pm8921_l3>; |
| 154 | v1p8-supply = <&pm8921_l23>; |
| 155 | }; |
| 156 | |
Nicolas Dechesne | 08372ce | 2015-04-10 21:44:23 +0100 | [diff] [blame] | 157 | gadget1: gadget@12500000 { |
| 158 | status = "ok"; |
| 159 | }; |
| 160 | |
| 161 | /* OTG */ |
| 162 | usb1: usb@12500000 { |
| 163 | status = "ok"; |
| 164 | }; |
| 165 | |
Nicolas Dechesne | 84db78b | 2015-04-10 21:44:15 +0100 | [diff] [blame] | 166 | usb3: usb@12520000 { |
| 167 | status = "okay"; |
| 168 | }; |
| 169 | |
| 170 | usb4: usb@12530000 { |
| 171 | status = "okay"; |
| 172 | }; |
| 173 | |
Srinivas Kandagatla | baff39e | 2015-07-28 09:13:05 +0100 | [diff] [blame] | 174 | /* on board fixed 3.3v supply */ |
| 175 | v3p3_fixed: v3p3 { |
| 176 | compatible = "regulator-fixed"; |
| 177 | regulator-name = "PCIE V3P3"; |
| 178 | regulator-min-microvolt = <3300000>; |
| 179 | regulator-max-microvolt = <3300000>; |
| 180 | regulator-always-on; |
| 181 | }; |
| 182 | |
Srinivas Kandagatla | f0b6d95 | 2015-09-18 13:32:05 +0100 | [diff] [blame] | 183 | qcom,ssbi@500000 { |
| 184 | pmic@0 { |
| 185 | gpio@150 { |
| 186 | wlan_default_gpios: wlan-gpios { |
| 187 | pios { |
| 188 | pins = "gpio43"; |
| 189 | function = "normal"; |
| 190 | bias-disable; |
| 191 | power-source = <PM8921_GPIO_S4>; |
| 192 | }; |
| 193 | }; |
| 194 | }; |
| 195 | }; |
| 196 | }; |
| 197 | |
Mike Rapoport | 7dac24b | 2014-10-01 19:09:11 +0300 | [diff] [blame] | 198 | amba { |
| 199 | /* eMMC */ |
| 200 | sdcc1: sdcc@12400000 { |
| 201 | status = "okay"; |
Srinivas Kandagatla | baff39e | 2015-07-28 09:13:05 +0100 | [diff] [blame] | 202 | vmmc-supply = <&pm8921_l5>; |
| 203 | vqmmc-supply = <&pm8921_s4>; |
Mike Rapoport | 7dac24b | 2014-10-01 19:09:11 +0300 | [diff] [blame] | 204 | }; |
| 205 | |
| 206 | /* External micro SD card */ |
| 207 | sdcc3: sdcc@12180000 { |
| 208 | status = "okay"; |
Srinivas Kandagatla | baff39e | 2015-07-28 09:13:05 +0100 | [diff] [blame] | 209 | vmmc-supply = <&v3p3_fixed>; |
Srinivas Kandagatla | 8eb8448 | 2015-09-18 13:32:18 +0100 | [diff] [blame] | 210 | pinctrl-names = "default"; |
| 211 | pinctrl-0 = <&card_detect>; |
| 212 | cd-gpios = <&tlmm_pinmux 26 GPIO_ACTIVE_LOW>; |
Mike Rapoport | 7dac24b | 2014-10-01 19:09:11 +0300 | [diff] [blame] | 213 | }; |
| 214 | /* WLAN */ |
| 215 | sdcc4: sdcc@121c0000 { |
| 216 | status = "okay"; |
Srinivas Kandagatla | baff39e | 2015-07-28 09:13:05 +0100 | [diff] [blame] | 217 | vmmc-supply = <&v3p3_fixed>; |
| 218 | vqmmc-supply = <&v3p3_fixed>; |
Srinivas Kandagatla | f0b6d95 | 2015-09-18 13:32:05 +0100 | [diff] [blame] | 219 | mmc-pwrseq = <&sdcc4_pwrseq>; |
Mike Rapoport | 7dac24b | 2014-10-01 19:09:11 +0300 | [diff] [blame] | 220 | }; |
| 221 | }; |
| 222 | }; |
| 223 | }; |