From patchwork Fri Feb 10 15:02:03 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Neil Armstrong X-Patchwork-Id: 13135879 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 B7F5AC636D7 for ; Fri, 10 Feb 2023 15:02:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232446AbjBJPC2 (ORCPT ); Fri, 10 Feb 2023 10:02:28 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56438 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232279AbjBJPCW (ORCPT ); Fri, 10 Feb 2023 10:02:22 -0500 Received: from mail-wm1-x32e.google.com (mail-wm1-x32e.google.com [IPv6:2a00:1450:4864:20::32e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8211937734 for ; Fri, 10 Feb 2023 07:02:10 -0800 (PST) Received: by mail-wm1-x32e.google.com with SMTP id f47-20020a05600c492f00b003dc584a7b7eso6476460wmp.3 for ; Fri, 10 Feb 2023 07:02:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:from:to:cc:subject:date:message-id:reply-to; bh=vfoF3LxZ7FuaoMpPGi3DPf+5A6Pn53XBVXLoatUwlOI=; b=x09ZDNm+B9yTe3oLr5AHzfAadepjTiaWyQohF/GdUFUCDwJAIdr5mqmQVOOcxKh4x1 wjtMFdyqCfDu9Wi2ccT2wfV2eidIO2EEZgoYrBsf3ny07ZaoASVLLHT6TkA0+a1RKy/G N976Ggs6li4CINwBCIQeFfdFqLj1F6930eXa/34XOvj+Mkoawk1J0XdeU9aHE7dEX6c7 u/BQDBpwzWhErft0ntBJ+kbN/4OfQQaTPtW3Sarv3ebudEkdNDGdG/LU8UWDKoo0448z nneBI3eUSKR8sETOtMJXeEJejbB9uoHszQD4k4z33mrM17BXAhbOa7wRV5HDPgz6ts7d G34w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=vfoF3LxZ7FuaoMpPGi3DPf+5A6Pn53XBVXLoatUwlOI=; b=Ie7yro/MlyW91B6ycNG9tq0trGCsOUAwENVY5dzMhUSc2uzMCdNASM53IsbYeF2D4d gOXpYAs/1ydnb3JFdich21mJlvXIIgjbNf5azHTCA2PJvEa7zcJtWxem/wnstXND4B9p zRnbvvk88E89ho2xGCSZNy4w/oYKuPYyX+SNSP7+z4Xoyob6lRtLAPtskFZwLPFIuir0 4pThzEZKUp3VR5rwngIHvK2zWdtzeijYrhh0p+EZo4M558YHw4qfT1ydy/kBi7OYMZqy lVrhX+mXxvrxopoyyxNYyPiFZ3cZQl+OeG7t0PMcjnsas4JF5pymufxdP5ZuX+Ea3E1Y FzOg== X-Gm-Message-State: AO0yUKXBZZnfpxKuda0DwGRqzTiisp8Q68nZER2cxR3nU5qwnJDt6ukQ 3zqoSpSv5Rz+vquJwMYuR34PTA== X-Google-Smtp-Source: AK7set/LH212DvxwEitxNs91cTmT2ZI61PHfX4jFahcrfOSv+ZuMHAS4aedTb9hAoVNMLzm5MRWJOg== X-Received: by 2002:a05:600c:319d:b0:3dc:5950:b358 with SMTP id s29-20020a05600c319d00b003dc5950b358mr14257527wmp.14.1676041329010; Fri, 10 Feb 2023 07:02:09 -0800 (PST) Received: from arrakeen.starnux.net ([2a01:e0a:982:cbb0:52eb:f6ff:feb3:451a]) by smtp.gmail.com with ESMTPSA id w23-20020a1cf617000000b003db1d9553e7sm8282482wmc.32.2023.02.10.07.02.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 Feb 2023 07:02:08 -0800 (PST) From: Neil Armstrong Subject: [PATCH v2 00/11] soc: qcom: add UCSI function to PMIC GLINK Date: Fri, 10 Feb 2023 16:02:03 +0100 Message-Id: <20230130-topic-sm8450-upstream-pmic-glink-v2-0-71fea256474f@linaro.org> MIME-Version: 1.0 X-B4-Tracking: v=1; b=H4sIAGtc5mMC/5WOTQ6CMBBGr2K6dsxANRpX3sOwmJYCE6ElUyAaw t0duYHL95LvZzU5CIds7ofVSFg4c4oK5fFgfEexDcC1simxtFhYhCmN7CEPt/MFYR7zJIEGGAe Vbc/xBdZZQnd1vrbWaI2jHMAJRd9pUZz7XuUooeH3vvuslDvOU5LPfmMpfvaPxaUABHRIvqFaM +GhmiSdkrSm2rbtC0ePH6HmAAAA To: Heikki Krogerus , Greg Kroah-Hartman , Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Catalin Marinas , Will Deacon Cc: linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Neil Armstrong , Rob Herring X-Mailer: b4 0.12.0 Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org The PMIC GLINK interface offers an UCSI endpoint for newer SoCs, the UCSI exchange is necessary to configure the USB-C port USB role and altmode on the SM8450 HDK and SM8550 MTP boards. Since the DT description is the same, support for SM8350 HDK is also added. This patchset focuses on USB and disables altmode support on those 2 SoCs until DP altmode over the combo phy is supported. Depends on PMIC Glink patchset at [1]. [1] https://lore.kernel.org/all/20230130042003.577063-1-quic_bjorande@quicinc.com/ Signed-off-by: Neil Armstrong --- Changes in v2: - Moved the dwc3 port subnodes to dtsi - Added SM8350 HDK support - Added help about ucsi module name - Added bindings acks - Fixed sm8550 pmic glink compatible - Added more description in config update patch - Link to v1: https://lore.kernel.org/r/20230130-topic-sm8450-upstream-pmic-glink-v1-0-0b0acfad301e@linaro.org --- Neil Armstrong (11): usb: typec: ucsi: add PMIC Glink UCSI driver dt-bindings: soc: qcom: qcom,pmic-glink: document SM8450 compatible dt-bindings: soc: qcom: qcom,pmic-glink: document SM8550 compatible soc: qcom: pmic_glink: register ucsi aux device arm64: dts: qcom: sm8350: add port subnodes in dwc3 node arm64: dts: qcom: sm8450: add port subnodes in dwc3 node arm64: dts: qcom: sm8550: add port subnodes in dwc3 node arm64: dts: qcom: sm8350-hdk: add pmic glink node arm64: dts: qcom: sm8450-hdk: add pmic glink node arm64: dts: qcom: sm8550-mtp: add pmic glink node arm64: defconfig: add PMIC GLINK modules .../bindings/soc/qcom/qcom,pmic-glink.yaml | 2 + arch/arm64/boot/dts/qcom/sm8350-hdk.dts | 77 ++++- arch/arm64/boot/dts/qcom/sm8350.dtsi | 19 ++ arch/arm64/boot/dts/qcom/sm8450-hdk.dts | 45 ++- arch/arm64/boot/dts/qcom/sm8450.dtsi | 19 ++ arch/arm64/boot/dts/qcom/sm8550-mtp.dts | 45 ++- arch/arm64/boot/dts/qcom/sm8550.dtsi | 19 ++ arch/arm64/configs/defconfig | 4 + drivers/soc/qcom/pmic_glink.c | 67 ++++- drivers/usb/typec/ucsi/Kconfig | 10 + drivers/usb/typec/ucsi/Makefile | 1 + drivers/usb/typec/ucsi/ucsi_glink.c | 320 +++++++++++++++++++++ 12 files changed, 604 insertions(+), 24 deletions(-) --- base-commit: 2746a238ae3ea7215b3e95b78020a3d72243d55f change-id: 20230130-topic-sm8450-upstream-pmic-glink-3b3a0b7bcd33 Best regards,