From patchwork Mon May 20 12:12:43 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 13668283 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 gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 82EFEC25B78 for ; Mon, 20 May 2024 12:12:53 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 1110010E609; Mon, 20 May 2024 12:12:51 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="eiu/AI4Q"; dkim-atps=neutral Received: from mail-lf1-f48.google.com (mail-lf1-f48.google.com [209.85.167.48]) by gabe.freedesktop.org (Postfix) with ESMTPS id 150D810E0BB for ; Mon, 20 May 2024 12:12:49 +0000 (UTC) Received: by mail-lf1-f48.google.com with SMTP id 2adb3069b0e04-51f0602bc58so2392584e87.0 for ; Mon, 20 May 2024 05:12:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1716207167; x=1716811967; darn=lists.freedesktop.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=u5zLKnMtRb2Yx+jUatqEm2tktsnKzIpv+CHT4vbWSNo=; b=eiu/AI4Qd35PYqqhBjdQfpsSGgV+teqRQ5RkC4mhoA8GeNlz1y9G6agSEespE7RjWb MZIGDqad94y95KmmTyxL/svV8O9DvJ8t8UW4S78FSWLxipCMGOrBMBOz2iZuzfzp3Aw/ klshHTAemxZ1wfLKkQMmA9JmtQuWuKxuuypTTGEYP2FA6dSKd/6yCfAaFojD5MqCX0f3 XWAkxtNgv9VEAmErSEhK1R5sjmFv4+tgihhzlsa6erYmMWS/xF9ZnZROGk7m5g6ATYzy tAQ+iug6QOW7WqyvVEws4Liddvq8laaD4yiLEL2SElYRh03taj86655wvJmd/BINuaES IXXw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716207167; x=1716811967; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=u5zLKnMtRb2Yx+jUatqEm2tktsnKzIpv+CHT4vbWSNo=; b=Nf+XKHNMhkl1rhwU0Ity/5Svfk0vGMKcsPCh0AoTrZH14n5PDQt29vkFbAFdLxOqbL o/yv72YOFWBu3GCXiNjMrvAK6oolJkPEq2/YThiRIDqRJ+FnpkAGz3tyhAisEw82j3Co oNyWkH8kQ49XGjFe58owUBg77d5TVNoygV1RDWbeJ0vUNCX1+ZHqt6G/JhPvOEl8JXWR TT2jd6M14YdWvJQQT7h13wSvOE3/3XPZBmESNi0diJOO2GJc32+jstph3XqQ00nZbKmK CY2nzCnGDpy3UXn6G7OWorGpjC5a0AJRLseTG3fredPn8S2pEODx5g/UVL89TuUFC4Th grdA== X-Forwarded-Encrypted: i=1; AJvYcCWLOciAy1fuEhNRxVKpbDHmQvFuBXCn7CrQewegKY7qo4Sblsp/STBmU5t9dHwVwz7b0P5ctzUJDw4ARO2oYMeJABYVDzcbY/DvDIoLO35v X-Gm-Message-State: AOJu0Yx5FlnHDHwZYOrdhxiAFhg0OeLMjdv6WXHFSZwspbNqCzumsTPt HbeViXEca7ZVR6qC9ghUOt2ACHY73TfGCejbMCUHC4Qtl5mp8543e23T44ZfXuU= X-Google-Smtp-Source: AGHT+IFmCz2UjdpX2jReHWPeQmSe3l39pMsynvOjbskQ/rKPTL0Rxr5iRCVGRc6KIMGt0K9PVz9jrQ== X-Received: by 2002:ac2:504a:0:b0:523:7680:d07 with SMTP id 2adb3069b0e04-52407ac106bmr2029575e87.6.1716207167313; Mon, 20 May 2024 05:12:47 -0700 (PDT) Received: from umbar.lan ([192.130.178.91]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-521f35ad6c0sm4273682e87.30.2024.05.20.05.12.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 May 2024 05:12:46 -0700 (PDT) From: Dmitry Baryshkov Date: Mon, 20 May 2024 15:12:43 +0300 Subject: [PATCH 1/7] dt-bindings: display/msm/dsi: allow specifying TE source MIME-Version: 1.0 Message-Id: <20240520-dpu-handle-te-signal-v1-1-f273b42a089c@linaro.org> References: <20240520-dpu-handle-te-signal-v1-0-f273b42a089c@linaro.org> In-Reply-To: <20240520-dpu-handle-te-signal-v1-0-f273b42a089c@linaro.org> To: Rob Clark , Abhinav Kumar , Sean Paul , Marijn Suijten , David Airlie , Daniel Vetter , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Krishna Manikandan Cc: linux-arm-msm@vger.kernel.org, dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org, devicetree@vger.kernel.org, Dmitry Baryshkov X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=1898; i=dmitry.baryshkov@linaro.org; h=from:subject:message-id; bh=jse+EfinCh8AnjkQx3C/iJk2/gtirSq7agUZaG5U5so=; b=owEBbQGS/pANAwAKAYs8ij4CKSjVAcsmYgBmSz48jwip4m8plivDyhrPuFWOv0Ug1EGy9W0K9 cDJzlc2sZeJATMEAAEKAB0WIQRMcISVXLJjVvC4lX+LPIo+Aiko1QUCZks+PAAKCRCLPIo+Aiko 1Y8uB/985G/uHWGA0fZD2EfZLAaCrUvpeIOFfLeCFEa028C+6blQHf0FSdKZqvw3Zj2Pzfptf9k 4mn6ZhLgH3HoSk9Lur7syvZFJflVZn9Zyxo2U9VTjxi+78uTiZuZevLadDhhwvjNTghv6uqvqMH oDXwGp6eReQbD5gvE+TYsw3cn/6zdGzRcus9oMvln5mkk91k/aoLNpTaBGJ3y5wREkYW0xC22QB NTKhnNxwNfYb40pqUpqyMwMIXJp4dwrM8pITaxgYhp1RoskLo7YpNb1tNMWTSmM2LbpkqXyb4zV Zt71RD+a1F2Wvdbr2bBMwR4o1PYlHQF+NVi+mylASA5FrqWX X-Developer-Key: i=dmitry.baryshkov@linaro.org; a=openpgp; fpr=8F88381DD5C873E4AE487DA5199BF1243632046A X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Command mode panels provide TE signal back to the DSI host to signal that the frame display has completed and update of the image will not cause tearing. Usually it is connected to the first GPIO with the mdp_vsync function, which is the default. In such case the property can be skipped. Signed-off-by: Dmitry Baryshkov Reviewed-by: Rob Herring (Arm) Acked-by: Krzysztof Kozlowski --- .../bindings/display/msm/dsi-controller-main.yaml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/Documentation/devicetree/bindings/display/msm/dsi-controller-main.yaml b/Documentation/devicetree/bindings/display/msm/dsi-controller-main.yaml index 1fa28e976559..c1771c69b247 100644 --- a/Documentation/devicetree/bindings/display/msm/dsi-controller-main.yaml +++ b/Documentation/devicetree/bindings/display/msm/dsi-controller-main.yaml @@ -162,6 +162,21 @@ properties: items: enum: [ 0, 1, 2, 3 ] + qcom,te-source: + $ref: /schemas/types.yaml#/definitions/string + description: + Specifies the source of vsync signal from the panel used for + tearing elimination. The default is mdp_gpio0. + enum: + - mdp_gpio0 + - mdp_gpio1 + - mdp_gpio2 + - timer0 + - timer1 + - timer2 + - timer3 + - timer4 + required: - port@0 - port@1 @@ -452,6 +467,7 @@ examples: dsi0_out: endpoint { remote-endpoint = <&sn65dsi86_in>; data-lanes = <0 1 2 3>; + qcom,te-source = "mdp_gpio2"; }; }; };