1 // SPDX-License-Identifier: GPL-2.0 1 // SPDX-License-Identifier: GPL-2.0 2 #include <dt-bindings/gpio/gpio.h> 2 #include <dt-bindings/gpio/gpio.h> 3 #include <dt-bindings/pinctrl/qcom,pmic-gpio.h 3 #include <dt-bindings/pinctrl/qcom,pmic-gpio.h> 4 4 5 #include "qcom-apq8064-v2.0.dtsi" 5 #include "qcom-apq8064-v2.0.dtsi" 6 #include "pm8821.dtsi" 6 #include "pm8821.dtsi" 7 #include "pm8921.dtsi" 7 #include "pm8921.dtsi" 8 8 9 / { 9 / { 10 model = "CompuLab CM-QS600"; 10 model = "CompuLab CM-QS600"; 11 compatible = "qcom,apq8064-cm-qs600", 11 compatible = "qcom,apq8064-cm-qs600", "qcom,apq8064"; 12 12 13 aliases { 13 aliases { 14 serial0 = &gsbi7_serial; 14 serial0 = &gsbi7_serial; 15 }; 15 }; 16 16 17 chosen { 17 chosen { 18 stdout-path = "serial0:115200n 18 stdout-path = "serial0:115200n8"; 19 }; 19 }; 20 20 21 sdcc4_pwrseq: pwrseq-sdcc4 { 21 sdcc4_pwrseq: pwrseq-sdcc4 { 22 pinctrl-names = "default"; 22 pinctrl-names = "default"; 23 pinctrl-0 = <&wlan_default_gpi 23 pinctrl-0 = <&wlan_default_gpios>; 24 compatible = "mmc-pwrseq-simpl 24 compatible = "mmc-pwrseq-simple"; 25 reset-gpios = <&pm8921_gpio 43 25 reset-gpios = <&pm8921_gpio 43 GPIO_ACTIVE_LOW>; 26 }; 26 }; 27 27 28 /* on board fixed 3.3v supply */ 28 /* on board fixed 3.3v supply */ 29 v3p3_fixed: regulator-v3p3 { 29 v3p3_fixed: regulator-v3p3 { 30 compatible = "regulator-fixed" 30 compatible = "regulator-fixed"; 31 regulator-name = "PCIE V3P3"; 31 regulator-name = "PCIE V3P3"; 32 regulator-min-microvolt = <330 32 regulator-min-microvolt = <3300000>; 33 regulator-max-microvolt = <330 33 regulator-max-microvolt = <3300000>; 34 regulator-always-on; 34 regulator-always-on; 35 }; 35 }; 36 }; 36 }; 37 37 38 &gsbi1 { 38 &gsbi1 { 39 qcom,mode = <GSBI_PROT_I2C>; 39 qcom,mode = <GSBI_PROT_I2C>; 40 status = "okay"; 40 status = "okay"; 41 }; 41 }; 42 42 43 &gsbi1_i2c { 43 &gsbi1_i2c { 44 clock-frequency = <200000>; 44 clock-frequency = <200000>; 45 status = "okay"; 45 status = "okay"; 46 46 47 eeprom@50 { 47 eeprom@50 { 48 compatible = "atmel,24c02"; 48 compatible = "atmel,24c02"; 49 reg = <0x50>; 49 reg = <0x50>; 50 pagesize = <32>; 50 pagesize = <32>; 51 }; 51 }; 52 }; 52 }; 53 53 54 &gsbi7 { 54 &gsbi7 { 55 qcom,mode = <GSBI_PROT_I2C_UART>; 55 qcom,mode = <GSBI_PROT_I2C_UART>; 56 status = "okay"; 56 status = "okay"; 57 }; 57 }; 58 58 59 &gsbi7_serial { 59 &gsbi7_serial { 60 pinctrl-names = "default"; 60 pinctrl-names = "default"; 61 pinctrl-0 = <&gsbi7_uart_2pins>; 61 pinctrl-0 = <&gsbi7_uart_2pins>; 62 status = "okay"; 62 status = "okay"; 63 }; 63 }; 64 64 65 &pcie { 65 &pcie { 66 vdda-supply = <&pm8921_s3>; 66 vdda-supply = <&pm8921_s3>; 67 vdda_phy-supply = <&pm8921_lvs6>; 67 vdda_phy-supply = <&pm8921_lvs6>; 68 vdda_refclk-supply = <&v3p3_fixed>; 68 vdda_refclk-supply = <&v3p3_fixed>; 69 pinctrl-0 = <&pcie_pins>; 69 pinctrl-0 = <&pcie_pins>; 70 pinctrl-names = "default"; 70 pinctrl-names = "default"; 71 perst-gpios = <&tlmm_pinmux 27 GPIO_AC 71 perst-gpios = <&tlmm_pinmux 27 GPIO_ACTIVE_LOW>; 72 status = "okay"; 72 status = "okay"; 73 }; 73 }; 74 74 75 &pm8821 { 75 &pm8821 { 76 interrupts-extended = <&tlmm_pinmux 76 76 interrupts-extended = <&tlmm_pinmux 76 IRQ_TYPE_LEVEL_LOW>; 77 }; 77 }; 78 78 79 &pm8921 { 79 &pm8921 { 80 interrupts-extended = <&tlmm_pinmux 74 80 interrupts-extended = <&tlmm_pinmux 74 IRQ_TYPE_LEVEL_LOW>; 81 }; 81 }; 82 82 83 &pm8921_gpio { 83 &pm8921_gpio { 84 wlan_default_gpios: wlan-gpios-state { 84 wlan_default_gpios: wlan-gpios-state { 85 pinconf { 85 pinconf { 86 pins = "gpio43"; 86 pins = "gpio43"; 87 function = "normal"; 87 function = "normal"; 88 bias-disable; 88 bias-disable; 89 power-source = <PM8921 89 power-source = <PM8921_GPIO_S4>; 90 }; 90 }; 91 }; 91 }; 92 }; 92 }; 93 93 94 &rpm { 94 &rpm { 95 regulators { 95 regulators { 96 compatible = "qcom,rpm-pm8921- 96 compatible = "qcom,rpm-pm8921-regulators"; 97 97 98 vin_lvs1_3_6-supply = <&pm8921 98 vin_lvs1_3_6-supply = <&pm8921_s4>; 99 vin_lvs2-supply = <&pm8921_s1> 99 vin_lvs2-supply = <&pm8921_s1>; 100 vin_lvs4_5_7-supply = <&pm8921 100 vin_lvs4_5_7-supply = <&pm8921_s4>; 101 101 102 vdd_l1_l2_l12_l18-supply = <&p 102 vdd_l1_l2_l12_l18-supply = <&pm8921_s4>; 103 vdd_l24-supply = <&pm8921_s1>; 103 vdd_l24-supply = <&pm8921_s1>; 104 vdd_l25-supply = <&pm8921_s1>; 104 vdd_l25-supply = <&pm8921_s1>; 105 vdd_l26-supply = <&pm8921_s7>; 105 vdd_l26-supply = <&pm8921_s7>; 106 vdd_l27-supply = <&pm8921_s7>; 106 vdd_l27-supply = <&pm8921_s7>; 107 vdd_l28-supply = <&pm8921_s7>; 107 vdd_l28-supply = <&pm8921_s7>; 108 108 109 /* Buck SMPS */ 109 /* Buck SMPS */ 110 pm8921_s1: s1 { 110 pm8921_s1: s1 { 111 regulator-always-on; 111 regulator-always-on; 112 regulator-min-microvol 112 regulator-min-microvolt = <1225000>; 113 regulator-max-microvol 113 regulator-max-microvolt = <1225000>; 114 qcom,switch-mode-frequ 114 qcom,switch-mode-frequency = <3200000>; 115 bias-pull-down; 115 bias-pull-down; 116 }; 116 }; 117 117 118 pm8921_s3: s3 { 118 pm8921_s3: s3 { 119 regulator-min-microvol 119 regulator-min-microvolt = <1000000>; 120 regulator-max-microvol 120 regulator-max-microvolt = <1400000>; 121 qcom,switch-mode-frequ 121 qcom,switch-mode-frequency = <4800000>; 122 }; 122 }; 123 123 124 pm8921_s4: s4 { 124 pm8921_s4: s4 { 125 regulator-min-microvol 125 regulator-min-microvolt = <1800000>; 126 regulator-max-microvol 126 regulator-max-microvolt = <1800000>; 127 qcom,switch-mode-frequ 127 qcom,switch-mode-frequency = <3200000>; 128 }; 128 }; 129 129 130 pm8921_s7: s7 { 130 pm8921_s7: s7 { 131 regulator-min-microvol 131 regulator-min-microvolt = <1300000>; 132 regulator-max-microvol 132 regulator-max-microvolt = <1300000>; 133 qcom,switch-mode-frequ 133 qcom,switch-mode-frequency = <3200000>; 134 }; 134 }; 135 135 136 pm8921_l3: l3 { 136 pm8921_l3: l3 { 137 regulator-min-microvol 137 regulator-min-microvolt = <3050000>; 138 regulator-max-microvol 138 regulator-max-microvolt = <3300000>; 139 bias-pull-down; 139 bias-pull-down; 140 }; 140 }; 141 141 142 pm8921_l4: l4 { 142 pm8921_l4: l4 { 143 regulator-min-microvol 143 regulator-min-microvolt = <1000000>; 144 regulator-max-microvol 144 regulator-max-microvolt = <1800000>; 145 bias-pull-down; 145 bias-pull-down; 146 }; 146 }; 147 147 148 pm8921_l5: l5 { 148 pm8921_l5: l5 { 149 regulator-min-microvol 149 regulator-min-microvolt = <2750000>; 150 regulator-max-microvol 150 regulator-max-microvolt = <3000000>; 151 bias-pull-down; 151 bias-pull-down; 152 }; 152 }; 153 153 154 pm8921_l23: l23 { 154 pm8921_l23: l23 { 155 regulator-min-microvol 155 regulator-min-microvolt = <1700000>; 156 regulator-max-microvol 156 regulator-max-microvolt = <1900000>; 157 bias-pull-down; 157 bias-pull-down; 158 }; 158 }; 159 159 160 pm8921_lvs6: lvs6 { 160 pm8921_lvs6: lvs6 { 161 bias-pull-down; 161 bias-pull-down; 162 }; 162 }; 163 }; 163 }; 164 }; 164 }; 165 165 166 /* eMMC */ 166 /* eMMC */ 167 &sdcc1 { 167 &sdcc1 { 168 vmmc-supply = <&pm8921_l5>; 168 vmmc-supply = <&pm8921_l5>; 169 vqmmc-supply = <&pm8921_s4>; 169 vqmmc-supply = <&pm8921_s4>; 170 status = "okay"; 170 status = "okay"; 171 }; 171 }; 172 172 173 /* External micro SD card */ 173 /* External micro SD card */ 174 &sdcc3 { 174 &sdcc3 { 175 vmmc-supply = <&v3p3_fixed>; 175 vmmc-supply = <&v3p3_fixed>; 176 pinctrl-names = "default"; 176 pinctrl-names = "default"; 177 pinctrl-0 = <&card_detect>; 177 pinctrl-0 = <&card_detect>; 178 cd-gpios = <&tlmm_pinmux 26 GPIO_ACTIV 178 cd-gpios = <&tlmm_pinmux 26 GPIO_ACTIVE_LOW>; 179 status = "okay"; 179 status = "okay"; 180 }; 180 }; 181 181 182 /* WLAN */ 182 /* WLAN */ 183 &sdcc4 { 183 &sdcc4 { 184 status = "okay"; 184 status = "okay"; 185 vmmc-supply = <&v3p3_fixed>; 185 vmmc-supply = <&v3p3_fixed>; 186 vqmmc-supply = <&v3p3_fixed>; 186 vqmmc-supply = <&v3p3_fixed>; 187 mmc-pwrseq = <&sdcc4_pwrseq>; 187 mmc-pwrseq = <&sdcc4_pwrseq>; 188 }; 188 }; 189 189 190 &tlmm_pinmux { 190 &tlmm_pinmux { 191 card_detect: card-detect-state { 191 card_detect: card-detect-state { 192 pins = "gpio26"; 192 pins = "gpio26"; 193 function = "gpio"; 193 function = "gpio"; 194 bias-disable; 194 bias-disable; 195 }; 195 }; 196 196 197 pcie_pins: pcie-state { 197 pcie_pins: pcie-state { 198 pins = "gpio27"; 198 pins = "gpio27"; 199 function = "gpio"; 199 function = "gpio"; 200 drive-strength = <12>; 200 drive-strength = <12>; 201 bias-disable; 201 bias-disable; 202 }; 202 }; 203 }; 203 }; 204 204 205 &usb_hs1_phy { 205 &usb_hs1_phy { 206 v3p3-supply = <&pm8921_l3>; 206 v3p3-supply = <&pm8921_l3>; 207 v1p8-supply = <&pm8921_l4>; 207 v1p8-supply = <&pm8921_l4>; 208 }; 208 }; 209 209 210 &usb_hs3_phy { 210 &usb_hs3_phy { 211 v3p3-supply = <&pm8921_l3>; 211 v3p3-supply = <&pm8921_l3>; 212 v1p8-supply = <&pm8921_l23>; 212 v1p8-supply = <&pm8921_l23>; 213 }; 213 }; 214 214 215 &usb_hs4_phy { 215 &usb_hs4_phy { 216 v3p3-supply = <&pm8921_l3>; 216 v3p3-supply = <&pm8921_l3>; 217 v1p8-supply = <&pm8921_l23>; 217 v1p8-supply = <&pm8921_l23>; 218 }; 218 }; 219 219 220 /* OTG */ 220 /* OTG */ 221 &usb1 { 221 &usb1 { 222 dr_mode = "otg"; 222 dr_mode = "otg"; 223 status = "okay"; 223 status = "okay"; 224 }; 224 }; 225 225 226 &usb3 { 226 &usb3 { 227 dr_mode = "host"; 227 dr_mode = "host"; 228 status = "okay"; 228 status = "okay"; 229 }; 229 }; 230 230 231 &usb4 { 231 &usb4 { 232 dr_mode = "host"; 232 dr_mode = "host"; 233 status = "okay"; 233 status = "okay"; 234 }; 234 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.