Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp660725pxb; Thu, 20 Jan 2022 23:38:40 -0800 (PST) X-Google-Smtp-Source: ABdhPJyWQk8fGAMtOjfaNDYmJnIX6aCvsJ/V1xSiHssjN8xR72iTr1GrStMAVQI2aedSCp3wST0c X-Received: by 2002:a17:90a:50f:: with SMTP id h15mr3385898pjh.78.1642750720073; Thu, 20 Jan 2022 23:38:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1642750720; cv=none; d=google.com; s=arc-20160816; b=vDQ3+nGTQb4W3GBV1gi+bdnVPT7IrTSCwcyfFSwr9QW2G+jRz8mEyVoUEsBYmK0qBE 4i7iqdSzXBu+kni2f7+XurmsnSqJfHCrKVzSTfSYJs3YAtRLLC6rCutbSh+XCmlwMfqu +AhGXtaY/qFwopjvLWEiEbmi9wavNptE+bAfAcccDn5F7ZPP5j8qNQQP0bmT7OPqsXnX Y+/oVHgru/s9qPPdQ5yP0a9ejC4w2iXQJsI3URGul8c1X2vcrBD9bYtG1uHgjVfoKepK SvjVMHuQXxvRWiKD+67IXzNmcgJ6ObYVotJfTBaSFSwCwFmUdD8jJ2TkFYh9/DtTS1DX vkIA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from:dkim-signature; bh=+5SpKgVZDapQv/oE6hjW/Oia4EcVZYmlgfdLcHCjpVQ=; b=Re0VOn/gyosZW+iU2tEkN2z8PTFRinz6OXTGjYVywjjdvh6yimtRwKdKFFN35d/WhL W23C+PV6DWkdO3wCiEq7OFLovchCEqUmcynPP5v4wXRlwMeHDgd/MBJIa1j7SjB+iQKf zHc3IdV3jIOogNx51eNexAX6VWEfXI74x3uQKT5lRxcOmVloTjdox8enitt1b+s+5mBS cutV3AlMT6bktSGIr/xYaarie+DE57TJe4nMwzxs24HoL56sH+ZAhE+84oJV3ibeYFCT 3JV/Ayglo9ZL1iL20m4rjPRjEb+K7iBXRfKnhVZeamZZzCzI60dQEX+3jEKPzbXpJb8x OZ6A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=GJaRH7fW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ls6si13469242pjb.130.2022.01.20.23.38.27; Thu, 20 Jan 2022 23:38:40 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=GJaRH7fW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1349299AbiARUj3 (ORCPT + 99 others); Tue, 18 Jan 2022 15:39:29 -0500 Received: from alexa-out.qualcomm.com ([129.46.98.28]:32582 "EHLO alexa-out.qualcomm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1349276AbiARUjO (ORCPT ); Tue, 18 Jan 2022 15:39:14 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; i=@quicinc.com; q=dns/txt; s=qcdkim; t=1642538354; x=1674074354; h=from:to:cc:subject:date:message-id:in-reply-to: references; bh=+5SpKgVZDapQv/oE6hjW/Oia4EcVZYmlgfdLcHCjpVQ=; b=GJaRH7fWlKX9RlaG99qFGKB7U7LgI2AJOG0cnz7sHtoSeweMhXUyx2kw R3GMJB0L1uT0Y0NJn58L9KgrVtVmChc6G1I9LgBql7faC5b2IzXXX9SJq qWg8uufceEfsUsS1W2XIzHfocXoBvQ4JxO4vGGXrAZywqohKAoxN5IEPs g=; Received: from ironmsg07-lv.qualcomm.com ([10.47.202.151]) by alexa-out.qualcomm.com with ESMTP; 18 Jan 2022 12:39:14 -0800 X-QCInternal: smtphost Received: from ironmsg01-blr.qualcomm.com ([10.86.208.130]) by ironmsg07-lv.qualcomm.com with ESMTP/TLS/AES256-SHA; 18 Jan 2022 12:39:13 -0800 X-QCInternal: smtphost Received: from rajeevny-linux.qualcomm.com ([10.204.66.121]) by ironmsg01-blr.qualcomm.com with ESMTP; 19 Jan 2022 02:08:46 +0530 Received: by rajeevny-linux.qualcomm.com (Postfix, from userid 2363605) id E152121A90; Wed, 19 Jan 2022 02:08:45 +0530 (IST) From: Rajeev Nandan To: dri-devel@lists.freedesktop.org, linux-arm-msm@vger.kernel.org, freedreno@lists.freedesktop.org, devicetree@vger.kernel.org Cc: Rajeev Nandan , linux-kernel@vger.kernel.org, sean@poorly.run, robdclark@gmail.com, robh+dt@kernel.org, robh@kernel.org, quic_abhinavk@quicinc.com, quic_kalyant@quicinc.com, quic_mkrishn@quicinc.com, jonathan@marek.ca, dmitry.baryshkov@linaro.org, airlied@linux.ie, daniel@ffwll.ch, swboyd@chromium.org Subject: [v3 1/3] dt-bindings: msm/dsi: Add 10nm dsi phy tuning properties Date: Wed, 19 Jan 2022 02:08:38 +0530 Message-Id: <1642538320-1127-2-git-send-email-quic_rajeevny@quicinc.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1642538320-1127-1-git-send-email-quic_rajeevny@quicinc.com> References: <1642538320-1127-1-git-send-email-quic_rajeevny@quicinc.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org In most cases, the default values of DSI PHY tuning registers should be sufficient as they are fully optimized. However, in some cases where extreme board parasitics cause the eye shape to degrade, the override bits can be used to improve the signal quality. The general guidelines for DSI PHY tuning include: - High and moderate data rates may benefit from the drive strength and drive level tuning. - Drive strength tuning will affect the output impedance and may be used for matching optimization. - Drive level tuning will affect the output levels without affecting the impedance. The clock and data lanes have a calibration circuitry feature. The drive strength tuning can be done by adjusting rescode offset for hstop/hsbot, and the drive level tuning can be done by adjusting the LDO output level for the HSTX drive. Signed-off-by: Rajeev Nandan --- Changes in v2: - More details in the commit text (Stephen Boyd) - Use human understandable values (Stephen Boyd, Dmitry Baryshkov) - Do not take values that are going to be unused (Dmitry Baryshkov) Changes in v3: - Use "qcom," prefix (Dmitry Baryshkov) - Remove encoding from phy-drive-ldo-level (Dmitry Baryshkov) - Use negative values instead of two's complement (Dmitry, Rob Herring) .../bindings/display/msm/dsi-phy-10nm.yaml | 34 ++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/Documentation/devicetree/bindings/display/msm/dsi-phy-10nm.yaml b/Documentation/devicetree/bindings/display/msm/dsi-phy-10nm.yaml index 4399715..e9ba57e 100644 --- a/Documentation/devicetree/bindings/display/msm/dsi-phy-10nm.yaml +++ b/Documentation/devicetree/bindings/display/msm/dsi-phy-10nm.yaml @@ -35,6 +35,36 @@ properties: Connected to DSI0_MIPI_DSI_PLL_VDDA0P9 pin for sc7180 target and connected to VDDA_MIPI_DSI_0_PLL_0P9 pin for sdm845 target + qcom,phy-rescode-offset-top: + $ref: /schemas/types.yaml#/definitions/int8-array + minItems: 5 + maxItems: 5 + minimum: -32 + maximum: 31 + description: + Integer array of offset for pull-up legs rescode for all five lanes. + To offset the drive strength from the calibrated value in an increasing + manner, -32 is the weakest and +31 is the strongest. + + qcom,phy-rescode-offset-bot: + $ref: /schemas/types.yaml#/definitions/int8-array + minItems: 5 + maxItems: 5 + minimum: -32 + maximum: 31 + description: + Integer array of offset for pull-down legs rescode for all five lanes. + To offset the drive strength from the calibrated value in a decreasing + manner, -32 is the weakest and +31 is the strongest. + + qcom,phy-drive-ldo-level: + $ref: "/schemas/types.yaml#/definitions/uint32" + description: + The PHY LDO has an amplitude tuning feature to adjust the LDO output + for the HSTX drive. Use supported levels (mV) to offset the drive level + from the default value. + enum: [ 375, 400, 425, 450, 475, 500 ] + required: - compatible - reg @@ -64,5 +94,9 @@ examples: clocks = <&dispcc DISP_CC_MDSS_AHB_CLK>, <&rpmhcc RPMH_CXO_CLK>; clock-names = "iface", "ref"; + + qcom,phy-rescode-offset-top = /bits/ 8 <0 0 0 0 0>; + qcom,phy-rescode-offset-bot = /bits/ 8 <0 0 0 0 0>; + qcom,phy-drive-ldo-level = <400>; }; ... -- 2.7.4