Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp1242479rdh; Fri, 24 Nov 2023 08:05:23 -0800 (PST) X-Google-Smtp-Source: AGHT+IHcyljiB5TSsnrr1TL3bT/tdcqq+Yk7TRGJWXBKY+AESfkqpQbVVp0XPt/oKZytygzqmy9H X-Received: by 2002:a05:6820:1623:b0:573:4da2:4427 with SMTP id bb35-20020a056820162300b005734da24427mr3967693oob.7.1700841922996; Fri, 24 Nov 2023 08:05:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700841922; cv=none; d=google.com; s=arc-20160816; b=fQ+5qo+EuzuSlF8jIxg7/Cze+l4vAbZetTJdG8pqGGaxVUCBX4GrHyaNoylpD9TF2C 52SDWg+u/ej4TnQKw1RoSP/pehXX6Oy9clHyKA+oW6eZ7L2cs4mfQjJl4kKdfj2MXZQX mmDW3rSWqoFAYD0iB0OcLMIjhMr8ZSWHuZPhloof7KmU7WKClHa7DINhmYj7FkP/4ObM gEkI75LDffDOeyc2lSjjLk+pmhvx6wzZjKYVif8E00fuYShZoy0zit2FHLlzdR12v2zo KKSyvMT3QzM1J1C3YZ4ysbFcDFdnM5hqx10lbXHrTB5A5bMW8eCEnR9Wl+sV4hZ4kwWW e5RQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=FGMFcjXzbEdk+Sse8VkaimKNQr0g8bw7uTtgiPTBa4Y=; fh=e0RMtZJ2Rls1ioiMvPPh6WBPWRwbwoHiKuYwCgbM5Yg=; b=nZEhqnAjY/ZQgJfJ9VYI77E3X8cn2Na/ILq/lEaoQJH7h6rhjUEBS1FvwVG63Ugtwy BQMB5kNf1kaiHMo0eku6eSacTTi+/oDcen8AKk6xuHpd0VQdApWfiXJ8mbsVDk4s9mbT YxDbNAVBCE4kILtWfqkp1GlBhJ7dEHa2k13jmBTbt29c4I/9JWJq/SokkdMcjqnucXTH VN5R9+/2i6cFel/Gb5vQAKeTvDhRel7g5zdxFv0twyB1QDZJo19ceGq93j0sjfK7wFEj TYGA9x+oKmfLLR0bcXg/6z0nOiFm/e2KveBSW84NrtEQXBkkQyKSkFm9yjXpThl+21YE jY1w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@raspberrypi.com header.s=google header.b=qVmcs9xi; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=raspberrypi.com Return-Path: Received: from howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id x2-20020a4aea02000000b00583f6e68546si1408500ood.70.2023.11.24.08.05.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 Nov 2023 08:05:22 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; dkim=pass header.i=@raspberrypi.com header.s=google header.b=qVmcs9xi; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=raspberrypi.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 8142D80B64F6; Fri, 24 Nov 2023 08:05:17 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231209AbjKXQFA (ORCPT + 99 others); Fri, 24 Nov 2023 11:05:00 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53652 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231232AbjKXQE6 (ORCPT ); Fri, 24 Nov 2023 11:04:58 -0500 Received: from mail-yw1-x1136.google.com (mail-yw1-x1136.google.com [IPv6:2607:f8b0:4864:20::1136]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CD8DF19AA for ; Fri, 24 Nov 2023 08:05:04 -0800 (PST) Received: by mail-yw1-x1136.google.com with SMTP id 00721157ae682-5cd3c4457a0so17293797b3.3 for ; Fri, 24 Nov 2023 08:05:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=raspberrypi.com; s=google; t=1700841904; x=1701446704; darn=vger.kernel.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=FGMFcjXzbEdk+Sse8VkaimKNQr0g8bw7uTtgiPTBa4Y=; b=qVmcs9xiioqxNCrBHmhMK3Y9pEMN/uCvw0r/CD+fTQXAeLtKHHqGiLVQ0DWTofHlA2 csK/pKPkcfiRPbwq50ZBZzrvMNd3BG0HPyRkVg6FaHSoEnp2GTZT0Kfp6ZkHorCPjY1I K914M1AL/Dizr56uVnpXYp4jxfiHJCgCeoazky8IyFHrhvog0MQCaXR3nYLzX6gk+kc7 XGxEDVZ3FnTpLM2UTLTn2xMYZMhfekbwwSIgonrSOO4gh3ZqbRl72jzkeHS1pl52bX75 UIATDjGesE4TAJrhvNClNKeBo3NK/HovlKuZvlH2pFRlV+gEtrMN/CLamTW6bctb5fjn dlMw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700841904; x=1701446704; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=FGMFcjXzbEdk+Sse8VkaimKNQr0g8bw7uTtgiPTBa4Y=; b=oCDIPsEpG94IGNvnlaSHri7czu8pVS6rgUszohBth63/LMmJkicboXZlkqPsrlnDTG cFyWjeQcMN+t9OXJSlM1XLYJTBKDBEWmVkqFe8+uTCL3tVixarTkZH9G5GItEp2PLgdc p+Cfx68Nxp4XW/dq7s7cKAdRilhLtlnoDLwoFHzp4q6g8RSwj0c3i8CgiyDetyHtHhL0 S9yDqEpJuip7a6RcVEcwUgSzpCKxfS1U+HUUahD9t7Irri1RCAOCKjMFahXQFXbVRtet zNFUDvYrS3CpDUnhkAE2e+GGtgVVhmv550cIJbOSFOQiiWs5yEdThaRp9vXyX01eCK7N ggfA== X-Gm-Message-State: AOJu0YxCN4lSGJHXLR9UoDgZ/1dNz9ngy/fW2PDDUUPQSuLuvLOJul5s ktcrXrtJGiSMyKWFo5MxsA0CriBWZwT+sGcXD8wKfQ== X-Received: by 2002:a25:8e0a:0:b0:da0:5ba2:6275 with SMTP id p10-20020a258e0a000000b00da05ba26275mr2764586ybl.34.1700841904036; Fri, 24 Nov 2023 08:05:04 -0800 (PST) MIME-Version: 1.0 References: <20231124104451.44271-1-shengyang.chen@starfivetech.com> In-Reply-To: From: Dave Stevenson Date: Fri, 24 Nov 2023 16:04:47 +0000 Message-ID: Subject: Re: [PATCH v1 0/2] Add waveshare 7inch touchscreen panel support To: Stefan Wahren Cc: Shengyang Chen , devicetree@vger.kernel.org, dri-devel@lists.freedesktop.org, thierry.reding@gmail.com, neil.armstrong@linaro.org, conor+dt@kernel.org, keith.zhao@starfivetech.com, tzimmermann@suse.de, krzysztof.kozlowski+dt@linaro.org, sam@ravnborg.org, linux-kernel@vger.kernel.org, mripard@kernel.org, jack.zhu@starfivetech.com, robh+dt@kernel.org, bcm-kernel-feedback-list@broadcom.com, linux-rpi-kernel@lists.infradead.org, florian.fainelli@broadcom.com, quic_jesszhan@quicinc.com, changhuang.liang@starfivetech.com, linux-arm-kernel@lists.infradead.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,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 howler.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 (howler.vger.email [0.0.0.0]); Fri, 24 Nov 2023 08:05:17 -0800 (PST) On Fri, 24 Nov 2023 at 15:00, Stefan Wahren wrote: > > Hi Shengyang, > > [fix address of Emma] Not merged to master yet, but Emma has stepped back from maintenance. https://lists.freedesktop.org/archives/dri-devel/2023-October/428829.html Dropped from the cc. > 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. Agreed. The panel control being bound in with the Atmel control has no hook for the EDT5x06 touch driver to hook in and keep the power to the touch controller active. When the panel disable gets called, bye bye touch overlay :-( And I'm reading the driver change as more of a hack to get it to work on your platform, not as adding support for the Waveshare panel variant. Waveshare deliberately cloned the behaviour of the Pi 7" panel in order to make it work with the old Pi firmware drivers, so it shouldn't need any significant changes. Where did the new timings come from? Dave > 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 > > > > > 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(-) > > >