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: 701351 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 1608EC0015E for ; Sun, 9 Jul 2023 04:19:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229885AbjGIETf (ORCPT ); Sun, 9 Jul 2023 00:19:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40564 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229916AbjGIETc (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 994F0E51 for ; Sat, 8 Jul 2023 21:19:31 -0700 (PDT) Received: by mail-lf1-x136.google.com with SMTP id 2adb3069b0e04-4f122ff663eso5158767e87.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=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=lxYRS7uhY8rRFC45znBlyco1mskpls1aeF/Eo4Fuc2onsZdIMBRR7QP95F1smQxWU9 FeopYiML9VSdJONg/i4eZGT45u3YuwbI0BVB8Zrv1H8qzV4nKwTR6FZCoHdtXkGh92TN VELrheIMJ5ILHIeRvLndCfNPoSbdyK6/PeprWx0VE7kYblOT5hMmSg58c4n0pe/vKyr1 YsBOBQ465bM6Zjp4JZbjr865yrJ/QkFfuz1zeYIoMHrBAgBm1eUxjEo9G+tT1GDEBswu eRfOgnWmGGAEpQhnIlQxW9vb3Lk4T+2Z4adOFdyfkkj/ivtpJb23jGOroTBr9F9yM0H7 hIiQ== X-Gm-Message-State: ABy/qLbEVqEkqtkf78Khb05MBFkvE2thi5dgSTbIv/R5sEZXNV6Gb0zM W6Z8i/RO3HLDBwP4yLCZZ3XdWg== 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: devicetree@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>; }; }; };