xref: /linux/scripts/dtc/include-prefixes/arm64/qcom/x1e78100-lenovo-thinkpad-t14s.dts (revision ec71f661a572a770d7c861cd52a50cbbb0e1a8d1)
1// SPDX-License-Identifier: BSD-3-Clause
2/*
3 * Copyright (c) 2025, Linaro Limited
4 */
5
6#include "x1e78100-lenovo-thinkpad-t14s.dtsi"
7
8/ {
9	model = "Lenovo ThinkPad T14s Gen 6 (LCD)";
10	compatible = "lenovo,thinkpad-t14s-lcd", "lenovo,thinkpad-t14s",
11		     "qcom,x1e78100", "qcom,x1e80100";
12
13	backlight: backlight {
14		compatible = "pwm-backlight";
15		pwms = <&pmk8550_pwm 0 4266537>;
16		enable-gpios = <&pmc8380_3_gpios 4 GPIO_ACTIVE_HIGH>;
17		power-supply = <&vreg_edp_bl>;
18
19		pinctrl-0 = <&edp_bl_en>, <&edp_bl_pwm>;
20		pinctrl-names = "default";
21	};
22
23	vreg_edp_bl: regulator-edp-bl {
24		compatible = "regulator-fixed";
25
26		regulator-name = "VBL9";
27		regulator-min-microvolt = <3600000>;
28		regulator-max-microvolt = <3600000>;
29
30		gpio = <&pmc8380_3_gpios 10 GPIO_ACTIVE_HIGH>;
31		enable-active-high;
32
33		pinctrl-names = "default";
34		pinctrl-0 = <&edp_bl_reg_en>;
35
36		regulator-boot-on;
37	};
38};
39
40&panel {
41	backlight = <&backlight>;
42};
43
44&pmc8380_3_gpios {
45	edp_bl_reg_en: edp-bl-reg-en-state {
46		pins = "gpio10";
47		function = "normal";
48	};
49};
50
51&pmk8550_gpios {
52	edp_bl_pwm: edp-bl-pwm-state {
53		pins = "gpio5";
54		function = "func3";
55	};
56};
57
58&pmk8550_pwm {
59	status = "okay";
60};
61