From patchwork Fri Oct 14 14:15:00 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabrice Gasnier X-Patchwork-Id: 13007048 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 0AB7BC4332F for ; Fri, 14 Oct 2022 14:17:04 +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=FbQud/4XQqc1XyZ2Y2LPtZc74WTdRbBiSHkZbVDZYbs=; b=Cn62nxryiwx9ia W3gTwVzPeTIheLeNI4jCqHzLgcAI7ufPjQYfXWZJc5Ydz5UPsSp9Vgn0fKbYGbPvaDqEIJN1Ncbv4 vAPtdtTbcQpkumDmpkIW+KoIpAfFHOb/mofG3n4+ahbSYy4oUoRNqy0JXz+AuMHqZBRpL5kIlfMrr xYJSXJIaF5OnWMPCQ7/Om+FGZfKfzTraLvk3iP72AhoZZZ/cZCuzyS186xsy/CehpkNCetZ+tCjVp A4AF1pXgIVEsZdkEzFiGbtMzGGLApXXPYQwsOt8OVlgUrPgYIkYqf+ndLS4Z0Yp1MvJwG0SoPh6Wk zMa7rFWZmK6+9H0Rx4+Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1ojLTm-00Ewsh-23; Fri, 14 Oct 2022 14:16:02 +0000 Received: from mx07-00178001.pphosted.com ([185.132.182.106]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1ojLTR-00EwkR-3P for linux-arm-kernel@lists.infradead.org; Fri, 14 Oct 2022 14:15:43 +0000 Received: from pps.filterd (m0288072.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 29EA9xMQ019182; Fri, 14 Oct 2022 16:15:36 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foss.st.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-transfer-encoding : content-type; s=selector1; bh=fGvz6oql+K0UHWPbNDcQlT4m0Yenf1lBjmyoVUBkJPU=; b=s2OeqV09NvZF+Bdsr2/Hntae4fH10ejp79CRxi2Rx4iQH+2D+J0vKkRnc8UjsyqncMsP mpdFJDioMhP8nOEkwUsUadm0JybEwlVgcQt9FAxDKzx1YPZWmaqfIlJkelGQLz85P+za zjHbc8CccE6jI6UW6WwlNC4sMANGjqxWd2ph9o9avLVUymKvVXkheaT443qsgz0Efcmm cqDm7actbAtjN8fGEqwzc+QKEpvkNCIkUn+mUpiaMwqFspUOAy4XqExIwIrdxY2iZ/Me OKMX4UF+ftkVR16Mh0D0CFOiqoH6l6l2AhayOAapDA9T311l+6+emDIgZdn6mSI+rTLK kA== Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com (PPS) with ESMTPS id 3k75sd9hyv-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 14 Oct 2022 16:15:36 +0200 Received: from euls16034.sgp.st.com (euls16034.sgp.st.com [10.75.44.20]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 8F4FB100034; Fri, 14 Oct 2022 16:15:31 +0200 (CEST) Received: from Webmail-eu.st.com (shfdag1node2.st.com [10.75.129.70]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id 8AA8F2309FB; Fri, 14 Oct 2022 16:15:31 +0200 (CEST) Received: from localhost (10.75.127.45) by SHFDAG1NODE2.st.com (10.75.129.70) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.1.2375.31; Fri, 14 Oct 2022 16:15:29 +0200 From: Fabrice Gasnier To: , , CC: , , , , , Subject: [PATCH v2 01/10] ARM: dts: stm32: add PWR fixed regulators on stm32mp131 Date: Fri, 14 Oct 2022 16:15:00 +0200 Message-ID: <20221014141509.211149-2-fabrice.gasnier@foss.st.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221014141509.211149-1-fabrice.gasnier@foss.st.com> References: <20221014141509.211149-1-fabrice.gasnier@foss.st.com> MIME-Version: 1.0 X-Originating-IP: [10.75.127.45] X-ClientProxiedBy: SFHDAG2NODE3.st.com (10.75.127.6) To SHFDAG1NODE2.st.com (10.75.129.70) X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.895,Hydra:6.0.545,FMLib:17.11.122.1 definitions=2022-10-14_08,2022-10-14_01,2022-06-22_01 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221014_071541_515999_A46D3942 X-CRM114-Status: GOOD ( 15.19 ) 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 Add 1v1, 1v8 and 3v3 PWR regulators on stm32mp131. Temporary add them as fixed regulators, waiting for full SCMI regulators support. This is a precursor patch to enable USB support on STM32MP13. Note: USB support requires these regulators to be enabled before entering kernel. Signed-off-by: Fabrice Gasnier --- arch/arm/boot/dts/stm32mp131.dtsi | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/arch/arm/boot/dts/stm32mp131.dtsi b/arch/arm/boot/dts/stm32mp131.dtsi index dd35a607073d..e0e0e27a9221 100644 --- a/arch/arm/boot/dts/stm32mp131.dtsi +++ b/arch/arm/boot/dts/stm32mp131.dtsi @@ -77,6 +77,28 @@ timer { always-on; }; + /* PWR 1v1, 1v8 and 3v3 regulators defined as fixed, waiting for SCMI */ + reg11: reg11 { + compatible = "regulator-fixed"; + regulator-name = "reg11"; + regulator-min-microvolt = <1100000>; + regulator-max-microvolt = <1100000>; + }; + + reg18: reg18 { + compatible = "regulator-fixed"; + regulator-name = "reg18"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + }; + + usb33: usb33 { + compatible = "regulator-fixed"; + regulator-name = "usb33"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + }; + soc { compatible = "simple-bus"; #address-cells = <1>; From patchwork Fri Oct 14 14:15:01 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabrice Gasnier X-Patchwork-Id: 13007047 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 78105C433FE for ; Fri, 14 Oct 2022 14:16:53 +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=UcpoIZnIWLBhBxtgjB7DMGQVBnLEovrba2rbQafmuu8=; b=bqkHX0mgmKjAjT j7ZlvqGO8UEuaAFZZsIxN2wrHCEr1cn23P8xzvnXUEkoPrEbZgLhbmVB5ta/zsmd2ZC2+Yg6ndqNz Dm7FxyyED99vxSKMe084qHa/fMi4Bu9/rzBRaW2S0ZdN9gTCQoh2WWxq3Fe/smGUVicyCsw25zVpK G+MnsWQq310zN2YkZk+8lao1CAcgbxnFp39tMzrT7vJAcSoHSKE/Aj0y0iB/dyChpp62NEZiQpMsQ anfPxX7iohII3hj35MiCCGalrW4ZYKo4APSu69e7D7tUwGyswbyFjFmpJtIdiy9urYeS+Qm1eCmk8 T+USdIs23jI1MBLPoKbw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1ojLTc-00Ewoo-1c; Fri, 14 Oct 2022 14:15:52 +0000 Received: from mx07-00178001.pphosted.com ([185.132.182.106]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1ojLTQ-00EwkM-IG for linux-arm-kernel@lists.infradead.org; Fri, 14 Oct 2022 14:15:42 +0000 Received: from pps.filterd (m0241204.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 29EB0nZs023247; Fri, 14 Oct 2022 16:15:35 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foss.st.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-transfer-encoding : content-type; s=selector1; bh=q0/OPFW5hO7+SZAXVi2/9OJBTnFnuvo2YL06oJLX+y8=; b=bXGczYNI1WDp2XxS41WkRhLDExA1mYVzDhVNTZ3sgfLLBVKnzWQQRXhoPXEafF5o5Pad XdQyIPO34oLKA/GgDjNnd2quQMQ3MrGndYI7j7GZLdhK5qLWmdxOk01P8XW4IlXkHyXR jyOV/0YQMu0RPChyfKuaATbnz+p9fBoXz9tGSrZ0HEqgI48gYpj0ncMFtIqv++EBoB4I LhVUrwMGlbhHvJh2B2k65ahX1K8PGtoXNHMrGG6CCoXrlaRv+bhz0bz8DLU5PeDyEA5I ENSFW1N3GizbVwpyZpjWGnlomKKt7PQI0+MZHwYx8aefgL6JjR+fmqzE7phXSz6xewnM VQ== Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com (PPS) with ESMTPS id 3k64m7x0ea-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 14 Oct 2022 16:15:35 +0200 Received: from euls16034.sgp.st.com (euls16034.sgp.st.com [10.75.44.20]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 3950710002A; Fri, 14 Oct 2022 16:15:31 +0200 (CEST) Received: from Webmail-eu.st.com (shfdag1node2.st.com [10.75.129.70]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id 347DA2309FB; Fri, 14 Oct 2022 16:15:31 +0200 (CEST) Received: from localhost (10.75.127.116) by SHFDAG1NODE2.st.com (10.75.129.70) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.1.2375.31; Fri, 14 Oct 2022 16:15:30 +0200 From: Fabrice Gasnier To: , , CC: , , , , , Subject: [PATCH v2 02/10] ARM: dts: stm32: add USBPHYC and dual USB HS PHY support on stm32mp131 Date: Fri, 14 Oct 2022 16:15:01 +0200 Message-ID: <20221014141509.211149-3-fabrice.gasnier@foss.st.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221014141509.211149-1-fabrice.gasnier@foss.st.com> References: <20221014141509.211149-1-fabrice.gasnier@foss.st.com> MIME-Version: 1.0 X-Originating-IP: [10.75.127.116] X-ClientProxiedBy: GPXDAG2NODE6.st.com (10.75.127.70) To SHFDAG1NODE2.st.com (10.75.129.70) X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.895,Hydra:6.0.545,FMLib:17.11.122.1 definitions=2022-10-14_08,2022-10-14_01,2022-06-22_01 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221014_071540_947911_896F93A9 X-CRM114-Status: GOOD ( 14.65 ) 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: Amelie Delaunay This patch adds support for USBPHYC and its two USB HS PHY on stm32mp131. Signed-off-by: Amelie Delaunay Signed-off-by: Fabrice Gasnier --- arch/arm/boot/dts/stm32mp131.dtsi | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/arch/arm/boot/dts/stm32mp131.dtsi b/arch/arm/boot/dts/stm32mp131.dtsi index e0e0e27a9221..cd31fdd47536 100644 --- a/arch/arm/boot/dts/stm32mp131.dtsi +++ b/arch/arm/boot/dts/stm32mp131.dtsi @@ -409,6 +409,29 @@ iwdg2: watchdog@5a002000 { status = "disabled"; }; + usbphyc: usbphyc@5a006000 { + #address-cells = <1>; + #size-cells = <0>; + #clock-cells = <0>; + compatible = "st,stm32mp1-usbphyc"; + reg = <0x5a006000 0x1000>; + clocks = <&rcc USBPHY_K>; + resets = <&rcc USBPHY_R>; + vdda1v1-supply = <®11>; + vdda1v8-supply = <®18>; + status = "disabled"; + + usbphyc_port0: usb-phy@0 { + #phy-cells = <0>; + reg = <0>; + }; + + usbphyc_port1: usb-phy@1 { + #phy-cells = <1>; + reg = <1>; + }; + }; + rtc: rtc@5c004000 { compatible = "st,stm32mp1-rtc"; reg = <0x5c004000 0x400>; From patchwork Fri Oct 14 14:15:02 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabrice Gasnier X-Patchwork-Id: 13007050 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 26D40C433FE for ; Fri, 14 Oct 2022 14:17:40 +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=9k2bdm2jyiMH1g0EpHrUN1/3fqzBD9Mn7/5GrwaYYJg=; b=rC/+fULAswEhX+ w4hNh/WujglfJkxp12apTVl9iOXSq0QcaUnS4K9wqA62lMKlP51tJ45DzdHk1Xe+x6vciHu8fxAGC ZisXB2zxS8JzxcbY3woXEf3pdEFXRsFdj+UH8KqDsunBhvnyxpZQmjaaotQ6TdgpzdMNRf15NdzSn oVzZeOPcpQ5hqYk1RM1gOsfYkzxlEhnu/Jcn8NFE9c3GFEUqRCWad/ov3eMPyt89ti7O6KNexwRlP E8rQgIjsUkru07ykhCz1I74SyrksUaL5mad8MIgqntBhZMl+3j30lu1QgiO24MRLeMivUJz49bGI/ jbarK3YwzHI/V7JL04kQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1ojLUE-00Ex55-F8; Fri, 14 Oct 2022 14:16:30 +0000 Received: from mx07-00178001.pphosted.com ([185.132.182.106]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1ojLTT-00Ewlf-Am for linux-arm-kernel@lists.infradead.org; Fri, 14 Oct 2022 14:15:45 +0000 Received: from pps.filterd (m0241204.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 29EAT6Cr022413; Fri, 14 Oct 2022 16:15:38 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foss.st.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-transfer-encoding : content-type; s=selector1; bh=mxweXw2S/nLFWXs2A+TfYBTOBTxk5wmtjeTIX6nQSWc=; b=w+89oKzJmuhc/iibXr4Kasp97Pl1r6jOrOfNHt5wvQ01ZqZqNsrX07XexAOhZ59zTEWB gA0cieLJjKVVzPEtpCgoYvGcf0l5u8Se5KRK4Jab4KVpDN3Qz7VRNG3MkWysxHv5lAXk NI/KTB/yBW3Nk6sex1MS6cp98Z0WzGdFp7ePDlsWunxB3/kETsIgR6ZZlIc8q0l7t/U0 P4fLr4CfC6wpE2fsUuXaMicnztj+5BYdlMS89/Qe2SW/ieCRifOg+TXQhjs381vwkuZS JX22UFg7b4lDHohlQucdWmWYqvnAyEW8A/ym4M/IIj6cuP2WWAlCYD35TBBFxwBuRTWZ bA== Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com (PPS) with ESMTPS id 3k64m7x0eu-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 14 Oct 2022 16:15:38 +0200 Received: from euls16034.sgp.st.com (euls16034.sgp.st.com [10.75.44.20]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 51748100039; Fri, 14 Oct 2022 16:15:34 +0200 (CEST) Received: from Webmail-eu.st.com (shfdag1node2.st.com [10.75.129.70]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id 4C853231500; Fri, 14 Oct 2022 16:15:34 +0200 (CEST) Received: from localhost (10.75.127.116) by SHFDAG1NODE2.st.com (10.75.129.70) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.1.2375.31; Fri, 14 Oct 2022 16:15:31 +0200 From: Fabrice Gasnier To: , , CC: , , , , , Subject: [PATCH v2 03/10] ARM: dts: stm32: add UBSH EHCI and OHCI support on stm32mp131 Date: Fri, 14 Oct 2022 16:15:02 +0200 Message-ID: <20221014141509.211149-4-fabrice.gasnier@foss.st.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221014141509.211149-1-fabrice.gasnier@foss.st.com> References: <20221014141509.211149-1-fabrice.gasnier@foss.st.com> MIME-Version: 1.0 X-Originating-IP: [10.75.127.116] X-ClientProxiedBy: GPXDAG2NODE6.st.com (10.75.127.70) To SHFDAG1NODE2.st.com (10.75.129.70) X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.895,Hydra:6.0.545,FMLib:17.11.122.1 definitions=2022-10-14_08,2022-10-14_01,2022-06-22_01 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221014_071543_694871_18B94EB1 X-CRM114-Status: GOOD ( 13.89 ) 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: Amelie Delaunay This patch adds USB Host EHCI and OHCI support on stm32mp131. Signed-off-by: Amelie Delaunay Signed-off-by: Fabrice Gasnier --- Changes in v2: adopt "usb" generic node names --- arch/arm/boot/dts/stm32mp131.dtsi | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/arch/arm/boot/dts/stm32mp131.dtsi b/arch/arm/boot/dts/stm32mp131.dtsi index cd31fdd47536..e6129e11660b 100644 --- a/arch/arm/boot/dts/stm32mp131.dtsi +++ b/arch/arm/boot/dts/stm32mp131.dtsi @@ -401,6 +401,25 @@ sdmmc2: mmc@58007000 { status = "disabled"; }; + usbh_ohci: usb@5800c000 { + compatible = "generic-ohci"; + reg = <0x5800c000 0x1000>; + clocks = <&usbphyc>, <&rcc USBH>; + resets = <&rcc USBH_R>; + interrupts = ; + status = "disabled"; + }; + + usbh_ehci: usb@5800d000 { + compatible = "generic-ehci"; + reg = <0x5800d000 0x1000>; + clocks = <&usbphyc>, <&rcc USBH>; + resets = <&rcc USBH_R>; + interrupts = ; + companion = <&usbh_ohci>; + status = "disabled"; + }; + iwdg2: watchdog@5a002000 { compatible = "st,stm32mp1-iwdg"; reg = <0x5a002000 0x400>; From patchwork Fri Oct 14 14:15:03 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabrice Gasnier X-Patchwork-Id: 13007049 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 C01CCC4332F for ; Fri, 14 Oct 2022 14:17:20 +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=ExJeBBj3GUtUuPrQfV4s6ij5RmCIjp+Se5mS4IWOn64=; b=ooGVwldA7htp8c E4z2Dde1Hdjx48FvP5H+xZxIt57gbQCi+davGjdbz3sCuuPdSVYoloDIEDBmPI+Gm4hw/Q9uI3QrW 4AwcipResL5OL84pTzkhCyQ+FXpYPH4dEm6vEjI2wx8tugJipvpf03lFk9X/C5DrcyINfKyKZ+sGO wyImpK3sbW1/GtvGYgImVnF/fIj5OlA04K+zBp0sPuPrRMEEhk193kTvJNE7fvAnJJXbA9g/TNsS5 qno3hQU7nMbdlG7YHgfPQfJuEItE7qMEVbCD0XPSE17CiZz0DcinyoZAPeZFvOj2mi/egVQqaqjEW Y2mluxIf6X2TPqgwVVFw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1ojLTy-00EwyD-Tz; Fri, 14 Oct 2022 14:16:15 +0000 Received: from mx07-00178001.pphosted.com ([185.132.182.106]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1ojLTS-00Ewkv-9U for linux-arm-kernel@lists.infradead.org; Fri, 14 Oct 2022 14:15:43 +0000 Received: from pps.filterd (m0241204.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 29EAN8AR021777; Fri, 14 Oct 2022 16:15:37 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foss.st.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-transfer-encoding : content-type; s=selector1; bh=yYGKU/sL0116cBPXYl1vTRYtoBoXWu/qm/iLLtCJlS0=; b=5wd2fFrDJRUqmO65a1KVPYs4UF/9Q+gcAm1U6pwuMbncbOR4uiNZC7ni7wIZ5dz+8Yon Qox/XfqeQGqeIgv8MrUw61BFciWmoLVQ0LfF6hnctcNLDTqXbm8GVfTfzKpxGhRvDm1O /KUsJ11CLaMT/NAr+8EPQ7yQvd/PB10wdauHNZiZ6M2i04yldKpl9fMYN9SVi4Zv0Av3 kzvFlbIqeun4heAXMwK8s0sQcHqw4vHFnW2YEDBXTid4R9r/CQ+hxbZCmrn5N+wHqKpH WQi+pzWdBNA20bOPvbny1W+VAJRXQ4P5Sxtxk25g9Fw0iyjJ+suY647RaVlCbR5pgwGZ DQ== Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com (PPS) with ESMTPS id 3k64m7x0ep-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 14 Oct 2022 16:15:37 +0200 Received: from euls16034.sgp.st.com (euls16034.sgp.st.com [10.75.44.20]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 53A63100038; Fri, 14 Oct 2022 16:15:33 +0200 (CEST) Received: from Webmail-eu.st.com (shfdag1node2.st.com [10.75.129.70]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id 4E6A5231500; Fri, 14 Oct 2022 16:15:33 +0200 (CEST) Received: from localhost (10.75.127.118) by SHFDAG1NODE2.st.com (10.75.129.70) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.1.2375.31; Fri, 14 Oct 2022 16:15:32 +0200 From: Fabrice Gasnier To: , , CC: , , , , , Subject: [PATCH v2 04/10] ARM: dts: stm32: add USB OTG HS support on stm32mp131 Date: Fri, 14 Oct 2022 16:15:03 +0200 Message-ID: <20221014141509.211149-5-fabrice.gasnier@foss.st.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221014141509.211149-1-fabrice.gasnier@foss.st.com> References: <20221014141509.211149-1-fabrice.gasnier@foss.st.com> MIME-Version: 1.0 X-Originating-IP: [10.75.127.118] X-ClientProxiedBy: GPXDAG2NODE4.st.com (10.75.127.68) To SHFDAG1NODE2.st.com (10.75.129.70) X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.895,Hydra:6.0.545,FMLib:17.11.122.1 definitions=2022-10-14_08,2022-10-14_01,2022-06-22_01 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221014_071542_645618_34547F66 X-CRM114-Status: GOOD ( 13.80 ) 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: Amelie Delaunay This patch adds USB OTG HS support on stm32mp131. Signed-off-by: Amelie Delaunay Signed-off-by: Fabrice Gasnier --- Changes in v2: adopt "usb" generic node name --- arch/arm/boot/dts/stm32mp131.dtsi | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/arch/arm/boot/dts/stm32mp131.dtsi b/arch/arm/boot/dts/stm32mp131.dtsi index e6129e11660b..6cf930d7721a 100644 --- a/arch/arm/boot/dts/stm32mp131.dtsi +++ b/arch/arm/boot/dts/stm32mp131.dtsi @@ -253,6 +253,23 @@ dmamux1: dma-router@48002000 { dma-channels = <16>; }; + usbotg_hs: usb@49000000 { + compatible = "st,stm32mp15-hsotg", "snps,dwc2"; + reg = <0x49000000 0x40000>; + clocks = <&rcc USBO_K>; + clock-names = "otg"; + resets = <&rcc USBO_R>; + reset-names = "dwc2"; + interrupts = ; + g-rx-fifo-size = <512>; + g-np-tx-fifo-size = <32>; + g-tx-fifo-size = <256 16 16 16 16 16 16 16>; + dr_mode = "otg"; + otg-rev = <0x200>; + usb33d-supply = <&usb33>; + status = "disabled"; + }; + spi4: spi@4c002000 { compatible = "st,stm32h7-spi"; reg = <0x4c002000 0x400>; From patchwork Fri Oct 14 14:15:04 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabrice Gasnier X-Patchwork-Id: 13007053 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 2AD1FC433FE for ; Fri, 14 Oct 2022 14:19:03 +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=qDeQkfH2AEFOUoqRqUInrCasBd3oRgI4YRlyzJemOeo=; b=lU2/kX0OMeOMyk VCqQvK4BqRffEdEReHfN14jZEIV6aq2/XOQrpKij586pEPSWH0G/W7nC5+u9IHElhgOptLLKTAy7c juEgG0MLvXH8jYuw2QpStnCJR/feVghSgasfaI/kSSPueFsYdJzwkd1atI8xZckc6qFBrwm5r9u4m 59RkhZCgcWBvqWwFV5Qm/uExmMSKhQFSCXMS2tIv9ynQpMqiBGEbr5KeszeiWD1ewermzuGFN5zpJ qHBMuxe8xbCKhYjff9tHqyeoOTI2LyE5GILMjmlRnoD9e6nR3dc9RYqLvOUg4v2MbCgPsmVuMOHPK l25mWqW3FOzldehT+xgw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1ojLVY-00Exnl-Kj; Fri, 14 Oct 2022 14:17:53 +0000 Received: from mx08-00178001.pphosted.com ([91.207.212.93] helo=mx07-00178001.pphosted.com) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1ojLUf-00ExIY-IV for linux-arm-kernel@lists.infradead.org; Fri, 14 Oct 2022 14:16:59 +0000 Received: from pps.filterd (m0046661.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 29EAjBIK030839; Fri, 14 Oct 2022 16:16:50 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foss.st.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-transfer-encoding : content-type; s=selector1; bh=WFGDOZoUQlIydYpRD35dhWAM/wewEIYHMtXwngxlfBI=; b=KlQpMyEX/CnJCJ0at1L9Xbx8CUC1xsmQM+KyHXOkwzFHoTd/bpiKcLzcQ1avgBeqxLVv BZi5f1UR4Vt+3HUYjvbL01IdIr3MNjyZI2+V9YBPFzmJ6dSKt35oQpaBUiUPu1D95VGn oeYVf+pul9mvozTmLm/prKkv3WD0oRxfpr03p3KkAFzH/IQr6nLGYDAtJmuvrWaOdg39 GxD3TpgG6VFfO1S4p7FGNnajBvU5sPCbxCbQt2V1eEDzmoPORN0K3pCw2FeazqCzMLWZ hYHtQ6bkP/hdHrtslXrYefoDxIhLL7tpYaLCtqHwUj7xKHvZa6aoWbJA2vH9RbBpZvZD 7g== Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com (PPS) with ESMTPS id 3k769qsb60-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 14 Oct 2022 16:16:50 +0200 Received: from euls16034.sgp.st.com (euls16034.sgp.st.com [10.75.44.20]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 50718100038; Fri, 14 Oct 2022 16:16:46 +0200 (CEST) Received: from Webmail-eu.st.com (shfdag1node2.st.com [10.75.129.70]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id 4C2D3231505; Fri, 14 Oct 2022 16:16:46 +0200 (CEST) Received: from localhost (10.75.127.119) by SHFDAG1NODE2.st.com (10.75.129.70) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.1.2375.31; Fri, 14 Oct 2022 16:16:43 +0200 From: Fabrice Gasnier To: , , CC: , , , , , Subject: [PATCH v2 05/10] ARM: dts: stm32: add fixed regulators to support usb on stm32mp135f-dk Date: Fri, 14 Oct 2022 16:15:04 +0200 Message-ID: <20221014141509.211149-6-fabrice.gasnier@foss.st.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221014141509.211149-1-fabrice.gasnier@foss.st.com> References: <20221014141509.211149-1-fabrice.gasnier@foss.st.com> MIME-Version: 1.0 X-Originating-IP: [10.75.127.119] X-ClientProxiedBy: GPXDAG2NODE6.st.com (10.75.127.70) To SHFDAG1NODE2.st.com (10.75.129.70) X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.895,Hydra:6.0.545,FMLib:17.11.122.1 definitions=2022-10-14_08,2022-10-14_01,2022-06-22_01 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221014_071657_935847_B26FE944 X-CRM114-Status: GOOD ( 14.61 ) 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 Add VDD_USB and 3V3_SW regulators on stm32mp135f-dk. Temporary add them as fixed regulators, waiting for full SCMI regulators support. This is a precursor patch to enable USB support on STM32MP13: - VDD_USB supplies the STM32MP13 USB internals - 3V3_SW supplies various peripherals, including the onboard HUB. Note: USB support requires these regulators to be enabled before entering the kernel. Signed-off-by: Fabrice Gasnier --- arch/arm/boot/dts/stm32mp135f-dk.dts | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/arch/arm/boot/dts/stm32mp135f-dk.dts b/arch/arm/boot/dts/stm32mp135f-dk.dts index de341d17e87d..291f05a958fd 100644 --- a/arch/arm/boot/dts/stm32mp135f-dk.dts +++ b/arch/arm/boot/dts/stm32mp135f-dk.dts @@ -66,6 +66,22 @@ vdd_sd: vdd-sd { regulator-max-microvolt = <2900000>; regulator-always-on; }; + + vdd_usb: vdd-usb { + compatible = "regulator-fixed"; + regulator-name = "vdd_usb"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + regulator-always-on; + }; + + v3v3_sw: v3v3-sw { + compatible = "regulator-fixed"; + regulator-name = "v3v3_sw"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + regulator-always-on; + }; }; &i2c1 { From patchwork Fri Oct 14 14:15:05 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabrice Gasnier X-Patchwork-Id: 13007054 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 99D9EC4332F for ; Fri, 14 Oct 2022 14:19:26 +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=gYGeUNGGM0p/mIE61ApLZxz9almkCDsHVXf9Domk75k=; b=d6mS4b6Dz3XkL6 m0pbykKswo4RozIHepBMofokVaAomB6uB1BNykIvGtTJcRH3ISAz56Ospt5WgKBEecTJo3c++OA11 SlH/tbVrBTMURjqFE7PVDfOgSmlcfvDrhPbZkNSBUcgjCVWI8kuLZSwmMMQ4bf91MtgKyxBFY+6Lb XCEZeuJH1bA/LLlxcmjRqopO3MV/DBbgwmHot/559nQIHAqfvHoPQBmaZ0hl7zzhyVkmRgLGS6gtY dMno6bQiZZwGbdw2TC1wQdpqBuhlqY3C9tAp91tjTVro296V+w+7nQzyL3gg9MFjs7rcn3ibSrUHv 0W1eS93WoU2xKhlIUBzQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1ojLW0-00Ey0l-Nf; Fri, 14 Oct 2022 14:18:21 +0000 Received: from mx08-00178001.pphosted.com ([91.207.212.93] helo=mx07-00178001.pphosted.com) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1ojLUf-00ExIE-IT for linux-arm-kernel@lists.infradead.org; Fri, 14 Oct 2022 14:16:59 +0000 Received: from pps.filterd (m0046661.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 29EAjEqT030849; Fri, 14 Oct 2022 16:16:50 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foss.st.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-transfer-encoding : content-type; s=selector1; bh=VxRBgimP26JpPfojcnUGD1RWSdCB/e3xLalPvah99dU=; b=ufAhqHD5xXxV8jD8vaFeksi/f4zzF6qyNyzYgRM/Qk8EItgGo7mO7K3WkViawZAfySwI G1bjjeoQDQR7H2e7vucTTOsv7wluxjmK+dzftlkDWvrHTv450UZwtkcTQEzVDr/+dfhv nM2dIWhJuv34oCqy0AemXZRVaJNSWOuI0JOmUCJXm4LBbTu18DEPOiVt9ONNY/zJcifw sup+NbajEe9MbW+SNT350Qvv/iOEhzLnNa9LfW9OFsz0CpvskeRONC+P5wWARKohULcf PGYA7F57XXDFmr/l6HD7vfMF+ZlCtjjQhuE1eEuzfGVr5Ngz9GzCo8mTXrl2WxWtNCUq Cg== Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com (PPS) with ESMTPS id 3k769qsb5v-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 14 Oct 2022 16:16:50 +0200 Received: from euls16034.sgp.st.com (euls16034.sgp.st.com [10.75.44.20]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 58F83100034; Fri, 14 Oct 2022 16:16:45 +0200 (CEST) Received: from Webmail-eu.st.com (shfdag1node2.st.com [10.75.129.70]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id 53E2B231505; Fri, 14 Oct 2022 16:16:45 +0200 (CEST) Received: from localhost (10.75.127.45) by SHFDAG1NODE2.st.com (10.75.129.70) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.1.2375.31; Fri, 14 Oct 2022 16:16:44 +0200 From: Fabrice Gasnier To: , , CC: , , , , , Subject: [PATCH v2 06/10] ARM: dts: stm32: enable USB HS phys on stm32mp135f-dk Date: Fri, 14 Oct 2022 16:15:05 +0200 Message-ID: <20221014141509.211149-7-fabrice.gasnier@foss.st.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221014141509.211149-1-fabrice.gasnier@foss.st.com> References: <20221014141509.211149-1-fabrice.gasnier@foss.st.com> MIME-Version: 1.0 X-Originating-IP: [10.75.127.45] X-ClientProxiedBy: SFHDAG2NODE3.st.com (10.75.127.6) To SHFDAG1NODE2.st.com (10.75.129.70) X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.895,Hydra:6.0.545,FMLib:17.11.122.1 definitions=2022-10-14_08,2022-10-14_01,2022-06-22_01 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221014_071657_954613_4B008AD3 X-CRM114-Status: GOOD ( 14.15 ) 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: Amelie Delaunay USBPHYC manages the two USB High-Speed phys. port0 is used by USBH and port1 is used by USBOTG. Enable and tune both PHYs on stm32mp135f-dk. Signed-off-by: Amelie Delaunay Signed-off-by: Fabrice Gasnier --- arch/arm/boot/dts/stm32mp135f-dk.dts | 32 ++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/arch/arm/boot/dts/stm32mp135f-dk.dts b/arch/arm/boot/dts/stm32mp135f-dk.dts index 291f05a958fd..af87fb36eabc 100644 --- a/arch/arm/boot/dts/stm32mp135f-dk.dts +++ b/arch/arm/boot/dts/stm32mp135f-dk.dts @@ -144,3 +144,35 @@ &uart4 { pinctrl-0 = <&uart4_pins_a>; status = "okay"; }; + +&usbphyc { + status = "okay"; +}; + +&usbphyc_port0 { + phy-supply = <&vdd_usb>; + st,current-boost-microamp = <1000>; + st,decrease-hs-slew-rate; + st,tune-hs-dc-level = <2>; + st,enable-hs-rftime-reduction; + st,trim-hs-current = <11>; + st,trim-hs-impedance = <2>; + st,tune-squelch-level = <1>; + st,enable-hs-rx-gain-eq; + st,no-hs-ftime-ctrl; + st,no-lsfs-sc; +}; + +&usbphyc_port1 { + phy-supply = <&vdd_usb>; + st,current-boost-microamp = <1000>; + st,decrease-hs-slew-rate; + st,tune-hs-dc-level = <2>; + st,enable-hs-rftime-reduction; + st,trim-hs-current = <11>; + st,trim-hs-impedance = <2>; + st,tune-squelch-level = <1>; + st,enable-hs-rx-gain-eq; + st,no-hs-ftime-ctrl; + st,no-lsfs-sc; +}; From patchwork Fri Oct 14 14:15:06 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabrice Gasnier X-Patchwork-Id: 13007051 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 C42C3C433FE for ; Fri, 14 Oct 2022 14:18:07 +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=X5Ig9Bls5y3O+pwr+D4ZBGjPJjb9sWwSd7CDDfHzp5g=; b=gCfGDjES9Q2Vd+ 64Nn3WuDeoVXNDFtAluRAdbVoUpoXahXpP6aUHdRC/xbTdCtuyuk0EItYUZnq8Aij9aRLj3K2dx7Z y4+vIgk5NTPLRqhvpkRD+fwUSnXEcaPPxIoq07rG6H0kUAp1wUbDC3c9iOlwIC469flWOU5Ee/U/5 C4Vk5RdOlXttFAfxq6hYyGnrXZqcZCxhpu5j6wPJEA1t8jk7BwmfxqB+hmcVMc9YMy/ptrVbbOV40 L+S6t+ZryCImiuGHDNcWkpBcahP4TqTDvsrQY42uM/azBB74F+Zzy9Sfs+eprfMlx52yzuimgb6e4 1HNZAFqLEqrO9epRBvLw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1ojLUl-00ExMp-HE; Fri, 14 Oct 2022 14:17:03 +0000 Received: from mx07-00178001.pphosted.com ([185.132.182.106]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1ojLUe-00ExIr-F4 for linux-arm-kernel@lists.infradead.org; Fri, 14 Oct 2022 14:16:58 +0000 Received: from pps.filterd (m0241204.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 29EAT6D5022413; Fri, 14 Oct 2022 16:16:50 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foss.st.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-transfer-encoding : content-type; s=selector1; bh=QJkdlha7hhplN6y54cwgCZoQ4JVyU6BQmPtqvBb5nxg=; b=w/Zlx9wvgAvn9tfLA9jmagZU8Vf3rquxUt94eUCxQyg/39mt933HI4m1BP+wYQcQJ1bb 2qSFDgy0Di/fGdaS4/OOak7Pr66hXTEuRoFtTbYSO4RngfmQbK/f3nOxOjwVx3XTaHxj cwBUOUX3BVc1jpkdlSaNBoe17LLBQ1rH5GLcxYFnwuFR2Ra1z+cJDfdooV4GCf5VexKI UxCoTvvg1T2E6BSeKiBkSHIx9fo5AOBNFWEiP3ftK/p2QtNCkLWfyCP81RcBll/CInvK +To9cVA2TxJJp7PexB8zpNJPIfopzet7FXmCnQZb/D9W0obk/MYHB6bLVC3niN2PiFqk EA== Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com (PPS) with ESMTPS id 3k64m7x0s0-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 14 Oct 2022 16:16:50 +0200 Received: from euls16034.sgp.st.com (euls16034.sgp.st.com [10.75.44.20]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id B472D10002A; Fri, 14 Oct 2022 16:16:45 +0200 (CEST) Received: from Webmail-eu.st.com (shfdag1node2.st.com [10.75.129.70]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id B072F231505; Fri, 14 Oct 2022 16:16:45 +0200 (CEST) Received: from localhost (10.75.127.118) by SHFDAG1NODE2.st.com (10.75.129.70) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.1.2375.31; Fri, 14 Oct 2022 16:16:45 +0200 From: Fabrice Gasnier To: , , CC: , , , , , Subject: [PATCH v2 07/10] ARM: dts: stm32: enable USB Host EHCI on stm32mp135f-dk Date: Fri, 14 Oct 2022 16:15:06 +0200 Message-ID: <20221014141509.211149-8-fabrice.gasnier@foss.st.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221014141509.211149-1-fabrice.gasnier@foss.st.com> References: <20221014141509.211149-1-fabrice.gasnier@foss.st.com> MIME-Version: 1.0 X-Originating-IP: [10.75.127.118] X-ClientProxiedBy: GPXDAG2NODE4.st.com (10.75.127.68) To SHFDAG1NODE2.st.com (10.75.129.70) X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.895,Hydra:6.0.545,FMLib:17.11.122.1 definitions=2022-10-14_08,2022-10-14_01,2022-06-22_01 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221014_071656_826280_2F222953 X-CRM114-Status: GOOD ( 15.18 ) 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: Amelie Delaunay USBH Host EHCI controller manages the USB High-Speed hub controller IC offering Type-A CN5 & CN6 connectors available on stm32mp135f-dk. USB Host OHCI controller doesn't need to be enabled as Full-Speed and Low-Speed traffic will be managed by the hub. This USB2514B onboard hub is supplied by a 3v3 PMIC regulator. Signed-off-by: Amelie Delaunay Signed-off-by: Fabrice Gasnier --- arch/arm/boot/dts/stm32mp135f-dk.dts | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/arch/arm/boot/dts/stm32mp135f-dk.dts b/arch/arm/boot/dts/stm32mp135f-dk.dts index af87fb36eabc..02ff2bc664da 100644 --- a/arch/arm/boot/dts/stm32mp135f-dk.dts +++ b/arch/arm/boot/dts/stm32mp135f-dk.dts @@ -145,6 +145,19 @@ &uart4 { status = "okay"; }; +&usbh_ehci { + phys = <&usbphyc_port0>; + status = "okay"; + #address-cells = <1>; + #size-cells = <0>; + /* onboard HUB */ + hub@1 { + compatible = "usb424,2514"; + reg = <1>; + vdd-supply = <&v3v3_sw>; + }; +}; + &usbphyc { status = "okay"; }; From patchwork Fri Oct 14 14:15:07 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabrice Gasnier X-Patchwork-Id: 13007052 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 82BBCC433FE for ; Fri, 14 Oct 2022 14:18:34 +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=/tHNMav8W1VJEJCwXgztFzMNUJNYpNSB+eHYlt3eusQ=; b=gR1CEj4tFoip5u J70hE90yMMMVYgUR2Y3RGaeVfPi7KdTVkMIxl/4zbgH++Wh+7ieivt7KSte6Y/0hnRhge9tlge456 kPKR/bWwAz5E7oChuNU/iLRr/eR4emOPnU1ykR0kKpaBedeAlfqwB51nx+2bj7PWafBQ7f7eIYoqG GrvsQYM67Byt+YPBZ6Sd7Lfhs97CvUwWCMVYdURLKCtqECtziaONMqcsFaxcXY7AeqsdPqm9IYM1p t3OhIJbgDDq77jzQheQNTP3bbZ9DVt3OjNR1eDc7xjqGih4o8ff/DZF8K9YTyg+OzGSh+ol2lOdov Hd1lfR88/++iE60DovNA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1ojLVC-00Excn-I7; Fri, 14 Oct 2022 14:17:30 +0000 Received: from mx08-00178001.pphosted.com ([91.207.212.93] helo=mx07-00178001.pphosted.com) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1ojLUf-00ExJm-Km for linux-arm-kernel@lists.infradead.org; Fri, 14 Oct 2022 14:16:59 +0000 Received: from pps.filterd (m0046661.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 29EAjEqV030849; Fri, 14 Oct 2022 16:16:53 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foss.st.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-transfer-encoding : content-type; s=selector1; bh=2se13OJgjqc6mstx1UlgNzGBVKCreXyw+niB7+v7+Tg=; b=mPBEmnZ2ZNISZzs2LaF8LbMOa4Ut9Q9telUalyTWdaZu2mBJDiWCNkum1pQ+tV9JWfCB Arc/zTF0g94RPey9rvrJS31fuFdfh4xpTp4FXGeIyRsX7IHulNWtisJq4zjDEnC69+u8 3vD6Map8MvFQGnZEo4RlFZlg0VN1/Fu1vQtSHPVEkjvrR/k1wWOMWspjm5IH0u2ca2bh 8a5ZHRpEzJm02bJEjaHuK7QAU9IduvriHsPXsWaSIsDtERQt98Sl2+r2YpVMKACDEFhU 7KMuwIIEeFE3XoHbUTO6GX2h0XuWKURV6ba3SvG9rP7ECeGI/3sdKj9IdTa5Yb0Yb3bx YA== Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com (PPS) with ESMTPS id 3k769qsb6a-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 14 Oct 2022 16:16:53 +0200 Received: from euls16034.sgp.st.com (euls16034.sgp.st.com [10.75.44.20]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id BC0F4100039; Fri, 14 Oct 2022 16:16:48 +0200 (CEST) Received: from Webmail-eu.st.com (shfdag1node2.st.com [10.75.129.70]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id B759E231505; Fri, 14 Oct 2022 16:16:48 +0200 (CEST) Received: from localhost (10.75.127.117) by SHFDAG1NODE2.st.com (10.75.129.70) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.1.2375.31; Fri, 14 Oct 2022 16:16:46 +0200 From: Fabrice Gasnier To: , , CC: , , , , , Subject: [PATCH v2 08/10] ARM: dts: stm32: add pins for stm32g0 typec controller on stm32mp13 Date: Fri, 14 Oct 2022 16:15:07 +0200 Message-ID: <20221014141509.211149-9-fabrice.gasnier@foss.st.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221014141509.211149-1-fabrice.gasnier@foss.st.com> References: <20221014141509.211149-1-fabrice.gasnier@foss.st.com> MIME-Version: 1.0 X-Originating-IP: [10.75.127.117] X-ClientProxiedBy: GPXDAG2NODE4.st.com (10.75.127.68) To SHFDAG1NODE2.st.com (10.75.129.70) X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.895,Hydra:6.0.545,FMLib:17.11.122.1 definitions=2022-10-14_08,2022-10-14_01,2022-06-22_01 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221014_071658_005452_31BDB028 X-CRM114-Status: GOOD ( 14.16 ) 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 Add gpio pin configuration to be used with stm32g0 typec controller. Define the PI2 to enable internal pull-up on stm32mp13, used as interrupt pin on stm32mp135f-dk board. Signed-off-by: Fabrice Gasnier --- arch/arm/boot/dts/stm32mp13-pinctrl.dtsi | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/arch/arm/boot/dts/stm32mp13-pinctrl.dtsi b/arch/arm/boot/dts/stm32mp13-pinctrl.dtsi index efdd163eba30..5c85c9fc583c 100644 --- a/arch/arm/boot/dts/stm32mp13-pinctrl.dtsi +++ b/arch/arm/boot/dts/stm32mp13-pinctrl.dtsi @@ -165,6 +165,13 @@ pins { }; }; + stm32g0_intn_pins_a: stm32g0-intn-0 { + pins { + pinmux = ; + bias-pull-up; + }; + }; + uart4_pins_a: uart4-0 { pins1 { pinmux = ; /* UART4_TX */ From patchwork Fri Oct 14 14:15:08 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabrice Gasnier X-Patchwork-Id: 13007055 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 BBAC6C433FE for ; Fri, 14 Oct 2022 14:19:59 +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=xoH7R4tAsYFwrWaoe550pncgpRXVr59b351wELL9VQM=; b=sWY3RqIIcLjF33 vvX8hGSfArvVaRqtSM0hlZ4/c5U3HZYsWy6jYKyUX1I4NmjmEaFscXoKi0LwEycjQm21DeJh1fwdk HNsbqTm1p2dFbAWYVMvjrZTZ06e7eS2P7UiZZj3EBS1izecOixkEgnd7F3MNULdYe9xIKUwR3HzFo MGillLRdr+AoFUnJY3kYSQ8BilpQrkFBHors8/cbxbxSPSeTal7X5LxowwfCQihSOKY8S4jgWx1xz NLZfatsgUVX2rRZvmJFFk48sB4hmaUUB9/dEFKxEkP45PzCAMD191jQ2seD7JQhd5ip8rGMYZ2X+6 oT44l06vpjU15DRnRoZA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1ojLWS-00EyD3-MV; Fri, 14 Oct 2022 14:18:49 +0000 Received: from mx08-00178001.pphosted.com ([91.207.212.93] helo=mx07-00178001.pphosted.com) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1ojLUi-00ExM2-GD for linux-arm-kernel@lists.infradead.org; Fri, 14 Oct 2022 14:17:02 +0000 Received: from pps.filterd (m0046660.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 29EBBwfs019805; Fri, 14 Oct 2022 16:16:55 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foss.st.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-transfer-encoding : content-type; s=selector1; bh=38jsmKZyCQx5HcAiDEChsb7RscCtBxm2gGkUNsDi/Qw=; b=YSdHEDFs++Po2rL7E3Fd0nDdgcayNJNSLIC/ZNfFnZbm6qt6zvCrhZ9W+oE3mU+4YOS0 OMWXPWv8CfQkb3BGrVHyjuUk1aR8Vi9pDHKCoDrRegE8TTgTNmtfRu7ED8eRQoioPdl9 XY5XncrjdfQHkbCEHnbQy+GeaFYvjifCuDJ8jmhxRItrQ0i8YbCtZUJhHHsBpgDO/vg9 bH3S3lDqCWkU9uovA0Wu4+pLVfGVDbFQjbeamWAarzvvKPnoNVJHawbvvAkIDbRqxNva 4DWrEWHqTJm60PMp5bukUPt3KaqhhmxUY+wi9X9ATGKDUYM6THwFejvy6lZ9DsiasYit xA== Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com (PPS) with ESMTPS id 3k5v4n9g7c-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 14 Oct 2022 16:16:55 +0200 Received: from euls16034.sgp.st.com (euls16034.sgp.st.com [10.75.44.20]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 5693410002A; Fri, 14 Oct 2022 16:16:51 +0200 (CEST) Received: from Webmail-eu.st.com (shfdag1node2.st.com [10.75.129.70]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id 51F8E231505; Fri, 14 Oct 2022 16:16:51 +0200 (CEST) Received: from localhost (10.75.127.45) by SHFDAG1NODE2.st.com (10.75.129.70) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.1.2375.31; Fri, 14 Oct 2022 16:16:50 +0200 From: Fabrice Gasnier To: , , CC: , , , , , Subject: [PATCH v2 09/10] ARM: dts: stm32: enable USB OTG in dual role mode on stm32mp135f-dk Date: Fri, 14 Oct 2022 16:15:08 +0200 Message-ID: <20221014141509.211149-10-fabrice.gasnier@foss.st.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221014141509.211149-1-fabrice.gasnier@foss.st.com> References: <20221014141509.211149-1-fabrice.gasnier@foss.st.com> MIME-Version: 1.0 X-Originating-IP: [10.75.127.45] X-ClientProxiedBy: SFHDAG2NODE3.st.com (10.75.127.6) To SHFDAG1NODE2.st.com (10.75.129.70) X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.895,Hydra:6.0.545,FMLib:17.11.122.1 definitions=2022-10-14_08,2022-10-14_01,2022-06-22_01 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221014_071700_894069_8D35092B X-CRM114-Status: GOOD ( 15.68 ) 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 The USB OTG controller provides the USB data available on stm32mp135f-dk, on the Type-C connector. Data role is determined by "usb-role-switch". A STM32G0 provides the USB Type-C and Power Delivery connectivity. It controls dual role power and dual role data through UCSI protocol over I2C. It's wired on I2C1, with an interrupt pin on PI2 GPIO. Its firmware maybe updated over I2C, so use the optional firmware-name to enable firmware update. Signed-off-by: Amelie Delaunay Signed-off-by: Fabrice Gasnier --- Changes in v2: adopt "typec" generic node name --- arch/arm/boot/dts/stm32mp135f-dk.dts | 34 ++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/arch/arm/boot/dts/stm32mp135f-dk.dts b/arch/arm/boot/dts/stm32mp135f-dk.dts index 02ff2bc664da..b8a4f1a8820d 100644 --- a/arch/arm/boot/dts/stm32mp135f-dk.dts +++ b/arch/arm/boot/dts/stm32mp135f-dk.dts @@ -95,6 +95,28 @@ &i2c1 { /* spare dmas for other usage */ /delete-property/dmas; /delete-property/dma-names; + + typec@53 { + compatible = "st,stm32g0-typec"; + reg = <0x53>; + /* Alert pin on PI2 */ + interrupts = <2 IRQ_TYPE_EDGE_FALLING>; + interrupt-parent = <&gpioi>; + /* Internal pull-up on PI2 */ + pinctrl-names = "default"; + pinctrl-0 = <&stm32g0_intn_pins_a>; + firmware-name = "stm32g0-ucsi.mp135f-dk.fw"; + connector { + compatible = "usb-c-connector"; + label = "USB-C"; + + port { + con_usb_c_g0_ep: endpoint { + remote-endpoint = <&usbotg_hs_ep>; + }; + }; + }; + }; }; &i2c5 { @@ -158,6 +180,18 @@ hub@1 { }; }; +&usbotg_hs { + phys = <&usbphyc_port1 0>; + phy-names = "usb2-phy"; + usb-role-switch; + status = "okay"; + port { + usbotg_hs_ep: endpoint { + remote-endpoint = <&con_usb_c_g0_ep>; + }; + }; +}; + &usbphyc { status = "okay"; }; From patchwork Fri Oct 14 14:15:09 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabrice Gasnier X-Patchwork-Id: 13007056 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 6B78AC433FE for ; Fri, 14 Oct 2022 14:22:03 +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=d8B9urovdPWa3MQDtGyuX4HItjMpg310bljZrCUKvpQ=; b=UtOekTkdZsYyYF MEtLoZWmjvVArYi+HWbAkyH095s3TQ7rgKSx4RGPBeMS8AY8ILJmdJgX5jBUjIeVs5nY1JGw0pXsi dhXpjSQcMsMh7DFfhmld8xb2mzTRK91LEwlZyIkrBD///25SkoCOzZmgCxrZ3IQelWxwHDhJMsH4s u1EormqTnEeZ0uVuTbu0nkLnpxZu17GkySz4llxSzGbavHpPyQ+gRPdo4HNmVFACyGR4XpSGe0j6N F2FdmJgQlz3GJKzIrmfe8vh+soRRKPqOf2OaZAGPj99Pfg7awVOOcfLD8BLgvgjaZ6C7wURbxyXma u4FIZch6a1RIvGrtzaGQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1ojLYQ-00Ez8I-94; Fri, 14 Oct 2022 14:20:51 +0000 Received: from mx08-00178001.pphosted.com ([91.207.212.93] helo=mx07-00178001.pphosted.com) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1ojLVs-00ExxW-MD for linux-arm-kernel@lists.infradead.org; Fri, 14 Oct 2022 14:18:14 +0000 Received: from pps.filterd (m0046660.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 29EAotjZ019789; Fri, 14 Oct 2022 16:18:06 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foss.st.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-transfer-encoding : content-type; s=selector1; bh=Aii0wEtTzYyeG8wgGH0XuNz7wBYepHeOofFIh/pfnuU=; b=1Ek0m2Zjhu0BDgg4o5NY0WfPXpLxuDUcxn8mM3eSrM5JxPOVo99Rq0lmd1oPaSLhEY9x gDz0+oLHdeRVnSPrSwFQbiABDlf2xK0nP5roaiiaDLx8vqguaMEfSIfUbkhmc453VYjb wVzB2uErf+qdWzox3ORoDCw2Q6nEbpR6yk3dYLJQy8545XAuY5H1mvlEPQoV2G2o4ka4 NbjRKNILrs6XgLAWVOCVcGb7AHjn9Gs0aWCTJQ5oavXnfNJUBL6rTWBdv0193pAnrwnT caUdlrkokgvPHy7QPOxl34V0xBLkt6Gg27YdxPIqlLAs9SHUCEjpuiGKKs4pjCTC9biO 9w== Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com (PPS) with ESMTPS id 3k5v4n9ggx-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 14 Oct 2022 16:18:06 +0200 Received: from euls16034.sgp.st.com (euls16034.sgp.st.com [10.75.44.20]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id D2EA7100038; Fri, 14 Oct 2022 16:18:01 +0200 (CEST) Received: from Webmail-eu.st.com (shfdag1node2.st.com [10.75.129.70]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id CE76B23150B; Fri, 14 Oct 2022 16:18:01 +0200 (CEST) Received: from localhost (10.75.127.44) by SHFDAG1NODE2.st.com (10.75.129.70) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.1.2375.31; Fri, 14 Oct 2022 16:18:01 +0200 From: Fabrice Gasnier To: , , CC: , , , , , Subject: [PATCH v2 10/10] ARM: multi_v7_defconfig: enable Type-C UCSI and STM32G0 as modules Date: Fri, 14 Oct 2022 16:15:09 +0200 Message-ID: <20221014141509.211149-11-fabrice.gasnier@foss.st.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221014141509.211149-1-fabrice.gasnier@foss.st.com> References: <20221014141509.211149-1-fabrice.gasnier@foss.st.com> MIME-Version: 1.0 X-Originating-IP: [10.75.127.44] X-ClientProxiedBy: SFHDAG2NODE3.st.com (10.75.127.6) To SHFDAG1NODE2.st.com (10.75.129.70) X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.895,Hydra:6.0.545,FMLib:17.11.122.1 definitions=2022-10-14_08,2022-10-14_01,2022-06-22_01 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221014_071813_100109_BE751CC9 X-CRM114-Status: GOOD ( 13.14 ) 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 Enable the USB Type-C UCSI, and the STM32G0 UCSI drivers as modules, since used on STM32MP13 board. Signed-off-by: Fabrice Gasnier --- arch/arm/configs/multi_v7_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/configs/multi_v7_defconfig b/arch/arm/configs/multi_v7_defconfig index 12b35008571f..d391f8216eea 100644 --- a/arch/arm/configs/multi_v7_defconfig +++ b/arch/arm/configs/multi_v7_defconfig @@ -899,6 +899,8 @@ CONFIG_USB_CONFIGFS_F_UVC=y CONFIG_USB_CONFIGFS_F_PRINTER=y CONFIG_USB_ETH=m CONFIG_TYPEC=m +CONFIG_TYPEC_UCSI=m +CONFIG_UCSI_STM32G0=m CONFIG_TYPEC_STUSB160X=m CONFIG_MMC=y CONFIG_MMC_BLOCK_MINORS=16