From patchwork Mon Sep 26 11:26:22 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Stein X-Patchwork-Id: 12988625 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 44DF3C32771 for ; Mon, 26 Sep 2022 11:27:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=O/AGmsQ3jd0VEKI6Z7q3LW8EqRDj2HCewbLqJWAIUP8=; b=lfikUeXxOzXzbt +8jvNxPQBlOJlvM/rzvI8Gx4+tq1LpP1srnR4APTManap9gMQOrfv3vP4DzzFiYD6hdaqQ3tOzWMQ AUtm5ACybRF+u3NekANpXZz47QyiWBd+YsJqGwY5e+PKnqKZoMhw2/yEB2N2Uo9B8IK8yV/RREf4s bu/LawgOyY2Vg1b/5d2Dit1QVcgZwH89/MylZeWdsdHvPRcx6pCmfGp6hHZXcICs6JHXOG5/MobLE qp8dCyMOYKbRVL4JEk0d1j04kb3yMhn5mhRx1/JLZPHBSAJSdyfpV2ZL4luU1KPBSAcCOXmtC9XPy +uJh+bn7yokGCj86SqDg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1ocmFv-004X4X-Pi; Mon, 26 Sep 2022 11:26:35 +0000 Received: from mx1.tq-group.com ([93.104.207.81]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1ocmFs-004X3d-CQ for linux-arm-kernel@lists.infradead.org; Mon, 26 Sep 2022 11:26:34 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tq-group.com; i=@tq-group.com; q=dns/txt; s=key1; t=1664191592; x=1695727592; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=zbgm85B3cdu2VAHr0/2r40wRxzSOaMMEVarL++vzOJc=; b=EVI/lJaDlAXXD+RYYmvSZavJqkc6VlNeWDcdVMeRLoNhERX86TqhGfLJ Mx/RSXlJeOil9Lo4tCnEacOXijcEahgyLgbN39NAeGIcrInoTwNzNHdzY BPcdGwDzji5yTuZtkU80WL4kN+m/m6lLS+VzUIUBi94uSwYUeaxz2JjZw LYrUdo/ojqB4t9thTXdzR6NeUSziIGdrstCDlO3TqxraZziurTdyZuq1q bUULuFXzMQiQ0eYTg44WeAZ0b7kxldd5dHGRbUBscAi76VI1wS/EKIFAz tuQr99mh39MrLhiaVyBppmH2tbweLmRsAGbG/PWJPoqwO7wcJcf6ZWz/k A==; X-IronPort-AV: E=Sophos;i="5.93,345,1654552800"; d="scan'208";a="26392991" Received: from unknown (HELO tq-pgp-pr1.tq-net.de) ([192.168.6.15]) by mx1-pgp.tq-group.com with ESMTP; 26 Sep 2022 13:26:27 +0200 Received: from mx1.tq-group.com ([192.168.6.7]) by tq-pgp-pr1.tq-net.de (PGP Universal service); Mon, 26 Sep 2022 13:26:27 +0200 X-PGP-Universal: processed; by tq-pgp-pr1.tq-net.de on Mon, 26 Sep 2022 13:26:27 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tq-group.com; i=@tq-group.com; q=dns/txt; s=key1; t=1664191587; x=1695727587; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=zbgm85B3cdu2VAHr0/2r40wRxzSOaMMEVarL++vzOJc=; b=Y+awTS0nYuqh3EWdyP+F5ityMJxJcc6lhQLEp114QoYrWWWEAO59PFWC A5XNdijRkDz7cX6YBvbwCtluhtVpSi0c+ll1X+WQA2fLc4vsJEwwKxfT1 /+aoKspZjvXikYPBwcIgfikrsP7Zhq4WHo/4oGiriG2WpxJUvtqsB0xvz 0SPXPlI91MZKJ2VEcWdaMAg6q+xq1EHAZPLnAhwiGxEfLTBUeRefyhVX6 lPuCwupdwr8BRLDU8ojNO2OqfGzU+Q234dpxfCxjf6j3IbbjbyoGjIpJ2 QpyyWRH9mzxGdzPw98qmaPmhC7d9zUXyRoMLHFREBVECiuvDavChsvu/T g==; X-IronPort-AV: E=Sophos;i="5.93,345,1654552800"; d="scan'208";a="26392990" Received: from vtuxmail01.tq-net.de ([10.115.0.20]) by mx1.tq-group.com with ESMTP; 26 Sep 2022 13:26:27 +0200 Received: from steina-w.tq-net.de (unknown [10.123.49.11]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by vtuxmail01.tq-net.de (Postfix) with ESMTPSA id 45950280056; Mon, 26 Sep 2022 13:26:27 +0200 (CEST) From: Alexander Stein To: Rob Herring , Krzysztof Kozlowski , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam Cc: Alexander Stein , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH 1/1] arm64: dts: imx8mm-tqma8mqml-mba8mx: Fix USB DR Date: Mon, 26 Sep 2022 13:26:22 +0200 Message-Id: <20220926112622.2912885-1-alexander.stein@ew.tq-group.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220926_042632_861489_4215CFFA X-CRM114-Status: GOOD ( 13.62 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org extcon does not work somehow, so switch to usb-role-switch instead. Fixes: dfcd1b6f7620 ("arm64: dts: freescale: add initial device tree for TQMa8MQML with i.MX8MM") Signed-off-by: Alexander Stein --- .../dts/freescale/imx8mm-tqma8mqml-mba8mx.dts | 32 +++++++++++++++---- 1 file changed, 26 insertions(+), 6 deletions(-) diff --git a/arch/arm64/boot/dts/freescale/imx8mm-tqma8mqml-mba8mx.dts b/arch/arm64/boot/dts/freescale/imx8mm-tqma8mqml-mba8mx.dts index bfb44630da6b..56323c989d55 100644 --- a/arch/arm64/boot/dts/freescale/imx8mm-tqma8mqml-mba8mx.dts +++ b/arch/arm64/boot/dts/freescale/imx8mm-tqma8mqml-mba8mx.dts @@ -34,11 +34,25 @@ reg_usdhc2_vmmc: regulator-vmmc { off-on-delay-us = <12000>; }; - extcon_usbotg1: extcon-usbotg1 { - compatible = "linux,extcon-usb-gpio"; + connector { + compatible = "gpio-usb-b-connector", "usb-b-connector"; + type = "micro"; + label = "X19"; pinctrl-names = "default"; - pinctrl-0 = <&pinctrl_usb1_extcon>; - id-gpio = <&gpio1 10 GPIO_ACTIVE_HIGH>; + pinctrl-0 = <&pinctrl_usb1_connector>; + id-gpios = <&gpio1 10 GPIO_ACTIVE_HIGH>; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + usb_dr_connector: endpoint { + remote-endpoint = <&usb1_drd_sw>; + }; + }; + }; }; }; @@ -106,13 +120,19 @@ &usbotg1 { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_usbotg1>; dr_mode = "otg"; - extcon = <&extcon_usbotg1>; srp-disable; hnp-disable; adp-disable; power-active-high; over-current-active-low; + usb-role-switch; status = "okay"; + + port { + usb1_drd_sw: endpoint { + remote-endpoint = <&usb_dr_connector>; + }; + }; }; &usbotg2 { @@ -242,7 +262,7 @@ pinctrl_usbotg1: usbotg1grp { ; }; - pinctrl_usb1_extcon: usb1-extcongrp { + pinctrl_usb1_connector: usb1-connectorgrp { fsl,pins = ; };