Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp27919772rwd; Tue, 4 Jul 2023 09:41:30 -0700 (PDT) X-Google-Smtp-Source: APBJJlEUxCJD3cqLHdigqOice+N65kDubCYW6PtHxT9J9Sty5Vo2ylekopNmzrm0viu+ZA+Rmq9/ X-Received: by 2002:a17:902:db0c:b0:1b8:9044:b8ae with SMTP id m12-20020a170902db0c00b001b89044b8aemr8903254plx.11.1688488890329; Tue, 04 Jul 2023 09:41:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688488890; cv=none; d=google.com; s=arc-20160816; b=I8H7klvdOzLwCqfWGZxNGJ6P4tg6N6WvSuCmP33tbAZ4p21N+NJd3C0er5pDGntTdV 5x1PZqjezzlRG/gHkd4AaQT9A2ji4VjTGWrrmloX07M07YzFfRcRuj+ZWM+lWJ9s25jd u60ZCC5d+caEoSgYw0y8hL+at1SahFZP4xIK8j2xbLVWXTOzHxZCwOxpfnLzwnbTvIvZ 3EfUWD1FdG+499sJW2HOUzwakshTbzhaJ1FCmRfSgGffw2G/AqAhky3c1rDaT/mD0UZq jiwEo5az0BVE1ihiyMGC3oKStspA//WeGTNJS7TfkO0Y0UW6Ca2SLHOE2kBTIFxouU45 Sr8A== 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:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=4uBm8+FaUJV+uFONmKepf4mjmqPz8WmqR3uRoqac8MM=; fh=h1zoxDx89tlOPUzwGM1UIi+NIOb4kdoPggkwg7mqBGc=; b=MYfpgruewERUf4ohObxV7zSpkYLBPX59/CMpZpOXRCDJltI8sVZoG57/1Zebu7GDLw yZILXj5l3D8xQLyPwBrfLmWM628Zfh38UrSu4rg/CMUYFdMmT/3x8NOJgCmF7BE7z4Ju EZmgDCbGw4iT7Q86P4+wvNVoO7PHc95Qh3hyTAzh6jPHI4dSmjsd8a8bXFAIC3P0/ZhW ntvyDdjXOKFzmyuOUDUfACqAlHu2ygS6pbSBlq5v8ALqs2LD7/NawPTtuAhBWTgcdQ9i 804+xEcljtDTjw+ILL9r8ubJeK7kSYLYoLOhgXbS4/2D4rEOsbkHgzO0IlE5NZDo8FTN mVoA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=jlckq1F7; 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 z7-20020a170902834700b001b7fb114495si17769016pln.475.2023.07.04.09.41.15; Tue, 04 Jul 2023 09:41:30 -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=jlckq1F7; 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 S230357AbjGDQUy (ORCPT + 99 others); Tue, 4 Jul 2023 12:20:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34986 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229994AbjGDQUx (ORCPT ); Tue, 4 Jul 2023 12:20:53 -0400 Received: from mail-ej1-x631.google.com (mail-ej1-x631.google.com [IPv6:2a00:1450:4864:20::631]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CBAD5DC for ; Tue, 4 Jul 2023 09:20:51 -0700 (PDT) Received: by mail-ej1-x631.google.com with SMTP id a640c23a62f3a-99313a34b2dso291368366b.1 for ; Tue, 04 Jul 2023 09:20:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1688487650; x=1691079650; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=4uBm8+FaUJV+uFONmKepf4mjmqPz8WmqR3uRoqac8MM=; b=jlckq1F73JWNEknDS7Se2UsyvRwlU6kHSsljOHLZkP7pTaOqPIyEXzh2V8+fs2VQ1f v5lygo3sRj+hnUm9oDMH/xXv2/AF8E+WUdos1KBzZ3cc5SBhx2SQO9VOIYXrfmbY8Dpr aS3zJnSMcCsOpacQSKNC7lLUmmkFtUFzyIc9YJMqILgXDK7GqZKGwSRE9yFbHp8VrVpL z498dSn7cocI/3JbCJmjx3XQy72PTc31hPodrqWrrgNOv+llMqo+y+OkdGbz+iORrKnx JAQBlV5oPnKEldC6Ysxr0taYrUVNPw4ShScY7DQthje4qWbdMMBTQUpjJ5SUmC2VkG/a PTag== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688487650; x=1691079650; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=4uBm8+FaUJV+uFONmKepf4mjmqPz8WmqR3uRoqac8MM=; b=eXjUGJJ5UYHyPTAM7mM6A1c86Z6RbUdt7Mz/SIBCe3yBIb3DxK/+iyUIBtUEH9AhFZ 7EkHvo3Twr49qX5AsgehmXgqSF0nuavMajDzP03E3qVbXFxji5m7HMLXMGl1Acl6Kcg/ kfPkhtAm0tUor8XqcE0AeUb4MTT2KJ3VPxZAxvASdzscrTum7jkSO5vLbzUAHDTNzl3W IXwo2512gW5aSfKGUXZWYDX4ADbg1qG8TeXKUsfUeI5mwjCvCTt1xxKVLmPc0CYPJ2kb ev3t6vVIcSWXZhkAG/C8EKsHlMuvHdn9V31jZ2ICmFsA1ByI3xkRHygEiEhyEeUmFgpJ 2xNg== X-Gm-Message-State: ABy/qLZzBi5bhsKL6aYnYelZTdH0ww9fHIl4F/FGCgfMgTQOWKP2bfhY CjsSk3lT+Q/0UTv6hbmH7Lrh5w== X-Received: by 2002:a17:906:c408:b0:96f:e45f:92e9 with SMTP id u8-20020a170906c40800b0096fe45f92e9mr10296491ejz.16.1688487650298; Tue, 04 Jul 2023 09:20:50 -0700 (PDT) Received: from [192.168.1.20] ([178.197.219.26]) by smtp.gmail.com with ESMTPSA id l16-20020a1709065a9000b0098d93142ce1sm13362229ejq.109.2023.07.04.09.20.48 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 04 Jul 2023 09:20:49 -0700 (PDT) Message-ID: <834a0679-7e0c-150f-68be-c75d7dac0bc8@linaro.org> Date: Tue, 4 Jul 2023 18:20:47 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.12.0 Subject: Re: [PATCH] arm64: dts: imx8mn-var-som-symphony: fix USB OTG Content-Language: en-US To: Hugo Villeneuve Cc: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , Hugo Villeneuve , Krzysztof Kozlowski , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org References: <20230704150240.2022020-1-hugo@hugovil.com> <1341ba38-35c1-1657-aed4-a3c11f584367@linaro.org> <20230704113124.f2830afe1d9df252afe5abdc@hugovil.com> From: Krzysztof Kozlowski In-Reply-To: <20230704113124.f2830afe1d9df252afe5abdc@hugovil.com> Content-Type: text/plain; charset=UTF-8 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=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 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? Best regards, Krzysztof