Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp14434181pxu; Tue, 5 Jan 2021 01:09:52 -0800 (PST) X-Google-Smtp-Source: ABdhPJyJ4Q2BZ2VILb/N0Eb8GYPSYIGE0oxO0cmBokaTqBf1R7o1mbpin0UZYYQAEzAgvMxSm2mS X-Received: by 2002:a17:906:7804:: with SMTP id u4mr57471392ejm.97.1609837791941; Tue, 05 Jan 2021 01:09:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609837791; cv=none; d=google.com; s=arc-20160816; b=jPCN1Qp/wGAA8SxTj+gzXGPVWDh0u+BNNb0ltLs0q9g6A6wCa/L7k2RXFjufJAqYmT BRtV4O6e4lIJyTxzqDwYVZ/oSMs69OdnaxEbXr50cGwR1aTkaYTP1Oq+nQiUXygBsPCX XFiJiD0gqLrslV3hL49v6izJk/YfNcUx7m4D8NPm0m79FYy4gERjtUxOvIznUM4XC0bV UqXw7WzdkNFbX2JZqj8AWSCCvmFq0Sm22XgDk6n3CKVStuxUZK01XWoq673j/BUvbKTJ C5pbIFE1c1nftxJUpWhKXAOEy31f1wIOOM2q08CYjK2i2ust7istz4grb/pOSOXf8VND Pa4Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from :dkim-signature; bh=O140SVpPX52EvSpVTor2Elkzvf+rEN1U4v684qmVLoY=; b=VnixYDUBSdZOEoHnmE5u/lr1pnySSYPsBGoR2sEe44rz7RVFgbc0TS9Sty5aH5vKBr 9V2wj1PtalN8/TTWDrATxW9c3Xx4VLdO5kqMvV0W0o6JUaYFAR8fJiG4inkOedWTJ1RN qUWDca+MCz93pOOhY6wFZRmB/4o8poKPi98izt+VHFxgUs1slLz/AWJc4eys7goHRMtW KilyhSZHLZqcINzcsiKoqoKCbcysHGXH7uNjJdsFhoQA5AwjvFZL/fwp+wI29puk2o1L 5SBMY6e9mRO+Dm2P16Pp6PyDhupX5oGBolHiVaJeLj5VddY7MIy7WBThWpNXf4T6uGmp 0/BQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@foss.st.com header.s=selector1 header.b=PvK3OvbO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=foss.st.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u32si32945392edc.94.2021.01.05.01.09.28; Tue, 05 Jan 2021 01:09:51 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@foss.st.com header.s=selector1 header.b=PvK3OvbO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1727829AbhAEJGq (ORCPT + 99 others); Tue, 5 Jan 2021 04:06:46 -0500 Received: from mx08-00178001.pphosted.com ([91.207.212.93]:8860 "EHLO mx07-00178001.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727658AbhAEJGa (ORCPT ); Tue, 5 Jan 2021 04:06:30 -0500 Received: from pps.filterd (m0046660.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.16.0.43/8.16.0.43) with SMTP id 10593qwo012400; Tue, 5 Jan 2021 10:05:34 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foss.st.com; h=from : to : cc : subject : date : message-id : mime-version : content-type; s=selector1; bh=O140SVpPX52EvSpVTor2Elkzvf+rEN1U4v684qmVLoY=; b=PvK3OvbOtFQ0yUNjOpkKI+9CE+OeBi67C8GjeW3ObL0jQvPpksRcCIEWo0Pr7cdpxPcv iU3KLx9xHe8gosx8L1NvEZ3W0EQmUcCO3Nnf2vSH4t58sLiQsvUBABtizhhTgyrAfvz2 L2LL7syqqfF+SryntfV4OOxfPnJ9EgARUhYZjYCVAdy+GJ/IGQKiIH0A8z/HOEnMoMId K/DKWCIEix7Xp4VdDCm/XKxKMqayiRthnw5hjQ4/T01IsYWWR/ATc/gGjYJOR65TC9Zv CDoVfrBVgfOdLEmfdhCxzDJopoCSvoDw41QVyGbXmq3OpvaLB5RqRXrzqNaqxqW5KCbI Nw== Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com with ESMTP id 35teuuywx6-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 05 Jan 2021 10:05:34 +0100 Received: from euls16034.sgp.st.com (euls16034.sgp.st.com [10.75.44.20]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 44094100034; Tue, 5 Jan 2021 10:05:33 +0100 (CET) Received: from Webmail-eu.st.com (sfhdag2node3.st.com [10.75.127.6]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id 2D52322AA5B; Tue, 5 Jan 2021 10:05:33 +0100 (CET) Received: from localhost (10.75.127.44) by SFHDAG2NODE3.st.com (10.75.127.6) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Tue, 5 Jan 2021 10:05:32 +0100 From: Amelie Delaunay To: Kishon Vijay Abraham I , Vinod Koul , Rob Herring , Alexandre Torgue , Maxime Coquelin CC: , , , , Amelie Delaunay Subject: [PATCH v2 0/6] STM32 USBPHYC PLL management rework Date: Tue, 5 Jan 2021 10:05:19 +0100 Message-ID: <20210105090525.23164-1-amelie.delaunay@foss.st.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.75.127.44] X-ClientProxiedBy: SFHDAG3NODE3.st.com (10.75.127.9) To SFHDAG2NODE3.st.com (10.75.127.6) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.343,18.0.737 definitions=2021-01-05_01:2021-01-05,2021-01-05 signatures=0 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org STM32 USBPHYC controls the USB PLL. PLL requires to be powered with 1v1 and 1v8 supplies. To ensure a good behavior of the PLL, during boot, runtime and suspend/resume sequences, this series reworks its management to fix regulators issues and improve PLL status reliability. --- Changes in v2: - Move author mail address from @st.com to @foss.st.com - Add Rob's Reviewed-by on bindings patch 1/6 Amelie Delaunay (6): dt-bindings: phy: phy-stm32-usbphyc: move PLL supplies to parent node phy: stm32: manage 1v1 and 1v8 supplies at pll activation/deactivation phy: stm32: replace regulator_bulk* by multiple regulator_* phy: stm32: ensure pll is disabled before phys creation phy: stm32: ensure phy are no more active when removing the driver phy: stm32: rework PLL Lock detection .../bindings/phy/phy-stm32-usbphyc.yaml | 22 +- drivers/phy/st/phy-stm32-usbphyc.c | 222 +++++++++++------- 2 files changed, 153 insertions(+), 91 deletions(-) -- 2.17.1