0001 // SPDX-License-Identifier: BSD-3-Clause
0002 /*
0003 * Copyright (c) 2021, 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 = "LG G Watch R";
0013 compatible = "lg,lenok", "qcom,apq8026";
0014 qcom,board-id = <132 0x0a>;
0015 qcom,msm-id = <199 0x20000>;
0016
0017 aliases {
0018 serial0 = &blsp1_uart3;
0019 serial1 = &blsp1_uart4;
0020 };
0021
0022 chosen {
0023 stdout-path = "serial0:115200n8";
0024 };
0025
0026 vreg_wlan: wlan-regulator {
0027 compatible = "regulator-fixed";
0028
0029 regulator-name = "wl-reg";
0030 regulator-min-microvolt = <2950000>;
0031 regulator-max-microvolt = <2950000>;
0032
0033 gpio = <&tlmm 46 GPIO_ACTIVE_HIGH>;
0034 enable-active-high;
0035
0036 pinctrl-names = "default";
0037 pinctrl-0 = <&wlan_regulator_default_state>;
0038 };
0039 };
0040
0041 &blsp1_i2c1 {
0042 status = "okay";
0043
0044 fuel-gauge@55 {
0045 compatible = "ti,bq27421";
0046 reg = <0x55>;
0047 };
0048 };
0049
0050 &blsp1_i2c5 {
0051 status = "okay";
0052 clock-frequency = <384000>;
0053
0054 touchscreen@20 {
0055 compatible = "syna,rmi4-i2c";
0056 reg = <0x20>;
0057
0058 interrupts-extended = <&tlmm 17 IRQ_TYPE_EDGE_FALLING>;
0059 vdd-supply = <&pm8226_l15>;
0060 vio-supply = <&pm8226_l22>;
0061
0062 pinctrl-names = "default";
0063 pinctrl-0 = <&touch_pins>;
0064
0065 #address-cells = <1>;
0066 #size-cells = <0>;
0067
0068 rmi4-f01@1 {
0069 reg = <0x1>;
0070 syna,nosleep-mode = <1>;
0071 };
0072
0073 rmi4-f12@12 {
0074 reg = <0x12>;
0075 syna,sensor-type = <1>;
0076 };
0077 };
0078 };
0079
0080 &blsp1_uart3 {
0081 status = "okay";
0082 };
0083
0084 &blsp1_uart4 {
0085 status = "okay";
0086
0087 pinctrl-names = "default";
0088 pinctrl-0 = <&blsp1_uart4_default_state>;
0089
0090 bluetooth {
0091 compatible = "brcm,bcm43430a0-bt";
0092
0093 max-speed = <3000000>;
0094
0095 pinctrl-names = "default";
0096 pinctrl-0 = <&bluetooth_default_state>;
0097
0098 host-wakeup-gpios = <&tlmm 48 GPIO_ACTIVE_HIGH>;
0099 device-wakeup-gpios = <&tlmm 47 GPIO_ACTIVE_HIGH>;
0100 shutdown-gpios = <&tlmm 45 GPIO_ACTIVE_HIGH>;
0101 };
0102 };
0103
0104 &rpm_requests {
0105 pm8226-regulators {
0106 compatible = "qcom,rpm-pm8226-regulators";
0107
0108 pm8226_s3: s3 {
0109 regulator-min-microvolt = <1200000>;
0110 regulator-max-microvolt = <1350000>;
0111 };
0112 pm8226_s4: s4 {
0113 regulator-min-microvolt = <1800000>;
0114 regulator-max-microvolt = <2200000>;
0115 };
0116 pm8226_s5: s5 {
0117 regulator-min-microvolt = <1150000>;
0118 regulator-max-microvolt = <1150000>;
0119 };
0120
0121 pm8226_l1: l1 {
0122 regulator-min-microvolt = <1225000>;
0123 regulator-max-microvolt = <1225000>;
0124 };
0125 pm8226_l2: l2 {
0126 regulator-min-microvolt = <1200000>;
0127 regulator-max-microvolt = <1200000>;
0128 };
0129 pm8226_l3: l3 {
0130 regulator-min-microvolt = <750000>;
0131 regulator-max-microvolt = <1337500>;
0132 };
0133 pm8226_l4: l4 {
0134 regulator-min-microvolt = <1200000>;
0135 regulator-max-microvolt = <1200000>;
0136 };
0137 pm8226_l5: l5 {
0138 regulator-min-microvolt = <1200000>;
0139 regulator-max-microvolt = <1200000>;
0140 };
0141 pm8226_l6: l6 {
0142 regulator-min-microvolt = <1800000>;
0143 regulator-max-microvolt = <1800000>;
0144 };
0145 pm8226_l7: l7 {
0146 regulator-min-microvolt = <1850000>;
0147 regulator-max-microvolt = <1850000>;
0148 };
0149 pm8226_l8: l8 {
0150 regulator-min-microvolt = <1800000>;
0151 regulator-max-microvolt = <1800000>;
0152 };
0153 pm8226_l9: l9 {
0154 regulator-min-microvolt = <2050000>;
0155 regulator-max-microvolt = <2050000>;
0156 };
0157 pm8226_l10: l10 {
0158 regulator-min-microvolt = <1800000>;
0159 regulator-max-microvolt = <1800000>;
0160 };
0161 pm8226_l12: l12 {
0162 regulator-min-microvolt = <1800000>;
0163 regulator-max-microvolt = <1800000>;
0164 };
0165 pm8226_l14: l14 {
0166 regulator-min-microvolt = <2750000>;
0167 regulator-max-microvolt = <2750000>;
0168 };
0169 pm8226_l15: l15 {
0170 regulator-min-microvolt = <3300000>;
0171 regulator-max-microvolt = <3300000>;
0172 };
0173 pm8226_l16: l16 {
0174 regulator-min-microvolt = <3000000>;
0175 regulator-max-microvolt = <3350000>;
0176 };
0177 pm8226_l17: l17 {
0178 regulator-min-microvolt = <2950000>;
0179 regulator-max-microvolt = <2950000>;
0180 };
0181 pm8226_l18: l18 {
0182 regulator-min-microvolt = <3000000>;
0183 regulator-max-microvolt = <3300000>;
0184 };
0185 pm8226_l19: l19 {
0186 regulator-min-microvolt = <3000000>;
0187 regulator-max-microvolt = <3000000>;
0188 };
0189 pm8226_l20: l20 {
0190 regulator-min-microvolt = <3075000>;
0191 regulator-max-microvolt = <3075000>;
0192 };
0193 pm8226_l21: l21 {
0194 regulator-min-microvolt = <1800000>;
0195 regulator-max-microvolt = <2950000>;
0196 };
0197 pm8226_l22: l22 {
0198 regulator-min-microvolt = <1800000>;
0199 regulator-max-microvolt = <1800000>;
0200 };
0201 pm8226_l23: l23 {
0202 regulator-min-microvolt = <1800000>;
0203 regulator-max-microvolt = <2950000>;
0204 };
0205 pm8226_l24: l24 {
0206 regulator-min-microvolt = <1300000>;
0207 regulator-max-microvolt = <1350000>;
0208 };
0209 pm8226_l25: l25 {
0210 regulator-min-microvolt = <1775000>;
0211 regulator-max-microvolt = <2125000>;
0212 };
0213 pm8226_l26: l26 {
0214 regulator-min-microvolt = <1225000>;
0215 regulator-max-microvolt = <1225000>;
0216 };
0217 pm8226_l27: l27 {
0218 regulator-min-microvolt = <2050000>;
0219 regulator-max-microvolt = <2050000>;
0220 };
0221 pm8226_l28: l28 {
0222 regulator-min-microvolt = <2700000>;
0223 regulator-max-microvolt = <3000000>;
0224 };
0225
0226 pm8226_lvs1: lvs1 {};
0227 };
0228 };
0229
0230 &sdhc_1 {
0231 status = "okay";
0232
0233 vmmc-supply = <&pm8226_l17>;
0234 vqmmc-supply = <&pm8226_l6>;
0235
0236 bus-width = <8>;
0237 non-removable;
0238 };
0239
0240 &sdhc_3 {
0241 status = "okay";
0242
0243 max-frequency = <100000000>;
0244 non-removable;
0245
0246 vmmc-supply = <&vreg_wlan>;
0247 vqmmc-supply = <&pm8226_l6>;
0248
0249 #address-cells = <1>;
0250 #size-cells = <0>;
0251
0252 wifi@1 {
0253 compatible = "brcm,bcm43430a0-fmac", "brcm,bcm4329-fmac";
0254 reg = <1>;
0255
0256 interrupts-extended = <&tlmm 37 IRQ_TYPE_EDGE_FALLING>;
0257 interrupt-names = "host-wake";
0258
0259 pinctrl-names = "default";
0260 pinctrl-0 = <&wlan_hostwake_default_state>;
0261 };
0262 };
0263
0264 &smbb {
0265 qcom,fast-charge-safe-current = <450000>;
0266 qcom,fast-charge-current-limit = <400000>;
0267 qcom,fast-charge-safe-voltage = <4350000>;
0268 qcom,fast-charge-high-threshold-voltage = <4350000>;
0269 qcom,auto-recharge-threshold-voltage = <4240000>;
0270 qcom,minimum-input-voltage = <4450000>;
0271 };
0272
0273 &tlmm {
0274 blsp1_uart4_default_state: blsp1-uart4-default-state {
0275 pins = "gpio12", "gpio13", "gpio14", "gpio15";
0276 function = "blsp_uart4";
0277 drive-strength = <8>;
0278 bias-disable;
0279 };
0280
0281 bluetooth_default_state: bluetooth-default-state {
0282 pins = "gpio47", "gpio48";
0283 function = "gpio";
0284 drive-strength = <2>;
0285 bias-disable;
0286 input-enable;
0287 };
0288
0289 touch_pins: touch {
0290 irq {
0291 pins = "gpio17";
0292 function = "gpio";
0293
0294 drive-strength = <8>;
0295 bias-pull-down;
0296 input-enable;
0297 };
0298
0299 reset {
0300 pins = "gpio16";
0301 function = "gpio";
0302
0303 drive-strength = <8>;
0304 bias-disable;
0305 output-high;
0306 };
0307 };
0308
0309 wlan_hostwake_default_state: wlan-hostwake-default-state {
0310 pins = "gpio37";
0311 function = "gpio";
0312 drive-strength = <2>;
0313 bias-disable;
0314 input-enable;
0315 };
0316
0317 wlan_regulator_default_state: wlan-regulator-default-state {
0318 pins = "gpio46";
0319 function = "gpio";
0320 drive-strength = <2>;
0321 bias-pull-up;
0322 };
0323 };
0324
0325 &usb {
0326 status = "okay";
0327 extcon = <&smbb>;
0328 dr_mode = "peripheral";
0329 };
0330
0331 &usb_hs_phy {
0332 extcon = <&smbb>;
0333 v1p8-supply = <&pm8226_l10>;
0334 v3p3-supply = <&pm8226_l20>;
0335 };