|
| 1 | +// SPDX-License-Identifier: BSD-3-Clause |
| 2 | + |
| 3 | +#include <skeleton64.dtsi> |
| 4 | +#include <lk2nd.dtsi> |
| 5 | + |
| 6 | +/ { |
| 7 | + qcom,msm-id = <QCOM_ID_MSM8916 0>; |
| 8 | + qcom,board-id = <QCOM_BOARD_ID_CDP 1>; |
| 9 | +}; |
| 10 | + |
| 11 | +/* |
| 12 | + * These are devices released by vivo in 2014-2015. |
| 13 | + * Their common feature is that they use the CDP, and the board-id is <0x01 0x01>. |
| 14 | + * |
| 15 | + * These devices are quirky devices. |
| 16 | + * Since the stock Android version on this device reports as 4.4.4, aboot is only 32-bit, |
| 17 | + * so lk1st is required, along with replacing tz and hyp. |
| 18 | + */ |
| 19 | + |
| 20 | +&lk2nd { |
| 21 | + vivo-pd1304 { |
| 22 | + model = "Vivo Y13L / Y613F / Y923"; |
| 23 | + compatible = "vivo,pd1304"; |
| 24 | + |
| 25 | + /* |
| 26 | + * Build lk1st for pd1304: |
| 27 | + * make TOOLCHAIN_PREFIX=arm-none-eabi- lk1st-msm8916 \ |
| 28 | + * LK2ND_DISPLAY=nt35510s_fwvga_cmd \ |
| 29 | + * LK2ND_BUNDLE_DTB=msm8916-vivo-cdp-1.dtb |
| 30 | + * LK2ND_COMPATIBLE=vivo,pd1304 |
| 31 | + */ |
| 32 | + |
| 33 | + lk2nd,dtb-files = "msm8916-vivo-pd1304"; |
| 34 | + lk2nd,match-panel; |
| 35 | + |
| 36 | + panel { |
| 37 | + compatible = "vivo,pd1304-panel", "lk2nd,panel"; |
| 38 | + |
| 39 | + qcom,mdss_dsi_nt35510s_fwvga_video{ |
| 40 | + compatible = "mdss,nt35510s-video"; |
| 41 | + touchscreen-compatible = "edt,edt-ft5306"; |
| 42 | + }; |
| 43 | + |
| 44 | + qcom,mdss_dsi_nt35510s_fwvga_cmd { |
| 45 | + compatible = "mdss,nt35510s"; |
| 46 | + touchscreen-compatible = "edt,edt-ft5306"; |
| 47 | + }; |
| 48 | + }; |
| 49 | + |
| 50 | + regulator-backlight { |
| 51 | + compatible = "regulator-fixed"; |
| 52 | + gpios = <&tlmm 8 GPIO_ACTIVE_HIGH>; |
| 53 | + }; |
| 54 | + }; |
| 55 | + |
| 56 | + vivo-pd1403{ |
| 57 | + model = "Vivo Y28L / Y628 / Y928"; |
| 58 | + compatible = "vivo,pd1403"; |
| 59 | + |
| 60 | + /* |
| 61 | + * Build lk1st for pd1403: |
| 62 | + * make TOOLCHAIN_PREFIX=arm-none-eabi- lk1st-msm8916 \ |
| 63 | + * LK2ND_DISPLAY=hx8389b_qhd_video \ |
| 64 | + * LK2ND_BUNDLE_DTB=msm8916-vivo-cdp-1.dtb \ |
| 65 | + * LK2ND_COMPATIBLE=vivo,pd1403 |
| 66 | + */ |
| 67 | + |
| 68 | + lk2nd,dtb-files = "msm8916-vivo-pd1403"; |
| 69 | + lk2nd,match-panel; |
| 70 | + |
| 71 | + panel { |
| 72 | + compatible = "vivo,pd1403-panel", "lk2nd,panel"; |
| 73 | + |
| 74 | + qcom,mdss_dsi_hx8389b_qhd_video { |
| 75 | + compatible = "mdss,hx8389b"; |
| 76 | + }; |
| 77 | + }; |
| 78 | + |
| 79 | + regulator-backlight { |
| 80 | + compatible = "regulator-fixed"; |
| 81 | + gpios = <&tlmm 8 GPIO_ACTIVE_HIGH>; |
| 82 | + }; |
| 83 | + }; |
| 84 | + |
| 85 | + vivo-pd1410 { |
| 86 | + model = "Vivo Y27L / Y627 / Y927"; |
| 87 | + compatible = "vivo,pd1410"; |
| 88 | + |
| 89 | + /* |
| 90 | + * Build lk1st for pd1410: |
| 91 | + * make TOOLCHAIN_PREFIX=arm-none-eabi- lk1st-msm8916 \ |
| 92 | + * LK2ND_DISPLAY=hx8394a_720p_video \ |
| 93 | + * LK2ND_BUNDLE_DTB=msm8916-vivo-cdp-1.dtb \ |
| 94 | + * LK2ND_COMPATIBLE=vivo,pd1410 |
| 95 | + */ |
| 96 | + |
| 97 | + lk2nd,dtb-files = "msm8916-vivo-pd1410"; |
| 98 | + lk2nd,match-panel; |
| 99 | + |
| 100 | + panel { |
| 101 | + compatible = "vivo,pd1410-panel", "lk2nd,panel"; |
| 102 | + |
| 103 | + qcom,mdss_dsi_hx8394a_720p_video { |
| 104 | + compatible = "vivo,hx8394a-720p"; |
| 105 | + }; |
| 106 | + }; |
| 107 | + |
| 108 | + regulator-lcd-enp { |
| 109 | + compatible = "regulator-fixed"; |
| 110 | + gpios = <&tlmm 97 GPIO_ACTIVE_HIGH>; |
| 111 | + }; |
| 112 | + |
| 113 | + regulator-lcd-enn { |
| 114 | + compatible = "regulator-fixed"; |
| 115 | + gpios = <&tlmm 98 GPIO_ACTIVE_HIGH>; |
| 116 | + }; |
| 117 | + |
| 118 | + regulator-backlight { |
| 119 | + compatible = "regulator-fixed"; |
| 120 | + gpios = <&tlmm 8 GPIO_ACTIVE_HIGH>; |
| 121 | + }; |
| 122 | + }; |
| 123 | + |
| 124 | + vivo-pd1419 { |
| 125 | + model = "Vivo Y23L / Y623 / Y923"; |
| 126 | + compatible = "vivo,pd1419"; |
| 127 | + |
| 128 | + /* |
| 129 | + * This device has two panels: nt35510s_fwvga_cmd or orise8012a_fwvga_cmd. |
| 130 | + * Replace LK2ND_DISPLAY according to the panel. |
| 131 | + * |
| 132 | + * Build lk1st for pd1419: |
| 133 | + * make TOOLCHAIN_PREFIX=arm-none-eabi- lk1st-msm8916 \ |
| 134 | + * LK2ND_DISPLAY=nt35510s_fwvga_cmd \ |
| 135 | + * LK2ND_BUNDLE_DTB=msm8916-vivo-cdp-1.dtb \ |
| 136 | + * LK2ND_COMPATIBLE=vivo,pd1419 |
| 137 | + */ |
| 138 | + |
| 139 | + lk2nd,dtb-files = "msm8916-vivo-pd1419"; |
| 140 | + lk2nd,match-panel; |
| 141 | + |
| 142 | + panel { |
| 143 | + compatible = "vivo,pd1419-panel", "lk2nd,panel"; |
| 144 | + |
| 145 | + qcom,mdss_dsi_nt35510s_fwvga_cmd { |
| 146 | + compatible = "mdss,nt35510s"; |
| 147 | + touchscreen-compatible = "goodix,gt928"; |
| 148 | + }; |
| 149 | + |
| 150 | + qcom,mdss_dsi_orise8012a_fwvga_cmd { |
| 151 | + compatible = "mdss,orise8012a"; |
| 152 | + touchscreen-compatible = "goodix,gt928"; |
| 153 | + }; |
| 154 | + }; |
| 155 | + |
| 156 | + regulator-backlight { |
| 157 | + compatible = "regulator-fixed"; |
| 158 | + gpios = <&tlmm 8 GPIO_ACTIVE_HIGH>; |
| 159 | + }; |
| 160 | + }; |
| 161 | +}; |
0 commit comments