Received: by 2002:ab2:1149:0:b0:1f3:1f8c:d0c6 with SMTP id z9csp1901241lqz; Tue, 2 Apr 2024 00:35:47 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWzf0clURJh6XnOl0FPDg0dpOVxUMTwQlGZsdmwftCSIaquPYx1lG4cpBfEi2FhToWYZQjUIuS9FPKI4wCmmfHflRDjQvB0gTJepNF9LA== X-Google-Smtp-Source: AGHT+IFKDIo+h/HWitWkwuuUPh5Alu+QR0KY+TqVuLV1EuQZhSJb/gZ64gxoFXQkei8okq3SgvyS X-Received: by 2002:ad4:5a52:0:b0:696:1c19:7181 with SMTP id ej18-20020ad45a52000000b006961c197181mr22071187qvb.7.1712043347712; Tue, 02 Apr 2024 00:35:47 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712043347; cv=pass; d=google.com; s=arc-20160816; b=Wf8tw/wfqJkeb4bB4GwPUKoAcTO5i7TK9tUPlpEyvOYO83x4Lvr2TWDDTgSiY3GDFI 9EjJEQmKx+dilC+WpTaKz1rtpV8ivYlIaD+qVyQp9Ao7Dq2JrVB2u5+QXtj2vrjsuW79 k4uIQvQtnhyp/HFAsUcJVwjPNScP5UAtnSk+r5eyzW3X+3tSn31jJpGuvbb19jxPNzIN vO1b50aCRxiQs8G8QMg+xxtl497k8ZH7/uXmR4UgHRV//brrKgT+H88aUG3224VJdwrP fVL/CbSLXBx6uU6ZNRLxiaSoTgfd+WWPqn8rlqw2OZ0a5JZnQ+iSD1hWkkU4qHAjiKQQ +U3Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:message-id:content-transfer-encoding:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:subject:date :from; bh=nn57zTpMu1w4rh3uFC0l5K53G5tS2I276j3oOuRDI1A=; fh=dWjgWLSCTwJV4p3nQuRmqqKyKVzM4G9n67h1YEQbTRw=; b=RKDXSxufKA5la0BFRT3ojfR67UZJ9djXPV2A4HmZhv1NrRwVtABg9RjB2mJUhrefAr HqlN90bCXLF3Gm120/gJ0JmeXOnVvF53x4QwCp/vkPKbIZEXCoBF9KzklUr7NfNuRi96 dEJLrqNvKe8iV7BzSe1ZJ6Vvo2lbZZtmI7C/Tj/fH4tAOeMgS6pA+47tTBDH5QGaD35u +zWLqXqZ/GYHgjbAqYFlH1qCIhe/5QA2AhhuJoP06YGwbISY2TfN5jTgu9eBwocHJ9HC KsKlGn6hiUJXYUz5bPqQfPe9bdIeU/mobtJK27JG5opFBqAfsUIElJg+AKATirfsGDih HSpw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=pengutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-127509-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-127509-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id m16-20020a0cbf10000000b00690cff246ffsi11365009qvi.473.2024.04.02.00.35.47 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Apr 2024 00:35:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-127509-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=pengutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-127509-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-127509-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 602AD1C220AE for ; Tue, 2 Apr 2024 07:35:47 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 025F63BBC3; Tue, 2 Apr 2024 07:35:44 +0000 (UTC) Received: from metis.whiteo.stw.pengutronix.de (metis.whiteo.stw.pengutronix.de [185.203.201.7]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E9D972BD1C for ; Tue, 2 Apr 2024 07:35:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.203.201.7 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712043343; cv=none; b=RJHDQsdsnR0gqM7CDLvTTLvQ24XwoPEBtbIbsA9DGH/YhbupbrS8aIg2tRUTVuZvqJ/HwpZt9HfgGXBy1kIWGCwwbPJ73cdwMXxB6nVgADGsWk9uGbgl3ExcVtX/LeDgTzI6hIApazNyuNeulrTdxdKOtO0BkZtQVucyQ2s6Rww= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712043343; c=relaxed/simple; bh=c77W4NtZGbO/mmksuHBSmPIGD/9bOAUrsvWJlCh/Zlg=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:To:Cc; b=rDIYDCAxJz5nmqrct05GQR8Mzfz+jF79yd2+Hb1s2LVTy72mGH0xhExLgokldzfW9HIzvWgJu36BsbASjPqH9wMiVDSv71xJvrPBID+DZ9cADI2VgCF65Sc6yRe3oRtk3v+XXZwIoUnN+y6pI9KJTfADwXYiO92XkrZzhEsJ85A= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=pengutronix.de; spf=pass smtp.mailfrom=pengutronix.de; arc=none smtp.client-ip=185.203.201.7 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=pengutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=pengutronix.de Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.whiteo.stw.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1rrYgA-00082Y-FS; Tue, 02 Apr 2024 09:35:34 +0200 Received: from [2a0a:edc0:0:1101:1d::ac] (helo=dude04.red.stw.pengutronix.de) by drehscheibe.grey.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rrYgA-009wCp-0x; Tue, 02 Apr 2024 09:35:34 +0200 Received: from localhost ([::1] helo=dude04.red.stw.pengutronix.de) by dude04.red.stw.pengutronix.de with esmtp (Exim 4.96) (envelope-from ) id 1rrYg9-00EoI0-37; Tue, 02 Apr 2024 09:35:33 +0200 From: Michael Grzeschik Date: Tue, 02 Apr 2024 09:35:33 +0200 Subject: [PATCH] arch: arm: mxc: phyCARD-i.MX27: Add USB support Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20240328-pca100-v1-1-58df67c2c950@pengutronix.de> X-B4-Tracking: v=1; b=H4sIAES1C2YC/x2MQQqAMAzAviI9O6jbUPEr4qHOqgWZsqEI4t8tH hNCHsichDN0xQOJL8myR4WqLCCsFBc2MimDRevR2dYcgSpEQzUiBe9azw1oPFJmMyaKYdU8ntu m8kg8y/3f++F9P0ONOldtAAAA To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam Cc: devicetree@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Michael Grzeschik X-Mailer: b4 0.12.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=3364; i=m.grzeschik@pengutronix.de; h=from:subject:message-id; bh=c77W4NtZGbO/mmksuHBSmPIGD/9bOAUrsvWJlCh/Zlg=; b=owEBbQKS/ZANAwAKAb9pWET5cfSrAcsmYgBmC7VFuPpCUfj62coJX6rI+cIQLmIVSuuy8HtjE QOcZ7AH6SmJAjMEAAEKAB0WIQQV2+2Fpbqd6fvv0Gi/aVhE+XH0qwUCZgu1RQAKCRC/aVhE+XH0 q0cSD/4wQ24fgJBtREm521bh0yJpIxVHDu2sqLgZ2zzd7lHgEgP7diUTKxBp2WwaDh+eyTpm/ZL UPIGalYlZXS7vxSNI5rqMqLTGrWxn86T2w4x1mZA9nrNDRGimhU/nKlH4seZRmLJXpUmDVqwZm/ yxFP3CAz/ruAAUpRjvihuMoR6kiRz7YYMC4MzKITjkuBQtRkq8kFVfNdhUTlhTwDUj1LJ0TOyb7 kMDktkpEHhc3lrU1KIMoKN/rdx52POdrDhgE5Jfy8kw7KULDVn1bIRXbeqvJjOWvR61h875UMT3 3qtWxJCuB6LsMNc2SXLmW8uun+EOkrLwNgLEArunh8pIDdoXSPHMhxS4ip4FKoOPKEVscix4A3f dpDGtsiIjiv43fTkgsrYMtnpLdqJTxcUrQ7m3aZB4EZhSTnhyIiHA+/pTB7KsVsEwjIQfJnhp1q LoDZM+pbOSGZw7iJLce47pP9B0Qw3RlJm+4gjhHmdIQJXPZn0eZa2VjrQPci+p7v/oLvNbzD19b EnsVJHPq5Q1qiKz9g4PUVV2lFgzGU/7IAV2PllbiTvnu4SoN2TcmZ564F3ARIYHLNFOc6/c2uRC 2cWYuOFlj1XcaU2rZavfMZdliit+nIOTcwuKoGDh7T0b2kOp+A78t5pobVYJOfI/mYSz9ZAaFQb SSj0dDJNY2SbA5Q== X-Developer-Key: i=m.grzeschik@pengutronix.de; a=openpgp; fpr=957BC452CE953D7EA60CF4FC0BE9E3157A1E2C64 X-SA-Exim-Connect-IP: 2a0a:edc0:0:c01:1d::a2 X-SA-Exim-Mail-From: m.grzeschik@pengutronix.de X-SA-Exim-Scanned: No (on metis.whiteo.stw.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org This patch adds the pinmux and nodes for usbotg and usbh2. In v6 revision of the pca100 the usb phys were changed to usb3320 which are connected by their reset pins. We add the phy configuration to the description. Signed-off-by: Michael Grzeschik --- .../dts/nxp/imx/imx27-phytec-phycard-s-som.dtsi | 78 ++++++++++++++++++++++ 1 file changed, 78 insertions(+) diff --git a/arch/arm/boot/dts/nxp/imx/imx27-phytec-phycard-s-som.dtsi b/arch/arm/boot/dts/nxp/imx/imx27-phytec-phycard-s-som.dtsi index abc9233c5a1b1..31b3fc972abbf 100644 --- a/arch/arm/boot/dts/nxp/imx/imx27-phytec-phycard-s-som.dtsi +++ b/arch/arm/boot/dts/nxp/imx/imx27-phytec-phycard-s-som.dtsi @@ -15,6 +15,22 @@ memory@a0000000 { device_type = "memory"; reg = <0xa0000000 0x08000000>; /* 128MB */ }; + + usbotgphy: usbotgphy { + compatible = "usb-nop-xceiv"; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_usbotgphy>; + reset-gpios = <&gpio2 25 GPIO_ACTIVE_LOW>; + #phy-cells = <0>; + }; + + usbh2phy: usbh2phy { + compatible = "usb-nop-xceiv"; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_usbh2phy>; + reset-gpios = <&gpio2 22 GPIO_ACTIVE_LOW>; + #phy-cells = <0>; + }; }; &cspi1 { @@ -84,6 +100,52 @@ MX27_PAD_NFRE_B__NFRE_B 0x0 MX27_PAD_NFWE_B__NFWE_B 0x0 >; }; + + pinctrl_usbotgphy: usbotgphygrp { + fsl,pins = < + MX27_PAD_USBH1_RCV__GPIO2_25 0x1 /* reset gpio */ + >; + }; + + pinctrl_usbotg: usbotggrp { + fsl,pins = < + MX27_PAD_USBOTG_CLK__USBOTG_CLK 0x0 + MX27_PAD_USBOTG_DIR__USBOTG_DIR 0x0 + MX27_PAD_USBOTG_NXT__USBOTG_NXT 0x0 + MX27_PAD_USBOTG_STP__USBOTG_STP 0x0 + MX27_PAD_USBOTG_DATA0__USBOTG_DATA0 0x0 + MX27_PAD_USBOTG_DATA1__USBOTG_DATA1 0x0 + MX27_PAD_USBOTG_DATA2__USBOTG_DATA2 0x0 + MX27_PAD_USBOTG_DATA3__USBOTG_DATA3 0x0 + MX27_PAD_USBOTG_DATA4__USBOTG_DATA4 0x0 + MX27_PAD_USBOTG_DATA5__USBOTG_DATA5 0x0 + MX27_PAD_USBOTG_DATA6__USBOTG_DATA6 0x0 + MX27_PAD_USBOTG_DATA7__USBOTG_DATA7 0x0 + >; + }; + + pinctrl_usbh2phy: usbh2phygrp { + fsl,pins = < + MX27_PAD_USBH1_SUSP__GPIO2_22 0x0 /* reset gpio */ + >; + }; + + pinctrl_usbh2: usbh2grp { + fsl,pins = < + MX27_PAD_USBH2_CLK__USBH2_CLK 0x0 + MX27_PAD_USBH2_DIR__USBH2_DIR 0x0 + MX27_PAD_USBH2_NXT__USBH2_NXT 0x0 + MX27_PAD_USBH2_STP__USBH2_STP 0x0 + MX27_PAD_CSPI2_SCLK__USBH2_DATA0 0x0 + MX27_PAD_CSPI2_MOSI__USBH2_DATA1 0x0 + MX27_PAD_CSPI2_MISO__USBH2_DATA2 0x0 + MX27_PAD_CSPI2_SS1__USBH2_DATA3 0x0 + MX27_PAD_CSPI2_SS2__USBH2_DATA4 0x0 + MX27_PAD_CSPI1_SS2__USBH2_DATA5 0x0 + MX27_PAD_CSPI2_SS0__USBH2_DATA6 0x0 + MX27_PAD_USBH2_DATA7__USBH2_DATA7 0x0 + >; + }; }; }; @@ -95,3 +157,19 @@ &nfc { nand-on-flash-bbt; status = "okay"; }; + +&usbotg { + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_usbotg>; + phy_type = "ulpi"; + phys = <&usbotgphy>; + status = "okay"; +}; + +&usbh2 { + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_usbh2>; + phy_type = "ulpi"; + phys = <&usbh2phy>; + status = "okay"; +}; --- base-commit: 5bab5dc780c9ed0c69fc2f828015532acf4a7848 change-id: 20240328-pca100-a600ac4384e7 Best regards, -- Michael Grzeschik