Received: by 2002:ab2:3350:0:b0:1f4:6588:b3a7 with SMTP id o16csp1048021lqe; Sun, 7 Apr 2024 16:54:08 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCW+cI8dVDbQAWjn5XgZgwdjFq+FRyAfUW7Z+S3y7Qhm4EX5m/Phab4nPZPAz+/rAD2awdj/jdN56qBvOk2kKo0uiF40fkfmjIesaSftfQ== X-Google-Smtp-Source: AGHT+IHOcZpUaot8F6JR6b6D4WhfonQR0NfZNXklzNcfmfOrXrflVn2/VSnkMx0OooxFhCtyfN0I X-Received: by 2002:a05:6a21:2d8c:b0:1a7:61f0:9ca9 with SMTP id ty12-20020a056a212d8c00b001a761f09ca9mr1405529pzb.58.1712534048274; Sun, 07 Apr 2024 16:54:08 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712534048; cv=pass; d=google.com; s=arc-20160816; b=uYqcbTHKViSqdr3QDuKH4nc/dN/1lpN70KPmVeTDnq6UAolco82DqFcsI7WjrG6FoK 8UAsYNRFSrVWT394TfsRlPMinCpZxpjstX6/idO5aXNskBTbDrlh+weuHM9QedbfF35r u/zQ6KSogf7i3qTp/qzY2Wm4rprcRVr3lH75+0nLwdfzw+a8wCqbAxoC+QZfYf0hVVI/ auj/R1uPJLpSVFC8TcKVRsTPWoADcWRN7oeSIoArrw0XPQ8SIJ9W2tI54hY1RMQ8Bycz EixWFnP+vR73kwqLuu4kzD+1IcdOVRkITANtNzB7IELVOdq4AsTtFp6/NC94qPKgYj14 AJ5g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:from :dkim-signature; bh=yMcxsAENHF5JWPN2nEOEzKEp66J7aXCfL6fneB4AUf4=; fh=XnAtMq9QzlbrQfUuDRtdJatz8tKXBaNMQN9EoAvCaEc=; b=Uf7I60Dxg2ZnYnU7GtI3vycArCfClXV+ICJZehQe+iB1b7+ActeBprxV9Pmjf4/KlV zjssyHi890zjsw5kg7KHk1JxF5+cIc0W2KBVXgZtzUacKJZXjY7nn9tZH94W9EGaHfoj kFQy/ylC0ySxvBK93z4jx30H846PkzxSUUYX7Cj4eIU8JQZHQv07Qb1OXDWs/ZWtnCbK ch1LcwFPAN/lmCyB5+5SmbAEZZ39NxsM1bZAFlAivhxxjZg45U3a8Mx+CUCXFu1bEGnw vTdTb0p1LTtbaDb3mLXd7dF3pI+E/G/2bIBbPLu1wK0b0g0K8armcgn4K+pfiruzFTnE 2NXw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=jAVuGJ6w; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-134674-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-134674-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id x16-20020a170902ec9000b001e23e082c31si5283796plg.26.2024.04.07.16.54.07 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 07 Apr 2024 16:54:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-134674-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=jAVuGJ6w; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-134674-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-134674-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org 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 EE781B20E85 for ; Sun, 7 Apr 2024 23:54:06 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2BBBB45961; Sun, 7 Apr 2024 23:53:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="jAVuGJ6w" Received: from mail-lf1-f42.google.com (mail-lf1-f42.google.com [209.85.167.42]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3607C43AC5 for ; Sun, 7 Apr 2024 23:53:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.42 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712534036; cv=none; b=vA9sdzRBEERwaC/v6myXCUdbOp2PVZZnsO0RR2XbLTrod/0SSCugJNzehxvDE5wMd2hBYUU++KAhg/Ma08n1JaEQt/hGoUKJf5wLBKprY6SX7ngCA5Y/JzHiSGEoIjVGskWE7i3DDFBML3yj4smY3VUTcoKeGX/0RJVKHcOnWIw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712534036; c=relaxed/simple; bh=t8MZMgY9WeARuExR2gP9qPibci5DwBYxO4q76j3A8PI=; h=From:Subject:Date:Message-Id:MIME-Version:Content-Type:To:Cc; b=k7guuJa87tn6fpn0oBSl4n5UIuYmqqON7R4AuLFNkWuhh+XWeNIZzqhtUl2KihlLyzblMh/x6K6fhZ64nstdggZ1YeehCNQ3v0kIh+iPObPnQN4csvVoHMEeRgy7CBZx5jr3ktN4kUXRUm82PvDFNN4O5oJFuVu2PUfODgr1C0E= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=jAVuGJ6w; arc=none smtp.client-ip=209.85.167.42 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-lf1-f42.google.com with SMTP id 2adb3069b0e04-516d0161e13so4153286e87.3 for ; Sun, 07 Apr 2024 16:53:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1712534032; x=1713138832; darn=vger.kernel.org; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:from:to:cc:subject:date:message-id:reply-to; bh=yMcxsAENHF5JWPN2nEOEzKEp66J7aXCfL6fneB4AUf4=; b=jAVuGJ6wGTrL6FTlTb3Cf5GoLdDr65WTz5vrRFj33F9Pgo7MdU3XIyB0YG4xlKgiLu FlDkGLtGKcTduWNQNTF/xfF9gYoHjNcgdcpgPxVHV6D6MzWCxy0NcORlvZSonomEhUHx T7YtM/ZMYkM//TqSoxLwEezLTg3DKZ9of01FgVKtNNUcbF/oMw9VqdfFlHCX5vgX0FKz koKgl7RImbDrHTCZuBteDhCVV/nMT2V5gqEjQ2O5cOF8XczZ+XvguWAk1lj7w/vQEP71 gciiCS8C74qa7Igabu7+YFV5s0XQkWf9G8gR1/F+6QxfveZAvYVR4RPrj4ME/5W3MEsa Hqpg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712534032; x=1713138832; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=yMcxsAENHF5JWPN2nEOEzKEp66J7aXCfL6fneB4AUf4=; b=aXZJmSivKwxw/prXQPtE31iY2D0yLKivbFJqY0scchu4cTRkhzvxiWMWPgpZMTwZjp tWPFahFp+Mi5usyKiIqRUDWzw67ZIIxZTAWbVRilC4H1uvcPY99t5F55r0cOnV6BWtPF 0LG2wKFMgroQUFcAHtAKPrTGwo8BzObxSdyqax9ustvTOmqezbJ7axTfSmgNEK/KMQWJ hpXVztMQB6+/YcgYeYv9YYn5VwnTpjrmMgQtkmGDxw5wWdonXdnAMJWJ65t/8lkGrcmx LNVmHnIGcvVn7kSncLapnLbn5Z4B1Jk+vi7NFolIj3CvxfD3pAhtqHfDEpTGpvMZZyQY BCpw== X-Forwarded-Encrypted: i=1; AJvYcCWCwQ71QMukK9mAAvM4RQCWym8iKRS6B/ZV8y+S/57w6Oi+nBRDNfQW717Wv78F08IQoBqreG0LfmEIxr9nwv+9+zvK2x6BE/F97lBB X-Gm-Message-State: AOJu0Yzsy9vRUiGuDkXJ+B8HHv2AFCLso6Tq+lu19J2eX+RkzKhBv5Mq 7N8B1t0+MlfqirvH74ffREWPwGNRSzhCQp/7b9xguqpLVLTQuJDJSFgNMsB2x0vRsGe+E8Nviv9 3 X-Received: by 2002:a19:9155:0:b0:513:ba98:36a with SMTP id y21-20020a199155000000b00513ba98036amr5237441lfj.10.1712534032021; Sun, 07 Apr 2024 16:53:52 -0700 (PDT) Received: from umbar.lan ([192.130.178.91]) by smtp.gmail.com with ESMTPSA id t27-20020ac2549b000000b00516b07fdc26sm965696lfk.109.2024.04.07.16.53.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 07 Apr 2024 16:53:51 -0700 (PDT) From: Dmitry Baryshkov Subject: [PATCH v5 0/4] drm/panel: add support for LG SW43408 panel Date: Mon, 08 Apr 2024 02:53:49 +0300 Message-Id: <20240408-lg-sw43408-panel-v5-0-4e092da22991@linaro.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-B4-Tracking: v=1; b=H4sIAA0yE2YC/4XNQQrCMBCF4atI1kYymRkbXXkPcZG2SQ2UVhKpS undTd2oKLr8H8w3o0guBpfEdjGK6IaQQt/l4OVCVEfbNU6GOrfQSpNCVLJtZLoQkjLyZDvXypJ ZewKoGJ3IZ6fofLg+yP0h9zGkcx9vjw8DzOsPbACppGc2ylcbr2u7a0NnY7/qYyNmbdD/BJ0Fv UHLpoCiRPMh4FMgpb8ImAUg8lBYAMvrD4FeBfwiUBYsmnXNNZaqehemaboDf3BNJ3cBAAA= To: Sumit Semwal , Caleb Connolly , Neil Armstrong , Jessica Zhang , Sam Ravnborg , David Airlie , Daniel Vetter , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, Vinod Koul , Caleb Connolly , Krzysztof Kozlowski , Marijn Suijten X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=2771; i=dmitry.baryshkov@linaro.org; h=from:subject:message-id; bh=t8MZMgY9WeARuExR2gP9qPibci5DwBYxO4q76j3A8PI=; b=owEBbQGS/pANAwAKAYs8ij4CKSjVAcsmYgBmEzIOYhLmADeE1oMW+fuimUAYr6cUUclraV6es Wu3wQMznJ2JATMEAAEKAB0WIQRMcISVXLJjVvC4lX+LPIo+Aiko1QUCZhMyDgAKCRCLPIo+Aiko 1cQoCACMrDFIOYvkEv/r09SDxlsU2yZMhfKkA7hCJwc0eqKkWPYlHxfNEhXmp4yvJg5MvZ5tEsD 0x73gudQfFfiXQojJXapalASKBWU0p1Ukw3G0n+M8JG9hDlEF2eALighs/pKoYzKuBSTBk5duSB 20v2rk3/2QKdoKS6Vy1lQRlQr0Y2DtuRtOpkecsNVqffmG7jgVgLz9wH4J4qSaykks1DOKUqgDS EAnn1/1xEUAkUzgGQs77lbwo6Dla4Yd+UQeAU5cES6MMrwkNZzT7uYHA2ClUHTzml0R/z/nb2V7 OltGgTznYpE+bNSI2eLrqbVGqqmNGyPfeKGp1dPxUpZzderH X-Developer-Key: i=dmitry.baryshkov@linaro.org; a=openpgp; fpr=8F88381DD5C873E4AE487DA5199BF1243632046A The LG SW43408 panel is used on Google Pixel3 devices. For a long time we could not submit the driver, as the panel was not coming up from the reset. The panel seems to be picky about some of the delays during init and it also uses non-standard payload for MIPI_DSI_COMPRESSION_MODE. Signed-off-by: Dmitry Baryshkov --- Changes in v5: - Mention 60 Hz in the commit message (Marijn) - Fix the comment regarding the panel being DSC-only (Marijn) - Link to v4: https://lore.kernel.org/r/20240403-lg-sw43408-panel-v4-0-a386d5d3b0c6@linaro.org Changes in v4: - Fix order of mipi_dsi_compression_mode_ext() args (Marijn) - Expanded kerneldoc coments for this function (Marijn) - And added arguments validation (Marijn) - In the panel driver send the COMPRESSION_MODE in LPM mode like it was done originally - Expanded the .clock maths to show the reason behind the value (Marijn) - Moved the mode out of the match data (Marijn) - Link to v3: https://lore.kernel.org/r/20240402-lg-sw43408-panel-v3-0-144f17a11a56@linaro.org Changes in v3: - Fixed return type of MIPI DSC functions - Replaced mipi_dsi_compression_mode_raw() with mipi_dsi_compression_mode_ext() (Marijn) - Link to v2: https://lore.kernel.org/r/20240330-lg-sw43408-panel-v2-0-293a58717b38@linaro.org Changes in v2: - Removed formatting char from schema (Krzysztof) - Moved additionalProperties after required (Krzysztof) - Added example to the schema (Krzysztof) - Removed obsolete comment in the commit message (Marijn) - Moved DSC params to the panel struct (Marijn) - Changed dsc_en to be an array (Marijn) - Added comment regiarding slice_width and slice_count (Marijn) - Link to v1: https://lore.kernel.org/r/20240330-lg-sw43408-panel-v1-0-f5580fc9f2da@linaro.org --- Dmitry Baryshkov (2): drm/mipi-dsi: use correct return type for the DSC functions drm/mipi-dsi: add mipi_dsi_compression_mode_ext() Sumit Semwal (2): dt-bindings: panel: Add LG SW43408 MIPI-DSI panel drm: panel: Add LG sw43408 panel driver .../bindings/display/panel/lg,sw43408.yaml | 62 ++++ MAINTAINERS | 8 + drivers/gpu/drm/drm_mipi_dsi.c | 45 ++- drivers/gpu/drm/panel/Kconfig | 11 + drivers/gpu/drm/panel/Makefile | 1 + drivers/gpu/drm/panel/panel-lg-sw43408.c | 323 +++++++++++++++++++++ include/drm/drm_mipi_dsi.h | 15 +- 7 files changed, 453 insertions(+), 12 deletions(-) --- base-commit: a6bd6c9333397f5a0e2667d4d82fef8c970108f2 change-id: 20240330-lg-sw43408-panel-b552f411c53e Best regards, -- Dmitry Baryshkov