Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp27955239rwd; Tue, 4 Jul 2023 10:14:16 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4NUz/HfxeXyprKgCUuPW5fSsF3MgKIuUCrOTUDy4kHhZ/o+4/AigC0GH2FXYQYQNCzyBbB X-Received: by 2002:a05:6a20:d90b:b0:119:94f4:c62e with SMTP id jd11-20020a056a20d90b00b0011994f4c62emr10225562pzb.19.1688490856410; Tue, 04 Jul 2023 10:14:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688490856; cv=none; d=google.com; s=arc-20160816; b=DqAdodzR61z5JyWEgK9/yzmcR/UnAzmsVE17gygtw5GIEDvdR/aEgdcVcBG/kjtTkg PTAFkwpEx5TLpaeuwYh4Iu0k6zHf6D9IP4oa4zcuVYkfoO05oxHkL4JzFkarWurpk1Hc LjCgVaZDLPA6gLN9IrngmamEqGCzCdSP1MQeI+Ag8xKbPBGuCCCAv3KkwizODStvlDGG k8shemgblTVcSRKh4HAfY945Ce0bsCh66P2f699OMi3ca+f+6Yf+kIAcpsixTgJd0qST mvMRpB8n5dUUMt3oQ5lAERIAH6677HWHjBPvxaVhjmw9zNt4EsgeM2MnmR6pv3wq8VCd y16Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:subject:content-transfer-encoding:mime-version :references:in-reply-to:message-id:cc:to:from:date:dkim-signature; bh=ZhKBZz3leN0Q/Za+oNwFkabEN7IhOztfe9NSL/Xa2k4=; fh=1mMjYq2LkQAr5vbLU2whs+trwY/MQXRiNSjaq5ejS1U=; b=xUdScOwcPjc510+IoR4w5BM8dPiMeUTtNbyvw6QntNZBK0OtrfKo38xaLrJrS4uwu0 cAmB1b8/Z2yToA8s7qSLPX7pXjjqaBEjxG65aNn2Eop/R0Yk5EkBWYymnc1s4tknglAj TPddjDXGvfXYGbs1+OdatvSXsaWs4zfkQ1RC5Bn98q4EvQAuebGgx7WhmgFdYlHs6hYK pUt85c0imu4xlRGltKOA+JGF7gu6qJih0KLr2lSjD0cLyi/Uze4PBTSd7UdypoIZjNc4 6+J77oAh3AqmCYWnK6RF1xyF4/6j3+3U8nr4/KUFrsgfyH/6NfE2/VGRARix1gYNK35v aV+w== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@hugovil.com header.s=x header.b=dubEZWQx; 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 w16-20020a170902e89000b001b81a112f9bsi16270021plg.586.2023.07.04.10.14.01; Tue, 04 Jul 2023 10:14:16 -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=fail header.i=@hugovil.com header.s=x header.b=dubEZWQx; 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 S231693AbjGDRCV (ORCPT + 99 others); Tue, 4 Jul 2023 13:02:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57228 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229971AbjGDRCR (ORCPT ); Tue, 4 Jul 2023 13:02:17 -0400 Received: from mail.hugovil.com (mail.hugovil.com [162.243.120.170]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6A463DD; Tue, 4 Jul 2023 10:02:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=hugovil.com ; s=x; h=Subject:Content-Transfer-Encoding:Content-Type:Mime-Version: References:In-Reply-To:Message-Id:Cc:To:From:Date:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=ZhKBZz3leN0Q/Za+oNwFkabEN7IhOztfe9NSL/Xa2k4=; b=dubEZWQxmthdk2SKqg+AyLH0Ot hm/SdCHaj+Ob/1MGCG0vxvdG0x57hb2B7/455+cDr1M0uzGYAIlf9c17+t29Qjo6xGxdjRhnWD3Xk R7C54ipJbxks0lhuYoCXt6ptzrJulc6FzanKKWFNvQisDg7BEbIOIuLAWEMW0o2gC2XQ=; Received: from modemcable061.19-161-184.mc.videotron.ca ([184.161.19.61]:57370 helo=pettiford) by mail.hugovil.com with esmtpa (Exim 4.92) (envelope-from ) id 1qGjPh-0000qh-25; Tue, 04 Jul 2023 13:02:06 -0400 Date: Tue, 4 Jul 2023 13:02:04 -0400 From: Hugo Villeneuve To: Hugo Villeneuve Cc: Fabio Estevam , Krzysztof Kozlowski , Pierluigi Passaro , Nate Drude , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , NXP Linux Team , Hugo Villeneuve , Krzysztof Kozlowski , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Message-Id: <20230704130204.7ac64cbd76b3440fc351c373@hugovil.com> In-Reply-To: <20230704125541.f361cab8de3faacd830418ab@hugovil.com> References: <20230704150240.2022020-1-hugo@hugovil.com> <1341ba38-35c1-1657-aed4-a3c11f584367@linaro.org> <20230704113124.f2830afe1d9df252afe5abdc@hugovil.com> <834a0679-7e0c-150f-68be-c75d7dac0bc8@linaro.org> <20230704125541.f361cab8de3faacd830418ab@hugovil.com> X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.33; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-SA-Exim-Connect-IP: 184.161.19.61 X-SA-Exim-Mail-From: hugo@hugovil.com X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net X-Spam-Level: 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,SPF_HELO_PASS, SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Subject: Re: [PATCH] arm64: dts: imx8mn-var-som-symphony: fix USB OTG X-SA-Exim-Version: 4.2.1 (built Wed, 08 May 2019 21:11:16 +0000) X-SA-Exim-Scanned: Yes (on mail.hugovil.com) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 4 Jul 2023 12:55:41 -0400 Hugo Villeneuve wrote: > On Tue, 4 Jul 2023 13:33:10 -0300 > Fabio Estevam wrote: > > > Adding some Variscite folks in case they can help to clarify. > > > > On Tue, Jul 4, 2023 at 1:20 PM Krzysztof Kozlowski > > wrote: > > > > > > On 04/07/2023 17:31, Hugo Villeneuve wrote: > > > > On Tue, 4 Jul 2023 17:08:12 +0200 > > > > Krzysztof Kozlowski wrote: > > > > > > > >> On 04/07/2023 17:02, Hugo Villeneuve wrote: > > > >>> From: Hugo Villeneuve > > > >>> > > > >>> USB OTG is currently broken on the Variscite Symphony EVK and imx8mn > > > >>> nano SOM. > > > >>> > > > >>> Import changes from linux-5.15 branch of doen't giveto fix it. > > > >>> > > > >>> Link: https://github.com/varigit/linux-imx.git > > > >>> Fixes: 7358e05bddca ("arm64: dts: imx8mn-var-som-symphony: Add Variscite Symphony board with VAR-SOM-MX8MN") > > > >>> Signed-off-by: Hugo Villeneuve > > > >>> --- > > > >>> .../dts/freescale/imx8mn-var-som-symphony.dts | 37 ++++++++++++++++++- > > > >>> 1 file changed, 35 insertions(+), 2 deletions(-) > > > >>> > > > >>> diff --git a/arch/arm64/boot/dts/freescale/imx8mn-var-som-symphony.dts b/arch/arm64/boot/dts/freescale/imx8mn-var-som-symphony.dts > > > >>> index 406a711486da..aef89198f24c 100644 > > > >>> --- a/arch/arm64/boot/dts/freescale/imx8mn-var-som-symphony.dts > > > >>> +++ b/arch/arm64/boot/dts/freescale/imx8mn-var-som-symphony.dts > > > >>> @@ -6,6 +6,7 @@ > > > >>> > > > >>> /dts-v1/; > > > >>> > > > >>> +#include > > > >>> #include "imx8mn-var-som.dtsi" > > > >>> > > > >>> / { > > > >>> @@ -104,10 +105,29 @@ extcon_usbotg1: typec@3d { > > > >>> compatible = "nxp,ptn5150"; > > > >>> reg = <0x3d>; > > > >>> interrupt-parent = <&gpio1>; > > > >>> - interrupts = <11 IRQ_TYPE_LEVEL_LOW>; > > > >>> + interrupts = <11 IRQ_TYPE_NONE>; > > > >> > > > >> That's surprising, why? > > > > > > > > Hi, > > > > the varigit repos log or source code has no information about this > > > > particular configuration. > > > > > > > > In the schematics, the interrupt output pin of the PTN5150 is connected > > > > to two different resistors, one of these being connected to GPIO1 pin > > > > 11. But these two resistors are not assembled on any versions of the > > > > board, so the interrupt pin is currently not used. > > > > > > OK, so there is no interrupt, but not interrupt of type none. Just drop > > > the property and make it optional in the bindings. The driver however > > > requires the interrupt, so I wonder how the device is going to work > > > without it? > > > > > > Are you sure that interrupt line is not shorted instead of missing resistor? > > Hi, > Link for schematics: > https://www.variscite.com/wp-content/uploads/2019/07/Symphony-Board-Schematics.zip > > In the schematics, both resistors R106 (connected to PTN5150 on one > side and GPIO1 pin 11 on the other size) and R131 have the text "NC" > near their reference designator. And I visually confirm that R106 > and R131 are not soldered on the board. > > However, GPIO1 pin 11 (the interrupt pin configured in the DTS) is > also connected to PTN5150 pin 9 (ID), which has a simple pull-up to > 3.3V. So from what I can see/deduce, the DTS interrupt pin > will always be 3.3V, and never pulled to GND. Ok, I tought pin 9 (ID) was an input, but it is in fact an output driven by the PTN5150 so the last sentence is incorrect. Hugo.