]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
arm64: dts: qcom: qcs8300: add display dt nodes for MDSS, DPU, DisplayPort and eDP PHY
authorYongxing Mou <yongxing.mou@oss.qualcomm.com>
Mon, 17 Nov 2025 06:49:32 +0000 (14:49 +0800)
committerBjorn Andersson <andersson@kernel.org>
Sat, 3 Jan 2026 17:33:20 +0000 (11:33 -0600)
Add devicetree changes to enable MDSS display-subsystem,
display-controller(DPU), DisplayPort controller and eDP PHY for
Qualcomm QCS8300 platform.

Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
Signed-off-by: Yongxing Mou <yongxing.mou@oss.qualcomm.com>
Link: https://lore.kernel.org/r/20251117-dts_qcs8300-v7-1-bf42d39e7828@oss.qualcomm.com
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
arch/arm64/boot/dts/qcom/monaco.dtsi

index 2b86a6baae013428264e316cdcf17b493af565e6..c389135f86cebf8f77ef67adc330f57ee16feebf 100644 (file)
                        #power-domain-cells = <1>;
                };
 
+               mdss: display-subsystem@ae00000 {
+                       compatible = "qcom,qcs8300-mdss";
+                       reg = <0x0 0x0ae00000 0x0 0x1000>;
+                       reg-names = "mdss";
+
+                       interrupts = <GIC_SPI 92 IRQ_TYPE_LEVEL_HIGH>;
+
+                       clocks = <&dispcc MDSS_DISP_CC_MDSS_AHB_CLK>,
+                                <&gcc GCC_DISP_HF_AXI_CLK>,
+                                <&dispcc MDSS_DISP_CC_MDSS_MDP_CLK>;
+
+                       resets = <&dispcc MDSS_DISP_CC_MDSS_CORE_BCR>;
+
+                       interconnects = <&mmss_noc MASTER_MDP0 QCOM_ICC_TAG_ALWAYS
+                                        &mc_virt SLAVE_EBI1 QCOM_ICC_TAG_ALWAYS>,
+                                       <&mmss_noc MASTER_MDP1 QCOM_ICC_TAG_ALWAYS
+                                        &mc_virt SLAVE_EBI1 QCOM_ICC_TAG_ALWAYS>,
+                                       <&gem_noc MASTER_APPSS_PROC QCOM_ICC_TAG_ACTIVE_ONLY
+                                        &config_noc SLAVE_DISPLAY_CFG QCOM_ICC_TAG_ACTIVE_ONLY>;
+                       interconnect-names = "mdp0-mem",
+                                            "mdp1-mem",
+                                            "cpu-cfg";
+
+                       power-domains = <&dispcc MDSS_DISP_CC_MDSS_CORE_GDSC>;
+
+                       iommus = <&apps_smmu 0x1000 0x402>;
+
+                       interrupt-controller;
+                       #interrupt-cells = <1>;
+
+                       #address-cells = <2>;
+                       #size-cells = <2>;
+                       ranges;
+
+                       status = "disabled";
+
+                       mdss_mdp: display-controller@ae01000 {
+                               compatible = "qcom,qcs8300-dpu", "qcom,sa8775p-dpu";
+                               reg = <0x0 0x0ae01000 0x0 0x8f000>,
+                                     <0x0 0x0aeb0000 0x0 0x2008>;
+                               reg-names = "mdp", "vbif";
+
+                               interrupts-extended = <&mdss 0>;
+
+                               clocks = <&gcc GCC_DISP_HF_AXI_CLK>,
+                                        <&dispcc MDSS_DISP_CC_MDSS_AHB_CLK>,
+                                        <&dispcc MDSS_DISP_CC_MDSS_MDP_LUT_CLK>,
+                                        <&dispcc MDSS_DISP_CC_MDSS_MDP_CLK>,
+                                        <&dispcc MDSS_DISP_CC_MDSS_VSYNC_CLK>;
+                               clock-names = "nrt_bus",
+                                             "iface",
+                                             "lut",
+                                             "core",
+                                             "vsync";
+
+                               assigned-clocks = <&dispcc MDSS_DISP_CC_MDSS_VSYNC_CLK>;
+                               assigned-clock-rates = <19200000>;
+
+                               operating-points-v2 = <&mdp_opp_table>;
+                               power-domains = <&rpmhpd RPMHPD_MMCX>;
+
+                               ports {
+                                       #address-cells = <1>;
+                                       #size-cells = <0>;
+
+                                       port@0 {
+                                               reg = <0>;
+
+                                               dpu_intf0_out: endpoint {
+                                                       remote-endpoint = <&mdss_dp0_in>;
+                                               };
+                                       };
+                               };
+
+                               mdp_opp_table: opp-table {
+                                       compatible = "operating-points-v2";
+
+                                       opp-375000000 {
+                                               opp-hz = /bits/ 64 <375000000>;
+                                               required-opps = <&rpmhpd_opp_svs_l1>;
+                                       };
+
+                                       opp-500000000 {
+                                               opp-hz = /bits/ 64 <500000000>;
+                                               required-opps = <&rpmhpd_opp_nom>;
+                                       };
+
+                                       opp-575000000 {
+                                               opp-hz = /bits/ 64 <575000000>;
+                                               required-opps = <&rpmhpd_opp_turbo>;
+                                       };
+
+                                       opp-650000000 {
+                                               opp-hz = /bits/ 64 <650000000>;
+                                               required-opps = <&rpmhpd_opp_turbo_l1>;
+                                       };
+                               };
+                       };
+
+                       mdss_dp0_phy: phy@aec2a00 {
+                               compatible = "qcom,qcs8300-edp-phy", "qcom,sa8775p-edp-phy";
+
+                               reg = <0x0 0x0aec2a00 0x0 0x19c>,
+                                     <0x0 0x0aec2200 0x0 0xec>,
+                                     <0x0 0x0aec2600 0x0 0xec>,
+                                     <0x0 0x0aec2000 0x0 0x1c8>;
+
+                               clocks = <&dispcc MDSS_DISP_CC_MDSS_DPTX0_AUX_CLK>,
+                                        <&dispcc MDSS_DISP_CC_MDSS_AHB_CLK>;
+                               clock-names = "aux",
+                                             "cfg_ahb";
+
+                               power-domains = <&rpmhpd RPMHPD_MX>;
+
+                               #clock-cells = <1>;
+                               #phy-cells = <0>;
+
+                               status = "disabled";
+                       };
+
+                       mdss_dp0: displayport-controller@af54000 {
+                               compatible = "qcom,qcs8300-dp", "qcom,sa8775p-dp";
+
+                               reg = <0x0 0x0af54000 0x0 0x200>,
+                                     <0x0 0x0af54200 0x0 0x200>,
+                                     <0x0 0x0af55000 0x0 0xc00>,
+                                     <0x0 0x0af56000 0x0 0x09c>,
+                                     <0x0 0x0af57000 0x0 0x09c>,
+                                     <0x0 0x0af58000 0x0 0x09c>,
+                                     <0x0 0x0af59000 0x0 0x09c>,
+                                     <0x0 0x0af5a000 0x0 0x23c>,
+                                     <0x0 0x0af5b000 0x0 0x23c>;
+
+                               interrupts-extended = <&mdss 12>;
+
+                               clocks = <&dispcc MDSS_DISP_CC_MDSS_AHB_CLK>,
+                                        <&dispcc MDSS_DISP_CC_MDSS_DPTX0_AUX_CLK>,
+                                        <&dispcc MDSS_DISP_CC_MDSS_DPTX0_LINK_CLK>,
+                                        <&dispcc MDSS_DISP_CC_MDSS_DPTX0_LINK_INTF_CLK>,
+                                        <&dispcc MDSS_DISP_CC_MDSS_DPTX0_PIXEL0_CLK>,
+                                        <&dispcc MDSS_DISP_CC_MDSS_DPTX0_PIXEL1_CLK>,
+                                        <&dispcc MDSS_DISP_CC_MDSS_DPTX0_PIXEL2_CLK>,
+                                        <&dispcc MDSS_DISP_CC_MDSS_DPTX0_PIXEL3_CLK>;
+                               clock-names = "core_iface",
+                                             "core_aux",
+                                             "ctrl_link",
+                                             "ctrl_link_iface",
+                                             "stream_pixel",
+                                             "stream_1_pixel",
+                                             "stream_2_pixel",
+                                             "stream_3_pixel";
+                               assigned-clocks = <&dispcc MDSS_DISP_CC_MDSS_DPTX0_LINK_CLK_SRC>,
+                                                 <&dispcc MDSS_DISP_CC_MDSS_DPTX0_PIXEL0_CLK_SRC>,
+                                                 <&dispcc MDSS_DISP_CC_MDSS_DPTX0_PIXEL1_CLK_SRC>,
+                                                 <&dispcc MDSS_DISP_CC_MDSS_DPTX0_PIXEL2_CLK_SRC>,
+                                                 <&dispcc MDSS_DISP_CC_MDSS_DPTX0_PIXEL3_CLK_SRC>;
+                               assigned-clock-parents = <&mdss_dp0_phy 0>,
+                                                        <&mdss_dp0_phy 1>,
+                                                        <&mdss_dp0_phy 1>,
+                                                        <&mdss_dp0_phy 1>,
+                                                        <&mdss_dp0_phy 1>;
+                               phys = <&mdss_dp0_phy>;
+                               phy-names = "dp";
+
+                               operating-points-v2 = <&dp_opp_table>;
+                               power-domains = <&rpmhpd RPMHPD_MMCX>;
+
+                               #sound-dai-cells = <0>;
+
+                               status = "disabled";
+
+                               ports {
+                                       #address-cells = <1>;
+                                       #size-cells = <0>;
+
+                                       port@0 {
+                                               reg = <0>;
+
+                                               mdss_dp0_in: endpoint {
+                                                       remote-endpoint = <&dpu_intf0_out>;
+                                               };
+                                       };
+
+                                       port@1 {
+                                               reg = <1>;
+
+                                               mdss_dp0_out: endpoint { };
+                                       };
+                               };
+
+                               dp_opp_table: opp-table {
+                                       compatible = "operating-points-v2";
+
+                                       opp-160000000 {
+                                               opp-hz = /bits/ 64 <160000000>;
+                                               required-opps = <&rpmhpd_opp_low_svs>;
+                                       };
+
+                                       opp-270000000 {
+                                               opp-hz = /bits/ 64 <270000000>;
+                                               required-opps = <&rpmhpd_opp_svs>;
+                                       };
+
+                                       opp-540000000 {
+                                               opp-hz = /bits/ 64 <540000000>;
+                                               required-opps = <&rpmhpd_opp_svs_l1>;
+                                       };
+
+                                       opp-810000000 {
+                                               opp-hz = /bits/ 64 <810000000>;
+                                               required-opps = <&rpmhpd_opp_nom>;
+                                       };
+                               };
+                       };
+               };
+
                dispcc: clock-controller@af00000 {
                        compatible = "qcom,sa8775p-dispcc0";
                        reg = <0x0 0x0af00000 0x0 0x20000>;
                                 <&rpmhcc RPMH_CXO_CLK>,
                                 <&rpmhcc RPMH_CXO_CLK_A>,
                                 <&sleep_clk>,
-                                <0>, <0>, <0>, <0>,
+                                <&mdss_dp0_phy 0>,
+                                <&mdss_dp0_phy 1>,
+                                <0>, <0>,
                                 <0>, <0>, <0>, <0>;
                        power-domains = <&rpmhpd RPMHPD_MMCX>;
                        #clock-cells = <1>;