From patchwork Thu May 30 23:12:55 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 13680929 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 E0EE0C27C43 for ; Thu, 30 May 2024 23:13:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References:Message-Id :MIME-Version:Subject:Date:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=DBC1lbjBi3V2hR+b3DJjRAW2hhV4XbcZ/NeeSIJSUNs=; b=fmqc6//f71MYYZ ULUoIrAmoKaeJgUaoSGU8STarWHP0QWmmvDnuYU1UbkR5q5n/jRxKMWdnpofvFFWX7WjGSaVp41eC 1ELwCBteqZs4W+0a0mDaFGE3SMnEJamZV+/GJsm0La0i69ELtD9cruT7PasHaS6wfQ6y5MZTNMnX3 lJiN2Yqjo9J7cLZx/7hSV3awqdGwIKOYwrFP64qu3SgH7b65BlR5pfYB4ZjPB0QdekvLCSZOdoqOZ k3XEn5NwxjJqB8osUTStPPnOQGrz3XuJUIx+khA5GUhYjXF9/f5QEhBnEW0gdU+Cbc5GYLuRNmjYY CvJBjMQD6a0TJZOJYV/A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sCoxD-00000008fBe-0me3; Thu, 30 May 2024 23:13:03 +0000 Received: from mail-lf1-x131.google.com ([2a00:1450:4864:20::131]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sCoxA-00000008f9J-0teX for linux-rockchip@lists.infradead.org; Thu, 30 May 2024 23:13:01 +0000 Received: by mail-lf1-x131.google.com with SMTP id 2adb3069b0e04-52b82d57963so764084e87.2 for ; Thu, 30 May 2024 16:12:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1717110778; x=1717715578; darn=lists.infradead.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=9MDjCsFEZ1HcOeGBvBo6CqtfbFIZh3loCrt4ShZMr9A=; b=EZmt1BS5JCJ/lyocgSxZeym0EEMCK89+i20wahut8WUc7cBYL0rSN+aA+MQr376nbZ Rm/iXECPg1V8gYtsilLrkHscQk7u8RZpxSzmMlB2/lgVMw5xjZMrw9Dx6ETNCeD811+v 7496aPTBdb+xc6zpI+J7ZXn+eYfkm1n7/lxnMZq3cvVnEOvAhLq4bQwmTOwZmhQE6TKJ f+tGYatmo+VgbcCOIm4ni5+FXuT6mMB3tIrT0JevUGAjz6PWl8vpEmWGPfx8xdXw58dm Mv/fpkscNX3IkqnN3oZCMKdjy3s6+moQRF+J2P6s1uLAw97JdsOI0HjxpsgCJDe6VQ5y W4Gw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717110778; x=1717715578; 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=9MDjCsFEZ1HcOeGBvBo6CqtfbFIZh3loCrt4ShZMr9A=; b=BH43sXHcTAd/cqkKHOL9yCZYD3PWLYlEJGRok96sbj+WTEXfngVZZTPj++abR5q8v9 O2TSLuA0c6juw1/cUu5n61Ljj9PP19Ojf70oHIcPmksjOKsEbzybpsJ9bCh2tvQKN+0X P8/TWuEUPqnc+u87T8qTitPN3/gbPCPfoqSmng5aNoC8cwYLu/ekirS0+bzKqIl84wWS KEQJebFuzX1XHcUJ1RI1mencz6I2eaRvIrs+LgdgNgGs0f77q1vIrvqgAN4R/NqGMyW9 Wshg3gVg1rgQMbF7t1JVFrVh0sRTnOuXQTTCA9v87FNVCAT83Nul3BRYaD7+oWIHs61a sZbQ== X-Forwarded-Encrypted: i=1; AJvYcCWdZbJnB515MNIn3JV/lTKuASeYp6V4M4YSkKdsGPcYCAZh/PmzB5asb7Q7GLM9TLdww/Fos835E7YN38wcdxIbCQVw6GW1CE8dOChvBoej+XtT X-Gm-Message-State: AOJu0Yxj3KUla+WkeNe03Eiw2/fMoDbXssElbsgHSYlMf4xnYmYQQgbC eB/KH//D2KA1mWByMIQ3ZDaN66kkijWkVwiqGVEdB3OverhXg5EzWKu7X0MyMSM= X-Google-Smtp-Source: AGHT+IHCDHK4srNC/bDT9MhZqbsXJoODdHwGipAby7uMsyyVOOryiOsA8heWPcUKRMYQXg7XBalJbg== X-Received: by 2002:a05:6512:39c5:b0:516:cc2d:f6a1 with SMTP id 2adb3069b0e04-52b896dc4f6mr55540e87.51.1717110777989; Thu, 30 May 2024 16:12:57 -0700 (PDT) Received: from umbar.lan ([192.130.178.91]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-52b84d75d96sm119005e87.120.2024.05.30.16.12.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 May 2024 16:12:57 -0700 (PDT) From: Dmitry Baryshkov Date: Fri, 31 May 2024 02:12:55 +0300 Subject: [PATCH v3 1/3] drm/panel-edp: add fat warning against adding new panel compatibles MIME-Version: 1.0 Message-Id: <20240531-edp-panel-drop-v3-1-4c98b2b95e3a@linaro.org> References: <20240531-edp-panel-drop-v3-0-4c98b2b95e3a@linaro.org> In-Reply-To: <20240531-edp-panel-drop-v3-0-4c98b2b95e3a@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=1789; i=dmitry.baryshkov@linaro.org; h=from:subject:message-id; bh=4lQZmh/WvHEEtNKJULb6yxMuO5RvAavVpXvzoItg+EA=; b=owEBbQGS/pANAwAKAYs8ij4CKSjVAcsmYgBmWQf4M0YInguykUXTyMqVJtog/s/TjQywd/DDP akfvNNiTlSJATMEAAEKAB0WIQRMcISVXLJjVvC4lX+LPIo+Aiko1QUCZlkH+AAKCRCLPIo+Aiko 1XozCACoI/M4YGZsyLd+SYKu+kRIbTJFiN7yHHoXU5cPCqg2X/+3kZgtkcWXK818KF48F17uK7/ Z60m/kj7JmLjRJQz4g38OKf6BBSasiPJLvQ89Fywc5eN0eXlnvkMsMJWOHSZvmzRZb9iJS/wM44 Os2BWDA88429zTZaZTNroO7icIk7Mt60YK6cg5vuiQaw0IJdRiAy7h7RT5wL3jbm7mSqHmhtXB1 G/el0ZqZ4DJmLPH9+5uNXUi0vMSYIopCpwu3VXievEE1ynyAh9agsecAjuzgFwQTtKwT5dDqzBN qB84Xt/VVYqp9cQ6NLyDUwMH6bUW8bsnRv9DeNKy4V6qExLx X-Developer-Key: i=dmitry.baryshkov@linaro.org; a=openpgp; fpr=8F88381DD5C873E4AE487DA5199BF1243632046A X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240530_161300_530366_C4F0E8DF X-CRM114-Status: GOOD ( 15.00 ) X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+linux-rockchip=archiver.kernel.org@lists.infradead.org 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 --- 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/panel-edp.c index 6db277efcbb7..ce2ea204a41e 100644 --- a/drivers/gpu/drm/panel/panel-edp.c +++ b/drivers/gpu/drm/panel/panel-edp.c @@ -1776,7 +1776,24 @@ static const struct of_device_id platform_of_match[] = { { /* Must be first */ .compatible = "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 = "auo,b101ean01", .data = &auo_b101ean01, }, { From patchwork Thu May 30 23:12:56 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 13680930 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 4399DC27C44 for ; Thu, 30 May 2024 23:13:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References:Message-Id :MIME-Version:Subject:Date:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=npGGlaUSXsg120wczJbYPYDOWDMbQUD+6ix4E/pDCpE=; b=DAvoN4/qLiZy5d gcQVOR3bf6mAXHWdo1oXFbzPwCIukWy1zHqtUpjQaweB3K1Bh/C+Ree+12tqIYRcIqaoZmo1Ok3fb 1yEKW1CmWmRZ1UH8pAx6Ux1W6XPQ4L4IL21wMJAQ5p7fmTK3Y5W/MxlIUJm6ZuHg6jkgKG2PRwq0e lyTYkWjLvPjzItrMpJr7cZ+jNeewF7EW6IjKmIwU3SodgBd9och8tEKSW4TwX79XCtGA9IyWzPNnA glyNdg2dEAFNHQ8grKax1SDX/oj0JVCWYzaCydcCzPO+6x9VopGOPSVyH+NFUZCitea0Nz9C79Jac 2GSiH2B1RtwOFNWz/58Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sCoxI-00000008fG6-0FXJ; Thu, 30 May 2024 23:13:08 +0000 Received: from mail-lf1-x12a.google.com ([2a00:1450:4864:20::12a]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sCoxB-00000008f9c-1QLm for linux-rockchip@lists.infradead.org; Thu, 30 May 2024 23:13:03 +0000 Received: by mail-lf1-x12a.google.com with SMTP id 2adb3069b0e04-52b80e5688aso1594618e87.0 for ; Thu, 30 May 2024 16:13:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1717110779; x=1717715579; darn=lists.infradead.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=V+qOoN0EVfQIJq5I0wkGIsN6OuhlGgSySEsUl1KmSJE=; b=Dlcy/1ucdj38qNBskCBpy3SxaV1wmIIfAMaaMRQMiohril8tmc6RqENJ1emDZ0dLqc DvW7s77I+8HY+oWBP1UEeD7f99/8gEhIMlo2Rreew1hJZzyinhu/ht4BmKobeyuGjN9+ IQDA3SxYI+BAx5ZJIO3DkIWjczdYbVtxvtVQpxUtIUY5eYTfFlq1e/Ee7yxANyolKz+H UQqOnd7gMbPKs+zWFMXQfBVrDdJESI6ulxfqCklBYSXG4ud6gIEYlzY5OcOcbA6CjdFG 4yX4xV6CWSeWdicmCARpmzJsG4gGOPy4keYwRi6GB6GIBTfN4GRUY+s3emxSy2h9zifP 9wbA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717110779; x=1717715579; 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=V+qOoN0EVfQIJq5I0wkGIsN6OuhlGgSySEsUl1KmSJE=; b=UdANE4AJdDFFnvkYMu5zjcvJ1gmQB47C8aJ4sjVu/aOOX6i+1d2WbyHDdWXoVRNwjM 7kvg6HUqcBkxgWHR5pHR0tJRc3R5+dbYtoW1ZQTgn+mktTy8kjOxfBd0bzttzKIR1jpS KkbnA24cfgSnx65otR2+VVb7HCo47EnQhAFfriHHQ1NSUO71EAHN/dyX1r6EBigazSJo 2BThVJzSALGBpqFyRsIkRzjAc/TomswpIpcxKiwfFA/3H30AbAoM7ogYxoQdI+HNJZJg 4aToBRDwQgqRm1MmNs2yLfgWivzrXm5IckwU68xD2H7UOjPK3WIBy3DGvTKX7hM4drEh QTuw== X-Forwarded-Encrypted: i=1; AJvYcCXomeSWRP9Mik4tOdY2hHf169AtLrftxjCtMs0UDl/jEZhUg80mTVjXhE1mew5TBuU8xOxtTwbgYLsAroMn7NWfZnmOZ8Iwi79DBRy5jDTPDm00 X-Gm-Message-State: AOJu0YxbNiM+uBuEP5ffyxZ5FEBky7ETk7ivUd/VEvlhBtkyUUrjX1mX feIg8C65o3BVUQqbV3szL+wemzCIJaghURaPNNodNB4xU5pfkljxd7XUd41NGq4= X-Google-Smtp-Source: AGHT+IEV/5BqrG4ACKM6rhd7dA3ytRF7wYyFY6D69GLmeOZ4hii09yG9fwmlf9CX59XVNOOJna1jFA== X-Received: by 2002:a05:6512:3447:b0:51e:f79e:15d9 with SMTP id 2adb3069b0e04-52b8954e8ffmr60363e87.21.1717110778649; Thu, 30 May 2024 16:12:58 -0700 (PDT) Received: from umbar.lan ([192.130.178.91]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-52b84d75d96sm119005e87.120.2024.05.30.16.12.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 May 2024 16:12:58 -0700 (PDT) From: Dmitry Baryshkov Date: Fri, 31 May 2024 02:12:56 +0300 Subject: [PATCH v3 2/3] dt-bindings: display: panel-simple: drop several eDP panels MIME-Version: 1.0 Message-Id: <20240531-edp-panel-drop-v3-2-4c98b2b95e3a@linaro.org> References: <20240531-edp-panel-drop-v3-0-4c98b2b95e3a@linaro.org> In-Reply-To: <20240531-edp-panel-drop-v3-0-4c98b2b95e3a@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=2746; i=dmitry.baryshkov@linaro.org; h=from:subject:message-id; bh=XBZ6fSg++oMZimfKiEFT9ckJ+C8xAqyph6b+iI0KMKk=; b=owEBbQGS/pANAwAKAYs8ij4CKSjVAcsmYgBmWQf4cuAqciw3f/0F3C1tf9A7KINZ9JPXqdn3p YO10u953OiJATMEAAEKAB0WIQRMcISVXLJjVvC4lX+LPIo+Aiko1QUCZlkH+AAKCRCLPIo+Aiko 1bdNB/9oeC31aBN0EKZTkF+/ih9KAMVShpEp7KjdxBoSJbJItjSwt6o6FBbFlv1NlAgxGUFl+0n 4KWeXZHdQhzi2cfB30K0+oVQOEoBbqnanqT+4kmUhdiB09rvzDlZQzdQ2B5su4DwgoAFprBzhPl RwYWjW0iwP4VfWLfsuOH05fXLCmELpXi83PpLslolrZJhnc59BRcJDb4/rWBXi6m8UBm6vQ5EE8 lkJWfJd0OACREKHyVI3Teow1+1SNcKf+dbDlIyy2jmK3W0WqN24qym1ttA2zm5wq2ckLwVWe7sD Gg1TRRMU9QUJpt3nArfOx2aGui4dfySrA3cu1m++io6m47Xg X-Developer-Key: i=dmitry.baryshkov@linaro.org; a=openpgp; fpr=8F88381DD5C873E4AE487DA5199BF1243632046A X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240530_161301_417684_3DF4AD89 X-CRM114-Status: UNSURE ( 9.37 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+linux-rockchip=archiver.kernel.org@lists.infradead.org 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. Reviewed-by: Douglas Anderson Signed-off-by: Dmitry Baryshkov --- .../devicetree/bindings/display/panel/panel-simple.yaml | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/Documentation/devicetree/bindings/display/panel/panel-simple.yaml 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 panel - - auo,b133han05 - # AU Optronics Corporation 13.3" FHD (1920x1080) color TFT-LCD panel - auo,b133htn01 # AU Optronics Corporation 13.3" WXGA (1366x768) TFT LCD panel - auo,b133xtn01 - # AU Optronics Corporation 14.0" FHD (1920x1080) color TFT-LCD panel - - 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 From patchwork Thu May 30 23:12:57 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 13680931 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 BF716C25B74 for ; Thu, 30 May 2024 23:13:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References:Message-Id :MIME-Version:Subject:Date:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=DRhAgquVzcWmcFBOEf1WpqUHNOAld9vSo1PagHcxy0o=; b=nLJKZ0c8jnY69n ZbicmWXa1rS71nHklBQDayjOyTnwAGH/mwSPnIzcq+VrwqtariTR2+/GjEfj6A8V/hl/PYrK6eBrY huhvDkdRF4BqCvsWDgCvinbDFFJRBn+1ZDundPFiTuGDI/uIwRHHn2zF7hucEMn/Hg359A4wjlcaO XzdjSyN46DeaSMcUsTVGlgdps8LCD5pyxa8S4jv1vOpnJJKwe4SbTGfJfqd/LZrYzWs90/dMWzzo6 /xJ2FJA4rM0uBax+SV0WMlAYPgmrrtNvyhjPdMmdC0Uv2zXEq7jcrBIy4a13s3Id4EA+6s72xPMP5 BA5Pli6I4Jz7HOw8UTQw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sCoxH-00000008fFD-1M5c; Thu, 30 May 2024 23:13:07 +0000 Received: from mail-lf1-x12a.google.com ([2a00:1450:4864:20::12a]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sCoxB-00000008f9o-1Pno for linux-rockchip@lists.infradead.org; Thu, 30 May 2024 23:13:03 +0000 Received: by mail-lf1-x12a.google.com with SMTP id 2adb3069b0e04-52b87709b60so300393e87.0 for ; Thu, 30 May 2024 16:13:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1717110780; x=1717715580; darn=lists.infradead.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=lhBHPUZLF3YIdDcb/ahdftpXzh5XIgh1+ZCXZdZsjMw=; b=kQH0B3oI1EalhP9uapGMXUGJt4PIJft4fCyx5Gfg1mThJL4xkh/3PumfitxKcJKklq TJbW+1+UXB9ZESF4i1CmPcUj2HdZXk3QjIW5ZEesboeMojQP+HJHBEq1+j2rgbnCHTUi gtN3Wvy8ko7zfWfETbWXGNv3eWdl1O0qiSUY2cI3uOmvewJd/grX8mj+5KvJQidLzUHE lpVeNeXucg4lnuwFQGohE7eTAbI4Xx2s0/08UWhilLBp7z2Rh2F5yCpaLVwLUWg1btAk XDFj1ibY1R+yjiHBaa6GWV9+ttO4WkcVEKea5OB5HNtPQCPBlzE8jmCeV+vG4hU1nMqG CzVg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717110780; x=1717715580; 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=lhBHPUZLF3YIdDcb/ahdftpXzh5XIgh1+ZCXZdZsjMw=; b=ilr5ONS4rkpu46tLGbc5sdoVPi/LfL6lqkRsMGr3VZHzP3tD91JAIB0QQc4wi/s/V6 48luX3qV5yYR7cq8L/7AbNpg2ycdkx3RbcimyE49iKGTS7xU6aCIggzzAwl+5j5OADwY hOvtjnZ7iWXgtBJm99UBccAVXgQqkmHSFySdPK+f5Euso688zZ/3JEncxQVleogxN8k5 09eE/2O3rpQ6O63DXVChtoPoIp0XJV8CxVQZy9dg19kIxRU7v4sV2K2eYNeWI/r5K2IC 3Y4WQ0XA54UvaFPteu3U3vXnFFbq3RF1G0iVZ9TwVwK4TtTPBtyhhkScw9kHDwkEaPs6 WQLA== X-Forwarded-Encrypted: i=1; AJvYcCXAg+3Gkoq3ALqYVNBoUVC7e2r707uA0gWGKX0fh4a4NGhHIFnozobjz7shJtyezmmw7nwV12ledZTihCqYAw+qvx+VeFqJ72TnX7SqDDokBZVl X-Gm-Message-State: AOJu0YxQ+fl8VXIQg6UzYkbZRYfsbwwo7o7hZszcrjI0eNcjrS6LmeWk ZxPVpZE9JuFCCTgEdx+o9APT3/GuIgO81aY5DFzssvAJi2hqc5MU5Om+kVHiGwo= X-Google-Smtp-Source: AGHT+IE9ND/0fkLm5FJJdIYQVd33IKLcJTOhUto0CqySS45XJxwfuCKJGkgAIr6Ocx9hm/auCRlgxg== X-Received: by 2002:ac2:5053:0:b0:52b:84bd:3456 with SMTP id 2adb3069b0e04-52b896bff1bmr30276e87.50.1717110779720; Thu, 30 May 2024 16:12:59 -0700 (PDT) Received: from umbar.lan ([192.130.178.91]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-52b84d75d96sm119005e87.120.2024.05.30.16.12.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 May 2024 16:12:58 -0700 (PDT) From: Dmitry Baryshkov Date: Fri, 31 May 2024 02:12:57 +0300 Subject: [PATCH v3 3/3] drm/panel-edp: drop several legacy panels MIME-Version: 1.0 Message-Id: <20240531-edp-panel-drop-v3-3-4c98b2b95e3a@linaro.org> References: <20240531-edp-panel-drop-v3-0-4c98b2b95e3a@linaro.org> In-Reply-To: <20240531-edp-panel-drop-v3-0-4c98b2b95e3a@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=7181; i=dmitry.baryshkov@linaro.org; h=from:subject:message-id; bh=KHtSKai0pDM4VS5bgZCbe+P/cd/RkoPhPxoBXQvSaoc=; b=owEBbQGS/pANAwAKAYs8ij4CKSjVAcsmYgBmWQf4Pgh6trwpQujTSN3Aoy5x8bELzq+8AMkPf L91C5FJRSmJATMEAAEKAB0WIQRMcISVXLJjVvC4lX+LPIo+Aiko1QUCZlkH+AAKCRCLPIo+Aiko 1UeqB/wIgK+VSSbx1aEHBxEs6cIt8HrRA3TPr2LR9q4sVODOIRlUU5bfRi8/V3sh96n2SyAEeCT 6UWonlU/+Yee6igJOY2bliXn2QWwcLFVV05MqJGMgw5ZPNYt/PBsaySCNnTHf/UDD01yrIO95Wu wmcdH+1IP4FNWnM4gahogPnJ+EhtgNd+5SD71EjjWn5m/X46066dM8hrtmidnAKVqoBUFvL0Huq UEdqyOT1BjzcuqI7kl8d4bKQRwaOam8avX4q5m7837cCiePbVDe7cGFusU1uiKfClBQDeR41Fuk 0zRTJ5NyJ/iVAeyh+7ecfHzb4eXapw3kPKdCbyxKOOC/aFOv X-Developer-Key: i=dmitry.baryshkov@linaro.org; a=openpgp; fpr=8F88381DD5C873E4AE487DA5199BF1243632046A X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240530_161301_420454_0A71E904 X-CRM114-Status: GOOD ( 12.95 ) X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+linux-rockchip=archiver.kernel.org@lists.infradead.org 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 --- 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/panel-edp.c index ce2ea204a41e..696f0f6412a5 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 = { }, }; -static const struct drm_display_mode auo_b133han05_mode = { - .clock = 142600, - .hdisplay = 1920, - .hsync_start = 1920 + 58, - .hsync_end = 1920 + 58 + 42, - .htotal = 1920 + 58 + 42 + 60, - .vdisplay = 1080, - .vsync_start = 1080 + 3, - .vsync_end = 1080 + 3 + 5, - .vtotal = 1080 + 3 + 5 + 54, -}; - -static const struct panel_desc auo_b133han05 = { - .modes = &auo_b133han05_mode, - .num_modes = 1, - .bpc = 8, - .size = { - .width = 293, - .height = 165, - }, - .delay = { - .hpd_reliable = 100, - .enable = 20, - .unprepare = 50, - }, -}; - static const struct drm_display_mode auo_b133htn01_mode = { .clock = 150660, .hdisplay = 1920, @@ -1135,33 +1108,6 @@ static const struct panel_desc auo_b133xtn01 = { }, }; -static const struct drm_display_mode auo_b140han06_mode = { - .clock = 141000, - .hdisplay = 1920, - .hsync_start = 1920 + 16, - .hsync_end = 1920 + 16 + 16, - .htotal = 1920 + 16 + 16 + 152, - .vdisplay = 1080, - .vsync_start = 1080 + 3, - .vsync_end = 1080 + 3 + 14, - .vtotal = 1080 + 3 + 14 + 19, -}; - -static const struct panel_desc auo_b140han06 = { - .modes = &auo_b140han06_mode, - .num_modes = 1, - .bpc = 8, - .size = { - .width = 309, - .height = 174, - }, - .delay = { - .hpd_reliable = 100, - .enable = 20, - .unprepare = 50, - }, -}; - static const struct drm_display_mode boe_nv101wxmn51_modes[] = { { .clock = 71900, @@ -1428,33 +1374,6 @@ static const struct panel_desc innolux_p120zdg_bf1 = { }, }; -static const struct drm_display_mode ivo_m133nwf4_r0_mode = { - .clock = 138778, - .hdisplay = 1920, - .hsync_start = 1920 + 24, - .hsync_end = 1920 + 24 + 48, - .htotal = 1920 + 24 + 48 + 88, - .vdisplay = 1080, - .vsync_start = 1080 + 3, - .vsync_end = 1080 + 3 + 12, - .vtotal = 1080 + 3 + 12 + 17, - .flags = DRM_MODE_FLAG_PHSYNC | DRM_MODE_FLAG_PVSYNC, -}; - -static const struct panel_desc ivo_m133nwf4_r0 = { - .modes = &ivo_m133nwf4_r0_mode, - .num_modes = 1, - .bpc = 8, - .size = { - .width = 294, - .height = 165, - }, - .delay = { - .hpd_absent = 200, - .unprepare = 500, - }, -}; - static const struct drm_display_mode kingdisplay_kd116n21_30nv_a010_mode = { .clock = 81000, .hdisplay = 1366, @@ -1703,75 +1622,6 @@ static const struct panel_desc sharp_lq123p1jx31 = { }, }; -static const struct drm_display_mode sharp_lq140m1jw46_mode[] = { - { - .clock = 346500, - .hdisplay = 1920, - .hsync_start = 1920 + 48, - .hsync_end = 1920 + 48 + 32, - .htotal = 1920 + 48 + 32 + 80, - .vdisplay = 1080, - .vsync_start = 1080 + 3, - .vsync_end = 1080 + 3 + 5, - .vtotal = 1080 + 3 + 5 + 69, - .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC, - }, { - .clock = 144370, - .hdisplay = 1920, - .hsync_start = 1920 + 48, - .hsync_end = 1920 + 48 + 32, - .htotal = 1920 + 48 + 32 + 80, - .vdisplay = 1080, - .vsync_start = 1080 + 3, - .vsync_end = 1080 + 3 + 5, - .vtotal = 1080 + 3 + 5 + 69, - .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC, - }, -}; - -static const struct panel_desc sharp_lq140m1jw46 = { - .modes = sharp_lq140m1jw46_mode, - .num_modes = ARRAY_SIZE(sharp_lq140m1jw46_mode), - .bpc = 8, - .size = { - .width = 309, - .height = 174, - }, - .delay = { - .hpd_absent = 80, - .enable = 50, - .unprepare = 500, - }, -}; - -static const struct drm_display_mode starry_kr122ea0sra_mode = { - .clock = 147000, - .hdisplay = 1920, - .hsync_start = 1920 + 16, - .hsync_end = 1920 + 16 + 16, - .htotal = 1920 + 16 + 16 + 32, - .vdisplay = 1200, - .vsync_start = 1200 + 15, - .vsync_end = 1200 + 15 + 2, - .vtotal = 1200 + 15 + 2 + 18, - .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC, -}; - -static const struct panel_desc starry_kr122ea0sra = { - .modes = &starry_kr122ea0sra_mode, - .num_modes = 1, - .size = { - .width = 263, - .height = 164, - }, - .delay = { - /* TODO: should be hpd-absent and no-hpd should be set? */ - .hpd_reliable = 10 + 200, - .enable = 50, - .unprepare = 10 + 500, - }, -}; - static const struct of_device_id platform_of_match[] = { { /* Must be first */ @@ -1799,18 +1649,12 @@ static const struct of_device_id platform_of_match[] = { }, { .compatible = "auo,b116xa01", .data = &auo_b116xak01, - }, { - .compatible = "auo,b133han05", - .data = &auo_b133han05, }, { .compatible = "auo,b133htn01", .data = &auo_b133htn01, }, { .compatible = "auo,b133xtn01", .data = &auo_b133xtn01, - }, { - .compatible = "auo,b140han06", - .data = &auo_b140han06, }, { .compatible = "boe,nv101wxmn51", .data = &boe_nv101wxmn51, @@ -1838,9 +1682,6 @@ static const struct of_device_id platform_of_match[] = { }, { .compatible = "innolux,p120zdg-bf1", .data = &innolux_p120zdg_bf1, - }, { - .compatible = "ivo,m133nwf4-r0", - .data = &ivo_m133nwf4_r0, }, { .compatible = "kingdisplay,kd116n21-30nv-a010", .data = &kingdisplay_kd116n21_30nv_a010, @@ -1871,12 +1712,6 @@ static const struct of_device_id platform_of_match[] = { }, { .compatible = "sharp,lq123p1jx31", .data = &sharp_lq123p1jx31, - }, { - .compatible = "sharp,lq140m1jw46", - .data = &sharp_lq140m1jw46, - }, { - .compatible = "starry,kr122ea0sra", - .data = &starry_kr122ea0sra, }, { /* sentinel */ } @@ -1928,6 +1763,12 @@ static const struct panel_delay delay_200_500_e80_d50 = { .disable = 50, }; +static const struct panel_delay delay_80_500_e50 = { + .hpd_absent = 80, + .unprepare = 500, + .enable = 50, +}; + static const struct panel_delay delay_100_500_e200 = { .hpd_absent = 100, .unprepare = 500, @@ -2129,7 +1970,7 @@ static const struct edp_panel_entry edp_panels[] = { EDP_PANEL_ENTRY('S', 'D', 'C', 0x416d, &delay_100_500_e200, "ATNA45AF01"), EDP_PANEL_ENTRY('S', 'H', 'P', 0x1511, &delay_200_500_e50, "LQ140M1JW48"), - EDP_PANEL_ENTRY('S', 'H', 'P', 0x1523, &sharp_lq140m1jw46.delay, "LQ140M1JW46"), + EDP_PANEL_ENTRY('S', 'H', 'P', 0x1523, &delay_80_500_e50, "LQ140M1JW46"), EDP_PANEL_ENTRY('S', 'H', 'P', 0x154c, &delay_200_500_p2e100, "LQ116M1JW10"), EDP_PANEL_ENTRY('S', 'T', 'A', 0x0100, &delay_100_500_e200, "2081116HHD028001-51D"),