Received: by 2002:a05:6358:111d:b0:dc:6189:e246 with SMTP id f29csp4109541rwi; Wed, 2 Nov 2022 07:02:08 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7+KyKRhZ49mwI3RJJliI7s3ZGUbJRVC53DBzGdShOmJ+j1f4//gr05eMmjJqovnKnfrF9I X-Received: by 2002:a17:907:162a:b0:7a9:9875:3147 with SMTP id hb42-20020a170907162a00b007a998753147mr23749981ejc.546.1667397728098; Wed, 02 Nov 2022 07:02:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667397728; cv=none; d=google.com; s=arc-20160816; b=ldmuKw3KI7aXesg9q8XgZcDxBynH+BjgZ5+RAC2E5pEHMOXCEnKMu9G1hcHwY3hJiU jxso/tBhB3GkCsAwGh0lYWsDf3Xf9Jg4vui9UQhsIVBHKHnVoSRpjB2yqZGj/jGINx++ czCH8AI87vDE2EKYa6wo1ArN8+t14fYt4soWBrlXNAucH3fnNroIa70hsC8ImtrsDYJq ww3Nk471xDTQ1Q/xaxSrmaHtxrgahXig748L9U/nLLR7IwhD7K07GwcWpm1ee3RbOELy 1y+V1X5OySCseUq+qLpCGheP1RUSCYW4LIpOtSc+6sjQ07yv6FQVAs9isoyJ3aLE6qgQ GIVw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=EHw46bhT9txXfOoyr7hD8P8adYZO1uErIibQ2Uy4ma8=; b=KWhb3HhnYnH3czpPqdXmHyZcYjPoKnrte1x89oKUbaLltFY+SySZp17Y0L90dbj/7v X5PJ8gMse1cFBDeoOB/4yNQlWFqYoMzXAEyVtk7xX4Omt7ghbj8uN+VvqjmI4dubhFYT /WPD/jylkGF3Vh1O4Ueg4urRM5WxzMvm7+fZLRXs9zPVqFNl32OjbujUJwci+Zn/kmOj BVAb8dEi0cqgJGoPMYRKzGvn5tiH7Jwk66HPdf43CPnPEln9FmicORmpwJM9AaCGbHWG bJrDBd/qSZu+nXJpFa95FxQq3z66gAjosscG6EMnNpGiiezR8bLyWpT/f+LwHDFCds5g 1CLg== ARC-Authentication-Results: i=1; mx.google.com; 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 sg39-20020a170907a42700b0079e1916c11asi17346486ejc.703.2022.11.02.07.01.24; Wed, 02 Nov 2022 07:02:08 -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; 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 S231519AbiKBNSe (ORCPT + 99 others); Wed, 2 Nov 2022 09:18:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57616 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231358AbiKBNR7 (ORCPT ); Wed, 2 Nov 2022 09:17:59 -0400 Received: from mout.perfora.net (mout.perfora.net [74.208.4.194]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 98EEE2AC47; Wed, 2 Nov 2022 06:17:58 -0700 (PDT) Received: from toolbox.toradex.int ([31.10.206.125]) by mrelay.perfora.net (mreueus002 [74.208.5.2]) with ESMTPSA (Nemesis) id 0LtHdl-1p0yDn1v8V-012osu; Wed, 02 Nov 2022 14:12:28 +0100 From: Marcel Ziswiler To: linux-arm-kernel@lists.infradead.org Cc: Peter Chen , Marcel Ziswiler , Fabio Estevam , Krzysztof Kozlowski , Laurent Pinchart , Max Krummenacher , NXP Linux Team , Pengutronix Kernel Team , Philippe Schenker , Rob Herring , Sascha Hauer , Shawn Guo , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v1 5/6] arm64: dts: verdin-imx8mp: add gpio usb-b connector Date: Wed, 2 Nov 2022 14:12:02 +0100 Message-Id: <20221102131203.35648-6-marcel@ziswiler.com> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20221102131203.35648-1-marcel@ziswiler.com> References: <20221102131203.35648-1-marcel@ziswiler.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Provags-ID: V03:K1:Thh1AqQcIwoSO03vPLA6TTxnuAnbPtVYneMdFj+HuDRIGQAeuRD NRR2h5qvlY6CkGx6t5HTh2xxFKlT/rFpu42Jk2PCvCC3DfznnxV4Ce7UVaLA0ksoJf++Yho TUba8ahYACbcIdtXQXX8IEdIIg5qUlkCdWepabkwGTLH0KCqyrrO7xbIpQ76Y0Eu+JkTWuo /3WqlN5POZL/hXjQpN3Nw== X-UI-Out-Filterresults: notjunk:1;V03:K0:3PxX5/Xx1r0=:HpeQu/2fiqp6vYV2s2CxJR V7tSLXtI/XjKgOSwZraif69eBZ29pGkYcTLiUFossbkiqPpyndIljVOAyMiIFb4YvlIQ2haxz kvLi40rnjDnBBj2zIwDhVpElQjgWMwgXtIC8BsVg0qux0xzhyR3JlvuewxYQBsWPQiubLtJ6X zMu0ljtP8xGF+0caGFNSzJt3o0v/+JGmRrn7KhtVfKlkNrcZdc9IHfRGv7+kM5llHd0TZ4PFR UMlGEWRNTItP6UqYrjTEqThsctEWd4gYGLC5pKfHzFAtOBAwB+N/wzu2V7aPrBsBIp3X2vLdC zuXxh8IDK73mgdDuYiVMdN++yPitGmRADSy8MOgCmMEB4xrYUS2lLJpYvuMkKT82MCMhbCFg/ 8YcRCIO0fKI+4/aKIxilronWhcGz8+5pLM3UxuN5eXfVAjIEaASXmLxAuZeGquaSMRvmOpS46 8dKHRyl/jwQs8RDWarIgdg0sVZmhY8FCC20PWHGMK3dd/nNTWDWNyc8SmVul5ZnPw0poqdf2w J2HpfVoVFMRxMhc9n5PW3lmeiztpLM7qOYch748gKqKwxJS01nT21DUAsQf1LyiYnrs//3Ac4 zZ5Mzi8q4blqqybavnpnkAf7HzpFelzg2iTcgI8OzX7kBvpF5yXpe0XvIahvLjoVz4+0w1DlU NXnK0ElnqXTf74SJKHIQ37TCptuK5ha036yNtlhHY3lSXtuZ5AWXMTiGz+HYwvPMN4k0EKMDq 2fqCETQVqSh6CKJKo+JWr6rJZs7hBNNuecQvCYDk3xDgJrSs8FP05f1nREWBNm+i0EmOhEvDQ nuVA4ZQ X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_NONE 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 From: Marcel Ziswiler Add GPIO USB-B connector (gpio-usb-b-connector) functionality using Verdin USB_1_ID. Signed-off-by: Marcel Ziswiler --- .../boot/dts/freescale/imx8mp-verdin.dtsi | 20 +++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/arch/arm64/boot/dts/freescale/imx8mp-verdin.dtsi b/arch/arm64/boot/dts/freescale/imx8mp-verdin.dtsi index 795e02df9f29..6a1890a4b5d8 100644 --- a/arch/arm64/boot/dts/freescale/imx8mp-verdin.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8mp-verdin.dtsi @@ -814,18 +814,26 @@ &usb3_0 { pinctrl-0 = <&pinctrl_usb_1_oc_n>; }; -&usb3_phy0 { - vbus-supply = <®_usb1_vbus>; -}; - &usb_dwc3_0 { + /* dual role only, not full featured OTG */ adp-disable; dr_mode = "otg"; hnp-disable; maximum-speed = "high-speed"; - pinctrl-names = "default"; - pinctrl-0 = <&pinctrl_usb_1_id>; + role-switch-default-mode = "peripheral"; srp-disable; + usb-role-switch; + + connector { + compatible = "gpio-usb-b-connector", "usb-b-connector"; + id-gpios = <&gpio2 10 GPIO_ACTIVE_HIGH>; + label = "Type-C"; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_usb_1_id>; + self-powered; + type = "micro"; + vbus-supply = <®_usb1_vbus>; + }; }; /* Verdin USB_2 */ -- 2.36.1