From nobody Fri Dec 19 04:06:51 2025 Received: from mail-lf1-f44.google.com (mail-lf1-f44.google.com [209.85.167.44]) (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 1B57E17D2 for ; Fri, 14 Jun 2024 00:02:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.44 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718323352; cv=none; b=XPtmbjgEQhbMOwvLyHfmpIiEs/Ud1ClIyZkYQAVMAtANsCyHMiO+luUq75+x8NceuGCKQzArL+AWO0qhKsPOtoW/cGTsxVqLJzQcei3/ymYR9v7oaqWaglQtrbYUa6pImHyoh5HWAIkOgpIvdWZcFTBb4kbyXe2m8/nQUHwykv4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718323352; c=relaxed/simple; bh=ly28wJZAdwzm4TkEnW8cpppYMs8mXFFUqZf4RJIpHsY=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=UguQ4ADdYs/az+Ypyx8Lw7e4rDw02dEDukxt90E+5u7VIVny4OVseBtJg+bKU0zokKAdRqJwzENDE/PsYJbp7AFu5wdmGIU4dAVnHS9Rlpd7unLTLhOOZMsntgzSRRYUpdEJr8B5xU7shl8QlAbovIB2CZw0Uyj6UAu7PaLNh+4= 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=K3+/j0wt; arc=none smtp.client-ip=209.85.167.44 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="K3+/j0wt" Received: by mail-lf1-f44.google.com with SMTP id 2adb3069b0e04-52bc3130ae6so1855112e87.3 for ; Thu, 13 Jun 2024 17:02:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1718323349; x=1718928149; darn=vger.kernel.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=vkpCvK5EJTTZ5JzjKWIiKlKTNiomLgsRfQupOZcIcJE=; b=K3+/j0wtsHmIvdqCUdtxl8piGkanaqIrcaOSANp77mpMgWWvFvllCyLlpQHcXlcLWq rb0gleEo9K04gTBiY3ZnR5kQhLIM6rFIixtUks47vRPVvIOry56Qc8Qt/0LK4/sw7qvc VndTRnww1JAu+deg1yadLCq16AeshBg/JfbnDhc19X5dFDBrFNhNKN1kz0MccLMKSrzv vE5oFpMZiiVhNHCf427O/dvccPkR1Bh/fzV+AcxA22yWOzRCbsebQotEYOuXFjQUg5h7 dl/D2u8jc4mj6+wjEkvhKZt1YIxupNM6Xpn/afrBKPZ8N5R0dNVbFmkNlx7cej7xGSbG 0sjA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718323349; x=1718928149; 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=vkpCvK5EJTTZ5JzjKWIiKlKTNiomLgsRfQupOZcIcJE=; b=I05WjOJGdOJvb6oILxfgBsnEE7WbKt3UtaRB5ZLqTgOuhT7wYKtwh2LXb1fPIftJ6R 8j0OW5G040b+prg1sqQsNlPgCmHCbAOJb8xaeXko19p9D400Ik/cWJ1c6UbEyltYHN5Q Wa277Q7aDq8RfPfegQBHrsTRt3ITlk9oJeZBCScyk9H4DD06ro+DvZI9tbGAlJgnSuvv PudDoekEGe+870Y8IdmRia9OvyYoWD/otRMbuZtAOQPQ4uO1SaTcWy+zbev7d1aNPtDx B/M+p6hj+uaKzqEdWTSZ37Y80D0yZbiMM9fzxouLqPsGVHuiC3Ev9MBgfQW/I0oif2lC +LnA== X-Forwarded-Encrypted: i=1; AJvYcCVT3NYLGRtk/M0H6bhEZB1hTsrJT+3VmOkF8V0BLmdK/1zM6LBE/L9xK+RIkBhPrGN9wLzhiiFnAm57kPh/s5BRpmTck+1DJoMG5ZZN X-Gm-Message-State: AOJu0Yygp5f4T2+NdziqX5jzzrZ22adHBRWQQbZfp5z2tbjHsgoXJUKW h9AUbAxvVfnlbZ5Eehn4TBMmgGJKLWtWtA0z0CqHSvfa0lPVfZZROVqzw3fulow= X-Google-Smtp-Source: AGHT+IE9BLBhYpbu8JV4xf74wnBpCPiJUBFcxX6WNhMf1mJ+tJupZI8mMcrVtFEFb4OG5G8Qwnt76A== X-Received: by 2002:ac2:4ada:0:b0:52b:c27c:ea1f with SMTP id 2adb3069b0e04-52ca6e91627mr570592e87.55.1718323348734; Thu, 13 Jun 2024 17:02:28 -0700 (PDT) Received: from umbar.lan ([192.130.178.91]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-52ca288804dsm374797e87.262.2024.06.13.17.02.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 13 Jun 2024 17:02:28 -0700 (PDT) From: Dmitry Baryshkov Date: Fri, 14 Jun 2024 03:02:20 +0300 Subject: [PATCH v4 1/3] drm/panel-edp: add fat warning against adding new panel compatibles 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: quoted-printable Message-Id: <20240614-edp-panel-drop-v4-1-4e0a112eec46@linaro.org> References: <20240614-edp-panel-drop-v4-0-4e0a112eec46@linaro.org> In-Reply-To: <20240614-edp-panel-drop-v4-0-4e0a112eec46@linaro.org> To: Douglas Anderson , Neil Armstrong , Jessica Zhang , Sam Ravnborg , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Daniel Vetter , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-rockchip@lists.infradead.org, Jeffrey Hugo , devicetree@vger.kernel.org X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=1789; i=dmitry.baryshkov@linaro.org; h=from:subject:message-id; bh=ly28wJZAdwzm4TkEnW8cpppYMs8mXFFUqZf4RJIpHsY=; b=owEBbQGS/pANAwAKAYs8ij4CKSjVAcsmYgBma4iSY+Yydhiuir67MsMxJdnd2Q8Ogxxf/FjtW 28+90lvPdOJATMEAAEKAB0WIQRMcISVXLJjVvC4lX+LPIo+Aiko1QUCZmuIkgAKCRCLPIo+Aiko 1XGACACfi39l6OxtT8igatdQccpf9x3vBJq5skcjoGrat0PbMc8DgVkX7morDBPARu7RHfFBkNt xzWrqoHmJ9vkgMf7bWLP2q3A8zQ9SMJGxTBEbsmVRyPuslO3LWe1HlYzG36+7MGTSUMqB5Hy1Hx 9uBx2CMq2UeA9QgOBhA+ma3H99VPMjzDcGsN9fQ+hj3l3CmSou4/L5TgjBBBTSi1ppdHYEWX/xj 2ZQ6qOZNY8Ob88E8By6lCDov3+bjsItFrHkDGkCDE5ru1jQO3LRIVz9/+h7VZHthy9Mw3jHCMuJ BpSaGD4Fr8p5MkT4mxWughrf3EM4IMkuvAdfwd1kPYbMMGAV X-Developer-Key: i=dmitry.baryshkov@linaro.org; a=openpgp; fpr=8F88381DD5C873E4AE487DA5199BF1243632046A Add a fat warning against adding new panel compatibles to the panel-edp driver. All new users of the eDP panels are supposed to use the generic "edp-panel" compatible device on the AUX bus. The remaining compatibles are either used by the existing DT or were used previously and are retained for backwards compatibility. Suggested-by: Doug Anderson Reviewed-by: Neil Armstrong Reviewed-by: Douglas Anderson Signed-off-by: Dmitry Baryshkov Acked-by: Maxime Ripard --- drivers/gpu/drm/panel/panel-edp.c | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/panel/panel-edp.c b/drivers/gpu/drm/panel/pane= l-edp.c index 67ab6915d6e4..85edfd3d59f3 100644 --- a/drivers/gpu/drm/panel/panel-edp.c +++ b/drivers/gpu/drm/panel/panel-edp.c @@ -1762,7 +1762,24 @@ static const struct of_device_id platform_of_match[]= =3D { { /* Must be first */ .compatible =3D "edp-panel", - }, { + }, + /* + * Do not add panels to the list below unless they cannot be handled by + * the generic edp-panel compatible. + * + * The only two valid reasons are: + * - Because of the panel issues (e.g. broken EDID or broken + * identification). + * - Because the eDP drivers didn't wire up the AUX bus properly. + * NOTE that, though this is a marginally valid reason, + * some justification needs to be made for why the platform can't + * wire up the AUX bus properly. + * + * In all other cases the platform should use the aux-bus and declare + * the panel using the 'edp-panel' compatible as a device on the AUX + * bus. + */ + { .compatible =3D "auo,b101ean01", .data =3D &auo_b101ean01, }, { --=20 2.39.2 From nobody Fri Dec 19 04:06:51 2025 Received: from mail-lf1-f50.google.com (mail-lf1-f50.google.com [209.85.167.50]) (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 67E5C4A11 for ; Fri, 14 Jun 2024 00:02:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.50 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718323354; cv=none; b=SL1YKer9lYg7+BUxFrfpfuip6g8ALht2nGwhGcnFVrwi3m5MHRDeEEfeHXFkGry4uw1cyfeIwFVuzmGQDZO5oASA6H4ttv6VU3PcVbSfOrF42p6R7QdmqWlGb8+uHM/WViywuHQh+EtYXKDUOy5ehqdxu1oSP7npOHatbWt2Lqw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718323354; c=relaxed/simple; bh=bwFTYS1LXMHaETrXdK5thhWhFT5+sEKZ6Z1fZtNY+wI=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=MwzZT1fRYdr22AyJqqetH0MUupPvgRXrwLgcL8WPT1/ctQfEKlc40zU214UTJsebmJZd3dJAeqTPQTqbSMSXkgH/Bnp+v6D2nRuD0auzfxB0uZRgYqkON/URNblRs5d7UACjSBnkNdEjyhAeuPWgsa0vWo6DkOUusXDLC+OPWho= 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=jE7Rcqrj; arc=none smtp.client-ip=209.85.167.50 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="jE7Rcqrj" Received: by mail-lf1-f50.google.com with SMTP id 2adb3069b0e04-52ca342d6f3so1094919e87.2 for ; Thu, 13 Jun 2024 17:02:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1718323350; x=1718928150; darn=vger.kernel.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=O6Pigrl3YMiYV0L2puz2MCBrwA4BsCn0v5eH3hYPj3M=; b=jE7Rcqrj6do1piaKkNk6EVfv7wcH9EHSEVRbooOO88hdIBYuI6iYVjCXaEG5dif+CP 1cWQ5pDAnrTMPXQSjq0CVmUK9SkfFqcsfXKjpoqSQcOAfZMNXxoRyx8invgZfnBagHu1 AxNQm44JXlm1oD4DUyAd+frcyACb893pA+Izk1yADak6XfrqQ4OA9pSt/IAmt4jn7Nbx 0MDZZV8nKImTrXpyxltLLtN3iabiU35NzQXNoVuqxWDWsrywyB6o3yGLoW9AiGs8HHCJ x+QDUa1X91SlM1PhpA+1OYya04nBH3JmhYUlx/Nc41x8Ga+u9zADCtChpLkVA2Kmboq4 LAkw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718323350; x=1718928150; 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=O6Pigrl3YMiYV0L2puz2MCBrwA4BsCn0v5eH3hYPj3M=; b=m7OzUpG3ly9ZqPdR4rTxIGwnMqW6dDZvAAZtkkE+q3mgc7JeJQP34rJwq3bdTlgQ34 kvI0vJaqh/pO/ceIuXnScsbA8V4uVK9hX8hD51HsosRHa7vr/EO2vIbhQn89ECDxfNvD Zjc440C6j1J4w+KvMefgY8Lm8MT7EkY2uF0i6tS/DCy8tZQ1R4tCUCXuaCb66x1OJD6c 2TyuEBWoeMP7OQEPiRLvpNBIPRGYzRwVQhyjhyQvUBtDMYMmhv3UyX8nR08LzQIuIEIL 4UfYsu7/gElpIQq9IjeEuLI4MLVSlqHlNe+L2Be39ztERfYa/0etPE/6m0qQOt0VxuCa kYzg== X-Forwarded-Encrypted: i=1; AJvYcCWgodjKnoQIU6eS7PR3nLgO1TKvO6JITFMPUWU6Z5yviQD0nmuBIy1dkzgdXEj053p+fmuLmzop3YyGoUG/L9fPTAEfNl/nhnEFy11X X-Gm-Message-State: AOJu0YyXWHw7922zCDrAlDD3cqzFO0bnZtww+TiYUFn2aGh7ldpCG7Jd wHGPhL1BMhxOPKTpAXIPv8jDMwjQjCbee8ryuwNJ4MGJGVcVtAmT3/tnzZoxEBE= X-Google-Smtp-Source: AGHT+IH5UIwXjKfdAlrtgtsP/gSAJqsbdrJZUJutPq0mL+YKqAKX7hdu9dO+j3gNoMNN5f3Ra3X8wg== X-Received: by 2002:a05:6512:2204:b0:52c:8a3a:fe2c with SMTP id 2adb3069b0e04-52ca6e9418bmr803193e87.45.1718323350643; Thu, 13 Jun 2024 17:02:30 -0700 (PDT) Received: from umbar.lan ([192.130.178.91]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-52ca288804dsm374797e87.262.2024.06.13.17.02.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 13 Jun 2024 17:02:29 -0700 (PDT) From: Dmitry Baryshkov Date: Fri, 14 Jun 2024 03:02:21 +0300 Subject: [PATCH v4 2/3] dt-bindings: display: panel-edp-legacy: drop several eDP panels 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: quoted-printable Message-Id: <20240614-edp-panel-drop-v4-2-4e0a112eec46@linaro.org> References: <20240614-edp-panel-drop-v4-0-4e0a112eec46@linaro.org> In-Reply-To: <20240614-edp-panel-drop-v4-0-4e0a112eec46@linaro.org> To: Douglas Anderson , Neil Armstrong , Jessica Zhang , Sam Ravnborg , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Daniel Vetter , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-rockchip@lists.infradead.org, Jeffrey Hugo , devicetree@vger.kernel.org X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=2369; i=dmitry.baryshkov@linaro.org; h=from:subject:message-id; bh=bwFTYS1LXMHaETrXdK5thhWhFT5+sEKZ6Z1fZtNY+wI=; b=owEBbQGS/pANAwAKAYs8ij4CKSjVAcsmYgBma4iSZsRNQHJbZ2W+MlzIjjpWcJvGuGGSRSBPl oP3J++Uqg6JATMEAAEKAB0WIQRMcISVXLJjVvC4lX+LPIo+Aiko1QUCZmuIkgAKCRCLPIo+Aiko 1c4ICACTV5xKxTeR4arRjMWq6WVUa4a11qDoeZstp6WyrpASyxBgyXbvip2HW1SwbJxXFOhuUlq E9kJZMdQp1ENLl3oO482umdp3DMsEXlqlivUDazOSuVXt9NffF6tL5L15vxLd+eWSg/7USAY3zU xRlO66Y02jrnuYV6WJ4/xBXZl57y0rKQeFcQqSbQ0eYq7XFgq5TCN6iHB2o6k8/gUagTxdUEk+b BkhTxoZ1lYwwqdZJV9FHijzdRFqpRbZcyvfh5eUVs0BTlyZrjVBw25iEpaVLtjPNO6E6FXlt2Dw sGW1cCncmCkFnU6RVYWKZjaqIKIcLifZev9xXLuGGabDlJUb X-Developer-Key: i=dmitry.baryshkov@linaro.org; a=openpgp; fpr=8F88381DD5C873E4AE487DA5199BF1243632046A The panel-edp-legacy.yaml includes legacy bindings for several eDP panels which were never used in DT files present in Linux tree and most likely have never been used with the upstream kernel. Drop compatibles for these panels in favour of using a generic "edp-panel" device on the AUX bus. Reviewed-by: Douglas Anderson Signed-off-by: Dmitry Baryshkov Acked-by: Krzysztof Kozlowski Acked-by: Maxime Ripard --- .../devicetree/bindings/display/panel/panel-edp-legacy.yaml | 10 ------= ---- 1 file changed, 10 deletions(-) diff --git a/Documentation/devicetree/bindings/display/panel/panel-edp-lega= cy.yaml b/Documentation/devicetree/bindings/display/panel/panel-edp-legacy.= yaml index 9e5864de49e7..b308047c1edf 100644 --- a/Documentation/devicetree/bindings/display/panel/panel-edp-legacy.yaml +++ b/Documentation/devicetree/bindings/display/panel/panel-edp-legacy.yaml @@ -31,13 +31,9 @@ properties: # AUO B116XAK01 eDP TFT LCD panel - auo,b116xa01 # AU Optronics Corporation 13.3" FHD (1920x1080) color TFT-LCD pan= el - - auo,b133han05 - # AU Optronics Corporation 13.3" FHD (1920x1080) color TFT-LCD pan= el - auo,b133htn01 # AU Optronics Corporation 13.3" WXGA (1366x768) TFT LCD panel - auo,b133xtn01 - # AU Optronics Corporation 14.0" FHD (1920x1080) color TFT-LCD pan= el - - auo,b140han06 # BOE OPTOELECTRONICS TECHNOLOGY 10.1" WXGA TFT LCD panel - boe,nv101wxmn51 # BOE NV133FHM-N61 13.3" FHD (1920x1080) TFT LCD Panel @@ -56,8 +52,6 @@ properties: - innolux,n125hce-gn1 # Innolux P120ZDG-BF1 12.02 inch eDP 2K display panel - innolux,p120zdg-bf1 - # InfoVision Optoelectronics M133NWF4 R0 13.3" FHD (1920x1080) TFT= LCD panel - - ivo,m133nwf4-r0 # King & Display KD116N21-30NV-A010 eDP TFT LCD panel - kingdisplay,kd116n21-30nv-a010 # LG LP079QX1-SP0V 7.9" (1536x2048 pixels) TFT LCD panel @@ -78,10 +72,6 @@ properties: - sharp,ld-d5116z01b # Sharp 12.3" (2400x1600 pixels) TFT LCD panel - sharp,lq123p1jx31 - # Sharp 14" (1920x1080 pixels) TFT LCD panel - - sharp,lq140m1jw46 - # Starry 12.2" (1920x1200 pixels) TFT LCD panel - - starry,kr122ea0sra =20 backlight: true ddc-i2c-bus: true --=20 2.39.2 From nobody Fri Dec 19 04:06:51 2025 Received: from mail-lf1-f50.google.com (mail-lf1-f50.google.com [209.85.167.50]) (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 1EF2D19D8A3 for ; Fri, 14 Jun 2024 00:02:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.50 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718323357; cv=none; b=HVk5e2SGiYn6DpGqvbo8KARlhL1zqt7Em2h1ZSYUFqS2k7pqAgj7pfkxyvyzA4+9PBc5eTUrabBgq0gJyVaLbmm/mPi4TpxljFWFhdJotm6U2J3siEe1+X1d/S6kP83WDbndylokfbJE5kwfMx5EY+F2DxhEGkw+oq7gsBJeR5U= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718323357; c=relaxed/simple; bh=hx52QihZ5EuJ5AiqKyFQ2KKiCjZKNAgTrsIHJEVKJeY=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=fcWSm+lIWG//NaUxfwGH8i0aRnB0LjHfzR6rXKTCewNRZuBX67CNjHRJPnzf5qUlcbLVHjwThBa595BN9tDIxoTjdhBSwR4jh/weG1eJ/A0dj4UnPUHjPhUgszq3GQzmEn1ebW8ZOm7Y3pU0HUzgjF6vu9p9TOusiwnDUEWvZq8= 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=yQYD743r; arc=none smtp.client-ip=209.85.167.50 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="yQYD743r" Received: by mail-lf1-f50.google.com with SMTP id 2adb3069b0e04-52c815e8e9eso1767478e87.0 for ; Thu, 13 Jun 2024 17:02:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1718323352; x=1718928152; darn=vger.kernel.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=5zfrPUlUPVILrHliAQdW9ExhLGgEKHG4S87IgBlFScQ=; b=yQYD743ro7JOdjshuAbqwMihiRODRqdZcGlmRR34KA1wE1bDWio+kdf2tQK3BBABHS +v/1iIuNSrRiKQPXcv1SkQSo8jGtSs0liYwGm0Xt31R1/XeY9SYJ0dRa3R91HUviCIiF YNLRihtCaD2FNz/Uy3Ylct135o4owREILmkezP5qMrbTe4vijlA3gOmkeCM5d9NhOvFF 70WFM/EJFYDsr+yhmA/MZw002l9Au95J58HPyZ0zQrPJORjVAD/sFJJdL/zLD/ImhmG3 yaNpEALtRk2WwWWclfJBMWq3Ih29gG91zxwQr7XhQO3Tcs7yU/dOXRb2NFX0DyIQJWsT g8YA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718323352; x=1718928152; 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=5zfrPUlUPVILrHliAQdW9ExhLGgEKHG4S87IgBlFScQ=; b=u2e/ScG5KCd+B3rE4ZFuIFy3AIdaFoEE5rN91qyzBH8y8cCTl/bas8NkAJvygt7uHJ q/birTCmYNpdr7cEx7aI1uZ8mqaTWxwckPfA/x6qMO4RrP5m4yyaD6ChBflsnhCba5XE o8iENZjTBBTFe/G513e/X4BdaqkFE3tFSWvmRuvmsxSJ4kYmdbAPP8MpbOZaOat0fFOt psMkFjOAPrNthvboOpxi0K1c58fd5rwLxLeHEymmVBRA7cUsJQh+RT/ZIAWhT5OMFyon 699z8+xuWhIeSgmMMH7bez7B4SAtJimufsEgdNqBaIX67nw02zE+4fQXSNGfjXqbl8zt T+lg== X-Forwarded-Encrypted: i=1; AJvYcCU/FSK+nSdI+bWa0AULBIK2TMFczoAqtUwFqmc7OpOd7A7jbhw6KUR9VkUfHM7pBgjRE45qmQgkzIhsDrTkHBdQN+kwyF6tfPyUUS/e X-Gm-Message-State: AOJu0YzJLJsIx7yxD+CgJY34xTp9zjWu7Qm34QP9CiUZ25UMc0CST38D 7r59wOTfWqeuButGiSGTVDNsrQUO3tl4T6JO1wlcFTh5uDdvGKgth9NqPi3frh8= X-Google-Smtp-Source: AGHT+IF8OZ+6PpwFsBXyTwunpB/Bk1x8X+p90EOhm2amALpsFfnel6zQFwhZv7CB04URvvlELTWQCg== X-Received: by 2002:a19:f707:0:b0:52c:84a2:6e0f with SMTP id 2adb3069b0e04-52ca6e6535dmr677515e87.15.1718323352001; Thu, 13 Jun 2024 17:02:32 -0700 (PDT) Received: from umbar.lan ([192.130.178.91]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-52ca288804dsm374797e87.262.2024.06.13.17.02.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 13 Jun 2024 17:02:30 -0700 (PDT) From: Dmitry Baryshkov Date: Fri, 14 Jun 2024 03:02:22 +0300 Subject: [PATCH v4 3/3] drm/panel-edp: drop several legacy panels 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: quoted-printable Message-Id: <20240614-edp-panel-drop-v4-3-4e0a112eec46@linaro.org> References: <20240614-edp-panel-drop-v4-0-4e0a112eec46@linaro.org> In-Reply-To: <20240614-edp-panel-drop-v4-0-4e0a112eec46@linaro.org> To: Douglas Anderson , Neil Armstrong , Jessica Zhang , Sam Ravnborg , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Daniel Vetter , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-rockchip@lists.infradead.org, Jeffrey Hugo , devicetree@vger.kernel.org X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=7171; i=dmitry.baryshkov@linaro.org; h=from:subject:message-id; bh=hx52QihZ5EuJ5AiqKyFQ2KKiCjZKNAgTrsIHJEVKJeY=; b=owEBbQGS/pANAwAKAYs8ij4CKSjVAcsmYgBma4iSOvT8Y3rVOEvJW6Aw/Idxzce019n+w4iht 3YVrIas0fCJATMEAAEKAB0WIQRMcISVXLJjVvC4lX+LPIo+Aiko1QUCZmuIkgAKCRCLPIo+Aiko 1Rb9B/9nlEHpAdJ1BhZfisEfvgPJ6mnUA0K9AZ+3Ay6sL5EcWQX0WGMUfqFOw9iB7qA+NmwVZuF tiK2LsF9F6ynUvr7ds5TXCi8uf4Im4jKERarcx7iisMADgkI+B5/ZvRlTW8YWKbxqcwaVXt7tl7 EB3VKoNtd1tn0p0fCmr0rKafb+ODKfxqUurxrkqlregPXC9J9qypGlTnIpl6IAeKI5BCbfpgzLe 8Oinn3CNt7A6Xjq3W/JM/Br3DFr2Bp4OsSWRwFXh9V1JXvJzu7H09zKXaOpPSKoFpMrTJKFea2q VbrPVr6in5OKkglUuoofXI8olFVdC8+fr72PhR37NTfEEJxI X-Developer-Key: i=dmitry.baryshkov@linaro.org; a=openpgp; fpr=8F88381DD5C873E4AE487DA5199BF1243632046A The panel-edp driver supports legacy compatible strings for several eDP panels which were never used in DT files present in Linux tree and most likely have never been used with the upstream kernel. Drop compatibles for these panels in favour of using a generic "edp-panel" device on the AUX bus. Reviewed-by: Douglas Anderson Signed-off-by: Dmitry Baryshkov Acked-by: Maxime Ripard --- drivers/gpu/drm/panel/panel-edp.c | 173 ++--------------------------------= ---- 1 file changed, 7 insertions(+), 166 deletions(-) diff --git a/drivers/gpu/drm/panel/panel-edp.c b/drivers/gpu/drm/panel/pane= l-edp.c index 85edfd3d59f3..3a574a9b46e7 100644 --- a/drivers/gpu/drm/panel/panel-edp.c +++ b/drivers/gpu/drm/panel/panel-edp.c @@ -1045,33 +1045,6 @@ static const struct panel_desc auo_b116xak01 =3D { }, }; =20 -static const struct drm_display_mode auo_b133han05_mode =3D { - .clock =3D 142600, - .hdisplay =3D 1920, - .hsync_start =3D 1920 + 58, - .hsync_end =3D 1920 + 58 + 42, - .htotal =3D 1920 + 58 + 42 + 60, - .vdisplay =3D 1080, - .vsync_start =3D 1080 + 3, - .vsync_end =3D 1080 + 3 + 5, - .vtotal =3D 1080 + 3 + 5 + 54, -}; - -static const struct panel_desc auo_b133han05 =3D { - .modes =3D &auo_b133han05_mode, - .num_modes =3D 1, - .bpc =3D 8, - .size =3D { - .width =3D 293, - .height =3D 165, - }, - .delay =3D { - .hpd_reliable =3D 100, - .enable =3D 20, - .unprepare =3D 50, - }, -}; - static const struct drm_display_mode auo_b133htn01_mode =3D { .clock =3D 150660, .hdisplay =3D 1920, @@ -1121,33 +1094,6 @@ static const struct panel_desc auo_b133xtn01 =3D { }, }; =20 -static const struct drm_display_mode auo_b140han06_mode =3D { - .clock =3D 141000, - .hdisplay =3D 1920, - .hsync_start =3D 1920 + 16, - .hsync_end =3D 1920 + 16 + 16, - .htotal =3D 1920 + 16 + 16 + 152, - .vdisplay =3D 1080, - .vsync_start =3D 1080 + 3, - .vsync_end =3D 1080 + 3 + 14, - .vtotal =3D 1080 + 3 + 14 + 19, -}; - -static const struct panel_desc auo_b140han06 =3D { - .modes =3D &auo_b140han06_mode, - .num_modes =3D 1, - .bpc =3D 8, - .size =3D { - .width =3D 309, - .height =3D 174, - }, - .delay =3D { - .hpd_reliable =3D 100, - .enable =3D 20, - .unprepare =3D 50, - }, -}; - static const struct drm_display_mode boe_nv101wxmn51_modes[] =3D { { .clock =3D 71900, @@ -1414,33 +1360,6 @@ static const struct panel_desc innolux_p120zdg_bf1 = =3D { }, }; =20 -static const struct drm_display_mode ivo_m133nwf4_r0_mode =3D { - .clock =3D 138778, - .hdisplay =3D 1920, - .hsync_start =3D 1920 + 24, - .hsync_end =3D 1920 + 24 + 48, - .htotal =3D 1920 + 24 + 48 + 88, - .vdisplay =3D 1080, - .vsync_start =3D 1080 + 3, - .vsync_end =3D 1080 + 3 + 12, - .vtotal =3D 1080 + 3 + 12 + 17, - .flags =3D DRM_MODE_FLAG_PHSYNC | DRM_MODE_FLAG_PVSYNC, -}; - -static const struct panel_desc ivo_m133nwf4_r0 =3D { - .modes =3D &ivo_m133nwf4_r0_mode, - .num_modes =3D 1, - .bpc =3D 8, - .size =3D { - .width =3D 294, - .height =3D 165, - }, - .delay =3D { - .hpd_absent =3D 200, - .unprepare =3D 500, - }, -}; - static const struct drm_display_mode kingdisplay_kd116n21_30nv_a010_mode = =3D { .clock =3D 81000, .hdisplay =3D 1366, @@ -1689,75 +1608,6 @@ static const struct panel_desc sharp_lq123p1jx31 =3D= { }, }; =20 -static const struct drm_display_mode sharp_lq140m1jw46_mode[] =3D { - { - .clock =3D 346500, - .hdisplay =3D 1920, - .hsync_start =3D 1920 + 48, - .hsync_end =3D 1920 + 48 + 32, - .htotal =3D 1920 + 48 + 32 + 80, - .vdisplay =3D 1080, - .vsync_start =3D 1080 + 3, - .vsync_end =3D 1080 + 3 + 5, - .vtotal =3D 1080 + 3 + 5 + 69, - .flags =3D DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC, - }, { - .clock =3D 144370, - .hdisplay =3D 1920, - .hsync_start =3D 1920 + 48, - .hsync_end =3D 1920 + 48 + 32, - .htotal =3D 1920 + 48 + 32 + 80, - .vdisplay =3D 1080, - .vsync_start =3D 1080 + 3, - .vsync_end =3D 1080 + 3 + 5, - .vtotal =3D 1080 + 3 + 5 + 69, - .flags =3D DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC, - }, -}; - -static const struct panel_desc sharp_lq140m1jw46 =3D { - .modes =3D sharp_lq140m1jw46_mode, - .num_modes =3D ARRAY_SIZE(sharp_lq140m1jw46_mode), - .bpc =3D 8, - .size =3D { - .width =3D 309, - .height =3D 174, - }, - .delay =3D { - .hpd_absent =3D 80, - .enable =3D 50, - .unprepare =3D 500, - }, -}; - -static const struct drm_display_mode starry_kr122ea0sra_mode =3D { - .clock =3D 147000, - .hdisplay =3D 1920, - .hsync_start =3D 1920 + 16, - .hsync_end =3D 1920 + 16 + 16, - .htotal =3D 1920 + 16 + 16 + 32, - .vdisplay =3D 1200, - .vsync_start =3D 1200 + 15, - .vsync_end =3D 1200 + 15 + 2, - .vtotal =3D 1200 + 15 + 2 + 18, - .flags =3D DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC, -}; - -static const struct panel_desc starry_kr122ea0sra =3D { - .modes =3D &starry_kr122ea0sra_mode, - .num_modes =3D 1, - .size =3D { - .width =3D 263, - .height =3D 164, - }, - .delay =3D { - /* TODO: should be hpd-absent and no-hpd should be set? */ - .hpd_reliable =3D 10 + 200, - .enable =3D 50, - .unprepare =3D 10 + 500, - }, -}; - static const struct of_device_id platform_of_match[] =3D { { /* Must be first */ @@ -1785,18 +1635,12 @@ static const struct of_device_id platform_of_match[= ] =3D { }, { .compatible =3D "auo,b116xa01", .data =3D &auo_b116xak01, - }, { - .compatible =3D "auo,b133han05", - .data =3D &auo_b133han05, }, { .compatible =3D "auo,b133htn01", .data =3D &auo_b133htn01, }, { .compatible =3D "auo,b133xtn01", .data =3D &auo_b133xtn01, - }, { - .compatible =3D "auo,b140han06", - .data =3D &auo_b140han06, }, { .compatible =3D "boe,nv101wxmn51", .data =3D &boe_nv101wxmn51, @@ -1824,9 +1668,6 @@ static const struct of_device_id platform_of_match[] = =3D { }, { .compatible =3D "innolux,p120zdg-bf1", .data =3D &innolux_p120zdg_bf1, - }, { - .compatible =3D "ivo,m133nwf4-r0", - .data =3D &ivo_m133nwf4_r0, }, { .compatible =3D "kingdisplay,kd116n21-30nv-a010", .data =3D &kingdisplay_kd116n21_30nv_a010, @@ -1857,12 +1698,6 @@ static const struct of_device_id platform_of_match[]= =3D { }, { .compatible =3D "sharp,lq123p1jx31", .data =3D &sharp_lq123p1jx31, - }, { - .compatible =3D "sharp,lq140m1jw46", - .data =3D &sharp_lq140m1jw46, - }, { - .compatible =3D "starry,kr122ea0sra", - .data =3D &starry_kr122ea0sra, }, { /* sentinel */ } @@ -1914,6 +1749,12 @@ static const struct panel_delay delay_200_500_e80_d5= 0 =3D { .disable =3D 50, }; =20 +static const struct panel_delay delay_80_500_e50 =3D { + .hpd_absent =3D 80, + .unprepare =3D 500, + .enable =3D 50, +}; + static const struct panel_delay delay_100_500_e200 =3D { .hpd_absent =3D 100, .unprepare =3D 500, @@ -2122,7 +1963,7 @@ static const struct edp_panel_entry edp_panels[] =3D { EDP_PANEL_ENTRY('S', 'D', 'C', 0x416d, &delay_100_500_e200, "ATNA45AF01"), =20 EDP_PANEL_ENTRY('S', 'H', 'P', 0x1511, &delay_200_500_e50, "LQ140M1JW48"), - EDP_PANEL_ENTRY('S', 'H', 'P', 0x1523, &sharp_lq140m1jw46.delay, "LQ140M1= JW46"), + EDP_PANEL_ENTRY('S', 'H', 'P', 0x1523, &delay_80_500_e50, "LQ140M1JW46"), EDP_PANEL_ENTRY('S', 'H', 'P', 0x153a, &delay_200_500_e50, "LQ140T1JH01"), EDP_PANEL_ENTRY('S', 'H', 'P', 0x154c, &delay_200_500_p2e100, "LQ116M1JW1= 0"), =20 --=20 2.39.2