Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp7866267rwl; Thu, 23 Mar 2023 09:33:05 -0700 (PDT) X-Google-Smtp-Source: AK7set9ygIG+VZ/4Ghrjz9+IwEMamBxlMPSBbH/c7TVhiHtq47fvSXdETc+41g3nk8DK1Yns4aWJ X-Received: by 2002:a17:903:22cc:b0:1a1:b174:8363 with SMTP id y12-20020a17090322cc00b001a1b1748363mr8701263plg.59.1679589185047; Thu, 23 Mar 2023 09:33:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679589185; cv=none; d=google.com; s=arc-20160816; b=e0nhC3PYUBOx5Poa+Q8gpKQMiIYdErJQWLhkvTcky4xM5lummvAJqWLUJ/UpSkdAHr wGxrj8kt8vBt7NBEbrTxUkPPUz1osdxLk5kqs6MlzmKgh0H5OPUAU9QGVg67MRMWqgQP su6bBvA+An6y6qsXp7D68g9xCk0unoY8YwyGdvcGSaEfIp+Wx8ZJ6nddIoZ6v+128ZDh 3f1MwnmDBuaDOAQId1lazxWgtcN6Dy+E8OCWZWTbJDkgMQmIEY77lCntOl5Je2cEKZg7 I+ExvVAZXjhnTxLg/VvT/Zuno4QwCYOeEyRyE4ib+NnOvSTYVlzjvaWhAZUIyvAwCuC3 pT9g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=ryTu6zaCoI2WK0bZO1AkabKmhlUxG/TKoy8qClCDl3s=; b=WoVIwOrVxfUwwPD2DmWB0+Sz/DKrqNU20j+UjqvzuTnqDTvYFxu8+bKoz4DOgGva77 pRtk+YA+GJ9Zj89b/sRsGMuYVJAyHeNtPJCOtpi/D17zhLO+rsNtpQP+D7Uy9LjXbL6j OToYPAaQdcMtQRqVH4F0KYWt6o9ADuzwn8DiKfLDgSz7Cz1lSFMMWXL2On9WYhlnfxnk I+xe6bkHGXjPD6uwlOdV8C3iKE86JQKTfOU5jDPd8GmiSrN+P9/7fGRyYXSXmm6YFomT LRkU9+bE/77XwBYzNxTpW3KFj+BByGIw3Vn3kgaLmagRumX3BjAEYgPvwhpX2FMnLa9a ePEg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=X35gckyl; 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=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id kt12-20020a170903088c00b001a1af4f6089si15817467plb.155.2023.03.23.09.32.34; Thu, 23 Mar 2023 09:33:05 -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=@linaro.org header.s=google header.b=X35gckyl; 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=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231599AbjCWQRF (ORCPT + 99 others); Thu, 23 Mar 2023 12:17:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46702 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232090AbjCWQQr (ORCPT ); Thu, 23 Mar 2023 12:16:47 -0400 Received: from mail-lj1-x229.google.com (mail-lj1-x229.google.com [IPv6:2a00:1450:4864:20::229]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2852D36686 for ; Thu, 23 Mar 2023 09:16:29 -0700 (PDT) Received: by mail-lj1-x229.google.com with SMTP id by8so21909912ljb.12 for ; Thu, 23 Mar 2023 09:16:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1679588187; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=ryTu6zaCoI2WK0bZO1AkabKmhlUxG/TKoy8qClCDl3s=; b=X35gckylit4clnuJCHYArzsheet/i/G//qUBdWpgiz31svNxTKw9uIF1ce96dYHrlU wf7biuyvGZzW053nOjPU1al8iq2TEIaOjAhWhFLmmy95b9hECCRdLK0c0/9lxE6mKP68 U89tN/BuLAy3Vywj+ZvVTaC0F31vOv8SQeHbqLa7KhNM0qorUpUhH7p3/NgsdZ868WHt A1D5EN90vgs2q9aMIlvpLwv+YGmM9OkoVlRTu+cydBGjgotNsqN4UpaL2cWxjJu9rPC0 mBPsVsIhzTWugKDz3+exNLswtjqD34cgyxAx17qiCiWVVnZHydRHF6LC7OL9rwbSJ76k 7+pQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679588187; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=ryTu6zaCoI2WK0bZO1AkabKmhlUxG/TKoy8qClCDl3s=; b=TxhXSGE/JvfAfvvO7/FCJojytzfFL5TpFheUSKEJ2NLzXQ3kPrwurW5pOa9lsRy0uf zUkmTWHU1lUS/cqIrdunTx4lP3u/b5IsP0RL3k1xOf2hcbEi3H5CYHmCCgLyTX8WWpda kNtj7tSugBbHASs72MtLNGAnkx4GpRf7T9rl8KbGeJNuD0ENPZDHpQ71IrgoJQSIyi7p aT+DamxYJbTtK7SUwwhWN+r3luzPLFoYK1lX6yu6hairWmg9OJ8MNsFwEJmlFBPAQ+lE Z3HM4abyXYFOyl5LPh1GhJEKlL8FUcdTlO54U6/3HrQiEdLXMyKkFZuBhQCQr5+wDIgT a6WA== X-Gm-Message-State: AO0yUKXtZqM9JCrpf8s1aaUpGr4ZwVueW2JJ92CuM4pQDl87pbP3TtDe qE8hx4ymCw5aTmaAG1Jz0bgA7w== X-Received: by 2002:a2e:6a0d:0:b0:2a0:51b4:855b with SMTP id f13-20020a2e6a0d000000b002a051b4855bmr2371646ljc.18.1679588187317; Thu, 23 Mar 2023 09:16:27 -0700 (PDT) Received: from [192.168.1.101] (abxj225.neoplus.adsl.tpnet.pl. [83.9.3.225]) by smtp.gmail.com with ESMTPSA id a1-20020a05651c010100b00298a8527806sm3070801ljb.93.2023.03.23.09.16.24 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 23 Mar 2023 09:16:26 -0700 (PDT) Message-ID: <146cd9ba-5646-2033-0f46-ab7cab5d6b86@linaro.org> Date: Thu, 23 Mar 2023 17:16:22 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.9.0 Subject: Re: [PATCH v3 2/3] arm64: dts: qcom: sm8250-xiaomi-elish-boe: Add mdss and dsi panel Content-Language: en-US To: Jianhua Lu , Andy Gross , Bjorn Andersson , 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 References: <20230323005925.23179-1-lujianhua000@gmail.com> <20230323005925.23179-2-lujianhua000@gmail.com> From: Konrad Dybcio In-Reply-To: <20230323005925.23179-2-lujianhua000@gmail.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,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 On 23.03.2023 01:59, Jianhua Lu wrote: > Add nodes for BOE NT36523 panel found in xiaomi-elish. This panel > is a dual dsi mode panel and the dsi phy type is cphy. > > Signed-off-by: Jianhua Lu > --- Reviewed-by: Konrad Dybcio Konrad > Changes in v2: > - Include missing for phy-type property. > > Changes in v3: > - Sort include header. > - Move qcom,sync-dual-dsi to the front of qcom,master-dsi > - Add newline before subnode. > > .../boot/dts/qcom/sm8250-xiaomi-elish-boe.dts | 5 ++ > .../dts/qcom/sm8250-xiaomi-elish-common.dtsi | 75 +++++++++++++++++++ > 2 files changed, 80 insertions(+) > > diff --git a/arch/arm64/boot/dts/qcom/sm8250-xiaomi-elish-boe.dts b/arch/arm64/boot/dts/qcom/sm8250-xiaomi-elish-boe.dts > index bd9ad109daf9..8b2ae39950ff 100644 > --- a/arch/arm64/boot/dts/qcom/sm8250-xiaomi-elish-boe.dts > +++ b/arch/arm64/boot/dts/qcom/sm8250-xiaomi-elish-boe.dts > @@ -11,3 +11,8 @@ / { > model = "Xiaomi Mi Pad 5 Pro (BOE)"; > compatible = "xiaomi,elish", "qcom,sm8250"; > }; > + > +&display_panel { > + compatible = "xiaomi,elish-boe-nt36523"; > + status = "okay"; > +}; > 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..4585f61781f1 100644 > --- a/arch/arm64/boot/dts/qcom/sm8250-xiaomi-elish-common.dtsi > +++ b/arch/arm64/boot/dts/qcom/sm8250-xiaomi-elish-common.dtsi > @@ -4,6 +4,7 @@ > */ > > #include > +#include > #include > #include "sm8250.dtsi" > #include "pm8150.dtsi" > @@ -469,6 +470,76 @@ &cdsp { > status = "okay"; > }; > > +&dsi0 { > + vdda-supply = <&vreg_l9a_1p2>; > + qcom,dual-dsi-mode; > + qcom,sync-dual-dsi; > + qcom,master-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 +604,10 @@ fuel-gauge@55 { > }; > }; > > +&mdss { > + status = "okay"; > +}; > + > &pcie0 { > status = "okay"; > };