From patchwork Wed Jan 18 08:20:48 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 644257 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 BA4B8C32793 for ; Wed, 18 Jan 2023 09:03:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230139AbjARJDP (ORCPT ); Wed, 18 Jan 2023 04:03:15 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57912 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230096AbjARJAE (ORCPT ); Wed, 18 Jan 2023 04:00:04 -0500 Received: from mail-ej1-x633.google.com (mail-ej1-x633.google.com [IPv6:2a00:1450:4864:20::633]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A1A6E6189B for ; Wed, 18 Jan 2023 00:20:51 -0800 (PST) Received: by mail-ej1-x633.google.com with SMTP id u19so81246865ejm.8 for ; Wed, 18 Jan 2023 00:20:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=bqPviHpayHaGGc0B5iZtNHtziiSMiNGw6g1P+UBeEFc=; b=sF8PSuk9DLb1r11wwSB/iX9FUCxa+yzwLfV/GW3njK55n1V117QCEUdRUr2IUk0mM0 JD6FKz94Lj3D8YPhRPivJgkr5nqPfceotbVBb74+jC3HTqeDNuZ2/XwT2vZ4KRSXJHrC lavapcZkynb4fZdP4tTz9mI0b2kHkU6z4nFIapIZErvuClOFzdgOQ+AdvURuIRpt+zU7 QGekGyyAyJZzVz+o6Rjw7b25caozKcjSTNCKYU1sSBNP2cm7uqYZhzO5ESvzh1sfALPK 9ssB1S77sWPZbA4wx8fmCbCm6feGSLGDRj3fYNy/BH/03M4ShNwqXbVmQJuKzNCZJUwH 7WTA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=bqPviHpayHaGGc0B5iZtNHtziiSMiNGw6g1P+UBeEFc=; b=26QOyGl9yWuD8Ik+dIv+w53JfwJoGxVp8+VuS3X/IT34QGc2Wr3RbmVII+BY9OsKob q4RXpns9yXjSJ6GBmqz7MN1s9ffeDjkX19NHzKvuyppZVuEg79lM7UTOxEfgSKHM8S9o mXGOkqlhz+Bq3HeYW3iPUuB4sRlcNkGlX+RuusN3xllbm80Xd2OFlPGBTA8XmUNUhven g7HIMGYwaq89jDzFv2sPc8rFlsH4nTUhzuNTC23xYG1oxqvLATmYousm1AgPMCZX822x XLuiKumzXlfjZuFvEQOfxg8Oe+cgkmd83NEWOSjW94/Ju3cF+ln09dzdwZC6JZD+tJ05 1o9w== X-Gm-Message-State: AFqh2koBfy5cgWSEKuMA7MOSgWFpqSEj5rhSzGhD+Xu2/Q1paY1wlL0d ajyAdnMWINpd4vkzlmOmK//z1A== X-Google-Smtp-Source: AMrXdXth8zvI/f904KZiUu5E5DZ9J9wAitku1hAVbUV7gwRDujS60MkQA7OR06mQZQ5IOUE8a7DTHQ== X-Received: by 2002:a17:906:a002:b0:858:cccd:7c6a with SMTP id p2-20020a170906a00200b00858cccd7c6amr6030091ejy.68.1674030050222; Wed, 18 Jan 2023 00:20:50 -0800 (PST) Received: from eriador.lan (dzccz6yyyyyyyyyyybcwt-3.rev.dnainternet.fi. [2001:14ba:a085:4d00::8a5]) by smtp.gmail.com with ESMTPSA id o14-20020a17090637ce00b00871390a3b74sm3240403ejc.177.2023.01.18.00.20.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Jan 2023 00:20:49 -0800 (PST) From: Dmitry Baryshkov To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org Subject: [RFC PATCH] arm64: dts: qcom: add device tree for DB845c working in dual DSI mode Date: Wed, 18 Jan 2023 10:20:48 +0200 Message-Id: <20230118082048.2198715-1-dmitry.baryshkov@linaro.org> X-Mailer: git-send-email 2.39.0 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org While we are testing the DB845c working in dual DSI mode (which is required for the 4k support), create a separate device tree using this configuration. Signed-off-by: Dmitry Baryshkov --- Dependencies to be able to verify the 4k@30 mode: [1] https://lore.kernel.org/linux-arm-msm/20221229191856.3508092-1-dmitry.baryshkov@linaro.org/ [2] https://lore.kernel.org/dri-devel/20230118081658.2198520-1-dmitry.baryshkov@linaro.org/ --- arch/arm64/boot/dts/qcom/Makefile | 1 + .../boot/dts/qcom/sdm845-db845c-dual-dsi.dts | 48 +++++++++++++++++++ 2 files changed, 49 insertions(+) create mode 100644 arch/arm64/boot/dts/qcom/sdm845-db845c-dual-dsi.dts diff --git a/arch/arm64/boot/dts/qcom/Makefile b/arch/arm64/boot/dts/qcom/Makefile index 3e79496292e7..dc55c3b989a4 100644 --- a/arch/arm64/boot/dts/qcom/Makefile +++ b/arch/arm64/boot/dts/qcom/Makefile @@ -139,6 +139,7 @@ dtb-$(CONFIG_ARCH_QCOM) += sdm845-cheza-r1.dtb dtb-$(CONFIG_ARCH_QCOM) += sdm845-cheza-r2.dtb dtb-$(CONFIG_ARCH_QCOM) += sdm845-cheza-r3.dtb dtb-$(CONFIG_ARCH_QCOM) += sdm845-db845c.dtb +dtb-$(CONFIG_ARCH_QCOM) += sdm845-db845c-dual-dsi.dtb dtb-$(CONFIG_ARCH_QCOM) += sdm845-db845c-navigation-mezzanine.dtb dtb-$(CONFIG_ARCH_QCOM) += sdm845-lg-judyln.dtb dtb-$(CONFIG_ARCH_QCOM) += sdm845-lg-judyp.dtb diff --git a/arch/arm64/boot/dts/qcom/sdm845-db845c-dual-dsi.dts b/arch/arm64/boot/dts/qcom/sdm845-db845c-dual-dsi.dts new file mode 100644 index 000000000000..4a366dedc841 --- /dev/null +++ b/arch/arm64/boot/dts/qcom/sdm845-db845c-dual-dsi.dts @@ -0,0 +1,48 @@ +// SPDX-License-Identifier: GPL-2.0 +/* + * Copyright (c) 2023, Linaro Ltd. + */ + +#include "sdm845-db845c.dts" + +&dsi0 { + qcom,dual-dsi-mode; + qcom,master-dsi; +}; + +&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"; +}; + +<9611_codec { + ports { + port@1 { + reg = <1>; + + lt9611_b: endpoint { + remote-endpoint = <&dsi1_out>; + }; + }; + }; +};