From patchwork Tue Jan 9 07:09:48 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shengyang Chen X-Patchwork-Id: 13514363 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 gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (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 AC25FC46CD2 for ; Tue, 9 Jan 2024 07:24:56 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id E2D4F10E2FE; Tue, 9 Jan 2024 07:24:55 +0000 (UTC) X-Greylist: delayed 894 seconds by postgrey-1.36 at gabe; Tue, 09 Jan 2024 07:24:55 UTC Received: from CHN02-SH0-obe.outbound.protection.partner.outlook.cn (mail-sh0chn02on2086.outbound.protection.partner.outlook.cn [139.219.146.86]) by gabe.freedesktop.org (Postfix) with ESMTPS id 41D9A10E2FE for ; Tue, 9 Jan 2024 07:24:54 +0000 (UTC) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=jcrh4rzlSrr3/TGLrqKwLQgo0a04FajpJs8Se6cfC4UK6TtilkVsKHaB5SeatCDVamLEflCxCjtTK73y39PGIgydJ1jEWtZQJuqM4so5o5P0GKFchKb+bDQsnsMZSao5FH4uMqIJrgi67DSUYED9pxv0B2jEdtfFfpptbXBOyoIFPUjR9dfvnOiHsANANkItZbRd9FFRhLqBstCrZoCoz0gLz9YG3CtyWYXhrOMlrfX3LvQx1k/zgc0eWM0bLONZnBmvwg8mexrKEyMkpHFqV/huXJewbGmNHwxC0uIwlm5NrjYGcCJ/Fmans6/Eb3QyI8lIPzwkcl8i1bKUEWshFQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=pHvQt90YSAOgZH+tF5NoT0NxAop9t+SbJupHJGljm8A=; b=kXqH1/KgaOd0r2l8QE66keOhoHd7MYXFWKv4zSP2KJPzaBeNe052+3F2Q40OX8y3UV1hnNRB72VAAfCYcKhIIamrp8oV7l5UOIPuNjGVKDnjq40eHiybuETFv2LBonEoFfZijLEXpCuK1CgU8oAg748x0fAk8XMDuiksL0dAvcjxkU6akhSkFdZuWjGExCr/vN3VjsoEQAA/7+3O6XMp6Ay04bDPSg5HIXH7Q+3ETh3BblzLNIYAg68JNS8CxxANkqvoW+9n/HbC2EeUHh9Lb3SthKGMrMyDPdDjD8d1f88u+Cu1PP/MiccA35cqKrpGkBFjFkl1H3hZh6OSkk5Nig== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=starfivetech.com; dmarc=pass action=none header.from=starfivetech.com; dkim=pass header.d=starfivetech.com; arc=none Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=starfivetech.com; Received: from NT0PR01MB1070.CHNPR01.prod.partner.outlook.cn (2406:e500:c510:3::6) by NT0PR01MB1133.CHNPR01.prod.partner.outlook.cn (2406:e500:c510:6::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7135.20; Tue, 9 Jan 2024 07:09:58 +0000 Received: from NT0PR01MB1070.CHNPR01.prod.partner.outlook.cn ([fe80::85fc:7fb9:8b00:dd88]) by NT0PR01MB1070.CHNPR01.prod.partner.outlook.cn ([fe80::85fc:7fb9:8b00:dd88%3]) with mapi id 15.20.7135.019; Tue, 9 Jan 2024 07:09:58 +0000 From: Shengyang Chen To: devicetree@vger.kernel.org, dri-devel@lists.freedesktop.org Subject: [PATCH v2 1/2] dt-bindings: display: panel: panel-simple: Add compatible property for waveshare 7inch touchscreen panel Date: Tue, 9 Jan 2024 15:09:48 +0800 Message-Id: <20240109070949.23957-2-shengyang.chen@starfivetech.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20240109070949.23957-1-shengyang.chen@starfivetech.com> References: <20240109070949.23957-1-shengyang.chen@starfivetech.com> X-ClientProxiedBy: NT0PR01CA0013.CHNPR01.prod.partner.outlook.cn (2406:e500:c510::17) To NT0PR01MB1070.CHNPR01.prod.partner.outlook.cn (2406:e500:c510:3::6) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: NT0PR01MB1070:EE_|NT0PR01MB1133:EE_ X-MS-Office365-Filtering-Correlation-Id: 819c26bb-e6a6-44d2-ebd2-08dc10e1fd0a X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 9QZWV7dp5OUnmtsEBXSgTQ+JgQZhj0thIMwyYuTgnEv8BpFhNTpWi6E0iZxpPTmgbeZAntD8dW0p2QOHbwgy6+nJ5l39L/X5W6dbp6KG2yxC3v/bBOIBxOv4I1ctcqS18o5YQexJw8subW5eO6cd++VpOCtL2K1XgNeT6QEfUgL8BYYBhy9CrT02hQhRHBvRCaD111dIoVZAmvMSdyHGySsEaIG6ZALiCabA0BUtgxWjEHCYdDVeK2wD74+ZnKWQmnmrrRuD6lyAaYjGTVn0r+W9fJ5y3vNACiSx+cJspPmMbaNaaGg+uiIyehUWPDJhPRTgX8yT65CpAnm8hPyiJlqzKJQrZYmo4GE2zkX4nPca1vJZVoWJ+kZ0Dtlvu6VNy7oEU/MKPFOJtXSwh70PtMX46wTSdOMkFoTABNehVUKDpw3b+iLWMcW2XiG+/0yWxfINHd6s0ZU7U+IR+3VISXsgBsOtjSUZ4Q4Q2BrXX8gwg/K1B8d2tofx63TjVms1uTOo/uSgRBtv+Y0voO+b6eHeRsVMqEGNRQzyKddvaf6umaifFr7rO/4g33PvVcaj X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:NT0PR01MB1070.CHNPR01.prod.partner.outlook.cn; PTR:; CAT:NONE; SFS:(13230031)(396003)(39830400003)(366004)(346002)(136003)(230922051799003)(451199024)(186009)(1800799012)(64100799003)(66476007)(66946007)(4326008)(66556008)(8936002)(44832011)(36756003)(26005)(2616005)(6666004)(1076003)(508600001)(8676002)(41320700001)(41300700001)(5660300002)(2906002)(7416002)(52116002)(40180700001)(38350700005)(40160700002)(86362001)(38100700002); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: Q615R01p6+AXljuF4rLvLVTl7SWcfJQr01N5EYLiVsM4LPjoylG5/TSzhRIcNmBQFBUPackEw/MHHywuyUM65D6nTrEcPdkteIEEQzbTjzxRWbcPY8VeA1dsw8CK69ODGWzwjh7a9tuniIkyFMW5YMuwf2yR8FYHYOTdX5Wg2O6jGY8M5OSkthguDXGKG0up8vszn8oFBzmkhZ3H9RskD6bPIUVlbXqrwUG3hxcXDfpXopy51zJTi/d7WkfEsQ/QBVSymY31vDOwtulYh9QariJ6PSMuJ3C8uoYDPEuD0uViyojWKXfJ15ZVLWVuI3t+rGZiIo4edQwlw8G+r8gvOBVxCry+2+brgUeGqUb7dTTzhhHKpc1S9F22W6QnAnEi3w7gKzkY7Dv8ITTuq/kDoEp3JZ/0H+wx8WfAqxwX34KhjIzxbAsD+mifq/l8XxyiKrBzIew3f9iYBiqk68X/HDXRKILgjzBqVv385xil60Qior70YWjjXOrxdxXSYOx1VN5IEH+0e/zcuXUtliYqiWkaVDxSMR5FQT5bEefSjYM9uueUxsp8NGVYQL3ErRENt0EK7aCyv4e+0q5XYweKeN3ggLgKixyyh96X7zGdIdXpYNTYg1aWQ3g8kkEi+gsl9vRUw8Ku0ue+CZrtoQLMrR6ujoDLSD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CrossTenant-AuthSource: NT0PR01MB1070.CHNPR01.prod.partner.outlook.cn X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Jan 2024 07:09:57.9687 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 06fe3fa3-1221-43d3-861b-5a4ee687a85c X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: QbVemyxFMpwTsYSDYtmKpi+Q0kQfbawPfFGww3uQFBAMeiBw0FixbVnzBCQ1e+NcuSFZaUyzyVTCVbSiUSdhExvKKB27r6Agtfnd7LTTrVM= X-MS-Exchange-Transport-CrossTenantHeadersStamped: NT0PR01MB1133 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: neil.armstrong@linaro.org, conor+dt@kernel.org, keith.zhao@starfivetech.com, tzimmermann@suse.de, krzysztof.kozlowski+dt@linaro.org, dave.stevenson@raspberrypi.com, sam@ravnborg.org, linux-kernel@vger.kernel.org, mripard@kernel.org, jack.zhu@starfivetech.com, robh+dt@kernel.org, thierry.reding@gmail.com, wahrenst@gmx.net, shengyang.chen@starfivetech.com, quic_jesszhan@quicinc.com, changhuang.liang@starfivetech.com Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" The waveshare 7" 800x480 panel is a clone of Raspberry Pi 7" 800x480 panel It can be drived by Raspberry Pi panel's process but it needs different timing from Raspberry Pi panel. Add compatible property for it. Signed-off-by: Keith Zhao Signed-off-by: Shengyang Chen --- .../devicetree/bindings/display/panel/panel-simple.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/display/panel/panel-simple.yaml b/Documentation/devicetree/bindings/display/panel/panel-simple.yaml index 11422af3477e..02f6b1b2ddc9 100644 --- a/Documentation/devicetree/bindings/display/panel/panel-simple.yaml +++ b/Documentation/devicetree/bindings/display/panel/panel-simple.yaml @@ -335,6 +335,8 @@ properties: - vivax,tpc9150-panel # VXT 800x480 color TFT LCD panel - vxt,vl050-8048nt-c01 + # Waveshare 7" (800x480) touchscreen LCD panel + - waveshare,7inch-touchscreen # Winstar Display Corporation 3.5" QVGA (320x240) TFT LCD panel - winstar,wf35ltiacd # Yes Optoelectronics YTC700TLAG-05-201C 7" TFT LCD panel From patchwork Tue Jan 9 07:09:49 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shengyang Chen X-Patchwork-Id: 13514371 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 gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (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 71E6CC46CD2 for ; Tue, 9 Jan 2024 07:42:33 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id DAE0410E2EE; Tue, 9 Jan 2024 07:42:32 +0000 (UTC) Received: from CHN02-BJS-obe.outbound.protection.partner.outlook.cn (mail-bjschn02on2076.outbound.protection.partner.outlook.cn [139.219.17.76]) by gabe.freedesktop.org (Postfix) with ESMTPS id 6A5B010E2EE for ; Tue, 9 Jan 2024 07:42:31 +0000 (UTC) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=RxVs48NexRbf7EPx3EeWZaKk7g+W8WQ7nDrTRMGZ+l67a8wGc0kr7WEd325oKia+1DJyJ6+uuJ0X35qoS2UR7vsIHJdUSad3Hf8U7E5JkUmeKg3IayNQwfFfBWdgEvBuQ6WCTZaXblPVBt84HtyYtt6t5pnmQoSfLxeE4eSoKnoO6vIaxhaV4snGf606scwQ1db+3GvQClwappoqgs3SXb0a0eJNK0RZxZDWHE/xv7thj6GPhwU6N3ZqnL/Mf7qkI/JOwRE71eAV6rZDenyJVEbgHBz8O6wEDYZFAVjFXZg3PSWPl5Otp87iVAWBZqklQfewcsQI7ujGAFIfNMyknA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=qd+h3p4AbUA9qdJIyEDm4WRbS3xOSPgVlLZ2U4IUW1I=; b=Mn7e+hEfVrimfz+4w927C5Wl8avR2y0DUrCuigT3jbXreX0+c+yPvR6p7OVPPICQogQQTojMIvXM6UhIR01S9EYY6mxjnQeSLOyET35geFolrV2oqbyhYUHdY5QJbRGUJnOipYcmv7kDS6PK03M44RtZiqGmDmmm/LoWO54KU84Eb1ltWT1PAt0n5l0O5dN67Wj37KYlqpL6DwqCZknGrSvdLVAF6U0lKlkjIEvoPEzdY7iUlxA8oNjdgy+bjIKWJ7FC1HIMHdUsUeT3I9xtCBc4rWEVdmWsw8N8sg6U7rBy+6MDmWhBhFg8vyx4UkH9951G/f3GmrmZh97M95SRqw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=starfivetech.com; dmarc=pass action=none header.from=starfivetech.com; dkim=pass header.d=starfivetech.com; arc=none Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=starfivetech.com; Received: from NT0PR01MB1070.CHNPR01.prod.partner.outlook.cn (2406:e500:c510:3::6) by NT0PR01MB1133.CHNPR01.prod.partner.outlook.cn (2406:e500:c510:6::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7135.20; Tue, 9 Jan 2024 07:09:58 +0000 Received: from NT0PR01MB1070.CHNPR01.prod.partner.outlook.cn ([fe80::85fc:7fb9:8b00:dd88]) by NT0PR01MB1070.CHNPR01.prod.partner.outlook.cn ([fe80::85fc:7fb9:8b00:dd88%3]) with mapi id 15.20.7135.019; Tue, 9 Jan 2024 07:09:58 +0000 From: Shengyang Chen To: devicetree@vger.kernel.org, dri-devel@lists.freedesktop.org Subject: [PATCH v2 2/2] gpu: drm: panel: panel-simple: add new display mode for waveshare 7inch touchscreen panel Date: Tue, 9 Jan 2024 15:09:49 +0800 Message-Id: <20240109070949.23957-3-shengyang.chen@starfivetech.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20240109070949.23957-1-shengyang.chen@starfivetech.com> References: <20240109070949.23957-1-shengyang.chen@starfivetech.com> X-ClientProxiedBy: NT0PR01CA0013.CHNPR01.prod.partner.outlook.cn (2406:e500:c510::17) To NT0PR01MB1070.CHNPR01.prod.partner.outlook.cn (2406:e500:c510:3::6) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: NT0PR01MB1070:EE_|NT0PR01MB1133:EE_ X-MS-Office365-Filtering-Correlation-Id: ff4f1761-cb6a-487b-2d5c-08dc10e1fd95 X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: tJPMMnpt6OEDBriSQhOsdDUFOwh9Cz/3/onDP5iTpvC+gTGv3YON2v9ES63P3Nvzi/Kb9vg16USCPLk6yOqM9YpM9u28S42B3VNcIr7Hvy37Eflt0J6KVtiKYHNCFURHdL08n63K8fn1ajS3bsaaFKjeNSBjvinf86E+4oSWr7LSvCnUw1rtwlGNCDBwHcR0Bxt+YqIbPOHgBdKmKU5KRRe0bqjiLk/wGOXRg3XiXn3Ke/clgXWx7sdsI7zFu3chMajvS72iAnl+gH25GSBxknFH6DThwEsJZtEpwIuzDW6cs+zIxHXSa+DCsiMbxK3tOKoIbD1F4QB78HPl3bxVMfc5O1CSUwjHMPg50njnMmYzwUF4HZ4CTH6ozM5F1MpQvBGSE8uzB8834Si+AMa9Wep9BvZ4jvBFetuvvPHdiu0n+jbkbcOnGJIflwBFRxDtOSr5vjTAZUAhlCDqhF86p1fcwPiZpB8HCsAFxU3WaYtch01J3ueXk16tkSIrmuJV8cqNnDuc16Y7iEN04LzsO0JxSZwXq8olZrjuwAmhKSExFJ3/wrCBnaN+P0HUj1j7 X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:NT0PR01MB1070.CHNPR01.prod.partner.outlook.cn; PTR:; CAT:NONE; SFS:(13230031)(396003)(39830400003)(366004)(346002)(136003)(230922051799003)(451199024)(186009)(1800799012)(64100799003)(66476007)(66946007)(4326008)(66556008)(8936002)(44832011)(36756003)(26005)(2616005)(6666004)(1076003)(508600001)(8676002)(41320700001)(41300700001)(5660300002)(2906002)(7416002)(52116002)(83380400001)(40180700001)(38350700005)(40160700002)(86362001)(38100700002); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: bEaRoFNRyVk4NBi/I1Vaa8N2o0eY/Cy04nk3en9dQKke75ALzK3IhrGo1KUqwLpMRVjIEcnY6BL8H5FNETarbGim1iIrG9YZ+CTQ9XpByv/T6HXw8yCuZqW1NWc9DFr/QBIptirLTs/+o8ZP7Xrho4ZhrwZ+MgCpIAQKyoePRLlgPVy6vtEhbGhXpTDIOgZ5Ygk4W+6MjPRVRsXhV4TkJztNVqaSMWFWHxphRBv9WFNGWQRXt2C73NOK5RxViaB7QF52BExIezvFYkp+7YIEtOLya3+TLCvwRBzqzFZlrEuWpbq5dzFyvgHgN8offmRHt79L8i9QhJB1WLd2qvZBdM1U8nxY9P/ZDFi/PtvkHIlw1Pp7odfmWk5F3ky1MSU4P5eh74rHNXMLIsyfKvs1A8A5UWTiTadrltuLk0aXywKFAq+XVThGTtlxzpAeox2VE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ufcb/DV9fsGFyj6UZqiHgpNd2imvBRH1RfnhI7d0zP9E5zYp7l1OHXyxyO9M/z4FAiyktWtbxfIZz+Ry+ugPCnFI38ae7wJLL2wf0= X-OriginatorOrg: starfivetech.com X-MS-Exchange-CrossTenant-Network-Message-Id: ff4f1761-cb6a-487b-2d5c-08dc10e1fd95 X-MS-Exchange-CrossTenant-AuthSource: NT0PR01MB1070.CHNPR01.prod.partner.outlook.cn X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Jan 2024 07:09:58.8763 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 06fe3fa3-1221-43d3-861b-5a4ee687a85c X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: H/57sZTqDxPW3GyM9eN6T12L5wqF0Gr7t+nK5a7f9jkbRot2HBFv78Y2FD3s6+G66wwnydhclTL1PB6875DOb/DuZQ1wUbs3ZzsV7uU8NFk= X-MS-Exchange-Transport-CrossTenantHeadersStamped: NT0PR01MB1133 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: neil.armstrong@linaro.org, conor+dt@kernel.org, keith.zhao@starfivetech.com, tzimmermann@suse.de, krzysztof.kozlowski+dt@linaro.org, dave.stevenson@raspberrypi.com, sam@ravnborg.org, linux-kernel@vger.kernel.org, mripard@kernel.org, jack.zhu@starfivetech.com, robh+dt@kernel.org, thierry.reding@gmail.com, wahrenst@gmx.net, shengyang.chen@starfivetech.com, quic_jesszhan@quicinc.com, changhuang.liang@starfivetech.com Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" The waveshare 7" 800x480 panel is a clone of Raspberry Pi 7" 800x480 panel It also uses a Toshiba TC358762 DSI to DPI bridge chip but it needs different timing from Raspberry Pi panel. Add new timing for it. Signed-off-by: Keith Zhao Signed-off-by: Shengyang Chen Reviewed-by: Jessica Zhang --- drivers/gpu/drm/panel/panel-simple.c | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/drivers/gpu/drm/panel/panel-simple.c b/drivers/gpu/drm/panel/panel-simple.c index 9367a4572dcf..e0896873ea33 100644 --- a/drivers/gpu/drm/panel/panel-simple.c +++ b/drivers/gpu/drm/panel/panel-simple.c @@ -4110,6 +4110,31 @@ static const struct panel_desc vl050_8048nt_c01 = { .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_SAMPLE_NEGEDGE, }; +static const struct drm_display_mode waveshare_7inch_mode = { + .clock = 29700000 / 1000, + .hdisplay = 800, + .hsync_start = 800 + 90, + .hsync_end = 800 + 90 + 5, + .htotal = 800 + 90 + 5 + 5, + .vdisplay = 480, + .vsync_start = 480 + 60, + .vsync_end = 480 + 60 + 5, + .vtotal = 480 + 60 + 5 + 5, + .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC, +}; + +static const struct panel_desc waveshare_7inch = { + .modes = &waveshare_7inch_mode, + .num_modes = 1, + .bpc = 8, + .size = { + .width = 154, + .height = 86, + }, + .bus_format = MEDIA_BUS_FMT_RGB888_1X24, + .connector_type = DRM_MODE_CONNECTOR_DSI, +}; + static const struct drm_display_mode winstar_wf35ltiacd_mode = { .clock = 6410, .hdisplay = 320, @@ -4592,6 +4617,9 @@ static const struct of_device_id platform_of_match[] = { }, { .compatible = "vxt,vl050-8048nt-c01", .data = &vl050_8048nt_c01, + }, { + .compatible = "waveshare,7inch-touchscreen", + .data = &waveshare_7inch, }, { .compatible = "winstar,wf35ltiacd", .data = &winstar_wf35ltiacd,