Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2067898rwd; Fri, 26 May 2023 00:55:32 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4iZIzPe3p0svD9YeQKB9RHxG1AzOPlpsF/+6mVacXuJKUDuxWtD04L6LgQdiRSaLa7DSyq X-Received: by 2002:a05:6a21:3398:b0:105:dafa:fec2 with SMTP id yy24-20020a056a21339800b00105dafafec2mr1307582pzb.53.1685087731833; Fri, 26 May 2023 00:55:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685087731; cv=none; d=google.com; s=arc-20160816; b=Kg8c/y0lsTsnUZbRzPL4pXnurml2ph8FUDhNUPw56FkgcjiqmxhAIyrTe6x8heaTD7 dBmIgjhV15MJl7pHLWiO/JscoMquO0BVHNo5uzbaLlf9WvEutggSJd86YCGPhHV0qUGI CCuRO+g4xBvfQq1A+Pk5Li+PMjyFouqkMY0DwuOAs5nQq99/teelgyAbpWVLV1wxBZrV JOpzuYVGACYzp/013UtHFHUMg6YTEG5Abjaa0Vu8yjiyku53dBo++sF4XVqtFigPbvhu jT3RijLtbfV+LbdrAxrHVyHjWTWhGT66F7JU7k4s2wZ4o5mzJshB+q7M3yTf5fVFVwp9 eUJg== 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 :organization:references:cc:to:content-language:subject:reply-to :from:user-agent:mime-version:date:message-id:dkim-signature; bh=NkTkGDMVJA48vFPtaSjIeYrGpqqTSqfQ3e0MrBnwrbs=; b=cquTjzMcXkEG/8t+YjGVPzvIcIhQPlQThOaopGLNHzlUIu1nH7TUlzRfNyczDiKUKo dErB6yk0jTt/sCTKsufnmlf1L0PGastVZb257EwbKzEabBrM5ebwHFcJiuXbtpakJZ7k f2aXnqmjcqkeqXEOu67U2HXZ4YGssLecGmw9dSPusCk5nEidr5MXc5GWy7mSRKx4zxVf Fq1wzpL1zFIWnaObQdCeDYtEnYxZlVhv0fQRBcp00H7b/ooFsm8cErVDlX4SfFNHYGG1 PZr1xfcHhH146Rkvr4yALr6uiwp/4FQJUaJYUhzj6biVRYIdv6X2I/pOp6eSrqXOIEUv zmBA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=xz3haS1K; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ha10-20020a17090af3ca00b00253326d4e5bsi284260pjb.57.2023.05.26.00.55.15; Fri, 26 May 2023 00:55:31 -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; dkim=pass header.i=@linaro.org header.s=google header.b=xz3haS1K; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242506AbjEZHmq (ORCPT + 99 others); Fri, 26 May 2023 03:42:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39490 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242504AbjEZHmn (ORCPT ); Fri, 26 May 2023 03:42:43 -0400 Received: from mail-wm1-x32a.google.com (mail-wm1-x32a.google.com [IPv6:2a00:1450:4864:20::32a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CEC2819D for ; Fri, 26 May 2023 00:42:38 -0700 (PDT) Received: by mail-wm1-x32a.google.com with SMTP id 5b1f17b1804b1-3f6cbdf16d2so2728445e9.2 for ; Fri, 26 May 2023 00:42:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1685086957; x=1687678957; h=content-transfer-encoding:in-reply-to:organization:references:cc:to :content-language:subject:reply-to:from:user-agent:mime-version:date :message-id:from:to:cc:subject:date:message-id:reply-to; bh=NkTkGDMVJA48vFPtaSjIeYrGpqqTSqfQ3e0MrBnwrbs=; b=xz3haS1KXQLY2AyRechw8Fk0OwpajCfzX8pzwP7F7lcIurYVEfVUSTIJ/6dMylYFSp CF17Dhd+xW3AREahs3Gy7lsQEL/b6/XDEO4WZq+AFKAGxzrChCSf3bKWND9ZWwwVuVUr MQrH7gWys3cygr092RBrAl7lGEFXv8ElesV248sw6PjhUqk0uge2kO+B0inreW6vdWmW zqKNz3Vjm7ZkvcpUne4eZ9EMUANjjiKdQIE5jARMRa3G6Ot/Co51BhtRzrQ6KnNCQiae FmjBGKDkJX1VwObvtvOW9Z/Xfz92iIxw/hdQMVczkgU0rUegLwDyVP8COWgqqVx1y9E4 442Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685086957; x=1687678957; h=content-transfer-encoding:in-reply-to:organization:references:cc:to :content-language:subject:reply-to:from:user-agent:mime-version:date :message-id:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=NkTkGDMVJA48vFPtaSjIeYrGpqqTSqfQ3e0MrBnwrbs=; b=DEGGcXzt3g2iq9b5/yMujbRg1lpCfMloVP4CfdjxnaHq/s/anBN3N9F9/fQUBSa7HO s/4kPO0TZKoMOu3jvxXVuRyWZxIPxe7c/VxKvu27EZD+fuahrneMTbcxplz8AVWuj+0P veUUio6xQbx9K2LlVTbOwMn5lmJM4FaK3k0flxBXXQBDgU22z39kp2raTaXjPbr0jf+F VwXHssLUhFV4THysRLI2ilCCBgZaIOOH4RDzg6pvG5udDque8vd5SZchEuLzybYmfPcT Favsh/POu4C3G6OGy6iTuAXBCZjgyDmxxHB4tENdgfdrk67hkoQjOqzrYnKLoMZj0nc7 OuoA== X-Gm-Message-State: AC+VfDyo5O/a7d8q3zTA0wdoBdev18qRKTiAyOL259/Lo2pubHktF3vo hK5dk682u5544vjONk/Ug7+VCw== X-Received: by 2002:a1c:7c19:0:b0:3f4:f4d1:5c28 with SMTP id x25-20020a1c7c19000000b003f4f4d15c28mr620538wmc.24.1685086957200; Fri, 26 May 2023 00:42:37 -0700 (PDT) Received: from ?IPV6:2a01:e0a:982:cbb0:15d9:4dfb:95d6:f5a0? ([2a01:e0a:982:cbb0:15d9:4dfb:95d6:f5a0]) by smtp.gmail.com with ESMTPSA id p19-20020a1c7413000000b003f60e143d38sm4305405wmc.11.2023.05.26.00.42.34 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 26 May 2023 00:42:34 -0700 (PDT) Message-ID: <1c5dd13f-8221-09e6-5b7d-a06135ce97f7@linaro.org> Date: Fri, 26 May 2023 09:42:33 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.10.1 From: Neil Armstrong Reply-To: neil.armstrong@linaro.org Subject: Re: [PATCH 1/2] dt-bindings: display: panel: Add Visionox R66451 AMOLED DSI panel bindings Content-Language: en-US To: Marijn Suijten 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 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> Organization: Linaro Developer Services In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=unavailable 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 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 ! > > 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 > >