Received: by 2002:a05:7412:d1aa:b0:fc:a2b0:25d7 with SMTP id ba42csp1226231rdb; Tue, 30 Jan 2024 11:34:58 -0800 (PST) X-Google-Smtp-Source: AGHT+IFSGyJzzLpgo/PEYqsXZi0XLU+vEUJyP8Ux8WJBTjAwZHomxhewqQhJ0BXLJ4v4HPJdopf1 X-Received: by 2002:a05:6358:52cb:b0:178:688e:fb21 with SMTP id z11-20020a05635852cb00b00178688efb21mr8748402rwz.7.1706643293082; Tue, 30 Jan 2024 11:34:53 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706643293; cv=pass; d=google.com; s=arc-20160816; b=b2DaVIHBjIQ6KMj5vUFBpxv5i1vKj9GL0nDbsYjqvFLgBse6Zp6+D9T8uf3gykrf8A oKMc9X+JSIxaMVixXuhQjzpfTmBId22W4DR+0/ovrvSSWdgL/9aRkptzko0N0UCAakB5 knDd6lt/NgoC43Q2HGv0HPxp9CsD07r0TU1+D3XraSlgDFW0MeUnnCsBIc3+GrlWNiSf PNtDkUvjUTGBbGdMjKpkAjaNyI7Yv8wUTdcgNUv30Wr1RQU3J54d731PH4TMBf5ETpIv tKziTNL7AzePFyut4u7vogZiYBDoS9MBo9KXGtp/EFBWKa/EjSiY6XLjNdwvxzuB+Iha q7gA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:from :dkim-signature; bh=tEnSLoLi220+mC/dDdMZUm59oVdTAXtir30jTLPlVL8=; fh=n+TRQkKerQEdfoA/g9CdUknUCA6psqUdzOtMLrOuFpY=; b=MIpahTD0oHOLf0UbgB3JC1kFVTqYNc7IbHLjjs2wR602NTfE0DZ3RUbhsEFtMIy0zZ BfQnA3+jR4JtjlB+9UsgRGypVh0BXT9kk6JBKsHNrVu4LfkM9Qwb3YKRSpT0SPANplSJ VfCgSCo21HE3TDH0D/hjqUzInB1SJeR9Lt9JJEIC03LXISQ42cAB/XI+GsGlRHdWkuu5 EDeJogswBvuYhHlfe+eN6ylfZ4mz2ZpU+9LOQQuXCF7ciJrP0sWpj3OzUe6kU9mMok7D 5SsrPSAYC0JtQn04THx5A3aFUIYLf4OBf1R1JMXRlIFMXUlwk3/nOIX4ted/8wkRLV34 90Lg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=kdd9OqWn; 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-45197-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-45197-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id bs131-20020a632889000000b005cda7a1d72fsi7713342pgb.473.2024.01.30.11.34.52 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Jan 2024 11:34:53 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-45197-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=kdd9OqWn; 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-45197-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-45197-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id EBE8A28A8DA for ; Tue, 30 Jan 2024 19:33:41 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9C7C97B3E7; Tue, 30 Jan 2024 19:33:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="kdd9OqWn" Received: from mail-lf1-f41.google.com (mail-lf1-f41.google.com [209.85.167.41]) (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 510407B3DA for ; Tue, 30 Jan 2024 19:33:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.41 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706643192; cv=none; b=FDd8StnKqQX2oaKpOLQDEiJDhKZCJ+mMronPBzpH+Q+aG71bRCigYLWBnCcg0nlnnp1j14stcTM8E0Vaeg0TinkAMKXkpUL/5LOQrlWCwhrfDXxeqeOY2IBlI3R3IDrCsccAYQrwJhhvWxKuIP+UpGBX9yZe9h4Y7J2wsQZx5tE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706643192; c=relaxed/simple; bh=gTALmY1ibvA6Jtkm5qB1yZj76kmQUeK0FP623MAzOGQ=; h=From:Subject:Date:Message-Id:MIME-Version:Content-Type:To:Cc; b=Ku+lKyul7q28u/iDsrYm3R4xIQdeDBS8NzRJBPyyl42v5Ln0WdRT9cZTgz006A0de+6oqDZbHDga+PznMbI9Gs+s407ZLQEjECAr7ohJui8Gq+8/iB6GmiqvDfZ8NSOjtUs1AYril0izZtB6YCboMcixSOgIkN3AjjSDjQqLfU8= 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=kdd9OqWn; arc=none smtp.client-ip=209.85.167.41 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-lf1-f41.google.com with SMTP id 2adb3069b0e04-51114557c77so2749214e87.0 for ; Tue, 30 Jan 2024 11:33:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1706643187; x=1707247987; darn=vger.kernel.org; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:from:to:cc:subject:date:message-id:reply-to; bh=tEnSLoLi220+mC/dDdMZUm59oVdTAXtir30jTLPlVL8=; b=kdd9OqWnLT/FARqT+RsnA5Cqy+B3mjfAZkGTL3Dm140JFNXD62vvfC0mKOV8/CWQpA KG255Nb+n9pDfGfDt0dY/9GeExfbkCMHcpRtLpQVl7G8paU0HaZ2Kz/Vrl6bCSP6zUcl /45N255VPgqLpS9c8TtvA4WNU016pjOn8z89/hVDKE0xcrainwkwlyfO4jzWSyj6CxWx BgaUy13/jU7WvfGykXnQhf94cHSs4FrbOG9FI30AAxb1z+hCc18WkGtCEg4oFMs0PGQI 6ingeajqde1wlcJtJ3UsTVK4+TGgz1vg8FVnHw7doqz2KYqrGNvz0haWgoFZ7WGwjklC EdcQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706643187; x=1707247987; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=tEnSLoLi220+mC/dDdMZUm59oVdTAXtir30jTLPlVL8=; b=TC3XeaLILkAMAxW4wUKeXUAA9H9Vh2qeeihEP/UKRB5pA9zOyOX8VZHXOPcaV8BJKS 9HnJhfkyHq2JGrQtsDRejsZVVAxcbXAmAl96lD+DCb6mGPGlMmeb1HOKO+ppAQWYHMib feUDcuxS8vx9q/87nSHatpw61b0LOSDoxP/zNrA+wv8rkvPl4ht+hkWrJFEtJSeak371 B45rgtnHCwfmx7/hpiYiyMx3z9WKPCnbRqP1GleDabnCTcIIPztAeeBlWCiE4Npw8/fC k/W1Hwa6V0uQbJe/cXW7qh8ecfbTF+83tnfIzpgUB4fbjIaXDmEt6OVWtvQxSKU97HTy k5SQ== X-Gm-Message-State: AOJu0YwgFrNpHn1aWiyngbX4lxRlGl7thJibxtnlO3264tM+b2KBZgXO V0g6+sS+ldN64D66TqptkSfWPR/rY03Np3JsAL7+Nhf3gdwDwzH4VBRSUNaYcUI= X-Received: by 2002:ac2:5b11:0:b0:50e:6c1d:5dee with SMTP id v17-20020ac25b11000000b0050e6c1d5deemr6157961lfn.33.1706643187329; Tue, 30 Jan 2024 11:33:07 -0800 (PST) X-Forwarded-Encrypted: i=0; AJvYcCWFstMsJWadz62lZvjVYfOqBwvQLKPeVs4uhdxSYFBbrJWlUNH+Kq7VIuhwAKHhgppKE2qZ0PUCjUUCrvpt17A1ufW6H7d3+hdTPGpsj0ZIJhLXToO2GWOxAUYvLvtN01MWAzHGFLvDjE82L2048gRbs8Mn7NKX+Ox4b8CEuSQqSbzq4UTor0lK+AMgMCdqDDVL4gOCYnqPtN93w4JIAqFwj2SEu2/tVsU2LT/OBbyv9QtKcrP1WNdmbHFGGoQF1D8EKL2rsDM1Kg6EmAgTREHhtHw7lJycq2vn4/8KFQ26aMen72QCIa90NOhMkSINrMowOdlCZiWf2dP3zLs9plxefTV0jYBIcoypR+NGF6TlOBlqHgFDVQEwaiwx1BpWj1+ceoFH4dyeNB6Hnwm1Pz+O1bTk5EsknXVa79uwvah9zK5+MwRmYImf8DthaLp5rNlYqFfi3wIDcSQ+d+Iw2IszPfAOY18acTafFcFy0FM14mx3cV/k/2zROyZWVoeSbg2gLGfbdqjZhqavaxPr5rsAiJWSc2uOLxDuqhee8VTtcf5FU86IjB2m3YVIQtTcVm5h+GmHSSIP6vgMav+0hXqhQ+V9x57exM21uti2ntaF45rqnlDAGmESzWSsAzIFDgE2FsllH8HEn8AaB7DrMyNk9zd2/Zm0kgDer2M2+ZSE/ZE+9E17r2ql53I5NanU Received: from umbar.lan ([192.130.178.91]) by smtp.gmail.com with ESMTPSA id u25-20020a05651220d900b0051119371e7csm366525lfr.120.2024.01.30.11.33.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Jan 2024 11:33:06 -0800 (PST) From: Dmitry Baryshkov Subject: [PATCH v3 0/6] usb: typec: qcom-pmic-typec: enable support for PMI632 PMIC Date: Tue, 30 Jan 2024 21:32:53 +0200 Message-Id: <20240130-pmi632-typec-v3-0-b05fe44f0a51@linaro.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-B4-Tracking: v=1; b=H4sIAOVOuWUC/33MQQ6CMBCF4auQrq1pZ6iAK+9hXFRaYBKlTUsaC eHuFhIXbFy+l/zfwqINZCO7FgsLNlEkN+aBp4K1gx57y8nkzUBAKaQE7t90QeDT7G3Ly7ZSiKI BrCuWEx9sR5+duz/yHihOLsy7nuT2/iA8QklywY2tTGdK1aDC24tGHdzZhZ5tUoJ/NeRa1mAar YVWz2O9rusXaA0/uecAAAA= To: 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 Cc: linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-usb@vger.kernel.org, Dmitry Baryshkov , Krzysztof Kozlowski , Luca Weiss , Vladimir Zapolskiy X-Mailer: b4 0.12.4 X-Developer-Signature: v=1; a=openpgp-sha256; l=2777; i=dmitry.baryshkov@linaro.org; h=from:subject:message-id; bh=gTALmY1ibvA6Jtkm5qB1yZj76kmQUeK0FP623MAzOGQ=; b=owEBbQGS/pANAwAKAYs8ij4CKSjVAcsmYgBluU7xxwlT5ScISdUnOHH2TX7uG97SJ4h1IgCX4 40Ct0ayn3KJATMEAAEKAB0WIQRMcISVXLJjVvC4lX+LPIo+Aiko1QUCZblO8QAKCRCLPIo+Aiko 1ekAB/9hUMv/ndpN+V2jmP+9lAodWkuJrLYMysXc1D3Z/rk0YCazA3gsQ8N37Cber3CS7JOc9rK SEHcCbZpvPEGtc52IRvFgByp76Wxcj6dFFLb3kRBNyrQ2ZxzgaGDmDUz97JZjejjM9Xa98fwFnw k6FHCvY5aZ8u9ldnb1TtsRh5HBgd4zuZAsWRyHO7v+YRQdgb3x0PRCUjqVksszJ7oe4rZdy6qDa rNwMyAZIR472Z4N8hPuNw7CTWou3GT+x0KVjeu3VhLrhIGQgMnZPpwm3Aqr6yE4rbE6XBGWDlDg 8vwE7Fi1nEpOjABQTOR/IMkxBx2TeLVZKOVGTNKkMxV1vny3 X-Developer-Key: i=dmitry.baryshkov@linaro.org; a=openpgp; fpr=8F88381DD5C873E4AE487DA5199BF1243632046A 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. 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, -- Dmitry Baryshkov