]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
arm64: dts: qcom: qcs615-ride: Enable PCIe interface
authorKrishna chaitanya chundru <quic_krichai@quicinc.com>
Fri, 25 Jul 2025 11:23:46 +0000 (19:23 +0800)
committerBjorn Andersson <andersson@kernel.org>
Mon, 11 Aug 2025 18:22:44 +0000 (13:22 -0500)
Add platform configurations in devicetree for PCIe, board related
gpios, PMIC regulators, etc.

Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
Signed-off-by: Krishna chaitanya chundru <quic_krichai@quicinc.com>
Signed-off-by: Ziyue Zhang <ziyue.zhang@oss.qualcomm.com>
Link: https://lore.kernel.org/r/20250725112346.614316-3-ziyue.zhang@oss.qualcomm.com
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
arch/arm64/boot/dts/qcom/qcs615-ride.dts

index fdad6388f6f7172ba5528593326248b4f9a8c501..2dd26267ba2e64e9d02532bf94da505b0301371d 100644 (file)
                 <&sleep_clk>;
 };
 
+&pcie {
+       perst-gpios = <&tlmm 101 GPIO_ACTIVE_LOW>;
+       wake-gpios = <&tlmm 100 GPIO_ACTIVE_HIGH>;
+
+       pinctrl-0 = <&pcie_default_state>;
+       pinctrl-names = "default";
+
+       status = "okay";
+};
+
+&pcie_phy {
+       vdda-phy-supply = <&vreg_l5a>;
+       vdda-pll-supply = <&vreg_l12a>;
+
+       status = "okay";
+};
+
 &pm8150_gpios {
        usb2_en: usb2-en-state {
                pins = "gpio10";
        clocks = <&xo_board_clk>;
 };
 
+&tlmm {
+       pcie_default_state: pcie-default-state {
+               clkreq-pins {
+                       pins = "gpio90";
+                       function = "pcie_clk_req";
+                       drive-strength = <2>;
+                       bias-pull-up;
+               };
+
+               perst-pins {
+                       pins = "gpio101";
+                       function = "gpio";
+                       drive-strength = <2>;
+                       bias-pull-down;
+               };
+
+               wake-pins {
+                       pins = "gpio100";
+                       function = "gpio";
+                       drive-strength = <2>;
+                       bias-pull-up;
+               };
+       };
+};
+
 &sdhc_1 {
        pinctrl-0 = <&sdc1_state_on>;
        pinctrl-1 = <&sdc1_state_off>;