Received: by 2002:a05:7412:5112:b0:fa:6e18:a558 with SMTP id fm18csp444975rdb; Tue, 23 Jan 2024 04:44:09 -0800 (PST) X-Google-Smtp-Source: AGHT+IF21y9qlLIj2V3OYWxJBxOzAGZ2TAeePpXqg2hQswQ3BG1AUyTmPRprL139AcRZDygfTDlK X-Received: by 2002:a05:6870:724c:b0:214:8335:9a39 with SMTP id y12-20020a056870724c00b0021483359a39mr946822oaf.77.1706013849626; Tue, 23 Jan 2024 04:44:09 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706013849; cv=pass; d=google.com; s=arc-20160816; b=Q9XRrU1hSSnlwCrKRkZpvicDtresBnuYRg11G45Mzz74H1A/CgqssGvRMsjDnIyCi6 3xwwPggv7NDVh2ZlICECFfD0v79nVj+q1cZmtNmY1LNFNo7Tgw9wxujt0rm7e6a6YKul 5SupR2R0egujT69Db0sPdY5npYgYTHbEzYyeyO0Hv4vitPe4t5amvuQj5gN3idH1gn1w lxLWb+IXWvAa6Y5k4zf86wqlR1Z8AX/z/Zsc+rXdGA2c6/UXzhtx+XPtfK7gDjgmqzCv O2xNjXg9DhbMYgx0sl2KadPl8+0Qe1w0CMzXqYmRNHSQW1vx0NWRNdDVa5R7MzgXQaUw oO+g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=TooN9L+vXIdff2SYsZTJWgp3hQjbI0Ip9LJ8U0o9bcQ=; fh=e5x2qn4U3Rx549/+L2kY1LeYYnYrdIHL4j3tbJFqMIE=; b=u0Tx6aQW3bfY9UUH5TjUI2taT4eV5C5L5Z31baK3VJwSzcx/tmZOtSCgmFA0BktGCA BRcNfdHmg3czkBfc7UTmgkKULZTt/gPPh7U1o07XVpdxZ+JLD/Sxdcn1whO4w1/Ztses uHoZwRyADhhcR0oOi5bc872LzzLKw4IsnYg7epuNqglMtIS9PFDHlAjA+yU2ttq2h3AQ /yRwnXBMyeU2LHnJyXZ8wBkyRXsMYGBZKBgQAxfRsCgf6xRbStlf3JnyEv4wvy3ftxb0 LyepYlD0ydOdaKXrjefrcK7Fcutz1y7RC2UYHGpxQcl5VHiCGaX1wcWBSerj71hLJyGH zdEQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=FYfP5UPX; arc=pass (i=1 spf=pass spfdomain=quicinc.com dkim=pass dkdomain=quicinc.com dmarc=pass fromdomain=quicinc.com); spf=pass (google.com: domain of linux-kernel+bounces-35257-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-35257-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id y2-20020a63e242000000b005cf64c90ecbsi9767291pgj.215.2024.01.23.04.44.09 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Jan 2024 04:44:09 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-35257-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=FYfP5UPX; arc=pass (i=1 spf=pass spfdomain=quicinc.com dkim=pass dkdomain=quicinc.com dmarc=pass fromdomain=quicinc.com); spf=pass (google.com: domain of linux-kernel+bounces-35257-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-35257-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id C4037B246EC for ; Tue, 23 Jan 2024 12:44:05 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B28885EE7C; Tue, 23 Jan 2024 12:43:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="FYfP5UPX" Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2FB1B5DF00; Tue, 23 Jan 2024 12:43:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.180.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706013833; cv=none; b=lSUjG8TurWyYQqtXFIT9Y504KTRLF4zOrVrFqVY2ipc4zx1DPReRLyqIqHZSMUqTDNJ15Yf/6k8/MOGRmpmlrxdJZta7v6F5oDRpPW1aB6VALLTOARGHOMWgFhWiD166X3RqN28xSA3VX7ecsDIIX1ntPTNTbhKLPMw7laEjz1Q= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706013833; c=relaxed/simple; bh=UCvBeVxZH1I1W7aFnfZBfhYgFfhsl9L84uwbqQ3nMCM=; h=Message-ID:Date:MIME-Version:Subject:To:CC:References:From: In-Reply-To:Content-Type; b=h8KGWNUjWAVlQVYll7C2+ChZoPAZ/ozJg1UaOaW8PTL98HJ833Mws8kjnvcqIIUs65b+Pr4Cb1pIMJpk6T53hCnjiXA35tmJOqVtcoNz4H1XmF7Bve2ctCPxiENj7h4xvuecgKIIx/cTpW0I+vg5eMOM+6t6DKbAIgW2gEGt+M8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com; spf=pass smtp.mailfrom=quicinc.com; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b=FYfP5UPX; arc=none smtp.client-ip=205.220.180.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=quicinc.com Received: from pps.filterd (m0279869.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.24/8.17.1.24) with ESMTP id 40NC54D4030979; Tue, 23 Jan 2024 12:43:33 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= message-id:date:mime-version:subject:to:cc:references:from :in-reply-to:content-type:content-transfer-encoding; s= qcppdkim1; bh=TooN9L+vXIdff2SYsZTJWgp3hQjbI0Ip9LJ8U0o9bcQ=; b=FY fP5UPXWheHCqFQhE5URa3APBOfqtn/JraDFCKNUvdPqFu/HHAZZCpBX37YXuKWcO aCbrGgV7E6HRNyauGHAl/L1WnmD5BwcrcN4zV20nw6A0pSqOMAM3EyfNEP3gm2sW zL5yTvTA8eTkp/95+pf0ATh+JsSYu9/Q9913EhuBng3fDQzcTXpHu6e7dR0kgo7c QBoZYhagYptRp83aJmwK/jhzlJUqHVTcBIsqYiuVoXKH541rgccFO3p9To6EE10P 8zENnzII0mpi2UFE77Ix/mBpCbmcVZUqOqWFWXRbhkN69WwIbrWBm57ON8Ll2cr0 J5ZW4j7UVfubbIsOB1yA== Received: from nasanppmta04.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3vspw8ubfc-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 23 Jan 2024 12:43:33 +0000 (GMT) Received: from nasanex01a.na.qualcomm.com (nasanex01a.na.qualcomm.com [10.52.223.231]) by NASANPPMTA04.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 40NChWmh008205 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 23 Jan 2024 12:43:32 GMT Received: from [10.204.67.124] (10.80.80.8) by nasanex01a.na.qualcomm.com (10.52.223.231) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.40; Tue, 23 Jan 2024 04:43:26 -0800 Message-ID: Date: Tue, 23 Jan 2024 18:13:22 +0530 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 2/2] arm64: dts: qcom: qcm6490-idp: add display and panel Content-Language: en-US To: Dmitry Baryshkov CC: , , , , , , , , , , , , , , , , , , , References: <20240116094935.9988-1-quic_riteshk@quicinc.com> <20240116094935.9988-3-quic_riteshk@quicinc.com> From: Ritesh Kumar In-Reply-To: Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) To nasanex01a.na.qualcomm.com (10.52.223.231) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: xDS6e3yalMauhsyKjjuTFgUI0ZJslTnJ X-Proofpoint-ORIG-GUID: xDS6e3yalMauhsyKjjuTFgUI0ZJslTnJ X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.1011,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2024-01-23_06,2024-01-23_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 phishscore=0 malwarescore=0 adultscore=0 mlxscore=0 spamscore=0 lowpriorityscore=0 bulkscore=0 clxscore=1015 suspectscore=0 impostorscore=0 mlxlogscore=999 priorityscore=1501 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2311290000 definitions=main-2401230094 On 1/16/2024 3:28 PM, Dmitry Baryshkov wrote: > On Tue, 16 Jan 2024 at 11:49, Ritesh Kumar wrote: >> Enable Display Subsystem with Novatek NT36672E Panel >> on qcm6490 idp platform. > Is this panel always present on the IDP board or is it an optional > addon, like the panels for all the RBn boards? This panel is always present on the IDP board. >> Signed-off-by: Ritesh Kumar >> --- >> arch/arm64/boot/dts/qcom/qcm6490-idp.dts | 100 +++++++++++++++++++++++ >> 1 file changed, 100 insertions(+) >> >> diff --git a/arch/arm64/boot/dts/qcom/qcm6490-idp.dts b/arch/arm64/boot/dts/qcom/qcm6490-idp.dts >> index 2a6e4907c5ee..efa5252130a1 100644 >> --- a/arch/arm64/boot/dts/qcom/qcm6490-idp.dts >> +++ b/arch/arm64/boot/dts/qcom/qcm6490-idp.dts >> @@ -9,6 +9,7 @@ >> #define PM7250B_SID 8 >> #define PM7250B_SID1 9 >> >> +#include >> #include >> #include "sc7280.dtsi" >> #include "pm7250b.dtsi" >> @@ -38,6 +39,25 @@ >> stdout-path = "serial0:115200n8"; >> }; >> >> + lcd_disp_bias: lcd-disp-bias-regulator { >> + compatible = "regulator-fixed"; >> + regulator-name = "lcd_disp_bias"; >> + regulator-min-microvolt = <5500000>; >> + regulator-max-microvolt = <5500000>; >> + gpio = <&pm7250b_gpios 2 GPIO_ACTIVE_HIGH>; >> + enable-active-high; >> + pinctrl-names = "default"; >> + pinctrl-0 = <&lcd_disp_bias_en>; >> + }; >> + >> + pm8350c_pwm_backlight: backlight { >> + compatible = "pwm-backlight"; >> + pwms = <&pm8350c_pwm 3 65535>; >> + enable-gpios = <&pm8350c_gpios 7 GPIO_ACTIVE_HIGH>; >> + pinctrl-names = "default"; >> + pinctrl-0 = <&pmic_lcd_bl_en>; >> + }; >> + >> reserved-memory { >> xbl_mem: xbl@80700000 { >> reg = <0x0 0x80700000 0x0 0x100000>; >> @@ -420,6 +440,86 @@ >> }; >> }; >> >> +&gpu { >> + status = "disabled"; >> +}; >> + >> +&mdss { >> + status = "okay"; >> +}; >> + >> +&mdss_dsi { >> + vdda-supply = <&vreg_l6b_1p2>; >> + status = "okay"; >> + >> + panel@0 { >> + compatible = "novatek,nt36672e"; >> + reg = <0>; >> + >> + reset-gpios = <&tlmm 44 GPIO_ACTIVE_HIGH>; >> + >> + vddi-supply = <&vreg_l8c_1p62>; >> + avdd-supply = <&lcd_disp_bias>; >> + avee-supply = <&lcd_disp_bias>; >> + >> + backlight = <&pm8350c_pwm_backlight>; >> + >> + port { >> + panel0_in: endpoint { >> + remote-endpoint = <&mdss_dsi0_out>; >> + }; >> + }; >> + }; >> +}; >> + >> +&mdss_dsi0_out { >> + remote-endpoint = <&panel0_in>; >> + data-lanes = <0 1 2 3>; >> +}; >> + >> +&mdss_dsi_phy { >> + vdds-supply = <&vreg_l10c_0p88>; >> + status = "okay"; >> +}; >> + >> +&pm7250b_gpios { >> + lcd_disp_bias_en: lcd-disp-bias-en-state { >> + pins = "gpio2"; >> + function = "func1"; >> + bias-disable; >> + qcom,drive-strength = ; >> + input-disable; >> + output-enable; >> + power-source = <0>; >> + }; >> +}; >> + >> +&pm8350c_gpios { >> + pmic_lcd_bl_en: pmic-lcd-bl-en-state { >> + pins = "gpio7"; >> + function = "normal"; >> + bias-disable; >> + qcom,drive-strength = ; >> + output-low; >> + power-source = <0>; >> + }; >> + >> + pmic_lcd_bl_pwm: pmic-lcd-bl-pwm-state { >> + pins = "gpio8"; >> + function = "func1"; >> + bias-disable; >> + qcom,drive-strength = ; >> + output-low; >> + power-source = <0>; >> + }; >> +}; >> + >> +&pm8350c_pwm { >> + pinctrl-names = "default"; >> + pinctrl-0 = <&pmic_lcd_bl_pwm>; >> + status = "okay"; >> +}; >> + >> &qupv3_id_0 { >> status = "okay"; >> }; >> -- >> 2.17.1 >> Thanks, Ritesh