Commit 24b7616a authored by Abel Vesa's avatar Abel Vesa Committed by Bjorn Andersson

arm64: dts: qcom: x1e80100-crd: Add pmic-glink node with all 3 connectors

Add the pmic-glink node and describe all 3 USB Type-C connectors. Do this
for USB only, for now. The DP ports will come at a later stage since
they use retimers.
Signed-off-by: default avatarAbel Vesa <abel.vesa@linaro.org>
Reviewed-by: default avatarKonrad Dybcio <konrad.dybcio@linaro.org>
Reviewed-by: default avatarDmitry Baryshkov <dmitry.baryshkov@linaro.org>
Link: https://lore.kernel.org/r/20240606-x1e80100-dts-pmic-glink-v2-2-972c902e3e6b@linaro.orgSigned-off-by: default avatarBjorn Andersson <andersson@kernel.org>
parent aa48a8a5
...@@ -49,6 +49,104 @@ chosen { ...@@ -49,6 +49,104 @@ chosen {
stdout-path = "serial0:115200n8"; stdout-path = "serial0:115200n8";
}; };
pmic-glink {
compatible = "qcom,x1e80100-pmic-glink",
"qcom,sm8550-pmic-glink",
"qcom,pmic-glink";
#address-cells = <1>;
#size-cells = <0>;
orientation-gpios = <&tlmm 121 GPIO_ACTIVE_HIGH>,
<&tlmm 123 GPIO_ACTIVE_HIGH>,
<&tlmm 125 GPIO_ACTIVE_HIGH>;
/* Left-side rear port */
connector@0 {
compatible = "usb-c-connector";
reg = <0>;
power-role = "dual";
data-role = "dual";
ports {
#address-cells = <1>;
#size-cells = <0>;
port@0 {
reg = <0>;
pmic_glink_ss0_hs_in: endpoint {
remote-endpoint = <&usb_1_ss0_dwc3_hs>;
};
};
port@1 {
reg = <1>;
pmic_glink_ss0_ss_in: endpoint {
remote-endpoint = <&usb_1_ss0_qmpphy_out>;
};
};
};
};
/* Left-side front port */
connector@1 {
compatible = "usb-c-connector";
reg = <1>;
power-role = "dual";
data-role = "dual";
ports {
#address-cells = <1>;
#size-cells = <0>;
port@0 {
reg = <0>;
pmic_glink_ss1_hs_in: endpoint {
remote-endpoint = <&usb_1_ss1_dwc3_hs>;
};
};
port@1 {
reg = <1>;
pmic_glink_ss1_ss_in: endpoint {
remote-endpoint = <&usb_1_ss1_qmpphy_out>;
};
};
};
};
/* Right-side port */
connector@2 {
compatible = "usb-c-connector";
reg = <2>;
power-role = "dual";
data-role = "dual";
ports {
#address-cells = <1>;
#size-cells = <0>;
port@0 {
reg = <0>;
pmic_glink_ss2_hs_in: endpoint {
remote-endpoint = <&usb_1_ss2_dwc3_hs>;
};
};
port@1 {
reg = <1>;
pmic_glink_ss2_ss_in: endpoint {
remote-endpoint = <&usb_1_ss2_qmpphy_out>;
};
};
};
};
};
reserved-memory { reserved-memory {
linux,cma { linux,cma {
compatible = "shared-dma-pool"; compatible = "shared-dma-pool";
...@@ -915,6 +1013,14 @@ &usb_1_ss0_dwc3 { ...@@ -915,6 +1013,14 @@ &usb_1_ss0_dwc3 {
dr_mode = "host"; dr_mode = "host";
}; };
&usb_1_ss0_dwc3_hs {
remote-endpoint = <&pmic_glink_ss0_hs_in>;
};
&usb_1_ss0_qmpphy_out {
remote-endpoint = <&pmic_glink_ss0_ss_in>;
};
&usb_1_ss1_hsphy { &usb_1_ss1_hsphy {
vdd-supply = <&vreg_l2e_0p8>; vdd-supply = <&vreg_l2e_0p8>;
vdda12-supply = <&vreg_l2j_1p2>; vdda12-supply = <&vreg_l2j_1p2>;
...@@ -939,6 +1045,14 @@ &usb_1_ss1_dwc3 { ...@@ -939,6 +1045,14 @@ &usb_1_ss1_dwc3 {
dr_mode = "host"; dr_mode = "host";
}; };
&usb_1_ss1_dwc3_hs {
remote-endpoint = <&pmic_glink_ss1_hs_in>;
};
&usb_1_ss1_qmpphy_out {
remote-endpoint = <&pmic_glink_ss1_ss_in>;
};
&usb_1_ss2_hsphy { &usb_1_ss2_hsphy {
vdd-supply = <&vreg_l2e_0p8>; vdd-supply = <&vreg_l2e_0p8>;
vdda12-supply = <&vreg_l2j_1p2>; vdda12-supply = <&vreg_l2j_1p2>;
...@@ -962,3 +1076,11 @@ &usb_1_ss2 { ...@@ -962,3 +1076,11 @@ &usb_1_ss2 {
&usb_1_ss2_dwc3 { &usb_1_ss2_dwc3 {
dr_mode = "host"; dr_mode = "host";
}; };
&usb_1_ss2_dwc3_hs {
remote-endpoint = <&pmic_glink_ss2_hs_in>;
};
&usb_1_ss2_qmpphy_out {
remote-endpoint = <&pmic_glink_ss2_ss_in>;
};
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment