From mboxrd@z Thu Jan 1 00:00:00 1970 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9BC87C43334 for ; Mon, 11 Jul 2022 12:03:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231587AbiGKMDa (ORCPT ); Mon, 11 Jul 2022 08:03:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57892 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231486AbiGKMDV (ORCPT ); Mon, 11 Jul 2022 08:03:21 -0400 Received: from mx07-00178001.pphosted.com (mx07-00178001.pphosted.com [185.132.182.106]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 698553DF3E; Mon, 11 Jul 2022 05:03:14 -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 26B9JJwa001519; Mon, 11 Jul 2022 14:03:05 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foss.st.com; h=message-id : date : mime-version : subject : to : cc : references : from : in-reply-to : content-type : content-transfer-encoding; s=selector1; bh=WJZnOU8KB28lNH44i8wmE7STh4UGU33tGuVrwz8xG84=; b=nYo1mLk1rIfvJkPwaDTc7XBd23Bmv01vqD30eHd5jYsimitwOm52nF9a3zkhjXFAwiR+ Ytwc7jL3NIDO4dM4RNyZI2CeIcOiRoUm8iU7zaJ9JYVA2QXHvMi2MuHLjrvAQzhRPUwZ Vq1WnOUxTQehG3tojsux/vDgIEPCl4MU2KRKiAYG4J++7OBemna6PwxZ+MRdUNCbo2RO JwJSmGxGKRVWzFR0/tNQ48WceDtqISheVDkzzzVK+A7HR44o0Oj6jJs8Yf7rVfYJ5jRV hXzOB2lDU21pNR7snRbLx2GfUSvxr6UyYEXfWWD3V5ZV1J9lhBF1SXQzsODxO+f9Ynuz 5Q== 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 3h6y3mu6sg-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 11 Jul 2022 14:03: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 D97AA10002A; Mon, 11 Jul 2022 14:03: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 D437421ED30; Mon, 11 Jul 2022 14:03:04 +0200 (CEST) Received: from [10.48.1.102] (10.75.127.50) 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.2308.20; Mon, 11 Jul 2022 14:03:03 +0200 Message-ID: Date: Mon, 11 Jul 2022 14:03:03 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.9.1 Subject: Re: [PATCH v2 0/4] usb: typec: ucsi: add support for stm32g0 Content-Language: en-US To: , , , CC: , , , , , , References: <20220711114831.25205-1-fabrice.gasnier@foss.st.com> From: Fabrice Gasnier In-Reply-To: <20220711114831.25205-1-fabrice.gasnier@foss.st.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.75.127.50] 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.883,Hydra:6.0.517,FMLib:17.11.122.1 definitions=2022-07-11_17,2022-07-08_01,2022-06-22_01 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi all, I just resent the full series as I got some issues with my mailer. Sorry for the noise, please drop this one. Best Regards, Fabrice On 7/11/22 13:48, Fabrice Gasnier wrote: > STM32G0 provides an integrated USB Type-C and power delivery interface [1]. > It can be programmed with a firmware [2] to act as a PPM. Currently it > implements UCSI protocol over I2C interface. A GPIO is used as an interrupt > line. > > This series adds a driver to support it, including: > - dt-bindings documentation > - optional STM32G0 firmware control and update, over a secondary I2C address > - power management > > [1] https://wiki.st.com/stm32mcu/wiki/Introduction_to_USB_Power_Delivery_with_STM32 > [2] https://github.com/STMicroelectronics/x-cube-ucsi > > Changes in v2: > - Krzysztof's review comments on dt-bindings: update commit message, use ports, > use unevaluatedProperties: false for usb-connector schema, define maxItems > for power-domains, adopt generic node names, remove quotes. > - Christophe's comments on driver: > use kmalloc instead of kzalloc > Use-after-free of buf: directly print the offset > > Fabrice Gasnier (4): > dt-bindings: usb: typec: add bindings for stm32g0 controller > usb: typec: ucsi: stm32g0: add support for stm32g0 i2c controller > usb: typec: ucsi: stm32g0: add bootloader support > usb: typec: ucsi: stm32g0: add support for power management > > .../bindings/usb/st,typec-stm32g0.yaml | 90 ++ > drivers/usb/typec/ucsi/Kconfig | 10 + > drivers/usb/typec/ucsi/Makefile | 1 + > drivers/usb/typec/ucsi/ucsi_stm32g0.c | 777 ++++++++++++++++++ > 4 files changed, 878 insertions(+) > create mode 100644 Documentation/devicetree/bindings/usb/st,typec-stm32g0.yaml > create mode 100644 drivers/usb/typec/ucsi/ucsi_stm32g0.c >