feat: update kernel, add patches for backlight, etc.
This commit is contained in:
51
patches/backlight.patch
Normal file
51
patches/backlight.patch
Normal file
@ -0,0 +1,51 @@
|
||||
diff --git a/arch/arm64/boot/dts/qcom/x1e78100-lenovo-thinkpad-t14s.dts b/arch/arm64/boot/dts/qcom/x1e78100-lenovo-thinkpad-t14s.dts
|
||||
index 04d6983ca8f3..0d42b275fd66 100644
|
||||
--- a/arch/arm64/boot/dts/qcom/x1e78100-lenovo-thinkpad-t14s.dts
|
||||
+++ b/arch/arm64/boot/dts/qcom/x1e78100-lenovo-thinkpad-t14s.dts
|
||||
@@ -19,6 +19,14 @@ / {
|
||||
compatible = "lenovo,thinkpad-t14s", "qcom,x1e78100", "qcom,x1e80100";
|
||||
chassis-type = "laptop";
|
||||
|
||||
+ backlight: backlight {
|
||||
+ compatible = "pwm-backlight";
|
||||
+ pwms = <&pmk8550_pwm 0 5000000>;
|
||||
+ enable-gpios = <&pmc8380_3_gpios 4 GPIO_ACTIVE_HIGH>;
|
||||
+ pinctrl-0 = <&edp_bl_en>, <&edp_bl_pwm>;
|
||||
+ pinctrl-names = "default";
|
||||
+ };
|
||||
+
|
||||
gpio-keys {
|
||||
compatible = "gpio-keys";
|
||||
|
||||
@@ -744,12 +752,9 @@ &mdss_dp3 {
|
||||
aux-bus {
|
||||
panel {
|
||||
compatible = "edp-panel";
|
||||
- enable-gpios = <&pmc8380_3_gpios 4 GPIO_ACTIVE_HIGH>;
|
||||
+ backlight = <&backlight>;
|
||||
power-supply = <&vreg_edp_3p3>;
|
||||
|
||||
- pinctrl-0 = <&edp_bl_en>;
|
||||
- pinctrl-names = "default";
|
||||
-
|
||||
port {
|
||||
edp_panel_in: endpoint {
|
||||
remote-endpoint = <&mdss_dp3_out>;
|
||||
@@ -849,6 +854,17 @@ rtmr0_1p15_reg_en: rtmr0-1p15-reg-en-state {
|
||||
};
|
||||
};
|
||||
|
||||
+&pmk8550_pwm {
|
||||
+ status = "okay";
|
||||
+};
|
||||
+
|
||||
+&pmk8550_gpios {
|
||||
+ edp_bl_pwm: edp-bl-pwm-state {
|
||||
+ pins = "gpio5";
|
||||
+ function = "func3";
|
||||
+ };
|
||||
+};
|
||||
+
|
||||
&qupv3_0 {
|
||||
status = "okay";
|
||||
};
|
48
patches/bluetooth.patch
Normal file
48
patches/bluetooth.patch
Normal file
@ -0,0 +1,48 @@
|
||||
diff --git a/arch/arm64/boot/dts/qcom/x1e78100-lenovo-thinkpad-t14s.dts b/arch/arm64/boot/dts/qcom/x1e78100-lenovo-thinkpad-t14s.dts
|
||||
index 04d6983ca8f3..0bb3ca93cfaa 100644
|
||||
--- a/arch/arm64/boot/dts/qcom/x1e78100-lenovo-thinkpad-t14s.dts
|
||||
+++ b/arch/arm64/boot/dts/qcom/x1e78100-lenovo-thinkpad-t14s.dts
|
||||
@@ -19,6 +19,11 @@ / {
|
||||
compatible = "lenovo,thinkpad-t14s", "qcom,x1e78100", "qcom,x1e80100";
|
||||
chassis-type = "laptop";
|
||||
|
||||
+ aliases {
|
||||
+ serial0 = &uart21;
|
||||
+ serial1 = &uart14;
|
||||
+ };
|
||||
+
|
||||
gpio-keys {
|
||||
compatible = "gpio-keys";
|
||||
|
||||
@@ -1013,6 +1018,31 @@ wcd_default: wcd-reset-n-active-state {
|
||||
bias-disable;
|
||||
output-low;
|
||||
};
|
||||
+
|
||||
+ bt_en_default: bt-en-sleep {
|
||||
+ pins = "gpio116";
|
||||
+ function = "gpio";
|
||||
+ output-low;
|
||||
+ bias-disable;
|
||||
+ qcom,drive-strength = <16>;
|
||||
+ };
|
||||
+};
|
||||
+
|
||||
+&uart14 {
|
||||
+ status = "okay";
|
||||
+
|
||||
+ bluetooth: bt_wcn7850 {
|
||||
+ compatible = "qcom,wcn7850-bt";
|
||||
+ pinctrl-names = "default";
|
||||
+ pinctrl-0 = <&bt_en_default>;
|
||||
+ enable-gpios = <&tlmm 116 GPIO_ACTIVE_HIGH>;
|
||||
+ max-speed = <3200000>;
|
||||
+ };
|
||||
+};
|
||||
+
|
||||
+&uart21 {
|
||||
+ compatible = "qcom,geni-debug-uart";
|
||||
+ status = "okay";
|
||||
};
|
||||
|
||||
&usb_1_ss0_hsphy {
|
27
patches/disable-type-c-dp.patch
Normal file
27
patches/disable-type-c-dp.patch
Normal file
@ -0,0 +1,27 @@
|
||||
diff --git a/arch/arm64/boot/dts/qcom/x1e78100-lenovo-thinkpad-t14s.dts b/arch/arm64/boot/dts/qcom/x1e78100-lenovo-thinkpad-t14s.dts
|
||||
index 04d6983ca8f3..998cb8920dbc 100644
|
||||
--- a/arch/arm64/boot/dts/qcom/x1e78100-lenovo-thinkpad-t14s.dts
|
||||
+++ b/arch/arm64/boot/dts/qcom/x1e78100-lenovo-thinkpad-t14s.dts
|
||||
@@ -719,22 +719,6 @@ &mdss {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
-&mdss_dp0 {
|
||||
- status = "okay";
|
||||
-};
|
||||
-
|
||||
-&mdss_dp0_out {
|
||||
- data-lanes = <0 1 2 3>;
|
||||
-};
|
||||
-
|
||||
-&mdss_dp1 {
|
||||
- status = "okay";
|
||||
-};
|
||||
-
|
||||
-&mdss_dp1_out {
|
||||
- data-lanes = <0 1 2 3>;
|
||||
-};
|
||||
-
|
||||
&mdss_dp3 {
|
||||
compatible = "qcom,x1e80100-dp";
|
||||
/delete-property/ #sound-dai-cells;
|
Reference in New Issue
Block a user