Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp2965744rwb; Mon, 7 Nov 2022 21:46:05 -0800 (PST) X-Google-Smtp-Source: AMsMyM57Ayb3e1ecyZX4tDRe9HkhOqanIY+kYkC40CmIi/uIXUrivVLLxkvCKKL86xr8QdgINCUY X-Received: by 2002:a17:903:2292:b0:188:505b:23b with SMTP id b18-20020a170903229200b00188505b023bmr29079588plh.120.1667886365568; Mon, 07 Nov 2022 21:46:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1667886365; cv=none; d=google.com; s=arc-20160816; b=ZSeU/ZlRTgvIa/Gyf18RO1KVzEMa7uyNeuz+xdJ6x1p1JxSlIKfLtmEmE+FuRREzCn BZUZEfpT/sRtik7zAf3vPmeH0fxc4xUruYAJpLFiJIsEoNd+DB+ELpd9vkwjAvqqQWmO kH5tDb4NrFEgxQJshu0H7OEOmfNG6HoZDh3ReuD3KGg8gZDtYzoB7LgULGGNa20jErdL i4UCaLtAV+3A4y+S2z7ebZ0keNgg9xXiwTYot+ibxjG9Y9aGgajRXpTFyne2RlgQKPH7 +m9ioHzTvXzvcPI7wp1AbOz2evd+hYGDw1p7DgBuWvQlG9WD+UCBKr3CYUkiviCL6CYI x4kw== 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:subject :references:cc:to:from:content-language:user-agent:mime-version:date :message-id:feedback-id:dkim-signature:dkim-signature; bh=SJuSQ+jl4Uygd+zShoyysZlrDAWOx7DmYFHRE5FGIXo=; b=LN2HvShxinrYUbSkxjFnJXisucWnyFFQU7leFQpX2tssxQby8aPahDU9uCrTuzySR8 kO1GeWbTdVATQIPfez5xho2jYCuFTyBeQeKlPUfvAyrrbE+MpmN6qVjDJUwVgl345CB+ yNcTeSfk9TlH8oj9BR+VVmKmA019Jt4a4497DtFdjaDtnsY3qQD4K6skkYSo4VRlUMdg /euM0tQbI7TK5VCi7bEIDJPvQOUw3/fVmIU7vtIGjVvq97Q78KQrQsFzwHbWyvNRGz+s jiAtqxvHv8dyy00TUxocykUZ5QOENSqCEqS2XcBMOxuJOlgahH76/riKfwrxBcuYNAFu RqyA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sholland.org header.s=fm2 header.b=SkdhmMKz; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=pq00CHf9; 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=sholland.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u5-20020a170902b28500b00176b8830921si12225717plr.294.2022.11.07.21.45.53; Mon, 07 Nov 2022 21:46:05 -0800 (PST) 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=@sholland.org header.s=fm2 header.b=SkdhmMKz; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=pq00CHf9; 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=sholland.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233213AbiKHFRk (ORCPT + 91 others); Tue, 8 Nov 2022 00:17:40 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42318 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232891AbiKHFRh (ORCPT ); Tue, 8 Nov 2022 00:17:37 -0500 Received: from out1-smtp.messagingengine.com (out1-smtp.messagingengine.com [66.111.4.25]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F096E1B1E2; Mon, 7 Nov 2022 21:17:34 -0800 (PST) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 94A605C012D; Tue, 8 Nov 2022 00:17:30 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute1.internal (MEProxy); Tue, 08 Nov 2022 00:17:30 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sholland.org; h= cc:cc:content-transfer-encoding:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to; s=fm2; t=1667884650; x= 1667971050; bh=SJuSQ+jl4Uygd+zShoyysZlrDAWOx7DmYFHRE5FGIXo=; b=S kdhmMKzarfOb9xVud6mQlPboh4TpWsge6cXiy8JsE/M8hh9r/7KW2qkOpV136HKj aNXOGnrLMS35PbnaY5A7LG2qwbtJcRcf9r7zC6EslEJ9PMJvyOZ3F6eBWCUBiqB1 qDyPol0ubpbmcBZ2A+OdtkQ0ZVK3bLYfBCH2gFzcgIB0Yx4lwH6CphFYZmYzjYr4 5cI5/+P29fop02nxsNzybXw7MiPkBpG2XZ4v6+dKloOjDHjFCKvSku6+eHyX+eZo BggPYvDKBHaGfzILP4Kj1MKY5fdGntS5LHKrCgKFBLtFKr95OUYh1TXEWeYo3vMF a8eeY+ihMWmi9daERIV1g== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1667884650; x= 1667971050; bh=SJuSQ+jl4Uygd+zShoyysZlrDAWOx7DmYFHRE5FGIXo=; b=p q00CHf9Fh3THRGWklQr99bPgKGDfkY6/btKw8o670yYtZfrWoRR0DU9yJSBWmFB0 +0SL3pAHUMbzEq7/+CQdEsSKbqtzG1wVVu2FTPCdBHhCoU6YSsKnRWOh+nF3CzMC w0RnKdE+kuKx55R/ioHNFEKxs+fOIXMN5dpRw8BYdSMoVt1ZR/YLWy2bFfdm9c9c HT7D4TbITewQVq4OTX7NvLgAFJpFBOoWwy/aim2ujlIP2xeoFvi0oVon1GG2EpDL TaU5wqual0+kgR92I/pxbz5gapfV4Oiq3RZY78nQaEb2xTRcAOE3/zUztfOk/kqQ KZ9Ff4V4aD+SpeYGMTSoQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvgedrvdelgdekfecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefkffggfgfhvfevfhfujggtgfesthejredttdefjeenucfhrhhomhepufgrmhhu vghlucfjohhllhgrnhguuceoshgrmhhuvghlsehshhholhhlrghnugdrohhrgheqnecugg ftrfgrthhtvghrnhephffhgeegudehieehtdekuddtgeeluddulefhkeehkedvteduveei jeduhfevjeffnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrh homhepshgrmhhuvghlsehshhholhhlrghnugdrohhrgh X-ME-Proxy: Feedback-ID: i0ad843c9:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 8 Nov 2022 00:17:28 -0500 (EST) Message-ID: <41bad30b-b33c-0b68-bdb0-d93ae469ca7b@sholland.org> Date: Mon, 7 Nov 2022 23:17:27 -0600 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux ppc64le; rv:102.0) Gecko/20100101 Thunderbird/102.3.3 Content-Language: en-US From: Samuel Holland To: Paul Kocialkowski Cc: Kishon Vijay Abraham I , Vinod Koul , Chen-Yu Tsai , Jernej Skrabec , Maxime Ripard , Jagan Teki , Krzysztof Kozlowski , Maxime Ripard , Rob Herring , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-phy@lists.infradead.org, linux-sunxi@lists.linux.dev References: <20220812075603.59375-1-samuel@sholland.org> <20220812075603.59375-2-samuel@sholland.org> <0c82fb9e-60cd-70d5-96d6-ee06c56eeb85@sholland.org> Subject: Re: [PATCH 1/8] dt-bindings: sun6i-a31-mipi-dphy: Add the interrupts property In-Reply-To: <0c82fb9e-60cd-70d5-96d6-ee06c56eeb85@sholland.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_PASS 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 Hi Paul, On 8/12/22 17:44, Samuel Holland wrote: > On 8/12/22 7:22 AM, Paul Kocialkowski wrote: >> On Fri 12 Aug 22, 02:55, Samuel Holland wrote: >>> The sun6i DPHY can generate several interrupts, mostly for reporting >>> error conditions, but also for detecting BTA and UPLS sequences. >>> Document this capability in order to accurately describe the hardware. >>> >>> The DPHY has no interrupt number provided in the vendor documentation >>> because its interrupt line is shared with the DSI controller. >> >> Interesting! I do see DPHY_INT_EN*/PD* in the Allwinner BSP's >> drivers/media/video/sunxi-vfe/mipi_csi/dphy/dphy_reg_i.h > > You can also find some bit of documentation in the T7 User Manual. > >> Maybe it would be useful to import the fields in the driver so that the >> next person who'll try to debug DSI can use them directly? >> >> You might also want to submit a patch as [PATCH NOT FOR MERGE] that >> adds an interrupt routine and some useful debugging. > > I think this would be more interesting to someone who knew more about MIPI > CSI/DSI and understood what those errors meant. :) > > I'm mostly concerned with bringing up the D1 SoC at the moment. I added a trivial IRQ handler that dumps the status registers, just to verify the interrupt number, and I got several interrupts during DSI panel setup (so during DCS commands), mostly with DPHY_INT_PD0_REG = 0x03000000, signaling some sort of contention detection. >> Do you think this is also available without a DSI controller? >> I could just give it a try on V3/A83t here and find out :) > > I would assume so. It could possibly be shared with the MIPI CSI interrupt (SPI > 90) or keep its position at SPI 89. Did you get a chance to try this? I am about to send v2 of this series. I wonder if I should keep the interrupts property as required, since I don't know if the interrupt is actually hooked up on SoCs with CSI only. Regards, Samuel >>> Fixes: c25b84c00826 ("dt-bindings: display: Convert Allwinner DSI to a schema") >>> Signed-off-by: Samuel Holland >>> --- >>> >>> .../bindings/phy/allwinner,sun6i-a31-mipi-dphy.yaml | 4 ++++ >>> 1 file changed, 4 insertions(+) >>> >>> diff --git a/Documentation/devicetree/bindings/phy/allwinner,sun6i-a31-mipi-dphy.yaml b/Documentation/devicetree/bindings/phy/allwinner,sun6i-a31-mipi-dphy.yaml >>> index 22636c9fdab8..cf49bd99b3e2 100644 >>> --- a/Documentation/devicetree/bindings/phy/allwinner,sun6i-a31-mipi-dphy.yaml >>> +++ b/Documentation/devicetree/bindings/phy/allwinner,sun6i-a31-mipi-dphy.yaml >>> @@ -24,6 +24,9 @@ properties: >>> reg: >>> maxItems: 1 >>> >>> + interrupts: >>> + maxItems: 1 >>> + >>> clocks: >>> items: >>> - description: Bus Clock >>> @@ -53,6 +56,7 @@ required: >>> - "#phy-cells" >>> - compatible >>> - reg >>> + - interrupts >>> - clocks >>> - clock-names >>> - resets >>> -- >>> 2.35.1 >>> >> > >