From nobody Fri Dec 19 19:30:37 2025 Received: from mail-lf1-f46.google.com (mail-lf1-f46.google.com [209.85.167.46]) (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 9CBF713D89A for ; Tue, 28 May 2024 23:52:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.46 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716940380; cv=none; b=htohYIKHJsMYLQjE/kIQFyZxZ7KDGCSR7BpUCdNxxxln+OVzkJWOStuCAucS7kMJm+B/hzNbutbZGJiig41+dW/mqNHNO1y8P/bUVEJWV7HEOW9QPN/H9TojFmwP2K8hEjOOvg89ybM31KP10rbgyzDxkZWTNo3NGX4PP6pyLSs= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716940380; c=relaxed/simple; bh=oHBezVlQg7OYkDqf0mCnlNvzfcQLRXocxgcJNJ+SMzs=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=J3L5ct+bWdIXsiQuf+VNWhw0mAQHIK64vo+QoGFxwnyR/MFa9pWJyerBDLd75jjCvhGEcILpos9L4dLs1Ew5rQjOyMJ+1mEIgd1cfU0gDM6T5cuQ9Vl/pHJ+CgsYYi6pybj80xCkRgCA4MRhZF7LpCWyYOA0Uvea6ucj+A67LKk= 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=NKCl2XaV; arc=none smtp.client-ip=209.85.167.46 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="NKCl2XaV" Received: by mail-lf1-f46.google.com with SMTP id 2adb3069b0e04-52ab1d7243fso258877e87.1 for ; Tue, 28 May 2024 16:52:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1716940376; x=1717545176; 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=WJH0eGHL0S44S4VAoT3//wXsK4IwPG7MFQf/QTWKdP4=; b=NKCl2XaVwsESEt4ABXS1SAYGYsmINaIMFOsQjcxH0rIiPkvFIV4Y3QOO9YXspucAdh BkyO5o5wVjwOnVG/00KUk1tKE4XKw/IMiFo11I4hZV2NpWN/1BecZeTJkHNHoLtsjvRE DcstDrWntBuSoQYzbjDGyhXW0za985s80qJVOYkRtxWNXPAcB/dvNn0zcvRXJnBmnH8Z E7UgQYRqBr4ePhYtt2sXKdvUr4Uq5hKktnp0Puwd2swRt5RAraeNKTyXmxHIgy2QHpfR ztiGvmAMMGCjFt5tgz6dNHRtXTjqplRkgj4Sb6S2gxbZT4Urzt5JajC+OxuE9BVy4OpM ztog== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716940376; x=1717545176; 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=WJH0eGHL0S44S4VAoT3//wXsK4IwPG7MFQf/QTWKdP4=; b=B2gKEK27C4czFF3s6sbkSAIQo7BSZjqorZD6uArVd+RPOzS2L51sWhmYqQ/7eKvhfj 7xMdw5m36nnOU5BvZOJYC4/Tz05BARhmrgBflmepMdUHtYG4ULNMN3Os4IsVZJFgX6ni Rx7hZ+D00MCXevxXkiIE5AS8SB+LTD0zH11mboghMZfBifKzVUWKqV7qsNNjj/tffT9G XkxgZ/Kgu8lLEXUtHtH8mGoSklReq508NByJxpW/f3/K3ptmYVnoc7Z0GRN8hB/rELOZ STh0MbwsQxZdyhfTdTHqtfNOE/lB3kbGO7hBoDa1kqPIZndqsDD9ZTG0w2Oj3S/W+Ppy NfZw== X-Forwarded-Encrypted: i=1; AJvYcCXypQMmv64hNsegX7VrPacDSkpagltZ36ounkdau/Bdbw8NkQPU6//s5AwjXWmf3JpvJJXgtkaXQI5X6RWyDaaGKJBuuaia7qxnu71h X-Gm-Message-State: AOJu0YxD9685EnJnlu1unh2ULVZza76aIkkFlK2oavwHvNqoK2sEUMSO BYbFcT1XqBM9SR9fhoNVv6S48YGbFzlpuYod0Qx7NuJZi0Maftye7BgpNBakTaSZCPbJCyX1zhp a X-Google-Smtp-Source: AGHT+IHKPEDMtbU382IuloM5br0imQsgdv1mUmjp0FxW7R0T2RAJksTe4h35WKggq6BRr5HC5ryHeg== X-Received: by 2002:ac2:5489:0:b0:51c:cd8d:2865 with SMTP id 2adb3069b0e04-529668ca0abmr8397547e87.44.1716940376642; Tue, 28 May 2024 16:52:56 -0700 (PDT) Received: from umbar.lan ([192.130.178.91]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-5297066bd0bsm1099869e87.165.2024.05.28.16.52.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 May 2024 16:52:56 -0700 (PDT) From: Dmitry Baryshkov Date: Wed, 29 May 2024 02:52:54 +0300 Subject: [PATCH v2 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: <20240529-edp-panel-drop-v2-1-fcfc457fc8dd@linaro.org> References: <20240529-edp-panel-drop-v2-0-fcfc457fc8dd@linaro.org> In-Reply-To: <20240529-edp-panel-drop-v2-0-fcfc457fc8dd@linaro.org> To: Douglas Anderson , Neil Armstrong , Jessica Zhang , Sam Ravnborg , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Daniel Vetter Cc: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-rockchip@lists.infradead.org, Jeffrey Hugo X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=1721; i=dmitry.baryshkov@linaro.org; h=from:subject:message-id; bh=oHBezVlQg7OYkDqf0mCnlNvzfcQLRXocxgcJNJ+SMzs=; b=owEBbQGS/pANAwAKAYs8ij4CKSjVAcsmYgBmVm5Wy8KAXUnyPDPNQ38w7x0XiXWHodROHzcC5 9Ghz+NDQeaJATMEAAEKAB0WIQRMcISVXLJjVvC4lX+LPIo+Aiko1QUCZlZuVgAKCRCLPIo+Aiko 1TloB/wL83KX7asFeXg/rcu5X98SE7+vTXoSGNjnqPj9VPGeoqq2Wmbe3dxmO4pvkxjhsEmOaVW ZfJNPkXEA/DANbAF1dzzJbzXfug9X60iVc2OCrmClho7C9a2aglx/GXCBGlELGH4KKl3FjjCIpj dVkv4MkqLVb9/Si9crgvaWZ9ipUAC1LsxTFaIhseiVRobKAztT9/SEBPr+mBw1TfA84uID3ZCBl bUsueVYZuVYTxpLuRf8+5FeTW1vzu5iliu84xQ5oIfcDowqljKp4sbZqhotbCPeXTpFeYj7lQqN wIuZLM0kmmY8X7hVpoVQwtq5lEkHkb4/gZ5xOGwimTfExxk1 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 Signed-off-by: Dmitry Baryshkov Reviewed-by: Douglas Anderson --- drivers/gpu/drm/panel/panel-edp.c | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/panel/panel-edp.c b/drivers/gpu/drm/panel/pane= l-edp.c index 6db277efcbb7..95b25ec67168 100644 --- a/drivers/gpu/drm/panel/panel-edp.c +++ b/drivers/gpu/drm/panel/panel-edp.c @@ -1776,7 +1776,23 @@ 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 platform which uses the panel didn'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. The lack of the aux-bus support is not a valid case. Platforms + * are urged to be converted to declaring panels in a proper way. + */ + { .compatible =3D "auo,b101ean01", .data =3D &auo_b101ean01, }, { --=20 2.39.2 From nobody Fri Dec 19 19:30:37 2025 Received: from mail-lf1-f45.google.com (mail-lf1-f45.google.com [209.85.167.45]) (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 B984413F450 for ; Tue, 28 May 2024 23:52:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.45 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716940381; cv=none; b=A+Ooz9haFGZRhorWwAB44QF4j8rQ1ig/quhj3OKpRw1720jWB7Kt/wXD3NNW3QzY4GevQ9UUy2lQMQAeVmx9lTl664j+6OR2fBz5q/dIruCLqRpFQ1HtoJWF+AtsxeMYMX7PjJ1ybOWumCHnYw0Nf9fcxXqzlR+qw0GYUqKbiNY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716940381; c=relaxed/simple; bh=DdrfEnSvoeRW1E2r/WH6/wGMDZXUBm6mjy8uD45GQWQ=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=u+5OuO0IaekiRwOwOl3WiF7D8TzbkBPilhOUJ06ke2Exi02hVXlGnh/wpoHRRkYygEzm4OzBDgqYvuLAyaJNQRfRAziWl8ICC3NVVKf62KiVkE8RbPgjwWltFGibhugUrBUB06n1a/doV6Ei4f1oObAQ8/wyT+5gAW2nHLAfiqk= 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=S1sIicGx; arc=none smtp.client-ip=209.85.167.45 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="S1sIicGx" Received: by mail-lf1-f45.google.com with SMTP id 2adb3069b0e04-523b017a5c6so1961033e87.1 for ; Tue, 28 May 2024 16:52:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1716940378; x=1717545178; 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=epU7ofKFUVORXm5Zp3LH/iJERgxS72joIk8yaDqIF6g=; b=S1sIicGxuAr8VutaznGQP3SCfVXMALQ0ORGuatuXJH0htY83kSCPiQk03f09kfkAsK 5cNgoqBoUB2C4vQHYABD4jHm9jKTurLm+CBNXteuEpIUC3UpBQf57eA0WpkKtxzahmhp uhFSBy7sIy8KCcGs/hUJOYt1/aOz+hHHLLkxOUZJR3oTGrr5wGx+Eef0sEM9YhqvUPwn JpgxEV64cGfzk1LVtgvtegEF21JgG3Y9KPreg4pzQ4b28DhAuI2nSyIgnAMNw0oKZqK9 AkcySo3GeqUckZjOs+WfK9Weucnoucv9KJ2+KiIH2Ch+044XmpF3j0LJDKPwEjBD+s+9 F+fg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716940378; x=1717545178; 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=epU7ofKFUVORXm5Zp3LH/iJERgxS72joIk8yaDqIF6g=; b=I5Uul9GZOiZmE62W11zTbUDRtpdbQUs0aq+BpZ7qjizFS3++Tgv/91qrGKc/j9mB6L 7lOStWxdETbNmkzifr/y7x92tGtfUHeFu/3JWt22+bPriFnyXuj1w447nzbcoitxFoqw wy4NjIPSq6BKyuoMyY4DeqhGwUNqLNIDQgKALb8Nwhg/g1QGYCgB5H8Dpi6eEuKTsiFs y85rhjly43aTVO73Ud/XTtpjN3JS8hJi4fSIhdFeG9U6RiRPjNnUmGhz5ymamTgdwqy3 cDeCl67pPMYA45aurjJUFwWB0xOThNlLm9C2z4hk4FeiFtWyyBFQp1R2R1It3h0bkHJp A9BQ== X-Forwarded-Encrypted: i=1; AJvYcCXmISX1b61jR9xPkhPxiBDLtzd0SqH7gLDqvjqj+gRa6pSEM64dyOEKtz+H9lwHFSN+jAMRepnR1uQ0qU4GrC1hX4Eq8wEEi2ejJNvl X-Gm-Message-State: AOJu0YwTQQCR8IuYczsCDJc9koLYzaiLOYJDvj2yazfIbbRPUMFKz2O4 gw69sJplKvAz0AZA3ALYT/HSm0yKy1/39iUEl0aABYMGBBCyyLfSJMkGAl5iXqjNdKowtkhUKxQ x X-Google-Smtp-Source: AGHT+IF7uwaZgGb+yrWIOcUgI06JtcHOSDj/jnR7jimtQ12vuH4mIz1Vlkr4CD0g2/t5KduQ//gZ5g== X-Received: by 2002:a19:2d5d:0:b0:52a:e7c7:4ce6 with SMTP id 2adb3069b0e04-52ae7c74dc6mr80914e87.39.1716940377383; Tue, 28 May 2024 16:52:57 -0700 (PDT) Received: from umbar.lan ([192.130.178.91]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-5297066bd0bsm1099869e87.165.2024.05.28.16.52.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 May 2024 16:52:56 -0700 (PDT) From: Dmitry Baryshkov Date: Wed, 29 May 2024 02:52:55 +0300 Subject: [PATCH v2 2/3] dt-bindings: display: panel-simple: 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: <20240529-edp-panel-drop-v2-2-fcfc457fc8dd@linaro.org> References: <20240529-edp-panel-drop-v2-0-fcfc457fc8dd@linaro.org> In-Reply-To: <20240529-edp-panel-drop-v2-0-fcfc457fc8dd@linaro.org> To: Douglas Anderson , Neil Armstrong , Jessica Zhang , Sam Ravnborg , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Daniel Vetter Cc: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-rockchip@lists.infradead.org, Jeffrey Hugo X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=2691; i=dmitry.baryshkov@linaro.org; h=from:subject:message-id; bh=DdrfEnSvoeRW1E2r/WH6/wGMDZXUBm6mjy8uD45GQWQ=; b=owEBbQGS/pANAwAKAYs8ij4CKSjVAcsmYgBmVm5WY3yuKK2fQT+EbUmK8+P5TRcjqhHWqwSbS Z01hMfGKEeJATMEAAEKAB0WIQRMcISVXLJjVvC4lX+LPIo+Aiko1QUCZlZuVgAKCRCLPIo+Aiko 1eMRCACqLWRAzCgQAAIxGTwJ0u8YzGQCPZ3qN1HasotTwLUL35ficmtV5M6mL3J0NV5Q0E0fvyp 6zHSZCfHRospwVgWkajrmaH/s+e4hEeBWvquC7k7JfXAA5U25rt8/E2jspVca65nSo/UbGkvI4F 10Zul/rRkDoiyY1QVtpkPbX0gMSPt/xbU/cXSnFq/Xp8PQq3y73FAre/O8zchrJIX0kO6kuzr9w GBikOcttFJrNQziQstd8LuW1ITRwwMlE2lkDoBYSnwQoa9VrL8sPMmpuf8ybonypU5eFpkVL/EW 8fDZF7tt4Znz/9RV2hXKZlora4vva+EsjNus+HBTM3aHP1+6 X-Developer-Key: i=dmitry.baryshkov@linaro.org; a=openpgp; fpr=8F88381DD5C873E4AE487DA5199BF1243632046A The panel-simple.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. Signed-off-by: Dmitry Baryshkov Reviewed-by: Douglas Anderson --- .../devicetree/bindings/display/panel/panel-simple.yaml | 10 ------= ---- 1 file changed, 10 deletions(-) diff --git a/Documentation/devicetree/bindings/display/panel/panel-simple.y= aml b/Documentation/devicetree/bindings/display/panel/panel-simple.yaml index 5067f5c0a272..e5ed51226433 100644 --- a/Documentation/devicetree/bindings/display/panel/panel-simple.yaml +++ b/Documentation/devicetree/bindings/display/panel/panel-simple.yaml @@ -50,13 +50,9 @@ properties: # AU Optronics Corporation 11.6" HD (1366x768) color TFT-LCD panel - auo,b116xw03 # 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 # AU Optronics Corporation 7.0" FHD (800 x 480) TFT LCD panel - auo,g070vvn01 # AU Optronics Corporation 10.1" (1280x800) color TFT LCD panel @@ -172,8 +168,6 @@ properties: - hannstar,hsd100pxn1 # Hitachi Ltd. Corporation 9" WVGA (800x480) TFT LCD panel - hit,tx23d38vm0caa - # InfoVision Optoelectronics M133NWF4 R0 13.3" FHD (1920x1080) TFT= LCD panel - - ivo,m133nwf4-r0 # Innolux AT043TN24 4.3" WQVGA TFT LCD panel - innolux,at043tn24 # Innolux AT070TN92 7.0" WQVGA TFT LCD panel @@ -310,16 +304,12 @@ properties: - sharp,lq101k1ly04 # Sharp 12.3" (2400x1600 pixels) TFT LCD panel - sharp,lq123p1jx31 - # Sharp 14" (1920x1080 pixels) TFT LCD panel - - sharp,lq140m1jw46 # Sharp LS020B1DD01D 2.0" HQVGA TFT LCD panel - sharp,ls020b1dd01d # Shelly SCA07010-BFN-LNN 7.0" WVGA TFT LCD panel - shelly,sca07010-bfn-lnn # Starry KR070PE2T 7" WVGA TFT LCD panel - starry,kr070pe2t - # Starry 12.2" (1920x1200 pixels) TFT LCD panel - - starry,kr122ea0sra # Startek KD070WVFPA043-C069A 7" TFT LCD panel - startek,kd070wvfpa # Team Source Display Technology TST043015CMHX 4.3" WQVGA TFT LCD = panel --=20 2.39.2 From nobody Fri Dec 19 19:30:38 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 0C97C13F45A for ; Tue, 28 May 2024 23:52:59 +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=1716940381; cv=none; b=bPri7HWK2LsmXF+7P+AimHQjqHks8+uQpawJeG/wOuEySVBVyCZf2aaskU+8nE20WXkockzOH+rtJ0Wa5rcvIzTZpkCPohPIPGhWUs4U6TKteTsIKQt6TppGntRcYSxeqKfow2/hy5nBmAGNgOE35y3wEHUIqzEpxg2e5Fgy5rI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716940381; c=relaxed/simple; bh=4AEHzhZ7klNl9R6P/rVcHC42cvlcOM0LoXvZQ32OLm0=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=F2KYcAdZYrhhT9Q0ChbE4jh1NH8HT/L9wDGkGkqx+7U+gzTiBUiqQC9GP5RrAS8A0QtWNDgpAK5U83g/ITcOF2dDdqNZ1TzkG/63cjqH88Id7Z+lYsQ7AX93Mr3UTMlyLLeKpTsRc5bD7iA8vluYElmASuHfpTuSRTgbMJOBFwc= 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=uOIcvG1E; 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="uOIcvG1E" Received: by mail-lf1-f44.google.com with SMTP id 2adb3069b0e04-5295dada905so234873e87.1 for ; Tue, 28 May 2024 16:52:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1716940378; x=1717545178; 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=wOdTyLpX4s9ixOOhNkfBWNVCbfHaxbhfgJLe0YOKBzg=; b=uOIcvG1EBb2fsFmVBjbVDqg8DP7SWVAFIYVPdgNVoBSJR4NS2j9mhgO9A37KDmZj8E m1lZQ7HurQzmXPpWBV7TYbaF/4pbBEnjPItUWzkai6FXchdtNsxg3jr1b40tlG1xzkGH onXJ4S7BuSj3QY5aUty6ui/4L1BBKggo+RFkyr+cBf9Cqqkkm9fCBJ/a5EnDUJmYihrn sjs64Z8AyOBO6ieS7SgortXqsujnnp82WWuPPeaKX2uAyNCQgJ8cZBMJTXwcWHuMBty4 nZFIvn9n9AN+WaYWLfiVk/McGfSn/bXIZMc1LrprhhRd3C8jcp53NYn/ZVPPmDLdzLLd VtHA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716940378; x=1717545178; 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=wOdTyLpX4s9ixOOhNkfBWNVCbfHaxbhfgJLe0YOKBzg=; b=ruRVNVymn1/4BVzvAKbYCpNdDiF9968ro32pssT/Fl0X/xjYKxweMU49P+uCfFLWnk CMixPjntzqFbYEAqIW6dNDh9SNI6MZoUCrdpTNQ8T2aPtNEMX8ftXjA6G2T/KEVSsMwN H9lZxbZGBowTpQr7iqev21Ptpnf+xRenXJNeZon/tiqertPhP+bznsSJTCmP9H4DnnVx adWTc1B3MvCXXgcWdPYdtl3lcOgefxwLplR9Xe7rcn5QC9tQw3Nuwv/ytyvMm08lc9To x6gFwhnF/NHuUMBmlcMYuQyg4Vd8YQoSAdgmB/YNEHhOvvPRkO/MSi9rd8jyWIUpzhRP ccGw== X-Forwarded-Encrypted: i=1; AJvYcCWwolqw52Eh0E4ZAh5dDh1BrjsITh65YcdQowuPPr1F8MoGqHO28hCaFdHiIs1ehYw3KoeJzpFmaxIzJar8IVXH61ESsU7Q/fuWgWJd X-Gm-Message-State: AOJu0YyNLkSg2soT+sVeJOehDYCfrgLyij8jWegIq9q1U2chhgGIMB6q SM2HfSoayWXf1PBGTBaaL8zNkxzZcN2JrerXO9VHRa6tX9DAyMXehj+OlrJgPVE1qQNpFhJ2FOX 0 X-Google-Smtp-Source: AGHT+IHEFIeU2xsKDrxCZSWUBFLxClJz5PmO2gczoLHisBLH1qwbbCGbkJGrqhAoWf4jDn56ewdLYw== X-Received: by 2002:a05:6512:3ed:b0:529:b6d1:572c with SMTP id 2adb3069b0e04-52a848cf73bmr116026e87.32.1716940378027; Tue, 28 May 2024 16:52:58 -0700 (PDT) Received: from umbar.lan ([192.130.178.91]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-5297066bd0bsm1099869e87.165.2024.05.28.16.52.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 May 2024 16:52:57 -0700 (PDT) From: Dmitry Baryshkov Date: Wed, 29 May 2024 02:52:56 +0300 Subject: [PATCH v2 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: <20240529-edp-panel-drop-v2-3-fcfc457fc8dd@linaro.org> References: <20240529-edp-panel-drop-v2-0-fcfc457fc8dd@linaro.org> In-Reply-To: <20240529-edp-panel-drop-v2-0-fcfc457fc8dd@linaro.org> To: Douglas Anderson , Neil Armstrong , Jessica Zhang , Sam Ravnborg , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Daniel Vetter Cc: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-rockchip@lists.infradead.org, Jeffrey Hugo X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=7126; i=dmitry.baryshkov@linaro.org; h=from:subject:message-id; bh=4AEHzhZ7klNl9R6P/rVcHC42cvlcOM0LoXvZQ32OLm0=; b=owGbwMvMwMXYbdNlx6SpcZXxtFoSQ1pYXtjvjbzVrioeBkuPz3/zLTRL4kKN3ILDsuJi6uE2D Dy/U0o7GY1ZGBi5GGTFFFl8ClqmxmxKDvuwY2o9zCBWJpApDFycAjCRwK/s/53+ZecWLbjLpf3L 4GJmomDL5JD5F03L3hg83CmV3mDBsOmr3zsupa2ynVsyTh7rYqwNPy+dKm2UV+f4VHriy84X63T lxd4F7pxbu/7xzOUXzFR1+DZ1xund1e04cSDjCg/HnLLPQe2Rwj96U5t4d/+7NlfWKu5Jas+Gn3 1cfC9WRTIdKG9cVZKq+8RYc9mzy/NfPOXJFevPaFw2j0v0/BO9gjN6tXnbb/9YJJ7KOjG2//PM6 6qvH7ld2i8TnavcYe3ke2pr7u+OOYZiwXaT9Na/t2i8KDed44al8eTJTw46d1tHKG6fH7LFzPxH aNVc59+3Nn/49ehikkDSj9iYqiCmsLn8AWy83YL8+zMdAA== 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. Signed-off-by: Dmitry Baryshkov Reviewed-by: Douglas Anderson --- 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 95b25ec67168..120780e5d34d 100644 --- a/drivers/gpu/drm/panel/panel-edp.c +++ b/drivers/gpu/drm/panel/panel-edp.c @@ -1059,33 +1059,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, @@ -1135,33 +1108,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, @@ -1428,33 +1374,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, @@ -1703,75 +1622,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 */ @@ -1798,18 +1648,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, @@ -1837,9 +1681,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, @@ -1870,12 +1711,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 */ } @@ -1927,6 +1762,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, @@ -2128,7 +1969,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', 0x154c, &delay_200_500_p2e100, "LQ116M1JW1= 0"), =20 EDP_PANEL_ENTRY('S', 'T', 'A', 0x0100, &delay_100_500_e200, "2081116HHD02= 8001-51D"), --=20 2.39.2