|
22 | 22 | qcom,msm-id = <QCOM_ID_MSM8917 0>; |
23 | 23 | qcom,board-id = <0x1000b 2>, <0x2000b 2>; |
24 | 24 |
|
| 25 | + pwm_backlight: backlight { |
| 26 | + compatible = "pwm-backlight"; |
| 27 | + pwms = <&pm8937_pwm 0 100000>; |
| 28 | + |
| 29 | + brightness-levels = <0 255>; |
| 30 | + num-interpolated-steps = <255>; |
| 31 | + default-brightness-level = <128>; |
| 32 | + }; |
| 33 | + |
25 | 34 | battery: battery { |
26 | 35 | compatible = "simple-battery"; |
27 | 36 | charge-full-design-microamp-hours = <3000000>; |
|
56 | 65 | <&gcc GCC_MDSS_PCLK0_CLK>, |
57 | 66 | <&gcc GCC_MDSS_ESC0_CLK>; |
58 | 67 | power-domains = <&gcc MDSS_GDSC>; |
| 68 | + status = "disabled"; |
59 | 69 | }; |
60 | 70 | }; |
61 | 71 |
|
| 72 | + usb_vbus: extcon-usb-dummy { |
| 73 | + compatible = "linux,extcon-usb-dummy"; |
| 74 | + }; |
| 75 | + |
62 | 76 | gpio-keys { |
63 | 77 | compatible = "gpio-keys"; |
64 | 78 |
|
|
95 | 109 | }; |
96 | 110 | }; |
97 | 111 |
|
| 112 | +&blsp1_i2c2 { |
| 113 | + status = "okay"; |
| 114 | + |
| 115 | + regulator@3e { |
| 116 | + compatible = "ti,tps65132"; |
| 117 | + reg = <0x3e>; |
| 118 | + |
| 119 | + pinctrl-names = "default"; |
| 120 | + pinctrl-0 = <&tps65132_en_default>; |
| 121 | + |
| 122 | + reg_lcd_pos: outp { |
| 123 | + regulator-name = "outp"; |
| 124 | + regulator-min-microvolt = <5000000>; |
| 125 | + regulator-max-microvolt = <5000000>; |
| 126 | + regulator-boot-on; |
| 127 | + regulator-always-on; |
| 128 | + enable-gpios = <&tlmm 126 GPIO_ACTIVE_HIGH>; |
| 129 | + regulator-active-discharge = <1>; |
| 130 | + }; |
| 131 | + |
| 132 | + reg_lcd_neg: outn { |
| 133 | + regulator-name = "outn"; |
| 134 | + regulator-min-microvolt = <5000000>; |
| 135 | + regulator-max-microvolt = <5000000>; |
| 136 | + enable-gpios = <&tlmm 127 GPIO_ACTIVE_HIGH>; |
| 137 | + regulator-active-discharge = <1>; |
| 138 | + }; |
| 139 | + }; |
| 140 | +}; |
| 141 | + |
98 | 142 | &blsp1_i2c3 { |
99 | 143 | status = "okay"; |
100 | 144 |
|
|
130 | 174 | input-voltage-limit-microvolt = <4400000>; |
131 | 175 | input-current-limit-microamp = <1000000>; |
132 | 176 | monitored-battery = <&battery>; |
| 177 | + |
| 178 | + // TODO: remove when power-supplies property is fixed |
| 179 | + omit-battery-class; |
133 | 180 | }; |
134 | 181 | }; |
135 | 182 |
|
| 183 | +&gpu { |
| 184 | + status = "okay"; |
| 185 | +}; |
| 186 | + |
| 187 | +&mdss { |
| 188 | + status = "okay"; |
| 189 | +}; |
| 190 | + |
| 191 | +&mdss_dsi0 { |
| 192 | + vdda-supply = <&pm8937_l2>; |
| 193 | + vddio-supply = <&pm8937_l6>; |
| 194 | + |
| 195 | + pinctrl-0 = <&mdss_dsi_default>; |
| 196 | + pinctrl-1 = <&mdss_dsi_sleep>; |
| 197 | + pinctrl-names = "default", "sleep"; |
| 198 | + |
| 199 | + panel@0 { |
| 200 | + compatible = "xiaomi,riva-panel"; |
| 201 | + reg = <0>; |
| 202 | + |
| 203 | + reset-gpios = <&tlmm 60 GPIO_ACTIVE_LOW>; |
| 204 | + |
| 205 | + vsn-supply = <®_lcd_neg>; |
| 206 | + vsp-supply = <®_lcd_pos>; |
| 207 | + |
| 208 | + backlight = <&pwm_backlight>; |
| 209 | + |
| 210 | + |
| 211 | + port { |
| 212 | + panel_in: endpoint { |
| 213 | + remote-endpoint = <&mdss_dsi0_out>; |
| 214 | + }; |
| 215 | + }; |
| 216 | + }; |
| 217 | +}; |
| 218 | + |
| 219 | +&mdss_dsi0_out { |
| 220 | + data-lanes = <0 1 2 3>; |
| 221 | + remote-endpoint = <&panel_in>; |
| 222 | +}; |
| 223 | + |
| 224 | +&mdss_dsi0_phy { |
| 225 | + vddio-supply = <&pm8937_l6>; |
| 226 | + qcom,dsi-phy-regulator-ldo-mode; |
| 227 | +}; |
| 228 | + |
| 229 | +&pm8937_gpios { |
| 230 | + pwm_enable_default: pwm-enable-default-state { |
| 231 | + pins = "gpio8"; |
| 232 | + function = "dtest2"; |
| 233 | + output-low; |
| 234 | + bias-disable; |
| 235 | + qcom,drive-strength = <2>; |
| 236 | + }; |
| 237 | +}; |
| 238 | + |
| 239 | +&pm8937_pwm { |
| 240 | + pinctrl-0 = <&pwm_enable_default>; |
| 241 | + pinctrl-names = "default"; |
| 242 | + |
| 243 | + status = "okay"; |
| 244 | +}; |
| 245 | + |
136 | 246 | &pm8937_resin { |
137 | 247 | linux,code = <KEY_VOLUMEDOWN>; |
138 | 248 |
|
|
297 | 407 | bias-pull-up; |
298 | 408 | }; |
299 | 409 |
|
| 410 | + mdss_dsi_default: mdss-dsi-default-state { |
| 411 | + pins = "gpio60"; |
| 412 | + function = "gpio"; |
| 413 | + drive-strength = <8>; |
| 414 | + bias-disable; |
| 415 | + output-high; |
| 416 | + }; |
| 417 | + |
| 418 | + mdss_dsi_sleep: mdss-dsi-sleep-state { |
| 419 | + pins = "gpio60"; |
| 420 | + function = "gpio"; |
| 421 | + drive-strength = <2>; |
| 422 | + bias-pull-down; |
| 423 | + }; |
| 424 | + |
300 | 425 | sdc2_cd_default: sdc2-cd-default-state { |
301 | 426 | pins = "gpio67"; |
302 | 427 | function = "gpio"; |
303 | 428 | drive-strength = <2>; |
304 | 429 | bias-disable; |
305 | 430 | }; |
306 | 431 |
|
| 432 | + tps65132_en_default: tps65132-en-default-state { |
| 433 | + function = "gpio"; |
| 434 | + pins = "gpio126", "gpio127"; |
| 435 | + drive-strength = <2>; |
| 436 | + bias-pull-down; |
| 437 | + }; |
| 438 | + |
307 | 439 | tsp_int_rst_default: tsp-int-rst-default-state { |
308 | 440 | pins = "gpio64", "gpio65"; |
309 | 441 | function = "gpio"; |
|
312 | 444 | }; |
313 | 445 | }; |
314 | 446 |
|
| 447 | +&usb { |
| 448 | + dr_mode = "peripheral"; |
| 449 | + extcon = <&usb_vbus>; |
| 450 | + status = "okay"; |
| 451 | +}; |
| 452 | + |
| 453 | +&usb_hs_phy { |
| 454 | + /* |
| 455 | + * Driver is not able to set init-seq |
| 456 | + * qcom,init-seq = /bits/ 8 <0x0 0x53>, |
| 457 | + * <0x1 0x39>, |
| 458 | + * <0x2 0x37>; |
| 459 | + */ |
| 460 | + vdd-supply = <&pm8937_l2>; |
| 461 | + vdda1p8-supply = <&pm8937_l7>; |
| 462 | + vdda3p3-supply = <&pm8937_l13>; |
| 463 | + status = "okay"; |
| 464 | +}; |
| 465 | + |
315 | 466 | &wcnss { |
316 | 467 | vddpx-supply = <&pm8937_l5>; |
317 | 468 |
|
|
0 commit comments