From patchwork Thu May 4 16:04:30 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 679200 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 84AF1C77B7C for ; Thu, 4 May 2023 16:04:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230525AbjEDQEf (ORCPT ); Thu, 4 May 2023 12:04:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37298 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230326AbjEDQEe (ORCPT ); Thu, 4 May 2023 12:04:34 -0400 Received: from mail-lf1-x12c.google.com (mail-lf1-x12c.google.com [IPv6:2a00:1450:4864:20::12c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1FBED4EE2 for ; Thu, 4 May 2023 09:04:33 -0700 (PDT) Received: by mail-lf1-x12c.google.com with SMTP id 2adb3069b0e04-4ec9c7c6986so805575e87.0 for ; Thu, 04 May 2023 09:04:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1683216271; x=1685808271; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=uUrHKVDX5msA0+ZSoUiJisbFI5PV9IHCkeYy1I4vbUE=; b=dcEfCGWZ78S4KLbx2t+LfYLbl16CyrjzfZ2DKdSP3bsme1Txoa370NAXETeAKMXi0F vST4RAutiKwXnZz1YSnUxl5sW2bGupAFk1DH9BVDmqGKyhtAzZBURFJsFJ+SUNLtwW8j +2t/PExUXhw2wYg67YE+raK3OeAWvBpb3WsrchNf4Wmd11bx4uD8t1rXbXZrJQarIGDN 2KHJp1LjUIVkW9NCXmbCrF3382yVjBvq4jRoIOPulqyC1tOsUAg8uFkLNDKbQYdhIh2b 6nOtezg4qd8EM+YZN398RUebehhxhnQTh4B1AVtASZ0emdJ8S8/2WdcRmBMA4qdksWBI +y6w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683216271; x=1685808271; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=uUrHKVDX5msA0+ZSoUiJisbFI5PV9IHCkeYy1I4vbUE=; b=N74XXSk0FIKYzSH/qb0FQa5RTghwuT/1gM9ygA8r41gP+J93YSaJR6JOyOmPcc+wde 2S5HQgFA736sWIGHT7ke/bHMox3qau5t9cSjXGKg/Fe2nBgnsp+EbJkNmKh8cNC8Bylv qIVc5IooRHWDy5DopMMIrN3X2GAhcZcd/fKcvnCx3MX5YkW7H2GUFEVIlgd7yYhn8WsE gaVCNI3Exl6F++hVdJoProVdvidjLR1bRiy4hBSYBfBJ2zwmItHT99s7gkYGJQelHT+L v+pnpbxep51tVtOfbXgNebqF2GIfMwdmESOSW1eilnmgC0E4I5iIAbrf4InVHAgDyZbv AAEQ== X-Gm-Message-State: AC+VfDzpwV3V4pMcPczbMAcDd3+5ozjhbU75JNQVHAP4RsNdhcLan8pT 2UiRygb8Hbuoa1QcjFSdtoomow== X-Google-Smtp-Source: ACHHUZ4YVyJizo+z8okjSZYqFXP/T+RhY33v3Hmx+pmDhMMwP2W1e98wCI6+uArYkNwAnaeYzRYRow== X-Received: by 2002:ac2:44ab:0:b0:4f0:219f:7833 with SMTP id c11-20020ac244ab000000b004f0219f7833mr1960192lfm.55.1683216271332; Thu, 04 May 2023 09:04:31 -0700 (PDT) Received: from eriador.lan (dzdqv0yyyyyyyyyyybcwt-3.rev.dnainternet.fi. [2001:14ba:a0db:1f00::8a5]) by smtp.gmail.com with ESMTPSA id p16-20020a05651211f000b004edc5a39121sm6551583lfs.242.2023.05.04.09.04.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 May 2023 09:04: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, Amit Pundir Subject: [PATCH] arm64: dts: qcom: enable dual ("bonded") DSI mode for DB845c Date: Thu, 4 May 2023 19:04:30 +0300 Message-Id: <20230504160430.4014206-1-dmitry.baryshkov@linaro.org> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Now as both lt9611 and drm/msm drivers were updated to handle the 4k modes over DSI, enable "bonded" DSI mode on DB845c. This way the board utilizes both DSI links and thus can support 4k on the HDMI output. Cc: Amit Pundir Signed-off-by: Dmitry Baryshkov --- arch/arm64/boot/dts/qcom/sdm845-db845c.dts | 36 ++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sdm845-db845c.dts b/arch/arm64/boot/dts/qcom/sdm845-db845c.dts index e14fe9bbb386..4dea2c04b22f 100644 --- a/arch/arm64/boot/dts/qcom/sdm845-db845c.dts +++ b/arch/arm64/boot/dts/qcom/sdm845-db845c.dts @@ -419,6 +419,9 @@ &dsi0 { status = "okay"; vdda-supply = <&vreg_l26a_1p2>; + qcom,dual-dsi-mode; + qcom,master-dsi; + ports { port@1 { endpoint { @@ -434,6 +437,31 @@ &dsi0_phy { vdds-supply = <&vreg_l1a_0p875>; }; +&dsi1 { + vdda-supply = <&vreg_l26a_1p2>; + + qcom,dual-dsi-mode; + + /* DSI1 is slave, so use DSI0 clocks */ + assigned-clock-parents = <&dsi0_phy 0>, <&dsi0_phy 1>; + + status = "okay"; + + ports { + port@1 { + endpoint { + remote-endpoint = <<9611_b>; + data-lanes = <0 1 2 3>; + }; + }; + }; +}; + +&dsi1_phy { + vdds-supply = <&vreg_l1a_0p875>; + status = "okay"; +}; + &gcc { protected-clocks = , , @@ -493,6 +521,14 @@ lt9611_a: endpoint { }; }; + port@1 { + reg = <1>; + + lt9611_b: endpoint { + remote-endpoint = <&dsi1_out>; + }; + }; + port@2 { reg = <2>;