From patchwork Fri Oct 14 09:26:42 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabrice Gasnier X-Patchwork-Id: 2614 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4ac7:0:0:0:0:0 with SMTP id y7csp83886wrs; Fri, 14 Oct 2022 02:31:29 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6Cssu5F7Vuv6ILqfLYfLlCSk5ZpnPHTVQaxvpear4wREHQ+uaKmvysmm2YpiVp+ir/L67/ X-Received: by 2002:aa7:d744:0:b0:45c:e353:e891 with SMTP id a4-20020aa7d744000000b0045ce353e891mr3541278eds.36.1665739888761; Fri, 14 Oct 2022 02:31:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665739888; cv=none; d=google.com; s=arc-20160816; b=EIGl1A9zkoqv58yHjC0nugug2jeU6/qCNjsZJyYDfd1l78GxB8xD59l2IBnbVkfzGe RoCF2hileRULbbAIEdlEAVDIU+31mX+1his6QSWVoVj1LKCY97trpaDw1aTE7P+e9iby x/NZUSBSWUBS8xm7jbzExXJA8CyaR1YD+Xpg+k15MdIL+r+WIsMRJxt7sZ9gpUmXd3ux kVIrLnsRolSezmG8qrrwCqT40lMUn25VNV9XeE8aoKX+0isO9pqlI4P1nJxpkO5D24mI Ns5GIO2KpCfrNG8kIRVwZY9wH6TTdFxKjP9povH6ZQ4gplBEn5eH9yO+x0mtydbmh7E0 IqVg== 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 :dkim-signature; bh=fGvz6oql+K0UHWPbNDcQlT4m0Yenf1lBjmyoVUBkJPU=; b=e18I4fc0ddAhSPdW9P/gs7dO51ojZnkfJem+HUua5BMDGLLxZVGwNBy/q6mwDUPLxe IScCPEjThI1Hyfgerqb3XhvCFQ5BXodofvrkeenu7YS//SF084O4lcBQGz8KJGnrWg3+ 0+6VUnvpHgI8qNGQw0G0ljJyTxamC9yHvCL36vA9qVV9RMWbKtPE1CJBnFD2ncVqEvpR wxEqLRqv5hmgRblEToPOdvllKD5+Fn+YWMabSu94bEaU7klOYTGpGYF1GPb7YUSV7ky3 eC9OuHwroH2fimM64jMI3oa8CNo860O+PfLvB+nKwa8bq0gJH9wVJX/Z7m9VkC6CeuLk X6Lg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@foss.st.com header.s=selector1 header.b=cYpHqlk8; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=foss.st.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i13-20020a1709064fcd00b00780def41dc4si2066828ejw.527.2022.10.14.02.31.02; Fri, 14 Oct 2022 02:31:28 -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; dkim=pass header.i=@foss.st.com header.s=selector1 header.b=cYpHqlk8; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=foss.st.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229678AbiJNJ2L (ORCPT + 99 others); Fri, 14 Oct 2022 05:28:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51686 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230110AbiJNJ2E (ORCPT ); Fri, 14 Oct 2022 05:28:04 -0400 Received: from mx07-00178001.pphosted.com (mx08-00178001.pphosted.com [91.207.212.93]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5AB721C5A76; Fri, 14 Oct 2022 02:27:56 -0700 (PDT) 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 29E8cV8f008909; Fri, 14 Oct 2022 11:27: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=fGvz6oql+K0UHWPbNDcQlT4m0Yenf1lBjmyoVUBkJPU=; b=cYpHqlk8HxGxMTQF8jFnQJgLQMHuVgx9v6j7XcF0Cbmg/wzMYcnHMoJEHhq+o0NXWgNh mxE4/xDD0gWdx3llGW0emqMKZ7SY29CXBmbDSmZL4/tPbSRn2mTfPVIaUsTAfSqBwABn LlKkFlRdPyyjpVe80LbsLbSAqelCHLMBbCFuuj/Ym2FLWrN94ivy+kgcpR62Bf08QpIR VgpQjBeeVfgiFOBn2ii625iiXUTDuqkgKTOK1KygwKhz12s5bIaXNq6kC0R2qHXT1lc8 qLWiYQ8bEu5Fn6McveuG5f31fmK/q3dYcS4AzR7Px2QEjHNDkviG7KDHXoIQmeGWK1je Cw== 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 3k6h7v7gdq-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 14 Oct 2022 11:27: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 82273100034; Fri, 14 Oct 2022 11:27:32 +0200 (CEST) Received: from Webmail-eu.st.com (shfdag1node2.st.com [10.75.129.70]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id 7B75221A904; Fri, 14 Oct 2022 11:27:32 +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 11:27:31 +0200 From: Fabrice Gasnier To: , , CC: , , , , , Subject: [PATCH 01/10] ARM: dts: stm32: add PWR fixed regulators on stm32mp131 Date: Fri, 14 Oct 2022 11:26:42 +0200 Message-ID: <20221014092651.25202-2-fabrice.gasnier@foss.st.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221014092651.25202-1-fabrice.gasnier@foss.st.com> References: <20221014092651.25202-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_05,2022-10-13_01,2022-06-22_01 X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE,SPF_PASS 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1746654869528853913?= X-GMAIL-MSGID: =?utf-8?q?1746654869528853913?= 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 09:26:43 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabrice Gasnier X-Patchwork-Id: 2617 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4ac7:0:0:0:0:0 with SMTP id y7csp84587wrs; Fri, 14 Oct 2022 02:33:46 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7AvrfdBSg859Di0RoNgA7HIXJkKTj6wEobdHh8zMLDC9+hRCQ9Xv5UPeH5wcfmFkil79n3 X-Received: by 2002:a17:907:7627:b0:78d:b6f5:9f15 with SMTP id jy7-20020a170907762700b0078db6f59f15mr2936670ejc.149.1665740026081; Fri, 14 Oct 2022 02:33:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665740026; cv=none; d=google.com; s=arc-20160816; b=rPgN9l1DF1Jqzsr7jJ8/rP/657IjdtShQwvKhqyF2mc0ppuLLYccgLbHXJ/HUognrk QxHLe9/1DiqDMMYzlCAoPTKMgN7jYmP5QZEMThCZ9iwNZuG5Y8wrO/gcWelGrjd/oqFR xtAYpYcP7/f2v3FYzQlRenvMiHhcbzpcG88vW7vJW50b8K7WE8oZwWaFvx706IW/TIAf 8XJdL4vMFzXgbm1E2h17obF/CS9B0GSg/FPtqmeMXQyiF58es7kTb5p8hNa+miaR/Zkh GpjK1jhBy6DLABiVXQwlngp3hD+DsLgDQlXiMpL1G2mdJBk5gfWkEoddvrW0Ip3Eplej lDsA== 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 :dkim-signature; bh=q0/OPFW5hO7+SZAXVi2/9OJBTnFnuvo2YL06oJLX+y8=; b=hbKc2CF2nouXcisY9fC1IK7nxrCBeWKK6wNRXtBWXaF681njdac545evrEjrQOnNSa LGgA7BNYBTQODgqh0o5TsArfEMorhTK3g4BrVV9UwpWESvsqR2lxnAitdbF5XDEadDMM y2yC6PaKPmv3umwblIdi62i4pV8SBgGjv3cWgSm1VzcW1d7Y9E/eG8AaBKdM3tjFmGFu Lv1VE+HcZeYBXBU5MUNq4h7R9vgTHN5bC0CLGaPO8ADlMIEY9pQlngo9n6FHik+BZbod i9f6DPQKEUR4L5pqCYVMZuOXxe26qO1OvpO9jVexDNzHqTQgivsLHdtjxm4FWLIxdZFm r+4w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@foss.st.com header.s=selector1 header.b="Q/tqyT/a"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=foss.st.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id dy12-20020a05640231ec00b004585c0fe21csi1696950edb.536.2022.10.14.02.33.17; Fri, 14 Oct 2022 02:33:46 -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; dkim=pass header.i=@foss.st.com header.s=selector1 header.b="Q/tqyT/a"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=foss.st.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230124AbiJNJ2O (ORCPT + 99 others); Fri, 14 Oct 2022 05:28:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51600 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229887AbiJNJ2E (ORCPT ); Fri, 14 Oct 2022 05:28:04 -0400 Received: from mx07-00178001.pphosted.com (mx08-00178001.pphosted.com [91.207.212.93]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5A1351C5A63; Fri, 14 Oct 2022 02:27:55 -0700 (PDT) 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 29E8kGsL008745; Fri, 14 Oct 2022 11:27:40 +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=Q/tqyT/aO7EdVq/i5F0dJZAbQqtbNcnzX1QG95Ou1Uz9z8ggimYD27bOs8U5ZeStPndH gnLxQvN2PSgNztwc9p+wj4Lnj+9FHtmlfEQwmmE/OGMQu8H74mqJEKxfCWZZ7s+NfNbG 5LpI90Rr1gbT0MCIDY59Fm/yq8jqgzuyBUVX5kYHLFV6MKIJCSgb/1z3xpeIgtH0LXGc 4RB6ggzcXJ11WN2XNx/fXYtAWuryXI0qPqPeWN5X950PLFG4TdDww/3ZQzK1e/YBFGIZ ruaz+jhqIHS5iOqoyZq/ZYBGFCGCzKTfcltjn2ze3c6+3BtQ39xwqBWPfjO2Zp71gG0h wg== 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 3k6h7v7ge2-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 14 Oct 2022 11:27:40 +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 EFE8D10002A; Fri, 14 Oct 2022 11:27:35 +0200 (CEST) Received: from Webmail-eu.st.com (shfdag1node2.st.com [10.75.129.70]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id E7E0021A905; Fri, 14 Oct 2022 11:27:35 +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 11:27:32 +0200 From: Fabrice Gasnier To: , , CC: , , , , , Subject: [PATCH 02/10] ARM: dts: stm32: add USBPHYC and dual USB HS PHY support on stm32mp131 Date: Fri, 14 Oct 2022 11:26:43 +0200 Message-ID: <20221014092651.25202-3-fabrice.gasnier@foss.st.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221014092651.25202-1-fabrice.gasnier@foss.st.com> References: <20221014092651.25202-1-fabrice.gasnier@foss.st.com> MIME-Version: 1.0 X-Originating-IP: [10.75.127.116] 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_05,2022-10-13_01,2022-06-22_01 X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE,SPF_PASS 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1746655013518684449?= X-GMAIL-MSGID: =?utf-8?q?1746655013518684449?= 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 09:26:44 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabrice Gasnier X-Patchwork-Id: 2613 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4ac7:0:0:0:0:0 with SMTP id y7csp83851wrs; Fri, 14 Oct 2022 02:31:22 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4MvSh2HyAD5LVQgqM5QX6VJykEgWNcxPfPdjs0CIgRqZlz3j1bZGVGt+1ALt2Ed2w8PSfg X-Received: by 2002:a17:907:84a:b0:733:735:2b1a with SMTP id ww10-20020a170907084a00b0073307352b1amr2895192ejb.290.1665739882468; Fri, 14 Oct 2022 02:31:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665739882; cv=none; d=google.com; s=arc-20160816; b=OXYqRb5YRdKYyTe3Pp9mDoq6PKFny0DQtTwz3IlaS/zAOuHfjWepE6xOT6i6puukVP Wy46Z1FdWYDITO37/loGtSwI1c8+xxN8r2b2RBTduU9W7YxymHIC694fuQ6BI5lonmpy Y9Yz2FJbc49BXzIZCJCGsZdTRWj1OI2y3kf7oQviakD5KQKKBGw/JRYSi8IA/J1AJxU0 PHEWS/l8DkXAjrAfQj6nGrYIeN5ZSEkICeXtAYRL7AGWqqWMCBkSkuxXY+4RINjJu6+5 t44TMj2oVh9rmDKn4FaFAUa9vI45xDxYcFHy2OI13C/gIAAY0oaVynSszzxOxp+Jsy1C 1BCg== 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 :dkim-signature; bh=T5r2FFUxBBVg6TRFNA3HIos1qfshtk5Fp5rI7BDN1vI=; b=0aNTF/amqciu4Si77chGqN1LQtvbAx8M50AdCAmaknGtZF+RR3cKGhMI2g6rMiiKoG BzrZujgps/ALOuUGq9JCTt2hF9Lo0UhrgiTMpePt8Kh24ngxiQtxNWRuJ0/XIeuH3qIm zpG6Qjh9tLIkJikPTgAu8ZW0ZdaAjljTt69UsDxwRj9gaW2JNR3L1+IrdZdxumKOLhNc jA6tATtY0Uy0A5zRg9CWMdPgPTYnR9X2/Bzsi1pbxsaWfyuPm97q3MiDpE7QxjsYjUIj 204emnF0A3VUS9PN8Z7XP1XA14lMbtt92g0UJUSQkOvkH4NdSZKL5d35fFPQWUQ0G4mD LeuQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@foss.st.com header.s=selector1 header.b=2EoCpXfY; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=foss.st.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id qb7-20020a1709077e8700b007721f88d3e0si2055057ejc.554.2022.10.14.02.30.54; Fri, 14 Oct 2022 02:31:22 -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; dkim=pass header.i=@foss.st.com header.s=selector1 header.b=2EoCpXfY; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=foss.st.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230077AbiJNJ2A (ORCPT + 99 others); Fri, 14 Oct 2022 05:28:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51280 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230024AbiJNJ1w (ORCPT ); Fri, 14 Oct 2022 05:27:52 -0400 Received: from mx07-00178001.pphosted.com (mx07-00178001.pphosted.com [185.132.182.106]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D2A7532EDF; Fri, 14 Oct 2022 02:27:50 -0700 (PDT) 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 29E71KAR020632; Fri, 14 Oct 2022 11:27:41 +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=T5r2FFUxBBVg6TRFNA3HIos1qfshtk5Fp5rI7BDN1vI=; b=2EoCpXfYW8tionaEjFXpHg91LeJJSGn4xe8IMJve7E+k5qQ3B75D5/8TOwfLAg+wt+nX ypbKZ1yHH86qyom1faQSsvH5RVMo4p8ijDLt4lyep7P13tWRl4YpQcNP3uSSewuBB9ki PJSqChHc5ti9d8Oh4SXEPO0zl2G+ZzpDYOHrZiZaa0pRtktWdPBEbUHaPXoLL95vmTR5 Rfne1W+eNwqX25ZxrLPP5oXiNk/qLQgdorUX7129lWub4x7HWedpR/R34B/WMXrRqkBC cM+oyeqasEsrSlyb8mU/YhNgE1MbSjgWS9+Vl1GkR7D8IyVnTDn5hbBJP5jHJMDSO+yA sQ== 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 3k31ey8uxt-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 14 Oct 2022 11:27:41 +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 3CC1F100038; Fri, 14 Oct 2022 11:27:35 +0200 (CEST) Received: from Webmail-eu.st.com (shfdag1node2.st.com [10.75.129.70]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id 3648D21A905; Fri, 14 Oct 2022 11:27:35 +0200 (CEST) Received: from localhost (10.75.127.47) 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 11:27:34 +0200 From: Fabrice Gasnier To: , , CC: , , , , , Subject: [PATCH 03/10] ARM: dts: stm32: add UBSH EHCI and OHCI support on stm32mp131 Date: Fri, 14 Oct 2022 11:26:44 +0200 Message-ID: <20221014092651.25202-4-fabrice.gasnier@foss.st.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221014092651.25202-1-fabrice.gasnier@foss.st.com> References: <20221014092651.25202-1-fabrice.gasnier@foss.st.com> MIME-Version: 1.0 X-Originating-IP: [10.75.127.47] 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_05,2022-10-13_01,2022-06-22_01 X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE,SPF_PASS 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1746654862843857193?= X-GMAIL-MSGID: =?utf-8?q?1746654862843857193?= From: Amelie Delaunay This patch adds USB Host EHCI and OHCI support on stm32mp131. Signed-off-by: Amelie Delaunay Signed-off-by: Fabrice Gasnier --- 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..b372786d2a64 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: usbh-ohci@5800c000 { + compatible = "generic-ohci"; + reg = <0x5800c000 0x1000>; + clocks = <&usbphyc>, <&rcc USBH>; + resets = <&rcc USBH_R>; + interrupts = ; + status = "disabled"; + }; + + usbh_ehci: usbh-ehci@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 09:26:45 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabrice Gasnier X-Patchwork-Id: 2612 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4ac7:0:0:0:0:0 with SMTP id y7csp83784wrs; Fri, 14 Oct 2022 02:31:11 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4ekalpU/wq/bZR2J+0MjPYgg49quTwPJYwExewCA14oCZKfQ1lQ+zM/o2MwHyZ+OSJX0x0 X-Received: by 2002:a17:906:5dd8:b0:78d:efa7:f78d with SMTP id p24-20020a1709065dd800b0078defa7f78dmr2880427ejv.641.1665739871046; Fri, 14 Oct 2022 02:31:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665739871; cv=none; d=google.com; s=arc-20160816; b=RLHZRX5unDKioYp5oCcfjSbaN0lzjPECSAWh1ude7VAzzhYgY4iaELjDsJ/UBAuHRY CuD7BgV/PpWWf1ZKN/1pFo/Pot7DQcn9j73rNNKNeakuDy2fJOP+mzq7czlOw7Yzv7Ya iL1l/zbokw/3g8NsSEkE+zzfSen27CS722MGvYG7ZhZ0B5op1Cb7scsdvqE5ZF4e6O8d OZWfz3lz0BDBFbIi4DH+RWoAqaOA+aTaS5CvUIIfV8nR+P9NjgIjAdwg0tYa2tVSWt3S lnOlTWdF1d5qlUTppanMdQ6kaGIBTxBxBjdCQMVWPVjpewYzhEPY5H1BOEwiSNiIFruW VUJQ== 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 :dkim-signature; bh=2vAqR5mwmg8XA7MDfzEemJ8BpuktwQ7b6KLI9V02qP0=; b=j59f40r4rPRTpP4CCoyxd4EzjPNq5DrOLgdhqCMShhvtwoHn0GdDFNu4jDnFHjOoqc 9PDnkWpUPNmUvfHzpRS229MCColeHnRRekI6BzqFb7vBr5ADzO/nQbi1ZqbG98eWV/IX yq7HmKIM910iVZIx5E2++3yMbUG++Nk7cpVYnkMpBaCtEHBXDDUTVujnIZi7CtvAddZ4 rcCWTE3VV7hIr9p9F+Z4Ybi8hQwgUWbkGG8r+sscjZQ7MV8NUDx7WE/44YfteNTLQf96 KYtI+sWNDj0oXa88T7xPSfqGHOvBSbE28KEBnZuBClTjEzySpl8sbPUjR4QsLt0MT37r iLow== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@foss.st.com header.s=selector1 header.b=oN4BGdAH; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=foss.st.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i15-20020a50d74f000000b00458264c2df2si1859687edj.164.2022.10.14.02.30.45; Fri, 14 Oct 2022 02:31:11 -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; dkim=pass header.i=@foss.st.com header.s=selector1 header.b=oN4BGdAH; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=foss.st.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229968AbiJNJ14 (ORCPT + 99 others); Fri, 14 Oct 2022 05:27:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51228 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230020AbiJNJ1t (ORCPT ); Fri, 14 Oct 2022 05:27:49 -0400 Received: from mx07-00178001.pphosted.com (mx07-00178001.pphosted.com [185.132.182.106]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7D9A51BFB86; Fri, 14 Oct 2022 02:27:48 -0700 (PDT) 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 29E6W6NX023233; Fri, 14 Oct 2022 11:27:40 +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=2vAqR5mwmg8XA7MDfzEemJ8BpuktwQ7b6KLI9V02qP0=; b=oN4BGdAHuMDskX3VpITFng7Oyi9aisVfYeRG2EYabRf281VbjndJBCv8Zqb/I82DsHfe MFxIAOoEGsRcax5JqUpxa/WUrZ+5JeGO4GU1JFePL+YfxC/uIg+l45Nsg63itXVnmBfc lxJAO6AkR0moJCFWRHQpdy6YafzulYLBUkOrpmpGft3zSBeDoxl9Wi+hGX3LGBJ0q2iE s4JNrTx9gWMu0JU8h23EluXu64cnH1h11sZKk5TnyFa3iXxE4WFIPAZGNXhPJYnTnSlN M1CBDolLo0scZovEYV8Ha2KxnTEH5KPiDjaXqW+aoGaH9lrAJjkDKRGHxKzm0123uNd+ sw== 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 3k64m7v4g4-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 14 Oct 2022 11:27:40 +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 E8700100039; Fri, 14 Oct 2022 11:27:36 +0200 (CEST) Received: from Webmail-eu.st.com (shfdag1node2.st.com [10.75.129.70]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id E34F721A905; Fri, 14 Oct 2022 11:27:36 +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 11:27:36 +0200 From: Fabrice Gasnier To: , , CC: , , , , , Subject: [PATCH 04/10] ARM: dts: stm32: add USB OTG HS support on stm32mp131 Date: Fri, 14 Oct 2022 11:26:45 +0200 Message-ID: <20221014092651.25202-5-fabrice.gasnier@foss.st.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221014092651.25202-1-fabrice.gasnier@foss.st.com> References: <20221014092651.25202-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_05,2022-10-13_01,2022-06-22_01 X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE,SPF_PASS 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1746654851094723159?= X-GMAIL-MSGID: =?utf-8?q?1746654851094723159?= From: Amelie Delaunay This patch adds USB OTG HS support on stm32mp131. Signed-off-by: Amelie Delaunay Signed-off-by: Fabrice Gasnier --- 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 b372786d2a64..517c3fc3fb40 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-otg@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 09:26:46 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabrice Gasnier X-Patchwork-Id: 2615 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4ac7:0:0:0:0:0 with SMTP id y7csp84312wrs; Fri, 14 Oct 2022 02:32:56 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7/hkOmNCIbVPXLPaoJTNkwxC8Y09O+z12LlIwG+256nEExGuPAxqWs42hg3iaL40hNlmkB X-Received: by 2002:a17:906:ee8e:b0:730:4a24:f311 with SMTP id wt14-20020a170906ee8e00b007304a24f311mr2990147ejb.420.1665739976340; Fri, 14 Oct 2022 02:32:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665739976; cv=none; d=google.com; s=arc-20160816; b=uHaMd+C75Jfracqtzr7k/EsCXfjFmNodUM2q+WqY+D/+u2YwCfpz6PL7UhPmZOMas7 7dJP8oR1ABg0eDW1k1WwKmZb70Z+oGv8ZGQRukJvCWd+H7umEEMADhkWbU1VGXExClxQ 325njZQgd47LcfIaPFOGAwO0kOoey+jV6/33q03pktCToK8qgb50YVEouoTqlxcMtOUt 3304VCwweok8vWrb5XUYHuSWSY17BmFCCbFqZlVD8H9rIwOGrXGT1SL5jxftg4Z3KtJs LeTfAr4tRBL7gRK57nGc6c1uklmRwbxEEa8gl64hiU278n2X2ctZaR6xBdX+uICnmrMx +gbA== 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 :dkim-signature; bh=WFGDOZoUQlIydYpRD35dhWAM/wewEIYHMtXwngxlfBI=; b=tpR5aQHfTGFWjggrQE6rWLqG3+KBV3NaFxmTI6nuJPw1NBvMVKcyQTCAcR27QsnuiC nhI+9nrzvEy/3P/F3W6jw4kbql8JMVmJYPAAB7nDdyA6COUmLdeZcuFljtPJuWi0Dsyu HwW/af7Z8EbVJCnkSkEwkctljQt909cdElQelgA5R1eYYE+gdc4hI3C6rv7AwbDA+TTd VHy0OocPDLp0nzWf6ZISLaTSKYb9VW/3bope7vMlNqMQgy5F453+mcAvbO0e35YV8l+U 9D43sG3eHNWn+ChVziXkACmUcBEF+WnU6byfEJiWbNrJElh08mLQ96LcsYu/2+TjuwJu W1QA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@foss.st.com header.s=selector1 header.b=0lXIjq+M; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=foss.st.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ul5-20020a170907ca8500b0073cd848ae8asi1716639ejc.321.2022.10.14.02.32.28; Fri, 14 Oct 2022 02:32:56 -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; dkim=pass header.i=@foss.st.com header.s=selector1 header.b=0lXIjq+M; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=foss.st.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229973AbiJNJ3S (ORCPT + 99 others); Fri, 14 Oct 2022 05:29:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52452 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229892AbiJNJ3N (ORCPT ); Fri, 14 Oct 2022 05:29:13 -0400 Received: from mx07-00178001.pphosted.com (mx08-00178001.pphosted.com [91.207.212.93]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2B6AD1C69C8; Fri, 14 Oct 2022 02:29:07 -0700 (PDT) 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 29E8RvOQ008870; Fri, 14 Oct 2022 11:28:57 +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=0lXIjq+MDUnvhr6XJG1GMNa1iU/ZR0GdIAKp4mXZpHRdtTlqXvGasbjmg3stoeH3afqn i5EiuKXDuOIYODO6/t/IsSNl5ZbHCiyqTT2aMSssVBa6yHnOeV8SZHKn5z7AuyxGXcFh C8aGhY2Zuia8l8NM99LVGkENY//RWoYPcWal/lSCmGkWVXPgkTgzvUeoG+Vn9BE/MQvA Gh8xpFOas7orHj9r7mombBw9xFFUEWDIwYj4Yw+D6d0UiXrma/dxefY0eiZ1pPGsZAcE urZRhgSjg9QONStHBs0+qCvAnx3NgURctaxsq2cGC617G4muhpieR3MNC/T8Tp1p3Y2X Mw== 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 3k6h7v7gsk-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 14 Oct 2022 11:28:57 +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 B7CCE10002A; Fri, 14 Oct 2022 11:28:52 +0200 (CEST) Received: from Webmail-eu.st.com (shfdag1node2.st.com [10.75.129.70]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id B2AB521A904; Fri, 14 Oct 2022 11:28:52 +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 11:28:49 +0200 From: Fabrice Gasnier To: , , CC: , , , , , Subject: [PATCH 05/10] ARM: dts: stm32: add fixed regulators to support usb on stm32mp135f-dk Date: Fri, 14 Oct 2022 11:26:46 +0200 Message-ID: <20221014092651.25202-6-fabrice.gasnier@foss.st.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221014092651.25202-1-fabrice.gasnier@foss.st.com> References: <20221014092651.25202-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_05,2022-10-13_01,2022-06-22_01 X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE,SPF_PASS 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1746654961354685889?= X-GMAIL-MSGID: =?utf-8?q?1746654961354685889?= 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 09:26:47 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabrice Gasnier X-Patchwork-Id: 2616 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4ac7:0:0:0:0:0 with SMTP id y7csp84328wrs; Fri, 14 Oct 2022 02:33:00 -0700 (PDT) X-Google-Smtp-Source: AMsMyM68GOcyIp9xaL4A4d/Bu0VfJthTv+4v4VNDvIrKNWG2sSuIBZGeMeSBDToY6P5md7z4ApWc X-Received: by 2002:a17:907:a044:b0:78d:9180:125c with SMTP id gz4-20020a170907a04400b0078d9180125cmr2825877ejc.247.1665739980081; Fri, 14 Oct 2022 02:33:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665739980; cv=none; d=google.com; s=arc-20160816; b=ZAPsj45xcETpSCLdsaqh0tNjgxrsI7IwPgkiCdNP7V5SyYKOVMygdJj3cCgRD1lXA8 Dn37tts8C6iSGKWYSrGu4oCVB6UUfoqgKw734mmCieMlJpmsO5QWHa0aTfBInk5typh9 SEHgpXccG6DyuzdVPWFv1/h/wMz4/HZe2e7llsgF503XEJUU9BJ1vBp5l9ctkeDqkEXY ghZj78FF44inlicNESAfozXRCVTQ4SvbMaRp5127ZluUGL6xIw+tmtMRUt6FEVJVTOqx a8EYHuDwTd2OLbiC0bUHBDnRqG1FKgSg8vKv5t9sKprNkoklyKFZa5UnAjb5R+qLxEQe UQpQ== 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 :dkim-signature; bh=VxRBgimP26JpPfojcnUGD1RWSdCB/e3xLalPvah99dU=; b=bILZrYS+FiCuahcuBss+ufmxuL9AuhP8wYqDS7c30oA6iby0HBGNhdFGX2/J0/W5b9 JIxHaf6p0UPjZZ6cKdTlDir42PfiSr6dTzUCn5pZ55RbJOiFIiriB504ji7220scAvBT n4qSJwHXpjW4haYBk5Znq1e9CrHCir41uU2v2GedcDaxSwE/JnOHE2A/JzkIrneTduRw J0kk4bCQIjdgc41KS8n8IoJrXlUg4SMC0zyk6oAYeCglmaTdoXh0JywSfvAU/cvHcHsH zmS5bL6vEph88QTZyZmVlIaiWXfudUgo5aF3cwLtwTiTrW+4NfqrLQdIG+uYWoxa4Rar gY/w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@foss.st.com header.s=selector1 header.b="fWW/WAYp"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=foss.st.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f20-20020a0564021e9400b0045cecdc1fbcsi2266887edf.9.2022.10.14.02.32.31; Fri, 14 Oct 2022 02:33:00 -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; dkim=pass header.i=@foss.st.com header.s=selector1 header.b="fWW/WAYp"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=foss.st.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229755AbiJNJ3X (ORCPT + 99 others); Fri, 14 Oct 2022 05:29:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52994 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229614AbiJNJ3O (ORCPT ); Fri, 14 Oct 2022 05:29:14 -0400 Received: from mx07-00178001.pphosted.com (mx08-00178001.pphosted.com [91.207.212.93]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 485231C5A66; Fri, 14 Oct 2022 02:29:11 -0700 (PDT) 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 29E75PjY019894; Fri, 14 Oct 2022 11:28:59 +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=fWW/WAYpFqeXWGSB1//gnfGAK6IvgJhhU2nVigoxlgqw6sSl206XTd2B9R4QwMVpaE+a F30pKSyZcZn7Z6pBT4AQxQQbO18kp4JXK177NXtFhLLZPCaeys3vHF76lG63FsTkj4j9 +yFvLwXgqEh70axC0F8oc2mwfK5upH4SXITgPo9v2EofpB/IHmamk/3BQXtfTTJAAWS/ r+w5lWnubsZ5ryjVtcRJt2ymslPlN/sFlEfvkHT3XEyKQjn6GpdenFicSqeR3L3BKTKo /72dmWSEay2LcaJGdgX8d1f887b+LbapGcCA1wtKsDObK/Pbg8gOE/6bjE5NxZGtfsL/ Rw== 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 3k5v4n7kgt-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 14 Oct 2022 11:28:59 +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 68026100039; Fri, 14 Oct 2022 11:28:55 +0200 (CEST) Received: from Webmail-eu.st.com (shfdag1node2.st.com [10.75.129.70]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id 6198321A904; Fri, 14 Oct 2022 11:28:55 +0200 (CEST) Received: from localhost (10.75.127.47) 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 11:28:52 +0200 From: Fabrice Gasnier To: , , CC: , , , , , Subject: [PATCH 06/10] ARM: dts: stm32: enable USB HS phys on stm32mp135f-dk Date: Fri, 14 Oct 2022 11:26:47 +0200 Message-ID: <20221014092651.25202-7-fabrice.gasnier@foss.st.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221014092651.25202-1-fabrice.gasnier@foss.st.com> References: <20221014092651.25202-1-fabrice.gasnier@foss.st.com> MIME-Version: 1.0 X-Originating-IP: [10.75.127.47] 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_05,2022-10-13_01,2022-06-22_01 X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE,SPF_PASS 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1746654965468081440?= X-GMAIL-MSGID: =?utf-8?q?1746654965468081440?= 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 09:26:48 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabrice Gasnier X-Patchwork-Id: 2618 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4ac7:0:0:0:0:0 with SMTP id y7csp84591wrs; Fri, 14 Oct 2022 02:33:46 -0700 (PDT) X-Google-Smtp-Source: AMsMyM66PhABldJcgRBuDOgcpPwfm/P6Qi55gVF99cTxgZ/MrYt61UI4aKjTKPX/bMKoaW2ePTdK X-Received: by 2002:a17:907:1ca2:b0:78d:ec49:9c2f with SMTP id nb34-20020a1709071ca200b0078dec499c2fmr2793586ejc.308.1665740026344; Fri, 14 Oct 2022 02:33:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665740026; cv=none; d=google.com; s=arc-20160816; b=qDXIVTw91MNg1/i78xzLuHRN5x0q2oPaEDUsyzv1bf8QVsLqsc3pwZKpQoC7H1LaQc 8iWVdFp/b4MnjWQg26MY4tl0OWigeL00reGwBfIGXjjP87xEq+JiG0ekYYQg5ybagg2p DOoNeylTa3LsUHIR+jryw+FsCuPnwM8l08ET3gZy6/9Ydk0p1/zAohn9WRjt8tC+XLj4 B7krR5eIVSducfeBglGK9zmvD7Ikc2KBL16GEp47PCEinoiDTRv3EbhHOmZysaP7538e NoRnxQU97NyNbDF23yJ3n15P/gPMyLPXdT5z0CM9CnxTlDkVD2K+V9sS253/Gnj8vQNs A2EQ== 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 :dkim-signature; bh=QJkdlha7hhplN6y54cwgCZoQ4JVyU6BQmPtqvBb5nxg=; b=m6PvckskScnka2YHxMhxejBoPwmYIsDUxEP7AbAMGvbmGYG98Tu+XTeB8AiILekbTf Pb9k9QvseMRU+EtFn308qg9xcPXuzRat3eQCGzy42Vh8L4Q+3YkFoF5xon3z+tkAyMKN utXNZo16iazRimkJe09C0Ziz+VwjuubsxgmymM584EW4OBgMkMDJYySYuVf28nQG4eDo 2xLix88Z1fPyEHmgGgKNvtvMEyDUFA6GOTCwthW7kxg7tRCmkGOe75pktG9Gkpn7g0Un axd8oylz+DhnHVoZ/rWZj4hDcFv+OcJFBp2C21dfcIfRXrkBIOqHd1yXdwVfgBMBLfgX hOeA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@foss.st.com header.s=selector1 header.b=xwa1gqhy; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=foss.st.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id dn17-20020a17090794d100b0078e16203457si1455587ejc.5.2022.10.14.02.33.18; Fri, 14 Oct 2022 02:33:46 -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; dkim=pass header.i=@foss.st.com header.s=selector1 header.b=xwa1gqhy; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=foss.st.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230063AbiJNJ32 (ORCPT + 99 others); Fri, 14 Oct 2022 05:29:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54204 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229700AbiJNJ3U (ORCPT ); Fri, 14 Oct 2022 05:29:20 -0400 Received: from mx07-00178001.pphosted.com (mx08-00178001.pphosted.com [91.207.212.93]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D128F1C5A5F; Fri, 14 Oct 2022 02:29:14 -0700 (PDT) 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 29E8cV98008909; Fri, 14 Oct 2022 11:29:04 +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=xwa1gqhy7Kk33JnzpoPn/KfujLiN38L7VlvGFC4qjpFyp8Tov86Am3dWXHNSJvvW1bce r9Tz+sYtum+ijxl0ZeEt0q8vJ5Zz19hqRrypvY92JqETNi2pv0var4GqikMaMWHSMUbo 4+foQCJQq1HKhLJQEnN+lrnYE3qpehK0+lfvxjaS8aMXaMNnSQPLpf+Ck34DLHldr/sP MBXDs7j/pkC45OB9hFQJdTXtxVzGg3xA8bS+D39NcyCxVkXv65m70nswIO8OFJO2qHSb iQofXktvdDRhtwJ5XFWJ+eXIDFM4Srk6diwwG5yY/LfxRauIqR5WHtyJd7DpLnXGPhLj nA== 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 3k6h7v7gt9-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 14 Oct 2022 11:29:04 +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 3118510002A; Fri, 14 Oct 2022 11:29:00 +0200 (CEST) Received: from Webmail-eu.st.com (shfdag1node2.st.com [10.75.129.70]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id 2C34721A904; Fri, 14 Oct 2022 11:29:00 +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 11:28:56 +0200 From: Fabrice Gasnier To: , , CC: , , , , , Subject: [PATCH 07/10] ARM: dts: stm32: enable USB Host EHCI on stm32mp135f-dk Date: Fri, 14 Oct 2022 11:26:48 +0200 Message-ID: <20221014092651.25202-8-fabrice.gasnier@foss.st.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221014092651.25202-1-fabrice.gasnier@foss.st.com> References: <20221014092651.25202-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_05,2022-10-13_01,2022-06-22_01 X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE,SPF_PASS 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1746655013511688438?= X-GMAIL-MSGID: =?utf-8?q?1746655013511688438?= 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 09:26:49 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabrice Gasnier X-Patchwork-Id: 2619 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4ac7:0:0:0:0:0 with SMTP id y7csp84806wrs; Fri, 14 Oct 2022 02:34:31 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6aO9YeGmYEhZB8mqofalB3qYYtryw8R8VIpScY5sqFkpgZSZkEeqyjHd66eL4+OoCVaeg2 X-Received: by 2002:a17:907:7b86:b0:78d:cb21:da0c with SMTP id ne6-20020a1709077b8600b0078dcb21da0cmr2987584ejc.24.1665740071281; Fri, 14 Oct 2022 02:34:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665740071; cv=none; d=google.com; s=arc-20160816; b=ZrYVQyKCit4a1y7d40TVCfEoWGe048FUDtZZ/U9Frdyq52i4AWtGvkO437EL23UJse igk8JohYUaY224BF1HdQDwbPMRigAhvqJxcR5tsXP+o3nk5R0CKRDeGjjxVfdj2J+28e MF1nLqRcFCnf9jugciGFAOH7Yf9WmKusd83y7tk48y4HhDo7bu2QILZsHaHuUlTrN4ih 6BoVJXWetAX2wL2h60fYP6l5441cnpcQaqzCOVj40d1D51aQCiAM831FUOjZ5rHUCzN3 eYLTbhr0eaMeCdISXv5x9bh7FZMOyzV5vDdFZXpy6pLmGe5cbTP9U0yxEgER4v3s36qk sexQ== 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 :dkim-signature; bh=2se13OJgjqc6mstx1UlgNzGBVKCreXyw+niB7+v7+Tg=; b=x/XckYW6+pu9SNYQtF1EGhlOjvcpLW5wQ9fXw9q16wnTxu6fQPwPDKCQWODt1pOcM4 hY1K2OGgbMPB9KLKllewVlhBW2Yf0goH0b/RstgSV8easHhZnyEoQBJ2bjqTL4CGsN/A Ysg9CNPtzJHbH2ZG5Y0GwcprYbrRIdvPthsLGYJS/bxa0RQvg7KX3oh3AwHt9FYPxUcV k1dzORME13crfjjHqSoRLlI9JO1gBhyZLIfHLLJjy8iMQwF+Wqf6qU20dwGJ1reSv9VV n8ltLMhn2oLmTCdTgHwEsbgxTAbV0ITyo60oOc8kQM2AfRghHwolL0fqqAHcx4s9xUs1 nZYg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@foss.st.com header.s=selector1 header.b=VNionGbi; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=foss.st.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d2-20020a056402400200b0045d02b75b4csi1977862eda.519.2022.10.14.02.34.05; Fri, 14 Oct 2022 02:34:31 -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; dkim=pass header.i=@foss.st.com header.s=selector1 header.b=VNionGbi; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=foss.st.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230082AbiJNJ3b (ORCPT + 99 others); Fri, 14 Oct 2022 05:29:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54206 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229736AbiJNJ3V (ORCPT ); Fri, 14 Oct 2022 05:29:21 -0400 Received: from mx07-00178001.pphosted.com (mx08-00178001.pphosted.com [91.207.212.93]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 116E11C69C3; Fri, 14 Oct 2022 02:29:14 -0700 (PDT) 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 29E8RvOT008870; Fri, 14 Oct 2022 11:29:05 +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=VNionGbiyiiIINDYmer920zUMaTsN2pEtSey9HxCUbYgs22SsItn62bTto/Kbn3efup4 MqMtGQxp6+x9yMIviCfjhNQ6qsazzXxf8+reUh6qwV/r3KUZRmcBF75xCFtLuyLOEQh6 isqXFRkfR5nNZuZwMagcTLC7AE/oxJtAqtMcSMKFlhEEfeab5sQU93cuDFu0qT0vwZdX wOf5cp4oEwQyzlLgnolDyl+CBHL4ZphlDCtsRxYCwG+lRrbW7DssRzfr/6xPOrKvYsqR ybLwYRB6KI1m+v3QyQwIW6z/HBXCCqxgLgnq6q0XDj0ch1f7rBymN0paeSkyArTTkv7B AA== 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 3k6h7v7gtd-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 14 Oct 2022 11:29:05 +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 79F9E100034; Fri, 14 Oct 2022 11:29:00 +0200 (CEST) Received: from Webmail-eu.st.com (shfdag1node2.st.com [10.75.129.70]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id 753A321A904; Fri, 14 Oct 2022 11:29:00 +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 11:28:59 +0200 From: Fabrice Gasnier To: , , CC: , , , , , Subject: [PATCH 08/10] ARM: dts: stm32: add pins for stm32g0 typec controller on stm32mp13 Date: Fri, 14 Oct 2022 11:26:49 +0200 Message-ID: <20221014092651.25202-9-fabrice.gasnier@foss.st.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221014092651.25202-1-fabrice.gasnier@foss.st.com> References: <20221014092651.25202-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_05,2022-10-13_01,2022-06-22_01 X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE,SPF_PASS 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1746655060984914256?= X-GMAIL-MSGID: =?utf-8?q?1746655060984914256?= 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 09:26:50 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabrice Gasnier X-Patchwork-Id: 2620 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4ac7:0:0:0:0:0 with SMTP id y7csp84816wrs; Fri, 14 Oct 2022 02:34:34 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6xz9wQuWzUjs4gEiQPfht92IxWa7RiRtMNZV2DY/pVNhooU490AGQM0ZlPl8ayQboR/kMl X-Received: by 2002:a05:6402:159a:b0:458:d744:8975 with SMTP id c26-20020a056402159a00b00458d7448975mr3529233edv.200.1665740073832; Fri, 14 Oct 2022 02:34:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665740073; cv=none; d=google.com; s=arc-20160816; b=OIJdI4Alg/+VmXKNrlWOMt6G2oeQ6xR1nfV7cqMMZ5A4HUmM5uwD7tu4Y9LPBAvsfr hj1qnHSLKm70hEeJmzTBq4woZo+OCjiAY7FHuTUP2p6g/ELxySDsni5c5EOCvnSoRM02 5GzyNXhmgq5Rdl7SWFWPlX0puozDocjKlrWTREoP4rQS5AoswL4lxJRfXAWmRzM3zozH CXYRHB8vSw6afoL/xPv5SWbk1ZIpMOHz33PEWyucNHX1JWRZtvyoiqWfWuvStlQen4II Rwg2Yt6Lm1xd07+69pAth7jLvv9Pt12CQgLHjFG7sZQnl+iyRcdyyOmLAAgvKXJ2xkKO Uq3Q== 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 :dkim-signature; bh=P6m2JY12zXf3SvML5KKo6ZvZ5nqDLMovk9Fujc6i660=; b=ZrdE/NEyKyLa95wiBoYmwyxn9gDr4IKh5R2dHq+kH7pqvzlC7dkIMctWS3H9B0nxZZ 2tIgCEBQpBlNjgQWn+UDD5FID4YKTLT6iQER+LicWSJoEYtbbC2UhcGRbrusUa5rgBzq F2iIPMiRgNFNDumCuabLwnP5Y8vvUyhXwz2Ykbs46t2cZcyD8UTz/Hjz2neGhZvEpEsr TVPhEeU4AZoJKos3RmGb/DzL78HG+8zNbJD/YDwOPOq4PW2Qc+wIH9VATvy+kxbk0Fbi shqN+oT+JhYeXf6LMUxtXUN9B9IpBxH/ca38+rrTjgGqCxc+8/YdIbNH1/nOWCGPnHOj I+MA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@foss.st.com header.s=selector1 header.b=PUToUXvr; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=foss.st.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t5-20020a056402524500b00459fb0c1d9esi1759987edd.549.2022.10.14.02.34.06; Fri, 14 Oct 2022 02:34:33 -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; dkim=pass header.i=@foss.st.com header.s=selector1 header.b=PUToUXvr; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=foss.st.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229893AbiJNJ3h (ORCPT + 99 others); Fri, 14 Oct 2022 05:29:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54322 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229895AbiJNJ3X (ORCPT ); Fri, 14 Oct 2022 05:29:23 -0400 Received: from mx07-00178001.pphosted.com (mx08-00178001.pphosted.com [91.207.212.93]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 240991C5A64; Fri, 14 Oct 2022 02:29:18 -0700 (PDT) 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 29E8qFPY008750; Fri, 14 Oct 2022 11:29:09 +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=P6m2JY12zXf3SvML5KKo6ZvZ5nqDLMovk9Fujc6i660=; b=PUToUXvrAuW3Q1aMxOOyHcV+9WPc1EtCRFYq3aGmNygKm/136O2IUT8xGG+cTNixfyju 8FwjZ3YIQuDRbC2TCa07PY2HlF5vBUDZEMJM7uJ7Nh92iCTq/cizq8un2rbdPCZXFM+x rpLI074jbsTXryT84YfX5BCPqUqaVGY/YnbIjS8tO0cmg12klNIue7bPKk5De3Ox/YWR Wp/CIUEo5NQYEKomwhlIOlsqLpl3D4GpJ+cY0iS3tL+qjrwdHlkD+0jfwx/z5qDwnScy eNkPCviY+Cyg2kZ5QXbTN4BCMRWMT75HteOdMo/BKNCzYElrgoGIrlSwM4pN2+v98EVa 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 3k6h7v7gu2-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 14 Oct 2022 11:29:09 +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 D4D7410002A; Fri, 14 Oct 2022 11:29:04 +0200 (CEST) Received: from Webmail-eu.st.com (shfdag1node2.st.com [10.75.129.70]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id D097D21A907; Fri, 14 Oct 2022 11:29:04 +0200 (CEST) Received: from localhost (10.75.127.47) 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 11:29:03 +0200 From: Fabrice Gasnier To: , , CC: , , , , , Subject: [PATCH 09/10] ARM: dts: stm32: enable USB OTG in dual role mode on stm32mp135f-dk Date: Fri, 14 Oct 2022 11:26:50 +0200 Message-ID: <20221014092651.25202-10-fabrice.gasnier@foss.st.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221014092651.25202-1-fabrice.gasnier@foss.st.com> References: <20221014092651.25202-1-fabrice.gasnier@foss.st.com> MIME-Version: 1.0 X-Originating-IP: [10.75.127.47] 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_05,2022-10-13_01,2022-06-22_01 X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE,SPF_PASS 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1746655063584957830?= X-GMAIL-MSGID: =?utf-8?q?1746655063584957830?= 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 --- 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..1c92bf096397 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; + + stm32g0@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 09:26:51 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabrice Gasnier X-Patchwork-Id: 2621 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4ac7:0:0:0:0:0 with SMTP id y7csp85106wrs; Fri, 14 Oct 2022 02:35:32 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5v8+TsUDzoigk7Y7MCfcL+UtcW4o1CagZX42pR/uXdsDj2/mzlhcNTrSAT/TSYKWXeuuY5 X-Received: by 2002:a17:907:1b1f:b0:72f:56db:cce9 with SMTP id mp31-20020a1709071b1f00b0072f56dbcce9mr2754800ejc.605.1665740132173; Fri, 14 Oct 2022 02:35:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665740132; cv=none; d=google.com; s=arc-20160816; b=DdZ2BGqE+DHwV49qLS2jxxnpvGX0XyUuuVnOv1KIZjrL4MglXNKFYd/CxeqnPwf+HR c1nGe/xpWpssNs74/qOL4hwNyzciwMhk9boGcAE0ZArpF7HIfZkh8CENQmsOhYGXNNps qR9IAp/VuQvrjbtx7Stb84Gfk56IXrpbAUDG9ssc+qJzgHtZnBa1q+uzLDboFGJhR/o6 AKxbI5Qozn9fOqZOOrGa9ZhTaefb973woqWae73I2tFk80CShUHUiBi7WF47n2OFtgW3 LrLoQbD917z7rpFKTus0GXObfYtKOScwZ9eHVy/xTg62vZX+NeBtkNN+qDwSkoIsxJrM Htyw== 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 :dkim-signature; bh=Aii0wEtTzYyeG8wgGH0XuNz7wBYepHeOofFIh/pfnuU=; b=NArQxeOcVlgyALXKkv99MxrZb+5LkT+T58pbKJcbcxsL/2y3aKTt70UMF82XJLtNLR c8OhgWNhnEXkbRpJ598I0x73Q0roN9FgHiplr6QtVXcfXEF9SYwpS561NvfaEa0j+06m LRPaM6gN4aPjaDBF6Tp2GB0xBuHo/RORg5laekK6u9lRRCbs/D8a45OHEyJ1zhjjbJ0c 5zFvDeeBkUfiE4W2dY4Y8khOLkcBGyccCRnRwL33cPvaJvXhJAzHC/obF10pWHg6c9+0 gZkoDzUY5nsrkzJ0A6TFr/ERaXqwYs/+bu4fE0i9tGPXhD4tFqq2+rdN1T59HYTMLXLP 20nw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@foss.st.com header.s=selector1 header.b=VJivwK47; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=foss.st.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id dy12-20020a05640231ec00b004585c0fe21csi1696950edb.536.2022.10.14.02.35.05; Fri, 14 Oct 2022 02:35:32 -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; dkim=pass header.i=@foss.st.com header.s=selector1 header.b=VJivwK47; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=foss.st.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229650AbiJNJbB (ORCPT + 99 others); Fri, 14 Oct 2022 05:31:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34470 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230055AbiJNJay (ORCPT ); Fri, 14 Oct 2022 05:30:54 -0400 Received: from mx07-00178001.pphosted.com (mx07-00178001.pphosted.com [185.132.182.106]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6A2C5C069A; Fri, 14 Oct 2022 02:30:40 -0700 (PDT) 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 29E6mf2b021647; Fri, 14 Oct 2022 11:30:27 +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=VJivwK47RPaJPD2GvPFkjY7suDDyrNe12n72hXvnEBkH77uYNrD0YlfuSB60MQcphxpp dAdGNOT8Oz6elvxAwPLvNnX5acj89aI4gbv25Wat7Ujb6euReydmso+Fapn5ITcZbXVl vZ3pFsUYRewVQTdLGnCB8I1q3i1nLmL8s2ydi1KXuWeEG0+x+nmr/AdzGvXr1IBJFTRB ii/zEvx/0P/U6r8ufiwAnYo4QHZbWNo4K21gf5SAL0oUv2piKwglWhE1WjpJCjHxjMm/ oG+PIF2FZMuHXD7FitIUBNUqWEQfrRbnZMnZfAPG6Kn8gKSTdrg1PVPwGiuZe6AHWGh/ Yg== 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 3k64m7v562-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 14 Oct 2022 11:30:27 +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 2371610002A; Fri, 14 Oct 2022 11:30:23 +0200 (CEST) Received: from Webmail-eu.st.com (shfdag1node2.st.com [10.75.129.70]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id C7D2C21A90B; Fri, 14 Oct 2022 11:30:22 +0200 (CEST) Received: from localhost (10.75.127.47) 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 11:30:19 +0200 From: Fabrice Gasnier To: , , CC: , , , , , Subject: [PATCH 10/10] ARM: multi_v7_defconfig: enable Type-C UCSI and STM32G0 as modules Date: Fri, 14 Oct 2022 11:26:51 +0200 Message-ID: <20221014092651.25202-11-fabrice.gasnier@foss.st.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221014092651.25202-1-fabrice.gasnier@foss.st.com> References: <20221014092651.25202-1-fabrice.gasnier@foss.st.com> MIME-Version: 1.0 X-Originating-IP: [10.75.127.47] 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_05,2022-10-13_01,2022-06-22_01 X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE,SPF_PASS 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1746655124723572991?= X-GMAIL-MSGID: =?utf-8?q?1746655124723572991?= 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