Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp28153123rwd; Tue, 4 Jul 2023 14:03:50 -0700 (PDT) X-Google-Smtp-Source: APBJJlFlRckdLjaWcGQV/sDpSFCDqQixVaAYMPUHiyweioMeBTKmuz6lcIqodyxyoU8W4AOuiD28 X-Received: by 2002:a17:902:8207:b0:1b8:4f93:b210 with SMTP id x7-20020a170902820700b001b84f93b210mr13002671pln.45.1688504629890; Tue, 04 Jul 2023 14:03:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688504629; cv=none; d=google.com; s=arc-20160816; b=CCmpts47IlbHb75Fr2qGuz1YOHWmq6DOI7b6yA5d5e9ToyU6s5UDpIYC6Jc+ZhH7Oi kZNpqdng0gM6b5EK7feWd/jlIU+nmnf+eVmMyRNHTyWfSh3+IbamW7RNjpOoQD1Yk9+k AmvHhpeRm4XQP+2fyCY/yNuKUHJE+sS6RkEDvlyzmxrg0N7BbqXHLvTl5/bkLPwFVphA nOwst4X+XdmClHymcnQw6ix9Vj8uMN1QEnUheHQ4XnqQIR+ghadfyHT5uyyHhIU2306x CI3nvRFoAxEuyzTCjEBz8xYua7kj0xs9KeVBhWMEGNhF0K4SmrMVun7U1vFmlI5NqWoP QWlQ== 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=HW7ZhyDLqVKFKjCFNLAp0JD1t9Vseu4A09CiQofsdVA=; fh=ZFe3cWnWsrNz+zJA8INLP1tBG+sHzsN153+tP07QkUE=; b=WmlUoI3ZHYpYGFCMysC//epBtH0VOMoTM2YYKGQPTIqTUwDlYx4vJasfUwh1SUGaPW u8p8mkD8oeB6XIkpAQAnc5OqH8u5k7IHfWlyJsI5tUkgfAma0AhS/BZ6OkgINIxubMpW 7oTRRb9+pJCtjYTA7ADZZ5ijv+e1LU6L/a1yQ8MxrgnfMZ4iIK/gSL8LPWKT6fbW2/Pv mfRairVFFC0Osmah8LkOYu4uRQNE5LGwt/rcvoANJMypcCvDxmw+xzY0cMmIZeD5uUKy d9x0pPwJ2PffUZq5Y0Vt38krigu2T5XQeyMIPEPeHc0AN8biNtgiaPLQXhsEACArPkaD 5m8w== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@hugovil.com header.s=x header.b=BrAzDcxQ; 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 o16-20020a170902d4d000b001b530ede2besi22996686plg.614.2023.07.04.14.03.37; Tue, 04 Jul 2023 14:03:49 -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=BrAzDcxQ; 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 S231340AbjGDUlz (ORCPT + 99 others); Tue, 4 Jul 2023 16:41:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50492 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230507AbjGDUlx (ORCPT ); Tue, 4 Jul 2023 16:41:53 -0400 Received: from mail.hugovil.com (mail.hugovil.com [162.243.120.170]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 951D7DD; Tue, 4 Jul 2023 13:41:52 -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=HW7ZhyDLqVKFKjCFNLAp0JD1t9Vseu4A09CiQofsdVA=; b=BrAzDcxQh7bvYdJyngJQO7Y3hL 8KN8wckDrJFW2YLx4P5BvsjfcKPxb5gnDyLOPUypmEUeWIyZGWwU2jqsVGoqCVRb4O06l7AQcszUa MF0SfZr/QidtkDdh5JQ5vHlax5EBY7f71g4wlPDVw71+X2GwMxs2kvGUQ4OddWhmP71s=; Received: from modemcable061.19-161-184.mc.videotron.ca ([184.161.19.61]:53038 helo=pettiford) by mail.hugovil.com with esmtpa (Exim 4.92) (envelope-from ) id 1qGmqD-0002iu-6G; Tue, 04 Jul 2023 16:41:41 -0400 Date: Tue, 4 Jul 2023 16:41:40 -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: <20230704164140.824f6890dae5c87fc92531b4@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> 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 15:04:37 -0300 Fabio Estevam wrote: > Hi Hugo, > > On Tue, Jul 4, 2023 at 2:02 PM Hugo Villeneuve wrote: > > > 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. > > Does USB OTG work if you keep interrupts = <11 IRQ_TYPE_LEVEL_LOW> ? Hi Fabio, with interrupts = <11 IRQ_TYPE_LEVEL_LOW>, USB OTG doesn't work. I have added additional debug messages to help diagnose (prefixed by DEBUG_IRQ), and here is what I have: With IRQ_TYPE_LEVEL_LOW: $ dmesg | grep 5150 [ 4.729134] ptn5150 1-003d: No VBUS GPIO, ignoring VBUS control [ 4.735257] ptn5150 1-003d: DEBUG_IRQ: i2c->irq: 42 [ 4.749563] ptn5150 1-003d: DEBUG_IRQ: error in usb_role_switch_get() [ 4.792956] ptn5150 1-003d: No VBUS GPIO, ignoring VBUS control [ 4.799022] ptn5150 1-003d: DEBUG_IRQ: i2c->irq: 0 [ 4.803889] ptn5150 1-003d: error -ENOENT: failed to get INT GPIO [ 4.810085] ptn5150: probe of 1-003d failed with error -2 With IRQ_TYPE_NONE: $ dmesg | grep 5150 [ 4.726860] ptn5150 1-003d: No VBUS GPIO, ignoring VBUS control [ 4.736050] ptn5150 1-003d: DEBUG_IRQ: i2c->irq: 42 [ 4.768351] ptn5150 1-003d: DEBUG_IRQ: error in usb_role_switch_get() [ 4.803091] ptn5150 1-003d: No VBUS GPIO, ignoring VBUS control [ 4.809172] ptn5150 1-003d: DEBUG_IRQ: i2c->irq: 42 [ 4.816030] ptn5150 1-003d: DEBUG_IRQ: error in usb_role_switch_get() [ 4.825915] ptn5150 1-003d: No VBUS GPIO, ignoring VBUS control [ 4.832057] ptn5150 1-003d: DEBUG_IRQ: i2c->irq: 42 [ 4.840722] ptn5150 1-003d: DEBUG_IRQ: error in usb_role_switch_get() [ 4.889220] ptn5150 1-003d: No VBUS GPIO, ignoring VBUS control [ 4.895271] ptn5150 1-003d: DEBUG_IRQ: i2c->irq: 42 [ 4.901636] ptn5150 1-003d: DEBUG_IRQ: error in usb_role_switch_get() [ 4.934740] ptn5150 1-003d: No VBUS GPIO, ignoring VBUS control [ 4.940840] ptn5150 1-003d: DEBUG_IRQ: i2c->irq: 42 [ 4.947223] ptn5150 1-003d: DEBUG_IRQ: error in usb_role_switch_get() [ 4.993208] ptn5150 1-003d: No VBUS GPIO, ignoring VBUS control [ 4.999347] ptn5150 1-003d: DEBUG_IRQ: i2c->irq: 42 [ 5.014494] ptn5150 1-003d: DEBUG_IRQ: error in usb_role_switch_get() [ 5.071615] ptn5150 1-003d: No VBUS GPIO, ignoring VBUS control [ 5.077771] ptn5150 1-003d: DEBUG_IRQ: i2c->irq: 42 [ 5.101222] ptn5150 1-003d: DEBUG_IRQ: probe done Hugo.