From patchwork Sun Jul 9 04:19:22 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 700942 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8DAD8EB64DD for ; Sun, 9 Jul 2023 04:19:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229516AbjGIETe (ORCPT ); Sun, 9 Jul 2023 00:19:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40548 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229604AbjGIETc (ORCPT ); Sun, 9 Jul 2023 00:19:32 -0400 Received: from mail-lf1-x12b.google.com (mail-lf1-x12b.google.com [IPv6:2a00:1450:4864:20::12b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 51591E4A for ; Sat, 8 Jul 2023 21:19:30 -0700 (PDT) Received: by mail-lf1-x12b.google.com with SMTP id 2adb3069b0e04-4faaaa476a9so5234129e87.2 for ; Sat, 08 Jul 2023 21:19:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1688876368; x=1691468368; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=Oi8Fp0++hwDQI/DAfLZemJ+jf8MYYU/jQRwlmY9haCs=; b=VO/bld+0I0HysiI8754r00I3bCdlAyMXGQooiO2hSninRTQldu5dSqO6MtSRNUFREQ 6JJiGVZEGtu8HWLnkUSqJeGdhwxC9s1Qj5HeC9mVuhIpx+SLcW5atOAU5p7QHxIeWJ/Q U1pX/2Y91jJ4lFGhpMcMsdiF4YvTXsxu/7DZszOzY8CLnmh8XMU7vLlFU0MERba4lGeN 2YBtp1eiPtw8or9SCflcsV8tEO3HQZ8Ks5tsSFlI21pd9dQzTuTurJTMeRenP9zb1emc qqS/YJVBV3KzYjmGgwf28A7klzocYItCXnUdWayPEFZT+s9+rWwflEKbEa9C/Y31YSSS Urhg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688876368; x=1691468368; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Oi8Fp0++hwDQI/DAfLZemJ+jf8MYYU/jQRwlmY9haCs=; b=X88BPS4ZUH05Txkvy8zSnFETitZ2tEel6BqIUk6ajvrmE0/0vjYQPBt6aoJh0+Ix5v w9bOVtNWMMigRGCXceeqzNQKoxBDy9DgtRvhXyaAu3/55pt69W1N30hMbs7Vj7afXw77 xpkCmpatH7eoBmpj8MpmNM4X/HjjBO4+icGyKdD8qVpnurZlqXMj3QXz6vzZRo722IFj JKXoIyCjQcnFUgGyEvic7a5hxdoLWCnABGusVe2J5LJgyLiskAVCFAs1N1vGArp61Kba aXV4hXhbZjhOaFUjl4sl5ciKSDnrnx9k5x64Aec6fHOTle+hzbEMHpjyYu/YsMoejaQZ OjKQ== X-Gm-Message-State: ABy/qLbntcWm23VO4VddLcTk3RC3YSEITUC+N4gPLU89Lqm9ZIvDvMwq ajTfAAVzFQVU9uExB0qpgiac/Q== X-Google-Smtp-Source: APBJJlGYMixTS72MV0mt6SRAn5KiXgy0NawZbAhvAYNPp9kX+KvymVPJwyCppGhflQtHkhnxmB3klQ== X-Received: by 2002:a05:6512:3ba4:b0:4f8:8be4:8a82 with SMTP id g36-20020a0565123ba400b004f88be48a82mr8134660lfv.22.1688876368572; Sat, 08 Jul 2023 21:19:28 -0700 (PDT) Received: from lothlorien.lan (dzdqv0yyyyyyyyyyybm5y-3.rev.dnainternet.fi. [2001:14ba:a0db:1f00::ab2]) by smtp.gmail.com with ESMTPSA id r11-20020a19ac4b000000b004fb8603f6e0sm1205851lfc.12.2023.07.08.21.19.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 08 Jul 2023 21:19:28 -0700 (PDT) From: Dmitry Baryshkov To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Clark , Sean Paul , Abhinav Kumar , Marijn Suijten , Rob Herring , Krzysztof Kozlowski Cc: Stephen Boyd , David Airlie , Daniel Vetter , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org Subject: [PATCH 1/5] dt-bindings: display: msm: dp-controller: document SM8250 compatible Date: Sun, 9 Jul 2023 07:19:22 +0300 Message-Id: <20230709041926.4052245-2-dmitry.baryshkov@linaro.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230709041926.4052245-1-dmitry.baryshkov@linaro.org> References: <20230709041926.4052245-1-dmitry.baryshkov@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org It looks like DP controlled on SM8250 is the same as DP controller on SM8350. Use the SM8350 compatible as fallback for SM8250. Signed-off-by: Dmitry Baryshkov Reviewed-by: Bjorn Andersson Reviewed-by: Krzysztof Kozlowski --- Documentation/devicetree/bindings/display/msm/dp-controller.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/display/msm/dp-controller.yaml b/Documentation/devicetree/bindings/display/msm/dp-controller.yaml index 7a7cf3fb3e6d..a31ec9a4179f 100644 --- a/Documentation/devicetree/bindings/display/msm/dp-controller.yaml +++ b/Documentation/devicetree/bindings/display/msm/dp-controller.yaml @@ -28,6 +28,7 @@ properties: - qcom,sm8350-dp - items: - enum: + - qcom,sm8250-dp - qcom,sm8450-dp - qcom,sm8550-dp - const: qcom,sm8350-dp From patchwork Sun Jul 9 04:19:23 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 700941 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id CB8F4C04A6A for ; Sun, 9 Jul 2023 04:19:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229873AbjGIETf (ORCPT ); Sun, 9 Jul 2023 00:19:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40554 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229899AbjGIETc (ORCPT ); Sun, 9 Jul 2023 00:19:32 -0400 Received: from mail-lf1-x136.google.com (mail-lf1-x136.google.com [IPv6:2a00:1450:4864:20::136]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 322E5E50 for ; Sat, 8 Jul 2023 21:19:31 -0700 (PDT) Received: by mail-lf1-x136.google.com with SMTP id 2adb3069b0e04-4fb77f21c63so5063837e87.2 for ; Sat, 08 Jul 2023 21:19:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1688876369; x=1691468369; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=G37mRnxAmDfLHRjsoJiH2lfaRN1yCJAmwWkVf/vVExM=; b=MSjFfR2Yqddt6AN9cPktIfY2FTOfpTtcpUXud6FMc3ykg1bazMmqiBhS9Vvh91U6t6 nW2LUvwb5LajKe75NZYqEnRjrqyx5Bewyw6Ky5NOTp1Mpc2JliNPvM14/rIk3fOTcaPn iiADQd/fAlNHDg8JIXpa1ukntG5HeBSynS042fgv3HMfazvFYvvADqdv6nBI0HACcOct Q48DUUlCYli56fBC4km+Q3fkXHugvATEa39xo/qdaEp9mm2f2YbL2fz3MjKf4HkOJzVK bYX3VhX/bfhFFn1M1KLgfBgfgXD6N6G+qxKNVhUBQuCdLw4Yr+3paE+hc4te5XhHBW0I bCBw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688876369; x=1691468369; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=G37mRnxAmDfLHRjsoJiH2lfaRN1yCJAmwWkVf/vVExM=; b=Pk/tacJ/BPDi64/LnRSYJgIyDKoa4Y+vGS+T+mPyWP2fna/U3HfjDYHbjimKbQv0nM Buop3g/vFFX9iSVzcb8mCgezqWRo2vP6s3tDc883kOixBzHuOdI3jUDovWhy844s3P0X x9wxdjyLF0auLKJwxSOe90vJXSE8rccrdyj7pXQGbVwUycx1BGTUwl+0Tu4xJfWkEH1X 0gwndiFtzzEJAKx98LPZ7V6WnEljAdwqCtu0DIY8x0so8pDhXTP7ODgyXqv6jd0OxI/W BfvLjOkGkNtrGBAKwzIHPf7ZeeDHmoTCrzVDcRrIQDxdUymSCF/p1Hye3moUKtx6uwgT SS2A== X-Gm-Message-State: ABy/qLZ161jTAzwSHllPOIDmWdTcSJQ/jW1srPAF6unpDOWdIhx+ZNuU RQXEVN9LvE9gk8C1bxMsdZCDsw== X-Google-Smtp-Source: APBJJlFZwjHJ4EdrlQ3Tr8UOVhqj88gp9bKjXK6m641B/6LfYmPOeQmNp2jeXu7Vj5145jfEjl2bBg== X-Received: by 2002:a05:6512:2384:b0:4fb:78b1:1cd4 with SMTP id c4-20020a056512238400b004fb78b11cd4mr8499077lfv.49.1688876369292; Sat, 08 Jul 2023 21:19:29 -0700 (PDT) Received: from lothlorien.lan (dzdqv0yyyyyyyyyyybm5y-3.rev.dnainternet.fi. [2001:14ba:a0db:1f00::ab2]) by smtp.gmail.com with ESMTPSA id r11-20020a19ac4b000000b004fb8603f6e0sm1205851lfc.12.2023.07.08.21.19.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 08 Jul 2023 21:19:28 -0700 (PDT) From: Dmitry Baryshkov To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Clark , Sean Paul , Abhinav Kumar , Marijn Suijten , Rob Herring , Krzysztof Kozlowski Cc: Stephen Boyd , David Airlie , Daniel Vetter , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org Subject: [PATCH 2/5] arm64: dts: qcom: sm8250: Add DisplayPort device node Date: Sun, 9 Jul 2023 07:19:23 +0300 Message-Id: <20230709041926.4052245-3-dmitry.baryshkov@linaro.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230709041926.4052245-1-dmitry.baryshkov@linaro.org> References: <20230709041926.4052245-1-dmitry.baryshkov@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Declare the displayport controller present on the Qualcomm SM8250 SoC. Signed-off-by: Dmitry Baryshkov --- arch/arm64/boot/dts/qcom/sm8250.dtsi | 93 ++++++++++++++++++++++++++++ 1 file changed, 93 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sm8250.dtsi b/arch/arm64/boot/dts/qcom/sm8250.dtsi index aaf3f6764fe8..89b3a24d402d 100644 --- a/arch/arm64/boot/dts/qcom/sm8250.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8250.dtsi @@ -3626,6 +3626,12 @@ port@0 { port@1 { reg = <1>; }; + + port@2 { + reg = <2>; + + usb_1_qmpphy_dp_in: endpoint {}; + }; }; }; @@ -4270,6 +4276,14 @@ dpu_intf2_out: endpoint { remote-endpoint = <&mdss_dsi1_in>; }; }; + + port@2 { + reg = <2>; + + dpu_intf0_out: endpoint { + remote-endpoint = <&mdss_dp_in>; + }; + }; }; mdp_opp_table: opp-table { @@ -4297,6 +4311,85 @@ opp-460000000 { }; }; + mdss_dp: displayport-controller@ae90000 { + compatible = "qcom,sm8250-dp", "qcom,sm8350-dp"; + reg = <0 0xae90000 0 0x200>, + <0 0xae90200 0 0x200>, + <0 0xae90400 0 0x600>, + <0 0xae91000 0 0x400>, + <0 0xae91400 0 0x400>; + interrupt-parent = <&mdss>; + interrupts = <12>; + clocks = <&dispcc DISP_CC_MDSS_AHB_CLK>, + <&dispcc DISP_CC_MDSS_DP_AUX_CLK>, + <&dispcc DISP_CC_MDSS_DP_LINK_CLK>, + <&dispcc DISP_CC_MDSS_DP_LINK_INTF_CLK>, + <&dispcc DISP_CC_MDSS_DP_PIXEL_CLK>; + clock-names = "core_iface", + "core_aux", + "ctrl_link", + "ctrl_link_iface", + "stream_pixel"; + + assigned-clocks = <&dispcc DISP_CC_MDSS_DP_LINK_CLK_SRC>, + <&dispcc DISP_CC_MDSS_DP_PIXEL_CLK_SRC>; + assigned-clock-parents = <&dp_phy 0>, + <&dp_phy 1>; + + phys = <&dp_phy>; + phy-names = "dp"; + + #sound-dai-cells = <0>; + + operating-points-v2 = <&dp_opp_table>; + power-domains = <&rpmhpd SM8250_MMCX>; + + status = "disabled"; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + mdss_dp_in: endpoint { + remote-endpoint = <&dpu_intf0_out>; + }; + }; + + port@1 { + reg = <1>; + + mdss_dp_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>; + }; + }; + }; + mdss_dsi0: dsi@ae94000 { compatible = "qcom,sm8250-dsi-ctrl", "qcom,mdss-dsi-ctrl"; From patchwork Sun Jul 9 04:19:24 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 700940 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 273D5C04A94 for ; Sun, 9 Jul 2023 04:19:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229899AbjGIETg (ORCPT ); Sun, 9 Jul 2023 00:19:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40566 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229926AbjGIETd (ORCPT ); Sun, 9 Jul 2023 00:19:33 -0400 Received: from mail-lf1-x130.google.com (mail-lf1-x130.google.com [IPv6:2a00:1450:4864:20::130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ACF0FE58 for ; Sat, 8 Jul 2023 21:19:31 -0700 (PDT) Received: by mail-lf1-x130.google.com with SMTP id 2adb3069b0e04-4fba86f069bso5146978e87.3 for ; Sat, 08 Jul 2023 21:19:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1688876370; x=1691468370; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=B1VJuUGOFBi79tukb+D2NWsxrsW5NBrmRFX2x2Q6rsI=; b=FcTwrHF3oJK31WkP63aPguur1Y1cbPLJM9okRzZ8yWVPPdz56SSfccyWKZKBt48Yuw zB3uPqvBscgVnO0JZ25xqa983B9Xyv3eL1af2VXI+rLa1AWu/yiFz3D4+f8gEb22CTKC /aro+Zpy1VTqVPuVo8DEUfPzRn+I5SIN5bHPrwUu0gHN2ESEbrSO5RBTVsFz237eJP6P eg+eTNV2EUvzP/yWHOqPD0/jN+QyukonfTTVRtdrVTsXRZP/l2YW3e28rzeF637Os5Dt vWJUkuMEvoDCblnv9v0S+hAq/wzx7RfDmS6dWuwMPsrd+uQbs2dEuflsbTEFsLGkFpKu JaPw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688876370; x=1691468370; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=B1VJuUGOFBi79tukb+D2NWsxrsW5NBrmRFX2x2Q6rsI=; b=aU5EaDJPd5ugpTDFZggmuOxV94Hy312vlVFepqvrEeFErUxSzIM+HvtwfjnxyWzXFl RajXb1oYoKWCpPnZ1dOF3xS3Hj2yqRG9fiAMQDtDutZ+/lZdrYY/KDtvPCDNFzX4e9jC 9VRVbQaOrmaMTcPhamjcljXhqJl6iI9BcbBrattiOtYVh3CuUATztBinfTy2nC5WYwR8 1EYD/DyJRmbO4jGvJXTwUoKSqclDIk11fQNhfuTNnBju2BiG2cAcPCKTyvYS2JBt8TuA +Ana1ptbWycJ1LwkgBus1rrh5iiSE99ZQi2sTYFG+SrUrYR3k9XXL4xMtdu4VlljRGjL ORJw== X-Gm-Message-State: ABy/qLalUI6eIzfvovqgNdewAkVHvFRn6LOT++90tB3X6Rk22CZFo0yP 7K5eKpQ08cAq+caHp114of0MnA== X-Google-Smtp-Source: APBJJlEFVhGLnVsbm70RLFGO3ra4g1djfDzatugt+Suo3Tj0ccKUebhfbKx/SlZZOKli2FUoFFs6eQ== X-Received: by 2002:ac2:4ec5:0:b0:4fb:81f2:422b with SMTP id p5-20020ac24ec5000000b004fb81f2422bmr6296100lfr.54.1688876369999; Sat, 08 Jul 2023 21:19:29 -0700 (PDT) Received: from lothlorien.lan (dzdqv0yyyyyyyyyyybm5y-3.rev.dnainternet.fi. [2001:14ba:a0db:1f00::ab2]) by smtp.gmail.com with ESMTPSA id r11-20020a19ac4b000000b004fb8603f6e0sm1205851lfc.12.2023.07.08.21.19.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 08 Jul 2023 21:19:29 -0700 (PDT) From: Dmitry Baryshkov To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Clark , Sean Paul , Abhinav Kumar , Marijn Suijten , Rob Herring , Krzysztof Kozlowski Cc: Stephen Boyd , David Airlie , Daniel Vetter , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org Subject: [PATCH 3/5] arm64: dts: qcom: qrb5165-rb5: add onboard USB-C redriver Date: Sun, 9 Jul 2023 07:19:24 +0300 Message-Id: <20230709041926.4052245-4-dmitry.baryshkov@linaro.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230709041926.4052245-1-dmitry.baryshkov@linaro.org> References: <20230709041926.4052245-1-dmitry.baryshkov@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Add the nb7vpq904m, onboard USB-C redriver / retimer. Signed-off-by: Dmitry Baryshkov --- arch/arm64/boot/dts/qcom/qrb5165-rb5.dts | 52 +++++++++++++++++++++++- 1 file changed, 50 insertions(+), 2 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/qrb5165-rb5.dts b/arch/arm64/boot/dts/qcom/qrb5165-rb5.dts index b6c587ffdf8f..a03f334a3d01 100644 --- a/arch/arm64/boot/dts/qcom/qrb5165-rb5.dts +++ b/arch/arm64/boot/dts/qcom/qrb5165-rb5.dts @@ -610,6 +610,46 @@ lt9611_out: endpoint { /* LS-I2C1 */ &i2c15 { status = "okay"; + + typec-mux@1c { + compatible = "onnn,nb7vpq904m"; + reg = <0x1c>; + + vcc-supply = <&vreg_s4a_1p8>; + + retimer-switch; + orientation-switch; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + + redriver_usb_con_ss: endpoint { + remote-endpoint = <&pm8150b_typec_mux_out>; + }; + }; + + port@1 { + reg = <1>; + + redriver_phy_con_ss: endpoint { + remote-endpoint = <&usb_1_qmpphy_typec_mux_in>; + data-lanes = <0 1 2 3>; + }; + }; + + port@2 { + reg = <2>; + + redriver_usb_con_sbu: endpoint { + remote-endpoint = <&pm8150b_typec_sbu_out>; + }; + }; + }; + }; }; &mdss { @@ -1294,7 +1334,7 @@ &usb_1_qmpphy { }; &usb_1_qmpphy_typec_mux_in { - remote-endpoint = <&pm8150b_typec_mux_out>; + remote-endpoint = <&redriver_phy_con_ss>; }; &usb_2 { @@ -1382,7 +1422,15 @@ pm8150b_role_switch_out: endpoint { port@1 { reg = <1>; pm8150b_typec_mux_out: endpoint { - remote-endpoint = <&usb_1_qmpphy_typec_mux_in>; + remote-endpoint = <&redriver_usb_con_ss>; + }; + }; + + port@2 { + reg = <2>; + + pm8150b_typec_sbu_out: endpoint { + remote-endpoint = <&redriver_usb_con_sbu>; }; }; }; From patchwork Sun Jul 9 04:19:25 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 701173 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3EDFBC04E69 for ; Sun, 9 Jul 2023 04:19:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229926AbjGIETg (ORCPT ); Sun, 9 Jul 2023 00:19:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40570 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229960AbjGIETd (ORCPT ); Sun, 9 Jul 2023 00:19:33 -0400 Received: from mail-lf1-x12a.google.com (mail-lf1-x12a.google.com [IPv6:2a00:1450:4864:20::12a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 70F60E5C for ; Sat, 8 Jul 2023 21:19:32 -0700 (PDT) Received: by mail-lf1-x12a.google.com with SMTP id 2adb3069b0e04-4fb41682472so4687151e87.2 for ; Sat, 08 Jul 2023 21:19:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1688876370; x=1691468370; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=JtSrYaIq7E+bfiv9WFvstL0iH9rSn8rZct5gFh+ctJE=; b=Oi+ZYvxf8GX903TXcsqddTN2aEv9XgWgEYuAeZwyo3CINQZHOdFoRSZ9zDhjVruoBR 0z90xv5U/ezAKYsy+rHpHqmkU18orLxkW8fO0yECZuF5Mw2xovMBQrWXF/c3GpXBf6PR QbLnEPsou5nZcPe9GpRXAOP1zsXy+g62SWGxQ1XCeyyrngbmx5oIfX+UcxJscF+AqLbU WbuBbbGuAz+pk2rka5Z8b6y0oC3g9DaRmj01jkqxusCkzp03dH2hQqlg2Gb3gkiKVf2s ieFK9CDrwFwsKERFnUHAlrd+E4YlXgT0/YZGX/eyNcxc/fUSzRoyqFsiDaPq8DIAm5go snDw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688876370; x=1691468370; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=JtSrYaIq7E+bfiv9WFvstL0iH9rSn8rZct5gFh+ctJE=; b=EEE6pk+uTbFz29G208V+IIvXKDFsd7Ko9XmVCfkAxKFNeuc2ArK7mj97NTHGRADdf2 T6pKcYxyEK8YiHRZxWEPWnyfkQJe/fbwQwWH6o6V7mZodCDXYVB42Wc2K8LlUWSbEV60 86Yx0Mg4NA4V5k2MIXcHVNSYn08HqCUj4DUxYdZNgJW1AKwm9V7krTsyHC0vTLEvrKT9 mDNogcyhxg6uA0//XfhiqoADBeLpNP5MlL+fjUIibqoc91PZEwKT6o6ImFzVS6beOs61 eapIdVqxc3nJ7vkX/Ft5PeXnJOvgKahpuKkVI+dicrcf+uRhEn6ioVKtVA7pVg0U1xO1 xImQ== X-Gm-Message-State: ABy/qLZh4Xzc7d0qlBsF47ZnqTF8eaHMsDEPUZPotzujtQDq4e6QqyJh 2dGrtSUgkQSR+LCcOL2Z/lSUdQ== X-Google-Smtp-Source: APBJJlGXNNcq7x7vL8+xDsC8wx/7kapblUcToH8V0brzlPbiAMw2LC6KWslkuQrRQ/SWEyq4fYFtCA== X-Received: by 2002:a05:6512:3c9f:b0:4fb:829b:196e with SMTP id h31-20020a0565123c9f00b004fb829b196emr8752428lfv.2.1688876370646; Sat, 08 Jul 2023 21:19:30 -0700 (PDT) Received: from lothlorien.lan (dzdqv0yyyyyyyyyyybm5y-3.rev.dnainternet.fi. [2001:14ba:a0db:1f00::ab2]) by smtp.gmail.com with ESMTPSA id r11-20020a19ac4b000000b004fb8603f6e0sm1205851lfc.12.2023.07.08.21.19.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 08 Jul 2023 21:19:30 -0700 (PDT) From: Dmitry Baryshkov To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Clark , Sean Paul , Abhinav Kumar , Marijn Suijten , Rob Herring , Krzysztof Kozlowski Cc: Stephen Boyd , David Airlie , Daniel Vetter , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org Subject: [PATCH 4/5] arm64: dts: qcom: qrb5165-rb5: enable displayport controller Date: Sun, 9 Jul 2023 07:19:25 +0300 Message-Id: <20230709041926.4052245-5-dmitry.baryshkov@linaro.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230709041926.4052245-1-dmitry.baryshkov@linaro.org> References: <20230709041926.4052245-1-dmitry.baryshkov@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Enable the onboard displayport controller, connect it to QMP PHY. Signed-off-by: Dmitry Baryshkov Reviewed-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/qrb5165-rb5.dts | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/qrb5165-rb5.dts b/arch/arm64/boot/dts/qcom/qrb5165-rb5.dts index a03f334a3d01..210c60025c32 100644 --- a/arch/arm64/boot/dts/qcom/qrb5165-rb5.dts +++ b/arch/arm64/boot/dts/qcom/qrb5165-rb5.dts @@ -656,6 +656,15 @@ &mdss { status = "okay"; }; +&mdss_dp { + status = "okay"; +}; + +&mdss_dp_out { + data-lanes = <0 1>; + remote-endpoint = <&usb_1_qmpphy_dp_in>; +}; + &mdss_dsi0 { status = "okay"; vdda-supply = <&vreg_l9a_1p2>; @@ -1436,3 +1445,7 @@ pm8150b_typec_sbu_out: endpoint { }; }; }; + +&usb_1_qmpphy_dp_in { + remote-endpoint = <&mdss_dp_out>; +}; From patchwork Sun Jul 9 04:19:26 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 701172 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9C2B4C04FDF for ; Sun, 9 Jul 2023 04:19:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229960AbjGIETh (ORCPT ); Sun, 9 Jul 2023 00:19:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40566 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230008AbjGIETe (ORCPT ); Sun, 9 Jul 2023 00:19:34 -0400 Received: from mail-lf1-x131.google.com (mail-lf1-x131.google.com [IPv6:2a00:1450:4864:20::131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 24B90E48 for ; Sat, 8 Jul 2023 21:19:33 -0700 (PDT) Received: by mail-lf1-x131.google.com with SMTP id 2adb3069b0e04-4fafe87c6fbso5063355e87.3 for ; Sat, 08 Jul 2023 21:19:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1688876371; x=1691468371; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=yGG+JMcZKC2KBKr2b78IW5ceoyyRwJ46V91LM7VfQHU=; b=wvisemIqP7za0ZyJCs2ZmSXvrug0NlXlxvgg89MYzXFbpxzq84+Z4xC6vRhqw1kyl6 yWfKDkpY0I+dM3cptMuA9ET7hFN1rp2f2vQf+zIioTNQDLO4KDq0glBRt1KsUPGOf531 enUS4t+HYwUfPYHFkM10ZWInuGr/mTQyulm9mKizKwI5wAmHF2TuAVKJRL3QStnxCwBw qdYHHK8B6/3mK9EphPVTiaY4abPNuhHacyNhddUGjzOMLcj2JKuGjM14RQ46RVwO6j3y reovfGbvM3rmjjlB4pVFCTAubVRpVbiJiVHz5o+bpkFylhADfb7AcLkzQPK9NFs/hy9V nRSg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688876371; x=1691468371; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=yGG+JMcZKC2KBKr2b78IW5ceoyyRwJ46V91LM7VfQHU=; b=fBGoya/z6nSY+0KAuF1+HlF4W6qZjmHPhRN4oqNkJIcGhn1LG7zCHMZnLDph4t2Jaz pTGxHgKoeg9tavxHNRABPP2cGQgxRITD2Gg33FIZQdMxcppySLUf09eW61fg84AK3ilh DkvtKd8WunP1i3RLXE+i5I1K5XahCU5+q744wTqhnvbN2xtPAHDgnI3NarTA0y/TWIcV WbogKisthB25i+MIYaBgf+81vY+3rc5suFw/r0L44BBhej8xpCBqcFEZwbQ3H58/PifH b4wGT8MtuBsQLOk+HhxhLDREcPfaPvBVIVJHz13qlJ1usCLskp5M+Jox6VdibcRDj1+W WTjA== X-Gm-Message-State: ABy/qLbmS6nvYJQH0hnY3VGmBtKLym5O8m1Y6z7UaSCoCiEdCPJ8Mcd2 vT37ML9pDEqNPHlqvDoXzceh6Q== X-Google-Smtp-Source: APBJJlE6wrvTHb8QSckdbTF1Klp2Gds2woQb5/MRMIXTBG9WuFTpav+rYAy9iN3mheZax4mltaueSw== X-Received: by 2002:a05:6512:39c3:b0:4fb:896d:bd70 with SMTP id k3-20020a05651239c300b004fb896dbd70mr8357141lfu.46.1688876371382; Sat, 08 Jul 2023 21:19:31 -0700 (PDT) Received: from lothlorien.lan (dzdqv0yyyyyyyyyyybm5y-3.rev.dnainternet.fi. [2001:14ba:a0db:1f00::ab2]) by smtp.gmail.com with ESMTPSA id r11-20020a19ac4b000000b004fb8603f6e0sm1205851lfc.12.2023.07.08.21.19.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 08 Jul 2023 21:19:30 -0700 (PDT) From: Dmitry Baryshkov To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Clark , Sean Paul , Abhinav Kumar , Marijn Suijten , Rob Herring , Krzysztof Kozlowski Cc: Stephen Boyd , David Airlie , Daniel Vetter , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org Subject: [PATCH 5/5] arm64: dts: qcom: qrb5165-rb5: enable DP altmode Date: Sun, 9 Jul 2023 07:19:26 +0300 Message-Id: <20230709041926.4052245-6-dmitry.baryshkov@linaro.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230709041926.4052245-1-dmitry.baryshkov@linaro.org> References: <20230709041926.4052245-1-dmitry.baryshkov@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Add displayport altmode declaration to the Type-C controller node to enable DP altmode negotiation. Signed-off-by: Dmitry Baryshkov --- arch/arm64/boot/dts/qcom/qrb5165-rb5.dts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/qrb5165-rb5.dts b/arch/arm64/boot/dts/qcom/qrb5165-rb5.dts index 210c60025c32..5f289bf640f1 100644 --- a/arch/arm64/boot/dts/qcom/qrb5165-rb5.dts +++ b/arch/arm64/boot/dts/qcom/qrb5165-rb5.dts @@ -1418,6 +1418,13 @@ PDO_FIXED_DUAL_ROLE | PDO_FIXED_USB_COMM | PDO_FIXED_DATA_SWAP)>; + altmodes { + displayport { + svid = <0xff01>; + vdo = <0x00001c46>; + }; + }; + ports { #address-cells = <1>; #size-cells = <0>;