Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp3043270rwd; Mon, 29 May 2023 05:06:50 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5Y3NQnB1bWi+pmF+jvxSzpAEVNHjXX2gPfOSIl+90THvdotfOj0YUrgfJMpYlPIVKYev5m X-Received: by 2002:a05:6a21:168d:b0:10f:8b61:197c with SMTP id np13-20020a056a21168d00b0010f8b61197cmr8023642pzb.54.1685362010238; Mon, 29 May 2023 05:06:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685362010; cv=none; d=google.com; s=arc-20160816; b=uY7mYksuU4S3l3TKwnSnWpVls0dDp4/sgSmv7i9UapsE44I3BYUNntJNMpClze+Q0B E41sq22M39SrsNLZqfGLXIJBwms6252aPC1eLu7GLDuPUsBkhAC7abLmtNMOotRvcNv4 U1V+Smd8DdRkW2aG1TjluzIWkZdQUbgVou2XOsDl6C2aDSCzqWD8mpZzl9Il1pFAwpwQ r2D9S6jGihBoMZ87uumr9U6urqtF4POYkEyhYt8zMSr3vx2lfjkMnOAF4AU2LCtbbiT9 mn0PoWENBygQ8WIAJUpgjUSBOOHr9wke/hPbFQ+H+t1iBkIn0uDgCMYYpMsHtmxfneZw ENDg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=V1Q7kzMzg7eV6b7WrupCSdt+hyonO/EBnrQlUz6itRE=; b=gOWsv8cylLC7i3sVCmYplgr60iLBc359T1vhnrT7RiRyoyISRLZN+j/UT5iTuepgvQ gcP+5O/lUbGnvin8P/q0SAKdMJKyPoQ8ODWooc+QoZb9aOTO1j4ciqjH27mYOa6ZOPwD q4HtUeu4gRA7UhgVqw17MJ7jEONEXEg9ULiroOT2E0ugSrCOQgLD6b+0FZgI6+DHAMVS W4/Tg9weq61+JrC3UmCNVr8rdoJa7wpwP6fNA8aGE3H0FoKd3SKDZ++mYM+jSB3F1E5t G5+MYsQvlAIHHIaVAGMGH3BzBNHnt2IlUO1B1I1dMCIZ0Fyn7/HwFa3MLhUPf9aHzU19 4nwg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j63-20020a638042000000b0053f0cdab819si9036204pgd.366.2023.05.29.05.06.38; Mon, 29 May 2023 05:06:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231614AbjE2MFV (ORCPT + 99 others); Mon, 29 May 2023 08:05:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39780 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231526AbjE2MFS (ORCPT ); Mon, 29 May 2023 08:05:18 -0400 Received: from m-r1.th.seeweb.it (m-r1.th.seeweb.it [IPv6:2001:4b7a:2000:18::170]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 13E36C9 for ; Mon, 29 May 2023 05:05:15 -0700 (PDT) Received: from SoMainline.org (94-211-6-86.cable.dynamic.v4.ziggo.nl [94.211.6.86]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by m-r1.th.seeweb.it (Postfix) with ESMTPSA id 4A9FE20090; Mon, 29 May 2023 14:05:13 +0200 (CEST) Date: Mon, 29 May 2023 14:05:11 +0200 From: Marijn Suijten To: Neil Armstrong Cc: Jessica Zhang , Sam Ravnborg , David Airlie , Daniel Vetter , Rob Herring , Krzysztof Kozlowski , devicetree@vger.kernel.org, Abhinav Kumar , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/2] dt-bindings: display: panel: Add Visionox R66451 AMOLED DSI panel bindings Message-ID: References: <20230516-b4-r66451-panel-driver-v1-0-4210bcbb1649@quicinc.com> <20230516-b4-r66451-panel-driver-v1-1-4210bcbb1649@quicinc.com> <0d436948-b0b7-0727-0852-51f64aefa43f@linaro.org> <1c5dd13f-8221-09e6-5b7d-a06135ce97f7@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1c5dd13f-8221-09e6-5b7d-a06135ce97f7@linaro.org> X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2023-05-26 09:42:33, Neil Armstrong wrote: > On 22/05/2023 16:51, Marijn Suijten wrote: > > On 2023-05-22 11:05:38, Neil Armstrong wrote: > >> On 21/05/2023 12:30, Marijn Suijten wrote: > >>> On 2023-05-16 13:20:30, Jessica Zhang wrote: > >>>> Document the 1080x2340 Visionox R66451 AMOLED DSI panel bindings > >>>> > >>>> Signed-off-by: Jessica Zhang > >>>> --- > >>>> .../bindings/display/panel/visionox,r66451.yaml | 59 ++++++++++++++++++++++ > >>>> 1 file changed, 59 insertions(+) > >>>> > >>>> diff --git a/Documentation/devicetree/bindings/display/panel/visionox,r66451.yaml b/Documentation/devicetree/bindings/display/panel/visionox,r66451.yaml > >>>> new file mode 100644 > >>>> index 000000000000..6ba323683921 > >>>> --- /dev/null > >>>> +++ b/Documentation/devicetree/bindings/display/panel/visionox,r66451.yaml > >>>> @@ -0,0 +1,59 @@ > >>>> +# SPDX-License-Identifier: GPL-2.0-only or BSD-2-Clause > >>>> +%YAML 1.2 > >>>> +--- > >>>> +$id: http://devicetree.org/schemas/display/panel/visionox,r66451.yaml# > >>>> +$schema: http://devicetree.org/meta-schemas/core.yaml# > >>>> + > >>>> +title: Visionox R66451 AMOLED DSI Panel > >>>> + > >>>> +maintainers: > >>>> + - Jessica Zhang > >>>> + > >>>> +allOf: > >>>> + - $ref: panel-common.yaml# > >>>> + > >>>> +properties: > >>>> + compatible: > >>>> + const: visionox,r66451 > >>>> + > >>>> + reg: > >>>> + maxItems: 1 > >>>> + description: DSI virtual channel > >>>> + > >>>> + vddio-supply: true > >>>> + vdd-supply: true > >>>> + port: true > >>>> + reset-gpios: true > >>> > >>> Normally for cmd-mode panels there is also a `disp-te` pin which is > >>> optionally registered in dsi_host.c as GPIOD_IN, but on **ALL** my Sony > >>> phones this breaks vsync (as in: mdp5 stops receiving the interrupt, but > >>> we can see disp-te in /proc/interrupts then). > >> > >> Describing it as a gpio is wrong, it should be described as a pinctrl state instead. > > > > We defined both in our DTS, what weirdness does it cause when then > > requested using GPIOD_IN? It'd still be beneficial to see the vsync > > interrupt raise in /proc/interrupts (but it's just a waste of CPU cycles > > OTOH, this is all handled in the MDP hardware after all, so it's not > > something I'd like to enable by default). > > Sure, but it's a sw hack, the pin has a TE function which directly goes to > the DSI logic, claiming it as a GPIO will set it as GPIO function. > > On some platforms, PINMUX is only on output and input is always directed > to all HW blocks, seems it's not the case here ! Ah that makes total sense! The PINGROUP() is only passed this mdp_vsync function but internally provides the gpio function as well, which it'd have to use to read it as GPIO from the SoC-side: and this indeed seems to "disconnect" that pin from the MDP HW block. Thanks for mentioning this, I totally overlooked it. Should we document/clarify this in any way, or perhaps remove the disp-te handling altogether (dsi_host.c doesn't use this interrupt for anything, though we could leave it for debug purposes if describing / wrapping it more clearly). Downstream also sets this pin in DT but doesn't ever request a GPIO/IRQ on it, afaik. - Marijn > > Anyway, this is what we ended up doing to "fix" the bug (only bias the > > pin via pinctrl, omit the disp-te DTS property). Thanks for confirming! > > > > - Marijn > > > >> > >> Neil > > > > >