From patchwork Mon Apr 1 02:33:46 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Estevam X-Patchwork-Id: 13612397 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 37183CD128A for ; Mon, 1 Apr 2024 02:34:16 +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=YR1ccN/2MAa+jYLPvvlgD/pNLgzXQa7xgjUel/0ZCyM=; b=Y72eJkFrydo8nx vbHzdYSb5LgrqJIQU3m+y884wZTHNjWyfhOmRDvNhZEarNU8UwGkcraTrEItyIEoGdDBTUoabwUJi 0WMdNZRTvpnL8G64t/J7DcimUiD0ROqLkfrkRJL57IGb3w6e1NkMeg4B2WT33lA2xDe/dW4MeuNZ7 Pd1Tk6O8tCmW7x4vJ8dwEUqjfKyrYBQtTnGuPvglsxazNCo8RLiVXF/q9I2OoWh8IyOdrbijY4gMN VvlaQf3RyGoG1M1b9Y5q+Yjk3vTyDK5/+25ST6aJ+dXrCL58M4W8T2qz+4gO0Gv/JpXJ+9D+tQibz XLOMh4TTva4bM0fn/WQA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rr7Up-00000006hZd-0ACY; Mon, 01 Apr 2024 02:34:03 +0000 Received: from mail-pl1-x62d.google.com ([2607:f8b0:4864:20::62d]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rr7Um-00000006hYd-101E for linux-arm-kernel@lists.infradead.org; Mon, 01 Apr 2024 02:34:01 +0000 Received: by mail-pl1-x62d.google.com with SMTP id d9443c01a7336-1def81ee762so9465205ad.0 for ; Sun, 31 Mar 2024 19:33:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1711938838; x=1712543638; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=9QHNinfUBd+L8Q/w0zORheEhAmhtsn0OF8YlkoAkSQI=; b=KTSP/a3cREYo2WvIXwbkZSoM2Wq0Kxs2hATGo2KAze8dc6U4m5VlMOVYmTLzOCPtqJ L3nnKQC94dLJdlcC3v49+9l2xevPLkZn84qW2fqxAkwX1nS9qwnQNKsPQo0ge9SAPABH g2Q5pzCGvsfqK9B7yi8Y8pqGaib85t7XUQKRWMRzQalWHgNqnsfzfao3vmO5m8ePFzZq rYyASCZ8t9H6k8lnLPQMs31ZakLtTdvvXNvKll2u7dBi+OJvLKtQvlc2eI9BPjR1HI7O 6CRXnaVm9pV2rkAN1we6ifjJHD0N93IWreVRhELwFaviYE9mfOQWxx7aoqER9xWn438e k2/g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711938838; x=1712543638; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=9QHNinfUBd+L8Q/w0zORheEhAmhtsn0OF8YlkoAkSQI=; b=vVPIplmaccB3bOCazd8OqLb6bwCWI7h9UzxK6xADcwqclh0mHESim2NZsVe8IXCP6h /+mOmO7kCmoEICu97MFiAT2rbc/6vE1qSeg+tdLt9E18JvfFHUKofpElKsPhplmvB69/ /SsefvH6FdkMzdK08mRDVXRNpGbwErgHyt7KQexJlThQZD7wiOkhT0Unyo1RmO6lTUkb xg+2IDLFQXOQ6JJbCF5vUZwYNvUsPTjIbeXdPTiMw44OGlHkcsSBgDV/91NGdDbAwcsj Ci2RQOcERZN8kbN2g/GmGrZgMNVsQwkoF+StjNm6eNE3febXNzex5iSX3erY3+1iGJ21 voig== X-Forwarded-Encrypted: i=1; AJvYcCUfSAFVs0cZ+Hyhy/4HrNVsgWAyeuXR7Kj+zihb/lh/B406fLMz4PupzekFfyWnk7FIypyCAjjpTTmpfNA2sjC1giSLC5LGI+l/jU+nMo89rDP0HBw= X-Gm-Message-State: AOJu0YxRdX0qAgqbxHjwWDWv45YsNRCN+Oe6VjXrY/vx4RZUILdrnQ50 +LvCjMk0kEvzaMgRsRM5PAxLUjnMfIwjLyUDLxxDpi+2ruXb9642unAl9oYR X-Google-Smtp-Source: AGHT+IGh5GQlZZfQ3bMg6EcHvKpNg2FCUwgZ77q4PqhyfvE81SDHhNTnLgKAarjQSRrjPndB8te8zQ== X-Received: by 2002:a17:902:7294:b0:1dc:c28e:2236 with SMTP id d20-20020a170902729400b001dcc28e2236mr9680538pll.2.1711938838145; Sun, 31 Mar 2024 19:33:58 -0700 (PDT) Received: from fabio-Precision-3551.. ([2804:14c:485:4b61:37fe:973d:2a0a:a8a3]) by smtp.gmail.com with ESMTPSA id p8-20020a1709027ec800b001e2526a5cc3sm1407173plb.307.2024.03.31.19.33.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 31 Mar 2024 19:33:57 -0700 (PDT) From: Fabio Estevam To: shawnguo@kernel.org Cc: broonie@kernel.org, linux-arm-kernel@lists.infradead.org, Fabio Estevam Subject: [PATCH 1/2] ARM: imx_v6_v7_defconfig: Select CONFIG_USB_ONBOARD_HUB Date: Sun, 31 Mar 2024 23:33:46 -0300 Message-Id: <20240401023347.3114484-1-festevam@gmail.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240331_193400_305009_9144CF99 X-CRM114-Status: UNSURE ( 8.74 ) X-CRM114-Notice: Please train this message. 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 From: Fabio Estevam The imx6qdl-udoo board has a USB2514 Hub connected to the USB Host1 port. Select CONFIG_USB_ONBOARD_HUB so that USB hub can be functional. Signed-off-by: Fabio Estevam --- arch/arm/configs/imx_v6_v7_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/configs/imx_v6_v7_defconfig b/arch/arm/configs/imx_v6_v7_defconfig index 7327fce87808..b06128da94e5 100644 --- a/arch/arm/configs/imx_v6_v7_defconfig +++ b/arch/arm/configs/imx_v6_v7_defconfig @@ -336,6 +336,7 @@ CONFIG_USB_SERIAL_FTDI_SIO=m CONFIG_USB_SERIAL_OPTION=m CONFIG_USB_TEST=m CONFIG_USB_EHSET_TEST_FIXTURE=m +CONFIG_USB_ONBOARD_HUB=y CONFIG_NOP_USB_XCEIV=y CONFIG_USB_MXS_PHY=y CONFIG_USB_GADGET=y From patchwork Mon Apr 1 02:33:47 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Estevam X-Patchwork-Id: 13612398 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 5FD02CD1284 for ; Mon, 1 Apr 2024 02:34:22 +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:References:In-Reply-To: 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: List-Owner; bh=Z9X87ix3nUr4i8tZgRb8eTGYHxqpTjVbUWOO20sOs5E=; b=jdcx6zMaI/+hig WHvo5rTa5eiw705QuJyoQ83I2UVD91/Az0ui0JYBxqc5/Vz1Eci5BBHv64TjIUCKwADhZsV3zMZCW uNQpYQs4uL64kZZHsi2BEw5BzijhdbNyl3zn0BVJ+ycsLYL+j6XjsxpYvw/hssx2lEcQ+/CP+IOtm fE5gK+UqLCUE66goyuYsDEQB/Pfr4rLAnuczXVvIGcv9d84zxKgAtaPy2Qb/DLex/aE+L2REkzGn1 zgJnprj2chd5q6Ip6sHN9i6BOG5NxeftwzRM5TAmIGNr2qVGt5Jliv8hDM2slxWlUW9CXe+oJOitL S6i4OzQOzWGSKcXWUYJQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rr7Uz-00000006hcX-0MwQ; Mon, 01 Apr 2024 02:34:13 +0000 Received: from mail-pg1-x531.google.com ([2607:f8b0:4864:20::531]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rr7Un-00000006hYx-2BAk for linux-arm-kernel@lists.infradead.org; Mon, 01 Apr 2024 02:34:02 +0000 Received: by mail-pg1-x531.google.com with SMTP id 41be03b00d2f7-55b5a37acb6so518269a12.0 for ; Sun, 31 Mar 2024 19:34:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1711938840; x=1712543640; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=+Qexx/TRyl9xud6mw+d4N8VxodEJEHjAw0a7PXBVBdk=; b=kXHYztgs/KYovQSKP8g/HqjEzQHgogR7iPlnE8ht8c/BuIdgqeimmir22tmSJzwU5S hOlOJq8yLtbk4wwuc52JWUIEkc6SxtIaR4ojZsxlGFlA2Qm2aM9LEivU8zEnkIY12xQx /NA4qBy9RyYRbxoS03DRvBzjNyB0Bg0TpjOLQt+N28nML+uFSP+y3Uf1iv6wlwyi2UUA OoDdeSQeJGrW+w91SF35gCTb3kc871iOaCXbrKK74FOOT8nSv7rnK29li01g0l4fAaSK kpYO1XOcC/qLmMyebCdu6/C+A1Yy95ptQx/u33RilttcxDqPT3Upp4h2Uk+2oFmHwaRI 9b2A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711938840; x=1712543640; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=+Qexx/TRyl9xud6mw+d4N8VxodEJEHjAw0a7PXBVBdk=; b=du5Xay7ff6fRlpbNGYy1mSeb4zjVdS8NXxq9R/5UQisey9br8UDQWOsgGinZpW1L95 Ucrgp5zfuyLlDUJODhTWMwcQByknSsOiHptQQw5E1nX15HJI8RFrlJJQkXtLh4aTJoY7 MisRL6JOLm4i3cG8qEMGTvLaAZvoT99jEjktphwZceDtTFa96DWm+jMRM2eqQBOe6jd9 ylETO+HCwAhefLl0AuJYYXKUzBLgTIr4fwRkpLnfgUnwuAF6koy2w11IhP+IcphoXe1h h6IdjEWxfe8HY1HZU6IdkDpwKE6JWEi6JOGDb/aJ1Xtl+aLHu+GWb85wvB3MjsopzveT XoUQ== X-Forwarded-Encrypted: i=1; AJvYcCXCRJhOOZJIOTgLP/mbDGMrLdKK24myoXojU6a6ypB5me5EcPQwwA8h5Xb9/Rz++7jU67c/hsgkgiR/IstHT4Je8OblVUaBgXmOpPBiAprMLCR9BQQ= X-Gm-Message-State: AOJu0YxUAlSxTR58ht6e3pXUNcZlO90vMj7Z9xJqkcGgrbko8mw8SE2f eFR/UynFNyBh2pX+DcxL+1G81dszW2fYg8o22pWQQeTNjLFqaY/w X-Google-Smtp-Source: AGHT+IHOszFX6hG4aPnNZujH25hSoMFuM2tEUPxPW4b+AMqGraFTBQkK45xMGU/kHmuBso6mU1YO+w== X-Received: by 2002:a17:903:124d:b0:1de:ddc6:27a6 with SMTP id u13-20020a170903124d00b001deddc627a6mr9064752plh.2.1711938840371; Sun, 31 Mar 2024 19:34:00 -0700 (PDT) Received: from fabio-Precision-3551.. ([2804:14c:485:4b61:37fe:973d:2a0a:a8a3]) by smtp.gmail.com with ESMTPSA id p8-20020a1709027ec800b001e2526a5cc3sm1407173plb.307.2024.03.31.19.33.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 31 Mar 2024 19:33:59 -0700 (PDT) From: Fabio Estevam To: shawnguo@kernel.org Cc: broonie@kernel.org, linux-arm-kernel@lists.infradead.org, Fabio Estevam Subject: [PATCH 2/2] ARM: dts: imx6qdl-udoo: Enable USB host Date: Sun, 31 Mar 2024 23:33:47 -0300 Message-Id: <20240401023347.3114484-2-festevam@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240401023347.3114484-1-festevam@gmail.com> References: <20240401023347.3114484-1-festevam@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240331_193401_582627_AF970519 X-CRM114-Status: GOOD ( 11.71 ) 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 From: Fabio Estevam Commit 8f2ca252ee1f ("ARM: dts: imx6qdl-udoo: Disable USB host to work around boot issues") disabled USB host to avoid boot hang. Properly describe the USB2514 USB hub to fix this issue. Tested on a imx6q-udoo board and verified that it boots fine and USB host functionality works. Signed-off-by: Fabio Estevam --- arch/arm/boot/dts/nxp/imx/imx6qdl-udoo.dtsi | 25 ++++++++++----------- 1 file changed, 12 insertions(+), 13 deletions(-) diff --git a/arch/arm/boot/dts/nxp/imx/imx6qdl-udoo.dtsi b/arch/arm/boot/dts/nxp/imx/imx6qdl-udoo.dtsi index 647ba5e623dd..14272b42f9a1 100644 --- a/arch/arm/boot/dts/nxp/imx/imx6qdl-udoo.dtsi +++ b/arch/arm/boot/dts/nxp/imx/imx6qdl-udoo.dtsi @@ -59,16 +59,6 @@ panel_in: endpoint { }; }; - reg_usb_h1_vbus: regulator-usb-h1-vbus { - compatible = "regulator-fixed"; - regulator-name = "usb_h1_vbus"; - regulator-min-microvolt = <5000000>; - regulator-max-microvolt = <5000000>; - enable-active-high; - startup-delay-us = <2>; /* USB2415 requires a POR of 1 us minimum */ - gpio = <&gpio7 12 0>; - }; - reg_panel: regulator-panel { compatible = "regulator-fixed"; regulator-name = "lcd_panel"; @@ -285,9 +275,18 @@ &uart4 { &usbh1 { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_usbh>; - vbus-supply = <®_usb_h1_vbus>; - clocks = <&clks IMX6QDL_CLK_CKO>; - status = "disabled"; + #address-cells = <1>; + #size-cells = <0>; + status = "okay"; + + usb-port@1 { + compatible = "usb424,2514"; + reg = <1>; + #address-cells = <1>; + #size-cells = <0>; + clocks = <&clks IMX6QDL_CLK_CKO>; + reset-gpios = <&gpio7 12 GPIO_ACTIVE_LOW>; + }; }; &usbotg {