Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp6419834rwl; Wed, 22 Mar 2023 10:19:51 -0700 (PDT) X-Google-Smtp-Source: AK7set9ooTTA+5FgCYDSVKJRDjc/G9X4UctrQCMVLpnXpJdMlztOi10lrqARFeSilM7XbKNIKEAW X-Received: by 2002:a05:6402:18:b0:4ac:d2b4:ec2c with SMTP id d24-20020a056402001800b004acd2b4ec2cmr7334644edu.29.1679505591498; Wed, 22 Mar 2023 10:19:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679505591; cv=none; d=google.com; s=arc-20160816; b=jhtyDC7d/88fzBS5s5VjtdEiZ9Z5QQU9GAgws2MFfLC2zr9lA8kpYsgqerp+AstwNh 7FfT2I+6oeB2DsDmLBkPjQWgO6gpx9nLehZBQe4+/UdX6eUAZtNuyPY810N3N0t0j8KJ zzlY5noxrgHz91smoJhN6huRgdD/4LfoDwUpkxqCnTvo1f1hb2FHp3RozXWEXwHXTB1E o+JBQLFCFYephwzEHvddNtUvpSReR2MV2kg5xAl6F0Pr0XIWL4wUm+nKYm6Ha9gnv+88 +RuGd0M+tULgpBv9Fn9lKEtkRyem9nhJEJ4jXz4CS5HPU1ikXOYyO2BJHk1OdgCD0SY+ GErQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=Du2gZbCSXVQqxOtZS8hq0dQKJr+nACUyNNRAcUml5+k=; b=u5+y7/B3ChpfjLsZ4VI4AibNaDXUh2WVpDbcE9kq2szh2h2fU5LCOKwQt3l16beEjM 3t0cCQtZveXCiqzAwvpuzXx5ci6JbHnDz/MOxBYJ85RY0fPRQYI9D1Goxfoou5UVRCIk SeuqCY43I36Hr0w7qo3BbpGBl48PfvrNAryMUjpekfqn7UZth1Hm0dOFe2tdza9I33xh o2i+7Q56gtgW+ISRcDUSrZmIW5fK99ooui3Fxv0Cs7xBtMvCHv94MMlIXLiSKGCLE86U stdNEt7VT/Cx54g5LAs3xoAX2AHIwnDjRuvezNOsP/XNrUZPzeWUy3paOCjzUynI+U3i yfpQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=RgPE0jTp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r21-20020aa7da15000000b004fd2b07230esi15956708eds.64.2023.03.22.10.19.26; Wed, 22 Mar 2023 10:19:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=RgPE0jTp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231397AbjCVRQt (ORCPT + 99 others); Wed, 22 Mar 2023 13:16:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59622 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229993AbjCVRQe (ORCPT ); Wed, 22 Mar 2023 13:16:34 -0400 Received: from mail-pf1-x42f.google.com (mail-pf1-x42f.google.com [IPv6:2607:f8b0:4864:20::42f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2B0AC637C3; Wed, 22 Mar 2023 10:16:10 -0700 (PDT) Received: by mail-pf1-x42f.google.com with SMTP id l14so11547460pfc.11; Wed, 22 Mar 2023 10:16:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1679505368; 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=Du2gZbCSXVQqxOtZS8hq0dQKJr+nACUyNNRAcUml5+k=; b=RgPE0jTp0JRZH8DcWVA5RmODpy2pHSxJtZ7edzKBtuMTf0w1YAOckK/2YFJLY0lL1x 3UXgsvBF5DBh7FBHMA7TD1rkLCXvOEf87e+re0H7maYc/M7pvSFp0ZED9e/qBzVoMID1 4MXsYE8WStE6Ebig1fjM0g7S1H6inQwcboICRVcA6NueKORXeS2s2Uqkj0dLDybRDkte HHHNvzmG0e0pCXwLIZ5GLNhmhPY5HSe2HAmg1OPguNGKuWYaziFU8ui2a2LQGt71A7h0 GpSy4d/Avh8COx9iKtbK8kvhiEcBKpdVFI21HdDzdNB1U6zo5bAL7Zgozgag8PskclWf cfvA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679505368; 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=Du2gZbCSXVQqxOtZS8hq0dQKJr+nACUyNNRAcUml5+k=; b=cC/1bgeuQoUd69W73pkjYcJFu/1vQinjZAsaKEc4I/nYVqhFqhDClEkyopICiCZROn YS0GMk5IPF90hKVbavbE+Ml4bz68cGYBI9/jyDlWDt6Zb5bwGr8/zUBqMx6pvVe/OaRI TiNXTLcrijeCCNqQT5zBaKXkWR0NLE0tOQ/hmicXyrjsEfIxaHBS1v6AgPHZeFEhZw4v /GczYPXTqEIi/uSQ8ZfdCT3BHd86SM7XKElFPvey472npWN6WRgSEUVOdcWKAy9XdOem 8/WJYayT5j/mRFTkxMfM94UMIxN+ZcogwcL6gieU/vqk8YypdGRWxIJNMeHzSp+UyhWh lolg== X-Gm-Message-State: AO0yUKVBPGBRqONBmNbcFyD1WFuXasFUG66QsTapQXa+FUydIIu2F8X6 1rx2ypfeE4Gq2rPurJRqu2Q= X-Received: by 2002:aa7:958f:0:b0:626:7e73:2f44 with SMTP id z15-20020aa7958f000000b006267e732f44mr3296262pfj.9.1679505368430; Wed, 22 Mar 2023 10:16:08 -0700 (PDT) Received: from localhost.localdomain (n220246252084.netvigator.com. [220.246.252.84]) by smtp.gmail.com with ESMTPSA id b1-20020a6567c1000000b005023496e339sm10097353pgs.63.2023.03.22.10.16.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Mar 2023 10:16:08 -0700 (PDT) From: Jianhua Lu To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, Jianhua Lu Subject: [PATCH v2 2/4] arm64: dts: qcom: sm8250-xiaomi-elish: Add mdss and dsi node Date: Thu, 23 Mar 2023 01:15:53 +0800 Message-Id: <20230322171555.2154-2-lujianhua000@gmail.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230322171555.2154-1-lujianhua000@gmail.com> References: <20230322171555.2154-1-lujianhua000@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=0.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org xiaomi-elish uses dual dsi mode panel and dsi phy type is cphy. Signed-off-by: Jianhua Lu --- Changes in v2: - Include missing for phy-type property. .../dts/qcom/sm8250-xiaomi-elish-common.dtsi | 73 +++++++++++++++++++ 1 file changed, 73 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sm8250-xiaomi-elish-common.dtsi b/arch/arm64/boot/dts/qcom/sm8250-xiaomi-elish-common.dtsi index a43d4b73ffca..4ff8454d4abe 100644 --- a/arch/arm64/boot/dts/qcom/sm8250-xiaomi-elish-common.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8250-xiaomi-elish-common.dtsi @@ -5,6 +5,7 @@ #include #include +#include #include "sm8250.dtsi" #include "pm8150.dtsi" #include "pm8150b.dtsi" @@ -469,6 +470,74 @@ &cdsp { status = "okay"; }; +&dsi0 { + vdda-supply = <&vreg_l9a_1p2>; + qcom,dual-dsi-mode; + qcom,master-dsi; + qcom,sync-dual-dsi; + status = "okay"; + + display_panel: panel@0 { + reg = <0>; + vddio-supply = <&vreg_l14a_1p88>; + reset-gpios = <&tlmm 75 GPIO_ACTIVE_LOW>; + backlight = <&backlight>; + + status = "disabled"; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + panel_in_0: endpoint { + remote-endpoint = <&dsi0_out>; + }; + }; + + port@1{ + reg = <1>; + panel_in_1: endpoint { + remote-endpoint = <&dsi1_out>; + }; + }; + + }; + }; +}; + +&dsi0_out { + data-lanes = <0 1 2>; + remote-endpoint = <&panel_in_0>; +}; + +&dsi0_phy { + vdds-supply = <&vreg_l5a_0p88>; + phy-type = ; + status = "okay"; +}; + +&dsi1 { + vdda-supply = <&vreg_l9a_1p2>; + qcom,dual-dsi-mode; + qcom,sync-dual-dsi; + /* DSI1 is slave, so use DSI0 clocks */ + assigned-clock-parents = <&dsi0_phy 0>, <&dsi0_phy 1>; + status = "okay"; +}; + +&dsi1_out { + data-lanes = <0 1 2>; + remote-endpoint = <&panel_in_1>; +}; + +&dsi1_phy { + vdds-supply = <&vreg_l5a_0p88>; + phy-type = ; + status = "okay"; +}; + &gmu { status = "okay"; }; @@ -533,6 +602,10 @@ fuel-gauge@55 { }; }; +&mdss { + status = "okay"; +}; + &pcie0 { status = "okay"; }; -- 2.39.2