|
35 | 35 | };
|
36 | 36 | };
|
37 | 37 |
|
| 38 | + backlight: backlight { |
| 39 | + compatible = "pwm-backlight"; |
| 40 | + pwms = <&pm8916_pwm 0 100000>; |
| 41 | + brightness-levels = <0 255>; |
| 42 | + num-interpolated-steps = <255>; |
| 43 | + default-brightness-level = <128>; |
| 44 | + }; |
| 45 | + |
38 | 46 | battery: battery {
|
39 | 47 | compatible = "simple-battery";
|
40 | 48 | voltage-min-design-microvolt = <3200000>;
|
|
123 | 131 | };
|
124 | 132 | };
|
125 | 133 |
|
| 134 | +&blsp_i2c5 { |
| 135 | + status = "okay"; |
| 136 | + |
| 137 | + touchscreen@38 { |
| 138 | + /* actually FT5336 */ |
| 139 | + compatible = "edt,edt-ft5306"; |
| 140 | + reg = <0x38>; |
| 141 | + interrupt-parent = <&msmgpio>; |
| 142 | + interrupts = <13 IRQ_TYPE_EDGE_FALLING>; |
| 143 | + pinctrl-0 = <&touchscreen_default>; |
| 144 | + pinctrl-names = "default"; |
| 145 | + vcc-supply = <&pm8916_l17>; |
| 146 | + iovcc-supply = <&pm8916_l6>; |
| 147 | + reset-gpios = <&msmgpio 12 GPIO_ACTIVE_LOW>; |
| 148 | + touchscreen-size-x = <720>; |
| 149 | + touchscreen-size-y = <1280>; |
| 150 | + }; |
| 151 | +}; |
| 152 | + |
126 | 153 | &blsp1_uart2 {
|
127 | 154 | status = "okay";
|
128 | 155 | };
|
129 | 156 |
|
| 157 | +&dsi0 { |
| 158 | + pinctrl-0 = <&mdss_default>; |
| 159 | + pinctrl-1 = <&mdss_sleep>; |
| 160 | + pinctrl-names = "default", "sleep"; |
| 161 | + |
| 162 | + panel@0 { |
| 163 | + compatible = "lenovo,phab-jdi_1080p"; |
| 164 | + reg = <0>; |
| 165 | + backlight = <&backlight>; |
| 166 | + reset-gpios = <&msmgpio 25 GPIO_ACTIVE_LOW>; |
| 167 | + |
| 168 | + port { |
| 169 | + panel_in: endpoint { |
| 170 | + remote-endpoint = <&dsi0_out>; |
| 171 | + }; |
| 172 | + }; |
| 173 | + }; |
| 174 | +}; |
| 175 | + |
| 176 | +&dsi0_out { |
| 177 | + data-lanes = <0 1 2 3>; |
| 178 | + qcom,platform-enable-gpio = <&msmgpio 109 GPIO_ACTIVE_HIGH>; |
| 179 | + qcom,platform-reset-gpio = <&msmgpio 25 GPIO_ACTIVE_HIGH>; |
| 180 | + remote-endpoint = <&panel_in>; |
| 181 | +}; |
| 182 | + |
| 183 | +&dsi_phy0 { |
| 184 | + qcom,dsi-phy-regulator-ldo-mode; |
| 185 | +}; |
| 186 | + |
130 | 187 | &lpass {
|
131 | 188 | dai@3 {
|
132 | 189 | reg = <MI2S_QUATERNARY>;
|
133 | 190 | qcom,playback-sd-lines = <1>;
|
134 | 191 | };
|
135 | 192 | };
|
136 | 193 |
|
| 194 | +&mdss { |
| 195 | + status = "okay"; |
| 196 | +}; |
| 197 | + |
137 | 198 | &pm8916_bms {
|
138 | 199 | monitored-battery = <&battery>;
|
139 | 200 | //power-supplies = <&charger>;
|
140 | 201 | status = "okay";
|
141 | 202 | };
|
142 | 203 |
|
| 204 | +&pm8916_pwm { |
| 205 | + pinctrl-0 = <&pwm_out>; |
| 206 | + pinctrl-names = "default"; |
| 207 | + status = "okay"; |
| 208 | +}; |
| 209 | + |
143 | 210 | &pm8916_resin {
|
144 | 211 | linux,code = <KEY_VOLUMEDOWN>;
|
145 | 212 | status = "okay";
|
|
345 | 412 | bias-pull-up;
|
346 | 413 | };
|
347 | 414 |
|
| 415 | + touchscreen_default: touchscreen-default-state { |
| 416 | + reset-pins { |
| 417 | + pins = "gpio12"; |
| 418 | + function = "gpio"; |
| 419 | + drive-strength = <2>; |
| 420 | + bias-disable; |
| 421 | + }; |
| 422 | + |
| 423 | + touchscreen-pins { |
| 424 | + pins = "gpio13"; |
| 425 | + function = "gpio"; |
| 426 | + drive-strength = <2>; |
| 427 | + bias-pull-up; |
| 428 | + }; |
| 429 | + }; |
| 430 | + |
| 431 | + mdss_default: mdss-default-state { |
| 432 | + pins = "gpio25"; |
| 433 | + function = "gpio"; |
| 434 | + drive-strength = <8>; |
| 435 | + bias-disable; |
| 436 | + }; |
| 437 | + |
| 438 | + mdss_sleep: mdss-sleep-state { |
| 439 | + pins = "gpio25"; |
| 440 | + function = "gpio"; |
| 441 | + drive-strength = <2>; |
| 442 | + bias-pull-down; |
| 443 | + }; |
| 444 | + |
348 | 445 | mpu_default: mpu-default-state {
|
349 | 446 | pins = "gpio115";
|
350 | 447 | function = "gpio";
|
|
358 | 455 | drive-strength = <2>;
|
359 | 456 | };
|
360 | 457 | };
|
| 458 | + |
| 459 | +&pm8916_mpps { |
| 460 | + pwm_out: mpp4-state { |
| 461 | + pins = "mpp4"; |
| 462 | + function = "digital"; |
| 463 | + output-low; |
| 464 | + qcom,dtest = <1>; |
| 465 | + power-source = <PM8916_MPP_VPH>; |
| 466 | + }; |
| 467 | +}; |
0 commit comments