Files
BPI-CM9-Linux/build/patch/kernel/archive/sm8250-6.19/0034-arm64-dts-qcom-sm8250-lenovo-q706f-clean-up-devicetr.patch

536 lines
11 KiB
Diff

From 52459011614742b08c1bc19ee95be08e3d4ddc4d Mon Sep 17 00:00:00 2001
From: chalkin <chalkin@yeah.net>
Date: Mon, 13 Jan 2025 17:57:32 +0800
Subject: [PATCH 34/62] arm64: dts: qcom: sm8250-lenovo-q706f: clean up
devicetree
Signed-off-by: Jiali Chen <chenjiali@radxa.com>
---
.../boot/dts/qcom/sm8250-lenovo-q706f.dts | 406 +-----------------
1 file changed, 3 insertions(+), 403 deletions(-)
diff --git a/arch/arm64/boot/dts/qcom/sm8250-lenovo-q706f.dts b/arch/arm64/boot/dts/qcom/sm8250-lenovo-q706f.dts
index 86a4885d1b57..14dd97f7a612 100644
--- a/arch/arm64/boot/dts/qcom/sm8250-lenovo-q706f.dts
+++ b/arch/arm64/boot/dts/qcom/sm8250-lenovo-q706f.dts
@@ -49,29 +49,6 @@ battery: battery {
voltage-min-design-microvolt = <3870000>;
};
- // wcd938x: audio-codec {
- // compatible = "qcom,wcd9380-codec";
-
- // reset-gpios = <&tlmm 32 GPIO_ACTIVE_LOW>;
-
- // vdd-buck-supply = <&vreg_s4a_1p8>;
- // vdd-rxtx-supply = <&vreg_s4a_1p8>;
- // vdd-io-supply = <&vreg_s4a_1p8>;
- // vdd-mic-bias-supply = <&vreg_bob>;
-
- // qcom,micbias1-microvolt = <1800000>;
- // qcom,micbias2-microvolt = <1800000>;
- // qcom,micbias3-microvolt = <1800000>;
- // qcom,micbias4-microvolt = <1800000>;
- // qcom,mbhc-buttons-vthreshold-microvolt = <75000 150000 237000 500000 500000 500000 500000 500000>;
- // qcom,mbhc-headset-vthreshold-microvolt = <1700000>;
- // qcom,mbhc-headphone-vthreshold-microvolt = <50000>;
- // qcom,rx-device = <&wcd_rx>;
- // qcom,tx-device = <&wcd_tx>;
-
- // #sound-dai-cells = <1>;
- // };
-
gpio-keys {
compatible = "gpio-keys";
@@ -210,30 +187,6 @@ usb_vbus_5p0: usb-vbus-5p0-regulator {
gpio = <&pm8150b_gpios 8 GPIO_ACTIVE_HIGH>;
};
- // cam0_dvdd_1v2: cam0-dvdd-1v2-regulator {
- // compatible = "regulator-fixed";
- // regulator-name = "CAM0_DVDD_1V2";
- // regulator-min-microvolt = <1200000>;
- // regulator-max-microvolt = <1200000>;
- // enable-active-high;
- // gpio = <&pm8998_gpios 12 GPIO_ACTIVE_HIGH>;
- // pinctrl-names = "default";
- // pinctrl-0 = <&cam0_dvdd_1v2_en_default>;
- // vin-supply = <&vbat>;
- // };
-
- // cam0_avdd_2v8: cam0-avdd-2v8-regulator {
- // compatible = "regulator-fixed";
- // regulator-name = "CAM0_AVDD_2V8";
- // regulator-min-microvolt = <2800000>;
- // regulator-max-microvolt = <2800000>;
- // enable-active-high;
- // gpio = <&pm8998_gpios 10 GPIO_ACTIVE_HIGH>;
- // pinctrl-names = "default";
- // pinctrl-0 = <&cam0_avdd_2v8_en_default>;
- // vin-supply = <&vbat>;
- // };
-
qca6390-pmu {
compatible = "qcom,qca6390-pmu";
@@ -672,61 +625,6 @@ vreg_l11c_3p3: ldo11 {
};
};
-// &camcc {
-// status = "okay";
-// };
-
-// &camss {
-// vdda-phy-supply = <&vreg_l5a_0p88>;
-// vdda-pll-supply = <&vreg_l9a_1p2>;
-// status = "okay";
-
-// ports {
-// /* The port index denotes CSIPHY id i.e. csiphy0 */
-// port@0 {
-// csiphy0_ep: endpoint {
-// data-lanes = <0 1 2 3>;
-// remote-endpoint = <&camera1_ep>;
-// };
-// };
-// };
-// };
-
-// &cci0 {
-// assigned-clocks = <&camcc CAM_CC_CCI_1_CLK_SRC>,
-// <&camcc CAM_CC_CCI_1_CLK>;
-// assigned-clock-rates = <37500000>,
-// <0>;
-
-// status = "okay";
-// };
-
-// &cci0_i2c1 {
-// camera_front: camera@10 {
-// compatible = "ovti,ov8856";
-// reg = <0x10>;
-// pinctrl-names = "default", "suspend";
-// pinctrl-0 = <&cam0_default>;
-// pinctrl-1 = <&cam0_suspend>;
-// clocks = <&camcc CAM_CC_MCLK0_CLK>;
-// assigned-clocks = <&camcc CAM_CC_MCLK0_CLK>;
-// assigned-clock-rates = <19200000>;
-// reset-gpios = <&pm8150_gpios 1 GPIO_ACTIVE_LOW>;
-// vdda-supply = <&camera_front_vana>;
-// vddd-supply = <&vreg_l2c_1p2>;
-// vddio-supply = <&vreg_l1c_1p8>;
-
-// port {
-// camera1_ep: endpoint {
-// link-frequencies = /bits/ 64
-// <360000000 180000000>;
-// data-lanes = <1 2 3 4>;
-// remote-endpoint = <&csiphy0_ep>;
-// };
-// };
-// };
-// };
-
&cdsp {
status = "okay";
firmware-name = "qcom/sm8250/q706f/cdsp.mbn";
@@ -819,14 +717,6 @@ redriver_phy_con_ss: endpoint {
data-lanes = <0 1 2 3>;
};
};
-
- // port@2 {
- // reg = <2>;
-
- // redriver_usb_con_sbu: endpoint {
- // remote-endpoint = <&pm8150b_typec_sbu_out>;
- // };
- // };
};
};
/* FSA4480 USB audio switch @ 43 */
@@ -975,102 +865,6 @@ led-0 {
};
};
-&lpass_tlmm {
- // gpio-reserved-ranges = <0 14>;
-
- // lpi_i2s2: lpi-i2s2-active-state {
- // sck-pins {
- // pins = "gpio10";
- // function = "i2s2_clk";
- // drive-strength = <8>;
- // bias-disable;
- // output-high;
- // };
-
- // din-pins {
- // pins = "gpio12";
- // function = "i2s2_data";
- // drive-strength = <8>;
- // bias-disable;
- // };
-
- // ws-pins {
- // pins = "gpio11";
- // function = "i2s2_ws";
- // drive-strength = <8>;
- // bias-disable;
- // output-high;
- // };
-
- // dout-pins {
- // pins = "gpio13";
- // function = "i2s2_data";
- // drive-strength = <8>;
- // bias-disable;
- // };
- // };
- // lpi_i2s2_sck_active {
- // phandle = <0x700>;
-
- // mux {
- // pins = "gpio10";
- // function = "func1";
- // };
-
- // config {
- // pins = "gpio10";
- // drive-strength = <0x08>;
- // bias-disable;
- // output-high;
- // };
- // };
- // lpi_i2s2_ws_active {
- // phandle = <0x701>;
-
- // mux {
- // pins = "gpio11";
- // function = "func1";
- // };
-
- // config {
- // pins = "gpio11";
- // drive-strength = <0x08>;
- // bias-disable;
- // output-high;
- // };
- // };
- // lpi_i2s2_sd0_active {
- // phandle = <0x702>;
-
- // mux {
- // pins = "gpio12";
- // function = "func2";
- // };
-
- // config {
- // pins = "gpio12";
- // drive-strength = <0x08>;
- // bias-disable;
- // output-high;
- // };
- // };
- // lpi_i2s2_sd1_active {
- // phandle = <0x703>;
-
- // mux {
- // pins = "gpio13";
- // function = "func2";
- // };
-
- // config {
- // pins = "gpio13";
- // drive-strength = <0x08>;
- // bias-disable;
- // output-high;
- // };
- // };
-};
-
&mdss {
status = "okay";
};
@@ -1128,7 +922,6 @@ &pcie0_phy {
vdda-phy-supply = <&vreg_l5a_0p88>;
vdda-pll-supply = <&vreg_l9a_1p2>;
/* Power on QCA639x chip, otherwise PCIe bus timeouts */
- // power-domains = <&qca639x>;
};
&pcieport0 {
@@ -1244,25 +1037,6 @@ vol_up_n: vol-up-n-state {
input-enable;
bias-pull-up;
};
-
-
- // cam0_dvdd_1v2_en_default: cam0-dvdd-1v2-en-state {
- // pins = "gpio12";
- // function = "normal";
-
- // bias-pull-up;
- // drive-push-pull;
- // qcom,drive-strength = <PMIC_GPIO_STRENGTH_HIGH>;
- // };
-
- // cam0_avdd_2v8_en_default: cam0-avdd-2v8-en-state {
- // pins = "gpio10";
- // function = "normal";
-
- // bias-pull-up;
- // drive-push-pull;
- // qcom,drive-strength = <PMIC_GPIO_STRENGTH_HIGH>;
- // };
};
&pm8150b_gpios {
@@ -1404,31 +1178,7 @@ &qupv3_id_1 {
&qupv3_id_2 {
status = "okay";
};
-// &q6asmdai {
-// dai@0 {
-// reg = <0>;
-// };
-
-// dai@1 {
-// reg = <1>;
-// };
-
-// dai@2 {
-// reg = <2>;
-// };
-// dai@3 {
-// reg = <3>;
-// };
-
-// dai@4 {
-// reg = <4>;
-// };
-
-// dai@5 {
-// reg = <5>;
-// };
-// };
&sdhc_2 {
status = "okay";
@@ -1443,15 +1193,7 @@ &sdhc_2 {
};
&q6afedai {
- // dai@24 {
- // reg = <PRIMARY_TDM_RX_0>;
- // qcom,tdm-sync-mode = <0>;
- // qcom,tdm-sync-src = <1>;
- // qcom,tdm-data-out = <0>;
- // qcom,tdm-invert-sync = <1>;
- // qcom,tdm-data-delay = <1>;
- // qcom,tdm-data-align = <0>;
- // };
+
dai@24 {
reg = <PRIMARY_TDM_RX_0>;
qcom,tdm-sync-mode = <0>;
@@ -1461,15 +1203,6 @@ dai@24 {
qcom,tdm-data-delay = <1>;
qcom,tdm-data-align = <0>;
};
- // dai@56 {
- // reg = <TERTIARY_TDM_RX_0>;
- // qcom,tdm-sync-mode = <0>;
- // qcom,tdm-sync-src = <1>;
- // qcom,tdm-data-out = <0>;
- // qcom,tdm-invert-sync = <1>;
- // qcom,tdm-data-delay = <1>;
- // qcom,tdm-data-align = <0>;
- // };
};
&q6asmdai {
@@ -1484,16 +1217,12 @@ &slpi {
firmware-name = "qcom/sm8250/q706f/slpi.mbn";
};
-// &rxmacro {
-// status = "okay";
-// };
-
&sound {
compatible = "qcom,sm8250-sndcard";
model = "Xiaoxin Pad Pro";
pinctrl-names = "default";
pinctrl-0 = <&pri_tdm_active>;
- // pinctrl-0 = <&tert_tdm_active>;
+
mm1-dai-link {
link-name = "MultiMedia1";
@@ -1519,87 +1248,7 @@ codec {
};
};
};
-// &sound {
-// compatible = "qcom,sm8250-sndcard";
-// model = "Xiaoxin Pad Pro";
-
-// mm1-dai-link {
-// link-name = "MultiMedia1";
-// cpu {
-// sound-dai = <&q6asmdai MSM_FRONTEND_DAI_MULTIMEDIA1>;
-// };
-// };
-
-// mm2-dai-link {
-// link-name = "MultiMedia2";
-// cpu {
-// sound-dai = <&q6asmdai MSM_FRONTEND_DAI_MULTIMEDIA2>;
-// };
-// };
-
-// mm3-dai-link {
-// link-name = "MultiMedia3";
-// cpu {
-// sound-dai = <&q6asmdai MSM_FRONTEND_DAI_MULTIMEDIA3>;
-// };
-// };
-
-// wcd-playback-dai-link {
-// link-name = "WCD Playback";
-// cpu {
-// sound-dai = <&q6afedai RX_CODEC_DMA_RX_0>;
-// };
-// codec {
-// sound-dai = <&wcd938x 0>, <&swr1 0>, <&rxmacro 0>;
-// };
-// platform {
-// sound-dai = <&q6routing>;
-// };
-// };
-
-// wcd-capture-dai-link {
-// link-name = "WCD Capture";
-// cpu {
-// sound-dai = <&q6afedai TX_CODEC_DMA_TX_3>;
-// };
-
-// codec {
-// sound-dai = <&wcd938x 1>, <&swr2 0>, <&txmacro 0>;
-// };
-// platform {
-// sound-dai = <&q6routing>;
-// };
-// };
-
-// wsa-dai-link {
-// link-name = "WSA Playback";
-// cpu {
-// sound-dai = <&q6afedai WSA_CODEC_DMA_RX_0>;
-// };
-
-// codec {
-// sound-dai = <&wsamacro 0>, <&cs35l45_spk1 0>,<&cs35l45_spk2 0>;
-// };
-// platform {
-// sound-dai = <&q6routing>;
-// };
-// };
-
-// va-dai-link {
-// link-name = "VA Capture";
-// cpu {
-// sound-dai = <&q6afedai VA_CODEC_DMA_TX_0>;
-// };
-
-// platform {
-// sound-dai = <&q6routing>;
-// };
-
-// codec {
-// sound-dai = <&vamacro 0>;
-// };
-// };
-// };
+
&spi13 {
status = "okay";
pinctrl-names = "default";
@@ -1628,47 +1277,6 @@ touchscreen@0 {
};
};
-// &swr0 {
-// status = "okay";
-
-// left_spkr: speaker@0,3 {
-// compatible = "sdw10217211000";
-// reg = <0 3>;
-// powerdown-gpios = <&tlmm 26 GPIO_ACTIVE_LOW>;
-// #thermal-sensor-cells = <0>;
-// sound-name-prefix = "SpkrLeft";
-// #sound-dai-cells = <0>;
-// };
-
-// right_spkr: speaker@0,4 {
-// compatible = "sdw10217211000";
-// reg = <0 4>;
-// powerdown-gpios = <&tlmm 127 GPIO_ACTIVE_LOW>;
-// #thermal-sensor-cells = <0>;
-// sound-name-prefix = "SpkrRight";
-// #sound-dai-cells = <0>;
-// };
-// };
-
-// &swr1 {
-// status = "okay";
-
-// wcd_rx: wcd9380-rx@0,4 {
-// compatible = "sdw20217010d00";
-// reg = <0 4>;
-// qcom,rx-port-mapping = <1 2 3 4 5>;
-// };
-// };
-
-// &swr2 {
-// status = "okay";
-
-// wcd_tx: wcd9380-tx@0,3 {
-// compatible = "sdw20217010d00";
-// reg = <0 3>;
-// qcom,tx-port-mapping = <2 3 4 5>;
-// };
-// };
&tlmm {
gpio-reserved-ranges = <40 4>;
@@ -1787,8 +1395,6 @@ cs35l45_4_irq_default: cs35l45-4-irq-default {
cs35l45_reset_default: cs35l45-reset-default {
pins = "gpio127";
- // drive-strength = <0x02>;
- // bias-pull-up;
drive-strength = <8>;
bias-disable;
output-high;
@@ -1918,12 +1524,6 @@ wcd938x_reset_sleep: wcd938x-reset-sleep-state {
output-low;
};
};
-// &txmacro {
-// status = "okay";
-// };
-// &wsamacro {
-// status = "okay";
-// };
&uart6 {
status = "okay";
--
2.47.3