Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp862513rdb; Wed, 6 Dec 2023 01:57:00 -0800 (PST) X-Google-Smtp-Source: AGHT+IGLPV5sFjWSzmn4dpGGtJkFfomb8v4CVnt7rbsBuUOlLkPRwiIfJJCnh2t8SJ4YMTeCMpRr X-Received: by 2002:a05:6a20:6a1b:b0:18f:cc3c:be5b with SMTP id p27-20020a056a206a1b00b0018fcc3cbe5bmr468839pzk.54.1701856619932; Wed, 06 Dec 2023 01:56:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701856619; cv=none; d=google.com; s=arc-20160816; b=kwuCNq8C6aEpcsr2p54r/9kR9JOrB1zd4Zu8vw+alv/Izt6jgkS2dwdUIenAwcPIFK S6GTzcVN/6llrkdgyZe7MuCY0tn0SEgTHWvcVBnTc8ycedxJJ7cpib+wjliBB5bNyP6w Qramkge7zf+7vAChBvMYA8HznhVXlXaLo4UxtKABTxhSMh5ALl9Y04wMDeZ51XIPUClR K2wVEOJ9Dn0nGpMbHrDVIs4HVhws8fM3ouR905A8zZcbQ8w+HM2UgTwhlat7IOPK6u1A Vt39PWXjv2wgxGg5OrLOobXMZ/UYI8poZGjh8FXBPSwZRVatRWSGrcP6xCsLh+s66IMF IBOQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id; bh=vbFbMXkl3OtsiqIiT6nMOE0JabpuDbHdT0oKrYQ3rdU=; fh=Tfu0y6TZSmulfhzgkJp1p6fGs1GA178pFgajpI5BETc=; b=mXwsw8PfL2dTmseMbxXHLw3KPFmovfpwBt72ZWvfCZTxzHQVVS8IgjAZnQARCQ6MVJ lDmQQCF1jbLZat4i404H0//2O7OmaWoOTihUt8xUZuTk/NmIf9KGxUX/WLtpvEyLR284 SjUeN4WXKZbT/etQIzFh2ImwFN580RgY/MzcBHH19cGjVDo6BQNPS4HsPF0BN0oX+YFs XDfaJM30LyNiPpR4Y8K9jXhQJ0LWuFwxWVQeVZTu8WJqOmn4sn4aSsjv6NpQtAx2qW0l 0H/HorFy64C+NrF5Gy3J7DVKc8XCVDB+7ZaxFwAFA9TJ/2Ilx4fUr4s1cPGxolYElDP7 PqUg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from morse.vger.email (morse.vger.email. [23.128.96.31]) by mx.google.com with ESMTPS id p9-20020a17090a868900b00286d42d0e6dsi3222221pjn.176.2023.12.06.01.56.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Dec 2023 01:56:59 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) client-ip=23.128.96.31; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id 5867681EB479; Wed, 6 Dec 2023 01:56:56 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1377290AbjLFJ4l convert rfc822-to-8bit (ORCPT + 99 others); Wed, 6 Dec 2023 04:56:41 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51658 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229471AbjLFJ4k (ORCPT ); Wed, 6 Dec 2023 04:56:40 -0500 Received: from ex01.ufhost.com (ex01.ufhost.com [61.152.239.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CCCA0FA; Wed, 6 Dec 2023 01:56:44 -0800 (PST) Received: from EXMBX165.cuchost.com (unknown [175.102.18.54]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "EXMBX165", Issuer "EXMBX165" (not verified)) by ex01.ufhost.com (Postfix) with ESMTP id C6B9C24E2B7; Wed, 6 Dec 2023 17:56:36 +0800 (CST) Received: from EXMBX171.cuchost.com (172.16.6.91) by EXMBX165.cuchost.com (172.16.6.75) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Wed, 6 Dec 2023 17:56:36 +0800 Received: from [192.168.125.88] (183.27.97.199) by EXMBX171.cuchost.com (172.16.6.91) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Wed, 6 Dec 2023 17:56:35 +0800 Message-ID: <0447c983-ee90-475e-9356-ad451f32da1d@starfivetech.com> Date: Wed, 6 Dec 2023 17:53:23 +0800 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v1 0/2] Add waveshare 7inch touchscreen panel support Content-Language: en-US To: Stefan Wahren , , CC: , , , , , , , , , , , , , , , , , , , References: <20231124104451.44271-1-shengyang.chen@starfivetech.com> From: Shengyang Chen In-Reply-To: Content-Type: text/plain; charset="UTF-8" X-Originating-IP: [183.27.97.199] X-ClientProxiedBy: EXCAS066.cuchost.com (172.16.6.26) To EXMBX171.cuchost.com (172.16.6.91) X-YovoleRuleAgent: yovoleflag Content-Transfer-Encoding: 8BIT X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (morse.vger.email [0.0.0.0]); Wed, 06 Dec 2023 01:56:56 -0800 (PST) Hi, Stefan Thanks for your comment and review On 2023/11/24 22:54, Stefan Wahren wrote: > Hi Shengyang, > > [fix address of Emma] > > Am 24.11.23 um 11:44 schrieb Shengyang Chen: >> This patchset adds waveshare 7inch touchscreen panel support >> for the StarFive JH7110 SoC. >> >> Patch 1 add new compatible for the raspberrypi panel driver and its dt-binding. >> Patch 2 add new display mode and new probing process for raspberrypi panel driver. >> >> Waveshare 7inch touchscreen panel is a kind of raspberrypi panel >> which can be drived by raspberrypi panel driver. >> >> The series has been tested on the VisionFive 2 board. > surprisingly i was recently working on the official Raspberry Pi > touchscreen and was able to get it running the new way. > > What do i mean with the new way. There is almost nothing special to the > Raspberry Pi touchscreen, so we should try to use/extend existing > components like: > > CONFIG_DRM_PANEL_SIMPLE > CONFIG_TOUCHSCREEN_EDT_FT5X06 > CONFIG_DRM_TOSHIBA_TC358762 > > The only special part is the Attiny on the connector PCB which requires: > > CONFIG_REGULATOR_RASPBERRYPI_TOUCHSCREEN_ATTINY > > So the whole point is to avoid writing monolitic drivers for simple > panel like that. > > There is a WIP branch based on top of Linux 6.7-rcX, which should > demonstrate this approach [1]. Unfortunately it is not ready for > upstreaming, but it has been tested on a Raspberry Pi 3 B Plus. Maybe > this is helpful for your case. > > Actually i consider panel-raspberrypi-touchscreen.c as a dead end, which > shouldn't be extended. > > Btw there are already DT overlays in mainline which seems to use the > Raspberry Pi 7inch panel (without touch function yet) [2]. > > [1] - https://github.com/lategoodbye/rpi-zero/commits/v6.7-7inch-ts > [2] - > https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/arch/arm64/boot/dts/freescale/imx8mm-venice-gw72xx-0x-rpidsi.dtso?h=v6.6.2&id=6b4da1354fd81adace0cda448c77d8f2a47d8474 > Thank you very much for your advice. We will try this method before making new patch. This method will be used if its verified in our soc. If there is any problem, we may continue to contact. Thanks a lot. >> >> Shengyang Chen (2): >>    dt-bindings: display: panel: raspberrypi: Add compatible property for >>      waveshare 7inch touchscreen panel >>    gpu: drm: panel: raspberrypi: add new display mode and new probing >>      process >> >>   .../panel/raspberrypi,7inch-touchscreen.yaml  |  4 +- >>   .../drm/panel/panel-raspberrypi-touchscreen.c | 99 ++++++++++++++++--- >>   2 files changed, 91 insertions(+), 12 deletions(-) >> > thanks Best Regards, Shengyang