Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp1613216pxb; Thu, 4 Nov 2021 05:35:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzgkcn8mussGL12eszBulgse/LlS2J9RYcOKxF6SRmxKxbo+Vv4JkWN2amKNUdBNvKnwDvT X-Received: by 2002:a5d:80c4:: with SMTP id h4mr35962265ior.40.1636029357925; Thu, 04 Nov 2021 05:35:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1636029357; cv=none; d=google.com; s=arc-20160816; b=LcYPn4As8o63qdULxsr/X5APbK10KQgcVs4o4/BDAAgbGz17SoevFDBQxMhn8HSf4W flf7bHq7E8Oo8KTp/l2NzevsbjrxhebFz92FkbXfnw1DCPeZVpOaKHyDygEhya0KbVa9 T6DVvl1G/yCi6pN1gcnLpznyND3nFGVL+VNj+pp47CF/rdBd6rWpMlu+969E3XiQLsRu d7qfAUR5sgCZ4Q0tmBE7xkGSwQvBO0p+g6ntRHbiX9+qyorTxZEyJ4a/f/BEwK/hxSLD quxMKDCcWjVW0qlQtdZhLWigzKS9YunoRb3wcUoz4fFUVZI9H7DpGeF+AkeDs7+pA+19 5JFQ== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=aSDFeDkO0qaLEtNK76O8NQimr+zDhbv1igoxk25YmPY=; b=RMfhIZrj0CTSMqV8fTZONMj5Qr7bauf49kOHEV5f959KnpsBIolpCfxE9U73XthHvT QajyZKfjlHMbxv54yl9oo5izojvSunyhH+4sQDG5gWIoXjfg5Q6cCEsC1K7W6n+ESd4b 7gVzXqvKPnUSZtl2ZFW6y/awDlugQE9gjJSyKLNNmtuxBSiUwwUVDRz7QwPvTmxD4KYF Nz/SpUZtS144c4WnDCmqlvJDN7yuNx6ZWxumMm+7KSM4YVWVyf1PP27IL1lD8s7XCGCe uM14eN7WOTEJlUxU2mzIPZT4m8DeKEK6dZz8XKlcH8no3pD53PbjUWzbpbVQfv+TwR2t b+pQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=E1DVTWyp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n8si2815564jat.113.2021.11.04.05.35.45; Thu, 04 Nov 2021 05:35:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=E1DVTWyp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230252AbhKDMhJ (ORCPT + 99 others); Thu, 4 Nov 2021 08:37:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45630 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229505AbhKDMhI (ORCPT ); Thu, 4 Nov 2021 08:37:08 -0400 Received: from mail-io1-xd2b.google.com (mail-io1-xd2b.google.com [IPv6:2607:f8b0:4864:20::d2b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5D949C061714; Thu, 4 Nov 2021 05:34:30 -0700 (PDT) Received: by mail-io1-xd2b.google.com with SMTP id c206so5168205iof.2; Thu, 04 Nov 2021 05:34:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=aSDFeDkO0qaLEtNK76O8NQimr+zDhbv1igoxk25YmPY=; b=E1DVTWypHI2O3f/jSult45xc4Nyet5nYf4oCkBxkNAF3ggPghzVdYPA1jCTjFxGi+4 0gxaT98/tY8ziYzhlBwzJoKieroEL7j/vsFEzX2lZcYMQSJD+ymAzVbYGaa6Kcfd3ZyD io3gGk3bAqSzjp1kVPH9xpBfSYXJh+Lw2k9LWIHv0fCoZLzyt5HxChxRA3aG2Tkq6+wS kODFZYk9ugSw9G4IWZfyAiH6ZSnmvNOgZoXiOPuwtBaUiRxvJ/azHPABI1jsH31b8DvK FCtm9m+KRoUuRPtNY3MtUMku1SSxhc7Jjgimy+RmRqfq0ks+BhjZMqRbZl0tUNb9Tt/e h/Vg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=aSDFeDkO0qaLEtNK76O8NQimr+zDhbv1igoxk25YmPY=; b=Vil2qyxa+qN6SzjrVM7ectpPB8mfGe4lFahGOR0H2ZJOdDiiy5d3d2Hx28F5HsG14W 75MyH+9lBzXwvxf16/BkY67fuDJj/btxhDtPemEaoMZ3GhDVvM8Ajy0SV/Hx5+QXHdhx QzYQN2jToc92VgjCoqMArFskzT2Eqt+vDotFYLJa+Ti8vFP3b67eAf/iIEWPP7igpkVI GBsMdJIGC1g6vL+DnD2yf8H142LDfLcI2tF69qgPLlWpHl2yc2dh1MGgHyvOUqu2IU9N RvspGzMCT7LFMTh1akzonUjAdsPKVvxeiLuHZRZ3T4Q7MYjhJSv9W9XdUKprnKsAYkP4 jRTg== X-Gm-Message-State: AOAM530BoCwjatOKgKoiVGeQYCaLHmkRPZ0KoTNuIZLtd/cZjymhxHKq Q+QiYgX34SCNIeHsQFc0740= X-Received: by 2002:a6b:6a17:: with SMTP id x23mr6170895iog.165.1636029269668; Thu, 04 Nov 2021 05:34:29 -0700 (PDT) Received: from aford-IdeaCentre-A730.lan ([2601:448:8400:9e8:e81d:737a:bb84:83ba]) by smtp.gmail.com with ESMTPSA id o10sm2632156ilc.56.2021.11.04.05.34.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Nov 2021 05:34:28 -0700 (PDT) From: Adam Ford To: linux-arm-kernel@lists.infradead.org Cc: aford@beaconembedded.com, Adam Ford , Rob Herring , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] arm64: dts: imx8mm-beacon: Enable USB Controllers Date: Thu, 4 Nov 2021 07:34:11 -0500 Message-Id: <20211104123411.397205-1-aford173@gmail.com> X-Mailer: git-send-email 2.32.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The i.MX8M Mini has two available USB controllers. On the imx8mm-beacon board, USB1 is routed to a mini-USB port with OTG functionality. USB2 is routed to a USB hub which has three host-only ports connected to it. Signed-off-by: Adam Ford diff --git a/arch/arm64/boot/dts/freescale/imx8mm-beacon-baseboard.dtsi b/arch/arm64/boot/dts/freescale/imx8mm-beacon-baseboard.dtsi index 6f5e63696ec0..4097a66163b2 100644 --- a/arch/arm64/boot/dts/freescale/imx8mm-beacon-baseboard.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8mm-beacon-baseboard.dtsi @@ -43,6 +43,17 @@ reg_audio: regulator-audio { enable-active-high; }; + reg_usbotg1: regulator-usbotg1 { + compatible = "regulator-fixed"; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_reg_usb_otg1>; + regulator-name = "usb_otg_vbus"; + regulator-min-microvolt = <5000000>; + regulator-max-microvolt = <5000000>; + gpio = <&gpio4 29 GPIO_ACTIVE_HIGH>; + enable-active-high; + }; + reg_usdhc2_vmmc: regulator-usdhc2 { compatible = "regulator-fixed"; regulator-name = "VSD_3V3"; @@ -169,6 +180,24 @@ &uart3 { status = "okay"; }; +&usbotg1 { + vbus-supply = <®_usbotg1>; + disable-over-current; + dr_mode="otg"; + status = "okay"; +}; + +&usbotg2 { + pinctrl-names = "default"; + disable-over-current; + dr_mode="host"; + status = "okay"; +}; + +&usbphynop2 { + reset-gpios = <&pca6416_1 7 GPIO_ACTIVE_HIGH>; +}; + &usdhc2 { pinctrl-names = "default", "state_100mhz", "state_200mhz"; pinctrl-0 = <&pinctrl_usdhc2>, <&pinctrl_usdhc2_gpio>; @@ -215,6 +244,12 @@ MX8MM_IOMUXC_SAI2_MCLK_GPIO4_IO27 0x19 >; }; + pinctrl_reg_usb_otg1: usbotg1grp { + fsl,pins = < + MX8MM_IOMUXC_SAI3_RXC_GPIO4_IO29 0x19 + >; + }; + pinctrl_sai3: sai3grp { fsl,pins = < MX8MM_IOMUXC_SAI3_TXFS_SAI3_TX_SYNC 0xd6 -- 2.32.0