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; +};