Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp27811500rwd; Tue, 4 Jul 2023 08:10:32 -0700 (PDT) X-Google-Smtp-Source: APBJJlFV7kFSqPLBB3tXdOouk5PzxbFDBl4aC1/5e+fA9rEtE2n8yKzOvLcQCDp51VxJJxE46+6n X-Received: by 2002:a05:6359:d1f:b0:12f:1dcb:1251 with SMTP id gp31-20020a0563590d1f00b0012f1dcb1251mr6863739rwb.25.1688483432506; Tue, 04 Jul 2023 08:10:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688483432; cv=none; d=google.com; s=arc-20160816; b=xCkhZhAJUuoPYjiywQFpzOKk+hEBrNhilLLloBrr63WLBI91H1JL1nK43DoYomFVKB j8MoOQ+jeMRvChJZq49lJ+FVqtXG2ImzqJMUWVUGRTpthF1ihuRA346cKBUQU6AX5g8k 4t582oXqNhO+CUOGUCpFzlAYVNYMPbQqDH3UijlqXhh7dtLskAfW1Uu+5hY2Bz8QPvz0 ozv3vPJdm/DNx7iVeh1JMgc2jMLLh1+WCZ5wzp6LsTz2rtgu5NHZk5xxZOa548Fp8xws Pma0Q8LrTnUpIRBZNeUvHrPGCR9P7/D5/zGrOU83B/5Az1xTu3oZz4poTczBfSirbtsP gzUw== 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 :message-id:date:cc:to:from:dkim-signature; bh=Yk0/HA9dsyiEGz8X10mgrQQ16aYdbHQtRMmaFbwiNLM=; fh=6gindUKuK6fjAGJPaCkRu0WctBGe9qYH1UhBBPqjn34=; b=QceNC7fVPMcTpmKbpUUinctQMfRyJHwmjSO+leaaN9YSk8TAydBQR+rO3eCGAwmKeM mGa6Df4e1HlILB3UM39BiNRx0nCY1xgBkV/BJ9GpfBkoj6vXgS4sYH0AZm/nbaHa2c6L Z4yR0NDRo+pOLCBYe1p2YZAw3H5ZhPrnbMnsJvFSL0Z5jzZPjucY/gmrkGE7uVgnhiV4 q4yQbpDJNFdcmq+r7fXL791iKzSj+0Dqbx3npExmOOEB69EXgNmq66O2ptzn9WRyUwAW qNYheGcDOuFFEUC4VklH/a9QlJLYOUvA0nRzINr9yx2xXb1lxoV1xOcZGTTXG3U7fUCJ ctew== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@hugovil.com header.s=x header.b=NZhD2Duc; 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 k36-20020a634b64000000b00542b188b326si20260709pgl.876.2023.07.04.08.10.15; Tue, 04 Jul 2023 08:10:32 -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=NZhD2Duc; 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 S231152AbjGDPC6 (ORCPT + 99 others); Tue, 4 Jul 2023 11:02:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33118 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229595AbjGDPC4 (ORCPT ); Tue, 4 Jul 2023 11:02:56 -0400 Received: from mail.hugovil.com (mail.hugovil.com [162.243.120.170]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 732F2E6; Tue, 4 Jul 2023 08:02:55 -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:MIME-Version:Message-Id:Date:Cc:To :From:Sender:Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date :Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Id:List-Help:List-Unsubscribe:List-Subscribe:List-Post: List-Owner:List-Archive; bh=Yk0/HA9dsyiEGz8X10mgrQQ16aYdbHQtRMmaFbwiNLM=; b=N ZhD2DucGYiRpqHKa+7x+qa5F2YclbhrHWSUQJwfmKrrNDnODoxKEBtNC0IWNrU0FM1tffU92yL/IM Yf94VmorSeShoV1OCCNOgF5qym1RnQuQkBru5dwt+FviKi57CjhHuxB/xWpDjPFKANR/XmSW1u2p8 SU0m2c8B4E5EBbMo=; Received: from modemcable061.19-161-184.mc.videotron.ca ([184.161.19.61]:33002 helo=localhost.localdomain) by mail.hugovil.com with esmtpa (Exim 4.92) (envelope-from ) id 1qGhYD-0008Jr-S8; Tue, 04 Jul 2023 11:02:46 -0400 From: Hugo Villeneuve To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team Cc: hugo@hugovil.com, Hugo Villeneuve , Krzysztof Kozlowski , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Date: Tue, 4 Jul 2023 11:02:40 -0400 Message-Id: <20230704150240.2022020-1-hugo@hugovil.com> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 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.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Subject: [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 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 varigit repos to 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>; pinctrl-names = "default"; pinctrl-0 = <&pinctrl_ptn5150>; status = "okay"; + + port { + typec1_dr_sw: endpoint { + remote-endpoint = <&usb1_drd_sw>; + }; + }; + + typec1_con: connector { + compatible = "usb-c-connector"; + label = "USB-C"; + power-role = "dual"; + data-role = "dual"; + try-power-role = "sink"; + source-pdos = ; + sink-pdos = ; + op-sink-microwatt = <15000000>; + self-powered; + }; }; }; @@ -148,8 +168,21 @@ &uart3 { }; &usbotg1 { + dr_mode = "otg"; + hnp-disable; + srp-disable; + adp-disable; + usb-role-switch; disable-over-current; - extcon = <&extcon_usbotg1>, <&extcon_usbotg1>; + samsung,picophy-pre-emp-curr-control = <3>; + samsung,picophy-dc-vol-level-adjust = <7>; + status = "okay"; + + port { + usb1_drd_sw: endpoint { + remote-endpoint = <&typec1_dr_sw>; + }; + }; }; &iomuxc { -- 2.30.2