Received: by 2002:a05:7412:d1aa:b0:fc:a2b0:25d7 with SMTP id ba42csp1501762rdb; Tue, 30 Jan 2024 23:50:38 -0800 (PST) X-Google-Smtp-Source: AGHT+IGVq+Hg2gfe+y7mu1Ri4oX0j5cFhMDXZ2rXn7kW1K/7StSAwISR8nN+PyaZBYTEM9Lcr9W7 X-Received: by 2002:a25:d6cb:0:b0:dbe:b31f:c2a with SMTP id n194-20020a25d6cb000000b00dbeb31f0c2amr868757ybg.9.1706687438012; Tue, 30 Jan 2024 23:50:38 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706687437; cv=pass; d=google.com; s=arc-20160816; b=UDCvt/TMXRYTaM/n6tVIvl6txWJ4fuWT7WbnSuot+Fo4MoVzw/sG87MO8EZIWP4fLO Odp+SKL3jIg9SZ8YcOgJY3iOLuaqqVu+oA+J7LJVEo28XaWcE5c5v5FeKNOWM8SXa8pe tF+zxdARKdlkpWBuwvClpi4fPEUVaYVdrO26y077grd4UmyIJmwtWMkZOf36/kk/OiKv NG905905f9PVJukHoicDXD2/8jYfpl7rjdsQHK4rgvfrOVCMch2RUiav/bvXqWO6vEv+ HrnY1J3+1jDqMVClBBdNKASMrmpaT6F4tSfgJKGZr81fT9ncKWrPWEg8WgKBJ3j2GIjd q8uA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :dkim-signature; bh=9Uc6sJE6X8wbDnNtNigQI7DlbxjVsgaZ7vwLQgmQngE=; fh=ZsOEvfoW3zkN4RARxYmx/eEBQKPJ2A4N8weQ4nk1Qe4=; b=v2RpDVfqUV1hKyM+4Ptf4fo4AAO1PmC74vLUY7ws2BpmAs4XCegK0ppPJmohW++wKt zU0wRKaslWdSBrSi7XxiepQY9GfO0fRdX7i9TU3FVBqdTUAXDZy2qXW1XlatlArmZsJ6 8/qgvR0A7UabJmq7888cFPFJ1oXCYfdGGm1qWx0+wqRQTNP56tE2kqWa74i4x2YO+/3X He3YTdkbzYFSb3rvNUBhR6oFuqbe4gOaDw6uYx25UjG3o257tk8dLXFaus5MiGuVZcSS xJRRDO7kRQCG6O4vskds6+FHYRGNfB7sR6aRrpfDTtsuMgQr9aJsURrfTwHTWS2muO/s 76fA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=F1+XAaSN; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-45949-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-45949-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org X-Forwarded-Encrypted: i=1; AJvYcCXpNFQ/0Jo8uPB8beU9yrFiFsBxkamnlt2MST7EmYit9bheD7DwuTXH9nE11stTBkFFlLk5ppfuxHm0QJieFwr05t//zE2ZODVhfdHN/A== Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id a9-20020a0562140c2900b0067f803fe79esi6392885qvd.363.2024.01.30.23.50.37 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Jan 2024 23:50:37 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-45949-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=F1+XAaSN; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-45949-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-45949-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id AC09F1C21B7B for ; Wed, 31 Jan 2024 07:50:37 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0E1D755E56; Wed, 31 Jan 2024 07:50:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="F1+XAaSN" Received: from mail-yb1-f174.google.com (mail-yb1-f174.google.com [209.85.219.174]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7D5FF5577C for ; Wed, 31 Jan 2024 07:50:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.219.174 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706687427; cv=none; b=rDfxi1dDcv2yQL5hpP8CeLETVDNQaRRU3XOYxMBb+aV1xPGwQrWa5DW/W2ZVnRct/p8xaaN/RCKRggHkY39O5tKvpfzsc1glqK9G4HoKyJl+TTYl7Aau4QaR9rs4N4MrDV9npH1FvEZHnPX9O+eT4/195cNxBW/IDRM+HjYeZsE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706687427; c=relaxed/simple; bh=r5f+eKQw4GNA+XYqaoijjgLbi6p2iB5TMitfiFcKlkY=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=REESpDE8EPd2KJZpnHchSeL6Ln62F/yHGsbQm5sHLBRxixNNiVQUHlKoEJXxAonVwjb03RB8lovciE/MWlSSsgId8jfokzAt3edWaBbTiSqei5c3ZhP24QqB+EHavhzAjo9vyZbOUNFUI8qGAIJSkM2vgNL98gnkbHI1hTcqlqw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=F1+XAaSN; arc=none smtp.client-ip=209.85.219.174 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-yb1-f174.google.com with SMTP id 3f1490d57ef6-dc6b7df1169so540871276.0 for ; Tue, 30 Jan 2024 23:50:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1706687424; x=1707292224; darn=vger.kernel.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=9Uc6sJE6X8wbDnNtNigQI7DlbxjVsgaZ7vwLQgmQngE=; b=F1+XAaSNygrGYUBoe29OIhKL8S252JQTUpexoOHc+ZfNAIwV2nQRGEHXn9dBPLbHTE mN+MlRNI6e1xEQJd33Fkqm7/lIERJo3jeFKgjKTURFIuYBIMmbOGzYLi8GUdzfvlGi9D 2TR2Pb23hVu86pVlmAV4WU6xeL+tZVhS/vXFEJXzvRyqTzcaCPED/GW7Yr3dHJr7AQ2e h8rfNxhGxqzyzBQdHukSovtvvq6XMUcXPYNUR2aeqXtMbDdnIVdwmbqel1TSgaWxObK2 wV0SLUw0rkV0zbuE1wfkknTk8fBFnjlb7nam5Y/UDukbpxyOZcvjIYyiXvludaO9HsWN IukQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706687424; x=1707292224; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=9Uc6sJE6X8wbDnNtNigQI7DlbxjVsgaZ7vwLQgmQngE=; b=Oe4Z6oOr+K89Lc54BiaAvBL3YNJkk/PgCa+omze+U8gCYMoLbgmTM2Gvyjz7cyml4n 4NZSjHuoMmqZJxwVxZHDwGyUfRWnQkLg8l+aq52mrxnehBmBTq3BnUs3vCtKH8rA3q0d LG2m0ID1vWgwgJXNZmokmYJngwtHkcyKmd/XGAkWORuHLMuzAeVYKFGFUoEEQmpZ+8W5 sc0cn2nLLOjKtaypBlP6DIjKsqZTIT6kllHjA7RHvwkoaFRvFOejENmg6ctQMmke5t3j E3xPH0m8eOLa5czjyEAkck6pVJMEt4RBy+1gAXcguyI2JCMbM9oIZs/SuKP/ivTCXw5w QxMg== X-Gm-Message-State: AOJu0Yw7korynTUNBpolcgBQU9xAj4+PhaJftso+zhbBLlhEKS9H1Jzx 8INJHROcnWCwf0rH4aNG1OMYUb6xsxnlfo3d0V4mWFYuKsgMAArk/ahSxtfFGgqTYqP1ZFVoKmu dbdshFhGbr+e46bogZxCxlNqpeAnAFFx/yUcBEA== X-Received: by 2002:a25:cec7:0:b0:dc6:af04:2e05 with SMTP id x190-20020a25cec7000000b00dc6af042e05mr929820ybe.7.1706687424379; Tue, 30 Jan 2024 23:50:24 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240130-pmi632-typec-v3-0-b05fe44f0a51@linaro.org> In-Reply-To: From: Dmitry Baryshkov Date: Wed, 31 Jan 2024 09:50:13 +0200 Message-ID: Subject: Re: [PATCH v3 0/6] usb: typec: qcom-pmic-typec: enable support for PMI632 PMIC To: Luca Weiss Cc: Bjorn Andersson , Konrad Dybcio , Liam Girdwood , Mark Brown , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Wesley Cheng , "Bryan O'Donoghue" , Greg Kroah-Hartman , Guenter Roeck , Heikki Krogerus , linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-usb@vger.kernel.org, Krzysztof Kozlowski , Vladimir Zapolskiy Content-Type: text/plain; charset="UTF-8" On Wed, 31 Jan 2024 at 09:49, Luca Weiss wrote: > > On Tue Jan 30, 2024 at 8:32 PM CET, Dmitry Baryshkov wrote: > > The Qualcomm PMI632 PMIC (found on Qualcomm Robotics RB2 platform) > > doesn't support USB Power Delivery. However this PMIC still supports > > handling of the Type-C port (orientation detection, etc). Reuse exiting > > qcom-pmic-typec driver to support Type-C related functionality of this > > PMIC. Use this to enable USB-C connector support on the RB2 platform. > > Hi Dmitry, > > In case you send a new revision you can drop my Tested-by on the RB2 > patches since it's a different platform, and the tag on the dt-bindings > patches also don't make too much sense I think? Ack, I will. But I hope there will be no next revision. > > Thanks! > > Regards > Luca > > > > > Signed-off-by: Dmitry Baryshkov > > --- > > Changes in v3: > > - Added constraints to qcom,pmic-typec / reg property (Krzysztof) > > - Dropped merged TCPM and Qualcomm PHY patches > > - Link to v2: https://lore.kernel.org/r/20240113-pmi632-typec-v2-0-182d9aa0a5b3@linaro.org > > > > Changes in v2: > > - Split qcom_pmic_typec_pdphy_set_roles() changes to separate patch > > (Konrad) > > - Simplified devm_kzalloc / sizeof() argument (Konrad) > > - Made start / stop callbacks mandatory (Bryan) > > - Reworked Type-C port handling into a backend similar to PD PHY (Bryan) > > - Made more qcom-pmic-typec data static const (Bryan) > > - Squashed usbc PHY single-lane removal patch (Konrad) > > - Further usbc PHY cleanup (Konrad) > > - Fixed order of DT properties in pmi632.dtsi (Konrad) > > - Instead of specifying bogus PDOs for the port, specify pd-disable and > > typec-power-opmode properties for the connector > > - Moved orientation-switch / usb-dual-role properties to sm6115.dtsi > > (Konrad) > > - Linked usb_dwc3_ss and usb_qmpphy_usb_ss_in > > - Link to v1: https://lore.kernel.org/r/20240113-pmi632-typec-v1-0-de7dfd459353@linaro.org > > > > --- > > Dmitry Baryshkov (5): > > dt-bindings: regulator: qcom,usb-vbus-regulator: add support for PMI632 > > dt-bindings: usb: qcom,pmic-typec: add support for the PMI632 block > > usb: typec: qcom-pmic-typec: add support for PMI632 PMIC > > arm64: dts: qcom: pmi632: define USB-C related blocks > > arm64: dts: qcom: qrb4210-rb2: enable USB-C port handling > > > > Vladimir Zapolskiy (1): > > arm64: dts: qcom: sm6115: drop pipe clock selection > > > > .../regulator/qcom,usb-vbus-regulator.yaml | 9 ++- > > .../devicetree/bindings/usb/qcom,pmic-typec.yaml | 32 ++++++++- > > arch/arm64/boot/dts/qcom/pmi632.dtsi | 30 ++++++++ > > arch/arm64/boot/dts/qcom/qrb4210-rb2.dts | 50 +++++++++++++- > > arch/arm64/boot/dts/qcom/sm6115.dtsi | 44 +++++++++++- > > drivers/usb/typec/tcpm/qcom/Makefile | 3 +- > > drivers/usb/typec/tcpm/qcom/qcom_pmic_typec.c | 30 ++++++-- > > .../usb/typec/tcpm/qcom/qcom_pmic_typec_pdphy.h | 2 + > > .../typec/tcpm/qcom/qcom_pmic_typec_pdphy_stub.c | 80 ++++++++++++++++++++++ > > 9 files changed, 266 insertions(+), 14 deletions(-) > > --- > > base-commit: 41d66f96d0f15a0a2ad6fa2208f6bac1a66cbd52 > > change-id: 20240112-pmi632-typec-4c7533092387 > > > > Best regards, > -- With best wishes Dmitry