0001 // SPDX-License-Identifier: BSD-3-Clause
0002 /*
0003 * Copyright (c) 2022, Luca Weiss <luca@z3ntu.xyz>
0004 */
0005
0006 /dts-v1/;
0007
0008 #include "qcom-msm8226.dtsi"
0009 #include "qcom-pm8226.dtsi"
0010
0011 / {
0012 model = "ASUS ZenWatch 2";
0013 compatible = "asus,sparrow", "qcom,apq8026";
0014 chassis-type = "watch";
0015 qcom,msm-id = <199 0x20000>;
0016 qcom,board-id = <8 3005>;
0017
0018 reserved-memory {
0019 sbl_region: sbl@2f00000 {
0020 reg = <0x02f00000 0x100000>;
0021 no-map;
0022 };
0023 external_image_region: external-image@3100000 {
0024 reg = <0x3100000 0x200000>;
0025 no-map;
0026 };
0027 peripheral_region: peripheral@3300000 {
0028 reg = <0x3300000 0x600000>;
0029 no-map;
0030 };
0031 adsp_region: adsp@3900000 {
0032 reg = <0x3900000 0x1400000>;
0033 no-map;
0034 };
0035 modem_region: modem@4d00000 {
0036 reg = <0x4d00000 0x1b00000>;
0037 no-map;
0038 };
0039 modem_efs_region: modem-efs@7f00000 {
0040 reg = <0x7f00000 0x100000>;
0041 no-map;
0042 };
0043 };
0044
0045 vreg_wlan: wlan-regulator {
0046 compatible = "regulator-fixed";
0047
0048 regulator-name = "wl-reg";
0049 regulator-min-microvolt = <2950000>;
0050 regulator-max-microvolt = <2950000>;
0051
0052 gpio = <&tlmm 35 GPIO_ACTIVE_HIGH>;
0053 enable-active-high;
0054
0055 pinctrl-names = "default";
0056 pinctrl-0 = <&wlan_regulator_default_state>;
0057 };
0058 };
0059
0060 &blsp1_uart1 {
0061 status = "okay";
0062
0063 pinctrl-names = "default";
0064 pinctrl-0 = <&blsp1_uart1_default_state>;
0065
0066 bluetooth {
0067 compatible = "brcm,bcm43430a1-bt";
0068 max-speed = <3000000>;
0069
0070 pinctrl-names = "default";
0071 pinctrl-0 = <&bluetooth_default_state>;
0072
0073 host-wakeup-gpios = <&tlmm 48 GPIO_ACTIVE_HIGH>;
0074 device-wakeup-gpios = <&tlmm 61 GPIO_ACTIVE_HIGH>;
0075 shutdown-gpios = <&tlmm 34 GPIO_ACTIVE_HIGH>;
0076 };
0077 };
0078
0079 &pm8226_vib {
0080 status = "okay";
0081 };
0082
0083 &rpm_requests {
0084 pm8226-regulators {
0085 compatible = "qcom,rpm-pm8226-regulators";
0086
0087 pm8226_s3: s3 {
0088 regulator-min-microvolt = <1200000>;
0089 regulator-max-microvolt = <1300000>;
0090 };
0091 pm8226_s4: s4 {
0092 regulator-min-microvolt = <1800000>;
0093 regulator-max-microvolt = <2200000>;
0094 };
0095 pm8226_s5: s5 {
0096 regulator-min-microvolt = <1150000>;
0097 regulator-max-microvolt = <1150000>;
0098 };
0099
0100 pm8226_l1: l1 {
0101 regulator-min-microvolt = <1225000>;
0102 regulator-max-microvolt = <1225000>;
0103 };
0104 pm8226_l2: l2 {
0105 regulator-min-microvolt = <1200000>;
0106 regulator-max-microvolt = <1200000>;
0107 };
0108 pm8226_l3: l3 {
0109 regulator-min-microvolt = <750000>;
0110 regulator-max-microvolt = <1337500>;
0111 };
0112 pm8226_l4: l4 {
0113 regulator-min-microvolt = <1200000>;
0114 regulator-max-microvolt = <1200000>;
0115 };
0116 pm8226_l5: l5 {
0117 regulator-min-microvolt = <1200000>;
0118 regulator-max-microvolt = <1200000>;
0119 };
0120 pm8226_l6: l6 {
0121 regulator-min-microvolt = <1800000>;
0122 regulator-max-microvolt = <1800000>;
0123 };
0124 pm8226_l7: l7 {
0125 regulator-min-microvolt = <1900000>;
0126 regulator-max-microvolt = <1900000>;
0127 };
0128 pm8226_l8: l8 {
0129 regulator-min-microvolt = <1800000>;
0130 regulator-max-microvolt = <1800000>;
0131 };
0132 pm8226_l9: l9 {
0133 regulator-min-microvolt = <1800000>;
0134 regulator-max-microvolt = <1800000>;
0135 };
0136 pm8226_l10: l10 {
0137 regulator-min-microvolt = <1800000>;
0138 regulator-max-microvolt = <1800000>;
0139 };
0140 pm8226_l12: l12 {
0141 regulator-min-microvolt = <1800000>;
0142 regulator-max-microvolt = <1800000>;
0143 };
0144 pm8226_l14: l14 {
0145 regulator-min-microvolt = <2750000>;
0146 regulator-max-microvolt = <2750000>;
0147 };
0148 pm8226_l15: l15 {
0149 regulator-min-microvolt = <3000000>;
0150 regulator-max-microvolt = <3000000>;
0151 };
0152 pm8226_l16: l16 {
0153 regulator-min-microvolt = <3000000>;
0154 regulator-max-microvolt = <3000000>;
0155 };
0156 pm8226_l17: l17 {
0157 regulator-min-microvolt = <2950000>;
0158 regulator-max-microvolt = <2950000>;
0159 };
0160 pm8226_l18: l18 {
0161 regulator-min-microvolt = <2950000>;
0162 regulator-max-microvolt = <2950000>;
0163 };
0164 pm8226_l19: l19 {
0165 regulator-min-microvolt = <2850000>;
0166 regulator-max-microvolt = <2850000>;
0167 };
0168 pm8226_l20: l20 {
0169 regulator-min-microvolt = <3075000>;
0170 regulator-max-microvolt = <3075000>;
0171 };
0172 pm8226_l21: l21 {
0173 regulator-min-microvolt = <1800000>;
0174 regulator-max-microvolt = <2950000>;
0175 };
0176 pm8226_l22: l22 {
0177 regulator-min-microvolt = <1800000>;
0178 regulator-max-microvolt = <2950000>;
0179 };
0180 pm8226_l23: l23 {
0181 regulator-min-microvolt = <1800000>;
0182 regulator-max-microvolt = <1800000>;
0183 };
0184 pm8226_l24: l24 {
0185 regulator-min-microvolt = <1300000>;
0186 regulator-max-microvolt = <1350000>;
0187 };
0188 pm8226_l25: l25 {
0189 regulator-min-microvolt = <1775000>;
0190 regulator-max-microvolt = <2125000>;
0191 };
0192 pm8226_l26: l26 {
0193 regulator-min-microvolt = <1225000>;
0194 regulator-max-microvolt = <1225000>;
0195 };
0196 pm8226_l27: l27 {
0197 regulator-min-microvolt = <2050000>;
0198 regulator-max-microvolt = <2050000>;
0199 };
0200 pm8226_l28: l28 {
0201 regulator-min-microvolt = <1800000>;
0202 regulator-max-microvolt = <2950000>;
0203 };
0204
0205 pm8226_lvs1: lvs1 {};
0206 };
0207 };
0208
0209 &sdhc_1 {
0210 status = "okay";
0211
0212 vmmc-supply = <&pm8226_l17>;
0213 vqmmc-supply = <&pm8226_l6>;
0214
0215 bus-width = <8>;
0216 non-removable;
0217 };
0218
0219 &sdhc_3 {
0220 status = "okay";
0221
0222 max-frequency = <100000000>;
0223 non-removable;
0224
0225 vmmc-supply = <&vreg_wlan>;
0226 vqmmc-supply = <&pm8226_l6>;
0227
0228 #address-cells = <1>;
0229 #size-cells = <0>;
0230
0231 wifi@1 {
0232 compatible = "brcm,bcm43430a1-fmac", "brcm,bcm4329-fmac";
0233 reg = <1>;
0234
0235 interrupts-extended = <&tlmm 46 IRQ_TYPE_EDGE_FALLING>;
0236 interrupt-names = "host-wake";
0237
0238 pinctrl-names = "default";
0239 pinctrl-0 = <&wlan_hostwake_default_state>;
0240 };
0241 };
0242
0243 &smbb {
0244 qcom,fast-charge-safe-current = <1500000>;
0245 qcom,fast-charge-current-limit = <350000>;
0246 qcom,fast-charge-safe-voltage = <4430000>;
0247 qcom,fast-charge-high-threshold-voltage = <4400000>;
0248 qcom,auto-recharge-threshold-voltage = <4300000>;
0249 qcom,minimum-input-voltage = <4400000>;
0250 };
0251
0252 &tlmm {
0253 blsp1_uart1_default_state: blsp1-uart1-default-state {
0254 pins = "gpio0", "gpio1", "gpio2", "gpio3";
0255 function = "blsp_uart1";
0256 drive-strength = <8>;
0257 bias-disable;
0258 };
0259
0260 bluetooth_default_state: bluetooth-default-state {
0261 pins = "gpio48", "gpio61";
0262 function = "gpio";
0263 drive-strength = <8>;
0264 bias-disable;
0265 input-enable;
0266 };
0267
0268 wlan_hostwake_default_state: wlan-hostwake-default-state {
0269 pins = "gpio46";
0270 function = "gpio";
0271 drive-strength = <2>;
0272 bias-disable;
0273 input-enable;
0274 };
0275
0276 wlan_regulator_default_state: wlan-regulator-default-state {
0277 pins = "gpio35";
0278 function = "gpio";
0279 drive-strength = <2>;
0280 bias-pull-up;
0281 };
0282 };
0283
0284 &usb {
0285 status = "okay";
0286 extcon = <&smbb>;
0287 dr_mode = "peripheral";
0288 };
0289
0290 &usb_hs_phy {
0291 extcon = <&smbb>;
0292 v1p8-supply = <&pm8226_l10>;
0293 v3p3-supply = <&pm8226_l20>;
0294 };