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