Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp28178397rwd; Tue, 4 Jul 2023 14:36:40 -0700 (PDT) X-Google-Smtp-Source: APBJJlEaBfDvSgOD5lVlW5fTgR6Rvpwjlroi1xXpyFhpB3ODfQvH2KteWytdpqETsGcFb3L1fPo1 X-Received: by 2002:a17:902:7085:b0:1b8:ae8c:7bfb with SMTP id z5-20020a170902708500b001b8ae8c7bfbmr410071plk.17.1688506600621; Tue, 04 Jul 2023 14:36:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688506600; cv=none; d=google.com; s=arc-20160816; b=JHqeiEPAcORFO8+3EJCmadIAPIQduphXyZBOLYj4riTosCHoPM0g18PjWIUpEclO/X fUl0hzq4Tx9PyJGvcJFEizQQOzDzsSy49aaYGYla5sWuTKPxb9aFBy06SZ8peDfFAdrm o5BGxVvGhJ5HiNC1gHa31v2OOZxGqbDti4TTsGbPbW4300k1fSCMj9+9VgGMJOw1KvXv HvcQoB2di8SxYY9ctwSTEx3/tbX4aO47gn0rFcrPlJ1NVezzWZff73JdrR3BWd1cXPxO BCR5dosOqdtWx+1ZZHsP7ID2vYaU6+CV1lbvLn5eJJDH8VD5EqBe7tCRTK5GCFz4Fcjl /O9Q== 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=wySgJTzp0DwGyi/w7+8EFiBtpc8Kz+inKOVzp7KIGB8=; fh=ZFe3cWnWsrNz+zJA8INLP1tBG+sHzsN153+tP07QkUE=; b=epSiDJrCfMgStZ81chjl1/WG2jIQEaymqiPvCjojTVLb7Jk3tgLh/5c7liJ8qLoxQ3 UzrESfW5DHa1pCO+uzhRvHxiU6giihBpT9KBMG1BGp48YwoszvEx/3XIyjdXE1n8BpNQ Ape6O3nwKvWF7qR41YRIE+WszDIoic9x6i6xbdAs6v5KYAJbFEF1G/c3BhlLvj7imDm2 4p3WMW1iE3x5CCfJr99BJrz/fQL+K1Bv6wBq0x5bm9fYDi6bCslHhE+6rXE9mCgczXFs A69tgbGfc1YTuFBwHIWmmR2ieNF2AtxVHr3HQNSUfml7x2Q3206FL3kJvK97mCA0q3pQ 0zyA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@hugovil.com header.s=x header.b=m0dxCKEW; 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 d15-20020a170903230f00b001b8322a7ebasi14880156plh.648.2023.07.04.14.36.21; Tue, 04 Jul 2023 14:36:40 -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=m0dxCKEW; 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 S231147AbjGDV2Q (ORCPT + 99 others); Tue, 4 Jul 2023 17:28:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33328 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229903AbjGDV2P (ORCPT ); Tue, 4 Jul 2023 17:28:15 -0400 Received: from mail.hugovil.com (mail.hugovil.com [162.243.120.170]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 49439195; Tue, 4 Jul 2023 14:28:14 -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=wySgJTzp0DwGyi/w7+8EFiBtpc8Kz+inKOVzp7KIGB8=; b=m0dxCKEWN5yw85WdwxLxNDxXCh PTc5rUXUPAx4OzYbPvPUOWjnGcAkBY7VHqxTIPPmmHAfLZVCTAf6o/nDLHW7YcTMUuqVVBvICtSLT t72jkFO+vnqSNYXcumFQcPUiZCW5LzWcpgn1JMvJqYhkKsKzxGSDIRb5dIMGKPQ9OJyc=; Received: from modemcable061.19-161-184.mc.videotron.ca ([184.161.19.61]:46704 helo=pettiford) by mail.hugovil.com with esmtpa (Exim 4.92) (envelope-from ) id 1qGnZ4-00037U-Jy; Tue, 04 Jul 2023 17:28:03 -0400 Date: Tue, 4 Jul 2023 17:28:01 -0400 From: Hugo Villeneuve To: Fabio Estevam Cc: 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: <20230704172801.f11422b3f947c625f53af871@hugovil.com> In-Reply-To: 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> <20230704130204.7ac64cbd76b3440fc351c373@hugovil.com> <20230704164140.824f6890dae5c87fc92531b4@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 18:02:53 -0300 Fabio Estevam wrote: > Hi Hugo, > > On Tue, Jul 4, 2023 at 5:41 PM Hugo Villeneuve wrote: > > > Hi Fabio, > > with interrupts = <11 IRQ_TYPE_LEVEL_LOW>, USB OTG doesn't work. > > PTN5150 datasheet says: > > "Any changes in the attach/detach events or Rp current source changes > will trigger INTB pin to go LOW." Hi Fabio, it is important to remember that on this board, like I explained before, the INTB pin is not connected to anything. It is only the ID pin (9) that is connected to the GPIO1_11 pin. > What about: interrupts = <11 IRQ_TYPE_EDGE_FALLING>; ? With this setting, USB OTG works: $ dmesg | grep 5150 [ 4.833529] ptn5150 1-003d: No VBUS GPIO, ignoring VBUS control [ 4.839972] ptn5150 1-003d: DEBUG_IRQ: i2c->irq: 42 [ 4.874173] ptn5150 1-003d: DEBUG_IRQ: error in usb_role_switch_get() [ 4.896822] ptn5150 1-003d: No VBUS GPIO, ignoring VBUS control [ 4.902905] ptn5150 1-003d: DEBUG_IRQ: i2c->irq: 42 [ 4.911190] ptn5150 1-003d: DEBUG_IRQ: error in usb_role_switch_get() [ 4.918462] ptn5150 1-003d: No VBUS GPIO, ignoring VBUS control [ 4.926197] ptn5150 1-003d: DEBUG_IRQ: i2c->irq: 42 [ 4.935210] ptn5150 1-003d: DEBUG_IRQ: error in usb_role_switch_get() [ 4.947673] ptn5150 1-003d: No VBUS GPIO, ignoring VBUS control [ 4.953771] ptn5150 1-003d: DEBUG_IRQ: i2c->irq: 42 [ 4.961104] ptn5150 1-003d: DEBUG_IRQ: error in usb_role_switch_get() [ 5.052165] ptn5150 1-003d: No VBUS GPIO, ignoring VBUS control [ 5.058234] ptn5150 1-003d: DEBUG_IRQ: i2c->irq: 42 [ 5.064632] ptn5150 1-003d: DEBUG_IRQ: error in usb_role_switch_get() [ 5.096452] ptn5150 1-003d: No VBUS GPIO, ignoring VBUS control [ 5.102578] ptn5150 1-003d: DEBUG_IRQ: i2c->irq: 42 [ 5.114959] ptn5150 1-003d: DEBUG_IRQ: error in usb_role_switch_get() [ 5.187060] ptn5150 1-003d: No VBUS GPIO, ignoring VBUS control [ 5.193243] ptn5150 1-003d: DEBUG_IRQ: i2c->irq: 42 [ 5.206235] ptn5150 1-003d: DEBUG_IRQ: probe done > Also, please add a pullup to the GPIO1_11 pad. There is already an external 10K pull-up resistor (R88) to +3.3V on GPIO1_11 pin... Hugo.