Received: by 2002:ab2:1149:0:b0:1f3:1f8c:d0c6 with SMTP id z9csp549999lqz; Sat, 30 Mar 2024 08:01:11 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUORKorYKGIGTYRIILoA6KPHv35u39iFt5C+5X4KvVmWYoyzvxJZ6hEsguXvtNwrf4YJ2YiJHU0EEPqoS7L04qFDosGbihL39rkyFbD7Q== X-Google-Smtp-Source: AGHT+IF64gSpq0Rde9xFuBbHtfyBNqKgIRxNkVfNXQUXi8QMX+v4sp8uIYEncf0WoSn4VrRvTT0I X-Received: by 2002:a05:6a21:328c:b0:1a3:645a:129 with SMTP id yt12-20020a056a21328c00b001a3645a0129mr6097692pzb.7.1711810871619; Sat, 30 Mar 2024 08:01:11 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711810871; cv=pass; d=google.com; s=arc-20160816; b=ucbCp9X7ZZ1YMiz53lKgymz4CzYTUb58aOdApBoLCYm9ZjkQLzyL7JLsJBC1XA5Izo 60VzslfM+8bP8RS/F47hvD5jz6H3K34Q19NBDei3dMFm7+cICBesTED1T77r4teT1AeD 9QrhRMDG2t0yTMEgUgXzSkm/IgZYIobyHBqCzSSLrDTxIQuDvntugEMBgWJnhTPjrhhK +BnbrQlYqFHEups5V8r+jSBtX2qnVypRBk2khwC8tpz9Ic9dVPCbgGUlJuL6Df8FwtUu LG6mRSieCib+myCTq8wLY+6GDdIdMgBXjwVClZTJnh2/xImHHDvIxJIjJucYSQSMS9b3 tKLw== 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=qeFUNYhrsBvDmXfNh3GP5CFwWeV+2KjCY5GUTF19i58=; fh=Uvt5mJTGeZcSxIPm63+kps7yv4p2GSr4LCqWtbS9ODw=; b=xiOQzroQ5LddaZ2sMh4FRpgX4vl0bxi0/ba0Tpsi+F4I7VHJzVF/DrPA59BSS/HvVz DP/QmT6iEU3nHwqUohI9NYC+U+wH6PV+kBAwmGypClaxSgHQxmWN3gdey2MPmJ7PDhld mYghOlkf9cSbjTTWfTSBwvSAMQujnE4BOGmjLc2QHP4oBfL76XF4QqSrTdvwRjxSoHH/ q21wCPKkdXFiAIL8epi8rTYDWObPaOFT8GjjfsCLP+RbHL3grGdktjSycstjjone8TRq 5IEBTkOUsZNJOEjBqMv/0Dup6vxH2JbxxUVswNDXpG2WDQsNYnX/Q8n5+HyhNDcb0QQ6 n1fA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="QfeLH+E/"; 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-125752-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-125752-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. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id jc11-20020a056a006c8b00b006eaf285363asi2199850pfb.139.2024.03.30.08.01.10 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 30 Mar 2024 08:01:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-125752-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=@linaro.org header.s=google header.b="QfeLH+E/"; 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-125752-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-125752-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 2CDB8B20BC0 for ; Sat, 30 Mar 2024 15:01:04 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A451439870; Sat, 30 Mar 2024 15:00:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="QfeLH+E/" Received: from mail-lf1-f54.google.com (mail-lf1-f54.google.com [209.85.167.54]) (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 B72711C0DEF for ; Sat, 30 Mar 2024 15:00:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.54 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711810851; cv=none; b=cckkP70YXNhh1mX3uZIqfl69G5/sWilauHRpkjwam57BBMQHl/w0MruYLLuchFOXs7dAQjYIeZIGaTrzMOj4jLaIfwAKMSY3Q1IUt6mhVXfL8y2DYMIqHT5F9TKcurRhnsveNurpKDoIKXPIgchQ5BXewYBtlg8Y60SXAAeHOmM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711810851; c=relaxed/simple; bh=TbTHOui9nRbzInfWv54rG7ybH2YP9w+pNQe9Uik8Gy0=; h=From:Subject:Date:Message-Id:MIME-Version:Content-Type:To:Cc; b=OsViVWVHiarDSIGRXSSGOY2yh8zIJiezq1ZUfNnT6FXY6TD25BdZ5qnjzjaM2Su5/lrMriKzKFbE5q3ApxXw5vwVFGWYl4Prgn8nNBp9KxCMIb65su8tJIjMMXLb8PnQuQwqxDf5vyUJoyCYuH8YcO5COGIvzXxOOLdmOzj7B4w= 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=QfeLH+E/; arc=none smtp.client-ip=209.85.167.54 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-f54.google.com with SMTP id 2adb3069b0e04-513d212f818so3047166e87.2 for ; Sat, 30 Mar 2024 08:00:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1711810848; x=1712415648; 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=qeFUNYhrsBvDmXfNh3GP5CFwWeV+2KjCY5GUTF19i58=; b=QfeLH+E/0W3Tz09xNlq+WsZ7hpSn9HaIJZ8eXtmZmIGN+QXZHOISiboi/4GVrpUF7p NOW+IRhqs8glaas/mEw4NapMALdBKPC3s7ikjak08WIJlzzs2YB+GypK3bgCFrcO2oPy ANANNN2AYVubRy8P6XmrxEz6E+ZX4Bajl/Xif8tPVizRQY68kXPfbY7Uycte8K621bTJ 5j58wcs1xKM7tj3D7SkBKdmm3737Y+N1V+yyF+YIKP/qRqSo2CaG4H1NOEkBT5olzK2t VLodHMAKIrLIHeM/dj3cApcPoOV9sxWB8dnKEJLkWGRtp2oiLr7o9w3P8HJA1FBBWGhW QDQw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711810848; x=1712415648; 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=qeFUNYhrsBvDmXfNh3GP5CFwWeV+2KjCY5GUTF19i58=; b=SRgKtv9azZmNUIo15k+sY6uqoqczWXTNVOZHbB4cwuwnfBy+bxdpH0FapoR+erpbAn Pos2s4bYeYinjuQbzpRR5ZzDuxJ07y77EyqkevpmNw0OXHwikBzGmkdsfGEEaSJx8y16 XHThqyZlad4ZP9TOrw9KTbGvO+58iR9EGczNl3ELfOgs110J/63MhaVdMJOIcjH78Zha BHPGSraVPCT2RyPn56c2VrjPmsKeIz7KtDjCW+v81eoCMQPSM0GzLkVZplCEVUsjZUU0 CEXJ2p7Afhz4E72D+5AJ5dl1xGFcdgOkCmhTlATpNSoLcTfLm/smj+wKtUozlvYHKpEs 6vVw== X-Forwarded-Encrypted: i=1; AJvYcCUoQmTLz3/IMgcteZUoxpcfaU5TarOdg5yKtT6eGc+gwgfng5kEW++27jm9q9OITJfrC0SfDWfAF38/8Ie/Qx3+mPk3EiqvdHBvt2lm X-Gm-Message-State: AOJu0YxA/UgGS8JbCcRMUBpH9MT4Xvg5l6I7Dx91LXS+Cy8Btx8oe2Th iwaKrryuK4RGyLbHAgrPQWXF9ifxb7aPwAKNukgnPCdvOWJNK3ViCN8Q3sMRUCD908sVx8KOHdo f X-Received: by 2002:ac2:58f2:0:b0:513:3d26:7cc6 with SMTP id v18-20020ac258f2000000b005133d267cc6mr2848569lfo.15.1711810847829; Sat, 30 Mar 2024 08:00:47 -0700 (PDT) Received: from umbar.lan ([192.130.178.91]) by smtp.gmail.com with ESMTPSA id j5-20020a056512344500b00515d205a6f0sm496199lfr.29.2024.03.30.08.00.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 30 Mar 2024 08:00:47 -0700 (PDT) From: Dmitry Baryshkov Subject: [PATCH v2 0/3] drm/panel: add support for LG SW43408 panel Date: Sat, 30 Mar 2024 17:00:45 +0200 Message-Id: <20240330-lg-sw43408-panel-v2-0-293a58717b38@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=H4sIAB0pCGYC/32NTQrCMBBGr1Jm7Uh+obryHtJFbCfpQElKIlEpv buxB3D5Hnzv26BQZipw7TbIVLlwig3UqYNxdjEQ8tQYlFBGaC1wCVheRhvR4+oiLfiwVnkj5Wg 1QZutmTy/j+R9aDxzeab8OR6q/Nk/sSpRoLe2F368eDW528LR5XROOcCw7/sXkSIEILEAAAA= 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 X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=1736; i=dmitry.baryshkov@linaro.org; h=from:subject:message-id; bh=TbTHOui9nRbzInfWv54rG7ybH2YP9w+pNQe9Uik8Gy0=; b=owEBbQGS/pANAwAKAYs8ij4CKSjVAcsmYgBmCCkeW9RMtkNd3jg/F4YF3+7GbRlOaHo4dt3gG f5lWmdi9/uJATMEAAEKAB0WIQRMcISVXLJjVvC4lX+LPIo+Aiko1QUCZggpHgAKCRCLPIo+Aiko 1aABCACVd6NQSpXlyfAImYk+V5+sCXVWy/Cu78jlO/LPhB1OjoR5DQ/YwVOttpOAg7b5pZ5dd3I faWpAQ32mUBBtU091NXtPFmAZVmbrjplgCg8HQ3CSuAq266/Y7b5NpwEPLe2u8sGL0sB+EjyDeu Jj9uD9DMDDmAS8ju3jFcWEkehWec1SHrJe97vzFWa9iDp3I8uDC80MXXYSAjdZbzL7fud6GPbcC LRMfhO7q38gMBkBys2rirGZhoH5gaxbRzel22HcaIXCGGRSnw1ZtiFFZtvfLvrpTNIsVeGLY+Q/ q/ccLjijPHfpvLswPPiYTttJM7pdyO1DVcrICuq1NRTZFqQy 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 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 (1): drm/mipi-dsi: add mipi_dsi_compression_mode_raw() 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 | 34 ++- drivers/gpu/drm/panel/Kconfig | 11 + drivers/gpu/drm/panel/Makefile | 1 + drivers/gpu/drm/panel/panel-lg-sw43408.c | 321 +++++++++++++++++++++ include/drm/drm_mipi_dsi.h | 1 + 7 files changed, 430 insertions(+), 8 deletions(-) --- base-commit: 13ee4a7161b6fd938aef6688ff43b163f6d83e37 change-id: 20240330-lg-sw43408-panel-b552f411c53e Best regards, -- Dmitry Baryshkov