1 // SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause)
3 * Copyright (c) 2022 Linaro Limited
12 model = "Lenovo Tab P11";
13 compatible = "lenovo,j606f", "qcom,sm6115p", "qcom,sm6115";
14 chassis-type = "tablet";
16 /* required for bootloader to select correct board */
17 qcom,msm-id = <445 0x10000>, <420 0x10000>;
18 qcom,board-id = <34 3>;
29 framebuffer0: framebuffer@5c000000 {
30 compatible = "simple-framebuffer";
31 reg = <0 0x5c000000 0 (2000 * 1200 * 4)>;
34 stride = <(1200 * 4)>;
36 clocks = <&gcc GCC_DISP_HF_AXI_CLK>;
41 compatible = "gpio-keys";
43 pinctrl-names = "default";
44 pinctrl-0 = <&vol_up_n>;
48 linux,code = <KEY_VOLUMEUP>;
49 gpios = <&pm6125_gpios 5 GPIO_ACTIVE_LOW>;
50 debounce-interval = <15>;
58 compatible = "ramoops";
59 reg = <0x0 0xffc00000 0x0 0x100000>;
60 record-size = <0x1000>;
61 console-size = <0x40000>;
62 ftrace-size = <0x20000>;
72 firmware-name = "/*(DEBLOBBED)*/";
81 vdda-supply = <&pm6125_l18>;
85 compatible = "lenovo,j606f-boe-nt36523w", "novatek,nt36523w";
88 reset-gpios = <&tlmm 82 GPIO_ACTIVE_LOW>;
89 vddio-supply = <&pm6125_l9>;
91 pinctrl-names = "default";
92 pinctrl-0 = <&te_active &mdss_dsi_active>;
94 rotation = <180>; /* Yep, it's mounted upside down! */
98 remote-endpoint = <&mdss_dsi0_out>;
105 data-lanes = <0 1 2 3>;
106 remote-endpoint = <&panel_in>;
114 vol_up_n: vol-up-n-state {
128 linux,code = <KEY_VOLUMEDOWN>;
133 firmware-name = "/*(DEBLOBBED)*/";
138 firmware-name = "/*(DEBLOBBED)*/";
143 firmware-name = "/*(DEBLOBBED)*/";
149 compatible = "qcom,rpm-pm6125-regulators";
152 regulator-min-microvolt = <304000>;
153 regulator-max-microvolt = <1456000>;
157 regulator-min-microvolt = <1280000>;
158 regulator-max-microvolt = <2080000>;
162 regulator-min-microvolt = <1064000>;
163 regulator-max-microvolt = <1304000>;
167 regulator-min-microvolt = <952000>;
168 regulator-max-microvolt = <1152000>;
172 regulator-min-microvolt = <488000>;
173 regulator-max-microvolt = <1000000>;
177 regulator-min-microvolt = <1648000>;
178 /* 3.056V capped to 2.96V for SDHCI */
179 regulator-max-microvolt = <2960000>;
180 regulator-allow-set-load;
181 /* Broken hw, this one can't be turned off or SDHCI will break! */
186 regulator-min-microvolt = <576000>;
187 regulator-max-microvolt = <656000>;
191 /* 1.2V-1.304V fixed at 1.256V for SDHCI bias */
192 regulator-min-microvolt = <1256000>;
193 regulator-max-microvolt = <1256000>;
195 * TODO: SDHCI seems to also work with this one turned off, however
196 * there exists a possibility that it may not work with some very
197 * specific SDCard types, perhaps validating this against a wide
198 * range of models could rule that out, saving some power would
199 * certainly be nice..
205 regulator-min-microvolt = <400000>;
206 regulator-max-microvolt = <728000>;
210 regulator-min-microvolt = <1800000>;
211 regulator-max-microvolt = <2000000>;
215 regulator-min-microvolt = <1704000>;
216 regulator-max-microvolt = <1904000>;
220 regulator-min-microvolt = <1704000>;
221 regulator-max-microvolt = <1952000>;
225 regulator-min-microvolt = <1624000>;
226 regulator-max-microvolt = <1984000>;
230 regulator-min-microvolt = <1504000>;
231 regulator-max-microvolt = <1952000>;
235 regulator-min-microvolt = <1704000>;
236 regulator-max-microvolt = <1904000>;
240 regulator-min-microvolt = <2920000>;
241 regulator-max-microvolt = <3232000>;
245 regulator-min-microvolt = <1704000>;
246 regulator-max-microvolt = <1904000>;
250 regulator-min-microvolt = <1152000>;
251 regulator-max-microvolt = <1384000>;
255 /* 1.104V-1.312V fixed @ 1.232V for DSIPHY */
256 regulator-min-microvolt = <1232000>;
257 regulator-max-microvolt = <1232000>;
261 regulator-min-microvolt = <1624000>;
262 regulator-max-microvolt = <3304000>;
266 regulator-min-microvolt = <1624000>;
267 regulator-max-microvolt = <3304000>;
271 regulator-min-microvolt = <2400000>;
272 regulator-max-microvolt = <3600000>;
276 regulator-min-microvolt = <2952000>;
277 /* 3.304V capped to 2.96V for SDHCI */
278 regulator-max-microvolt = <2960000>;
279 regulator-allow-set-load;
280 /* Broken hw, this one can't be turned off or SDHCI will break! */
285 regulator-min-microvolt = <3200000>;
286 regulator-max-microvolt = <3400000>;
290 regulator-min-microvolt = <2704000>;
291 regulator-max-microvolt = <3600000>;
297 cd-gpios = <&tlmm 88 GPIO_ACTIVE_HIGH>;
298 pinctrl-names = "default", "sleep";
299 pinctrl-0 = <&sdc2_state_on &sdc2_gate_pin>;
300 pinctrl-1 = <&sdc2_state_off>;
301 vmmc-supply = <&pm6125_l22>;
302 vqmmc-supply = <&pm6125_l5>;
309 clock-frequency = <32764>;
313 gpio-reserved-ranges = <14 4>;
316 * This is a wholly undocumented pin (other than a single vague "pwr-gpios" reference)
317 * that needs to be toggled for the SD Card slot to work properly..
319 sdc2_gate_pin: sdc2-gate-state {
322 drive-strength = <2>;
327 te_active: te-active-state {
329 function = "mdp_vsync";
330 drive-strength = <2>;
334 mdss_dsi_active: dsi-active-state {
337 drive-strength = <8>;
343 vcc-supply = <&pm6125_l24>;
344 vcc-max-microamp = <600000>;
345 vccq2-supply = <&pm6125_l11>;
346 vccq2-max-microamp = <600000>;
347 vdd-hba-supply = <&pm6125_l18>;
352 vdda-phy-supply = <&pm6125_l4>;
353 vdda-pll-supply = <&pm6125_l12>;
362 maximum-speed = "high-speed";
363 dr_mode = "peripheral";
366 phy-names = "usb2-phy";
370 vdd-supply = <&pm6125_l4>;
371 vdda-pll-supply = <&pm6125_l12>;
372 vdda-phy-dpdm-supply = <&pm6125_l15>;
377 vdd-0.8-cx-mx-supply = <&pm6125_l8>;
378 vdd-1.8-xo-supply = <&pm6125_l16>;
379 vdd-1.3-rfa-supply = <&pm6125_l17>;
380 vdd-3.3-ch0-supply = <&pm6125_l23>;
381 qcom,ath10k-calibration-variant = "Lenovo_P11";
386 clock-frequency = <19200000>;