From patchwork Tue May 23 07:15:45 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Neil Armstrong X-Patchwork-Id: 686115 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 243AEC7EE2A for ; Tue, 23 May 2023 07:16:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235407AbjEWHQG (ORCPT ); Tue, 23 May 2023 03:16:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55744 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235396AbjEWHQB (ORCPT ); Tue, 23 May 2023 03:16:01 -0400 Received: from mail-wr1-x42e.google.com (mail-wr1-x42e.google.com [IPv6:2a00:1450:4864:20::42e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9A6B5196 for ; Tue, 23 May 2023 00:15:54 -0700 (PDT) Received: by mail-wr1-x42e.google.com with SMTP id ffacd0b85a97d-3093d10442aso4440546f8f.1 for ; Tue, 23 May 2023 00:15:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1684826153; x=1687418153; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=cZqtlkV+Cju8XAdwHQXr1lV9ldw4S+o5QEvBPqukNFc=; b=ExpUK7jvNy/kpHAI1pWXOIR3B7J/PB+4lv4Et9KU18l5GKtWC8swEiUSNZfig6v9E0 xRq15ZRpv31OctcvBsZiEHcPyrK6Lb33qgiafUk+xPfLSjKMrSHUfVT1rmI94DG8YNxm oHEpP3uaWc2PH91xjpPR3awFWy7ufFMyPEwpuTZkLY62eC8+9Ivrz6lBOf7LXMGaKoxl TPcjrq7zaFmr5xOLqqsASHmkYtpirJxewlpgL+4PHPyc+LYOSDf6wUvdVwVDpjbgKHhM XrRmwDoqukLD1SgFPCQ9ROY7UPWAbWPn6GK/gUfwfAwqPoZSnd+HXr+SBAETpUvesDRd +BVA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684826153; x=1687418153; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=cZqtlkV+Cju8XAdwHQXr1lV9ldw4S+o5QEvBPqukNFc=; b=f2O58pg1jNK6Y4EgA4LoD92zbiIBJU5lw7KAaAdrg8dwzkieDD0YTuv15xttC7HOIQ zNIk96qjvz1/o43apdsJUKS17GjMBCA4224+vDmlJQYYCaN+cX98O9io9u9LrjHVTEpi SSigoL4TDHirLzJn7EiV+gOPU7NY2MIn4SYjvyc4cXMEnUvJo8zEPTDYLJwfmYuYbqdV pyKOsoTNYY7M7mz3eZpwm6lsxafy6lTyVmvN8XGy/zR9z85GalvPsio0pzTqcy2PNKMh YidlEEF5EsAwLJjICwXCFN8MG+M1i4piYIysq3IMFSXKrBacP36xgXdmztzN3/olkQ8Y RCvQ== X-Gm-Message-State: AC+VfDxMm0kvIBE9oto78FWayXmDDXwXxv++xSfRtub2lp8U0JBiT16t bkv/8yO9GytwRqAUrz2onMhfzQ== X-Google-Smtp-Source: ACHHUZ69UPWwwcY+bOGTSjaUsEaYhmdrvcagNcOaa/svAq7tWdx4PpzCjqqddTgeCu0cAeVqTSV9qQ== X-Received: by 2002:a5d:4ac5:0:b0:30a:782a:7f97 with SMTP id y5-20020a5d4ac5000000b0030a782a7f97mr6354677wrs.12.1684826152863; Tue, 23 May 2023 00:15:52 -0700 (PDT) Received: from arrakeen.starnux.net ([2a01:e0a:982:cbb0:52eb:f6ff:feb3:451a]) by smtp.gmail.com with ESMTPSA id x15-20020a5d490f000000b00306299be5a2sm10096239wrq.72.2023.05.23.00.15.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 May 2023 00:15:52 -0700 (PDT) From: Neil Armstrong Date: Tue, 23 May 2023 09:15:45 +0200 Subject: [PATCH v3 1/6] arm64: dts: qcom: sm8350: add ports subnodes in usb1 qmpphy node MIME-Version: 1.0 Message-Id: <20230503-topic-sm8450-graphics-dp-next-v3-1-6c43d293995f@linaro.org> References: <20230503-topic-sm8450-graphics-dp-next-v3-0-6c43d293995f@linaro.org> In-Reply-To: <20230503-topic-sm8450-graphics-dp-next-v3-0-6c43d293995f@linaro.org> To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Catalin Marinas , Will Deacon Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Neil Armstrong X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=openpgp-sha256; l=1039; i=neil.armstrong@linaro.org; h=from:subject:message-id; bh=jZm0vsXGjRa2kcJQp5G+00wat7FMpiWkkm/hrxk+Jho=; b=owEBbQKS/ZANAwAKAXfc29rIyEnRAcsmYgBkbGgkvCqA08RLk7mgPvMVqAMhPZw9fRci6lSyUWUV 69qATw2JAjMEAAEKAB0WIQQ9U8YmyFYF/h30LIt33NvayMhJ0QUCZGxoJAAKCRB33NvayMhJ0RnmD/ 9Z8OHvGpLKVsYmGfo4PxFhE9BNYB5p8ZxC/hR9tCdk8JLfzBMyxqlvYTWmKxDqJQEpZvuw/ypRBgTg TI0PO4/XBNPYLOeZP4RdALsoEj+qd0tN9DDRHjw2REjxXPCAt6iaZkNU0CWELgDPtSunU7oudcamN0 gVa3FYZ3rpFdkVld63BEPFl5pzoWUUExF8m1orpweL/hLtwDChnr4qvBjcqy/ccsAaZo1qXZti9KFK ePFX+au6lRsSO7esTs8a3rVQcM8vP0I/2w2Bp71RhksWGuzunsX1ynRpE+qS3DIe6HS4cc0miB8X+K s5ldQw4OXNKeQa4gYpgZg+G6JvcBWLjgB9Cur9jUvxiag7/plSz9QT5Alazydg5zbmc1GK5uHVeVt7 t8WQyo0N/fFMoOdrt65TxDrbrR6uPwGpvkpEioqjiqA5ktB7He50f20wqimSuWmhyj7TaW1W7gu7oz FCyNsjmVHnWD7Xj+EN7uz3fzVgT3Ph2n8w1rOYekXvuQ+cRQjcUEMx8g+1Kqt6qd+gtIe1xm6mnrGI 4CSO28DGVGLh9g6Eztb2+kMbMSBYzDicw8cV+UuW0QppPcSypY6dw+eR432IVm2HTBDYUOdiDxCl3/ VZNQhQK8bHzy0vUKVn9Fx+mFJ6brekCiDILmupEIAG/OYOpQRq85Dp9yyAYg== X-Developer-Key: i=neil.armstrong@linaro.org; a=openpgp; fpr=89EC3D058446217450F22848169AB7B1A4CFF8AE Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Add the USB3+DP Combo QMP PHY port subnodes in the SM8350 SoC DTSI to avoid duplication in the devices DTs. Signed-off-by: Neil Armstrong --- arch/arm64/boot/dts/qcom/sm8350.dtsi | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sm8350.dtsi b/arch/arm64/boot/dts/qcom/sm8350.dtsi index 3efdc03ed0f1..d9aa591dccf8 100644 --- a/arch/arm64/boot/dts/qcom/sm8350.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8350.dtsi @@ -2158,6 +2158,32 @@ usb_1_qmpphy: phy@88e9000 { #phy-cells = <1>; status = "disabled"; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + + usb_1_qmpphy_out: endpoint { + }; + }; + + port@1 { + reg = <1>; + + usb_1_qmpphy_usb_ss_in: endpoint { + }; + }; + + port@2 { + reg = <2>; + + usb_1_qmpphy_dp_in: endpoint { + }; + }; + }; }; usb_2_qmpphy: phy-wrapper@88eb000 { From patchwork Tue May 23 07:15:46 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Neil Armstrong X-Patchwork-Id: 685136 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 48DD4C77B75 for ; Tue, 23 May 2023 07:16:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235412AbjEWHQI (ORCPT ); Tue, 23 May 2023 03:16:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55824 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235383AbjEWHQD (ORCPT ); Tue, 23 May 2023 03:16:03 -0400 Received: from mail-wm1-x332.google.com (mail-wm1-x332.google.com [IPv6:2a00:1450:4864:20::332]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 62A801A1 for ; Tue, 23 May 2023 00:15:55 -0700 (PDT) Received: by mail-wm1-x332.google.com with SMTP id 5b1f17b1804b1-3f41dceb9d1so68565895e9.1 for ; Tue, 23 May 2023 00:15:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1684826153; x=1687418153; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=euEE75tKi3cqGTjeMlIZ4N8qPZ11Ooh1j+ZxhXbpsFI=; b=FfGp27BfCu5MWfz+d6Nx0jXWd+bvkIJCekR+apoWmimlKoXreA3kgpm9T5BZc9KE/l Qt6HD3BlAGxyycKFijYPRGGXYGET14IGtSu6i6Mzx35v1wZTGdqGFbCwHdsC8yfYr5MD zVBU1ojk7iw7BqqNYZlrpCbbeaymMQmktn0QfbjQqkhxKisoPSG+yCvluRpnGKe4H2bo 8B6tELKY5ihOYnG1HtQHfjf+luxcHxtxAzS9wdCkc2rLel58i9HfalxauR/M1odj0n/q gSepTRbUrOyVj06gjj5NrDNHOmQa6Gv+RYy9AXusVYTiPCH9yBFKvXfzABclLKHE1YHl BD7w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684826153; x=1687418153; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=euEE75tKi3cqGTjeMlIZ4N8qPZ11Ooh1j+ZxhXbpsFI=; b=NSEQFvQmzDxTQbWtG2MWdliLpH2fJQkT6jFp6/gx3DMi0+tIdLFIxyonRK/mUycpXo VQjUjAg/NXuLrxJN4nAnDHVLJe0OjMtZuhnQRdL4kw5+vCDpJktKEg590LL+/htMHE+I LyMgVXQbdKs/DbqbQWOVGA8PmaKSfcpSC+i/6o1OW4KBQrQZGySSk6OOEQG9kExj9YCc CnmuDr0Ir/ZLP+uyIuv8iG+hyDtugkTvRBECjX+ohZ4fSgMwixgM3oDkzsvA9O9Yksfp 5TqsZdihkCrzJYx4jN3di8qhyetQCrv3Zevf5SP8HAmCJjm1WJSpdN4TRGz7d12d34JV tHtQ== X-Gm-Message-State: AC+VfDyI7rkMMSwBLelhKgaEG+Yiy41BCpFJNU3PT4AkLcPiIJ+mZF8y 7TO8eM0jRELvnhLzrmQ8a94rhQ== X-Google-Smtp-Source: ACHHUZ4fs5Ev0TeA3VyA8cBDPX4R1+JeAnsB/XaBxSMJQffeMekVsOJUtevPH4s1fc3ev5KoVXzs3Q== X-Received: by 2002:a5d:63c6:0:b0:306:3381:67fe with SMTP id c6-20020a5d63c6000000b00306338167femr8755879wrw.27.1684826153729; Tue, 23 May 2023 00:15:53 -0700 (PDT) Received: from arrakeen.starnux.net ([2a01:e0a:982:cbb0:52eb:f6ff:feb3:451a]) by smtp.gmail.com with ESMTPSA id x15-20020a5d490f000000b00306299be5a2sm10096239wrq.72.2023.05.23.00.15.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 May 2023 00:15:53 -0700 (PDT) From: Neil Armstrong Date: Tue, 23 May 2023 09:15:46 +0200 Subject: [PATCH v3 2/6] arm64: dts: qcom: sm8450: add ports subnodes in usb1 qmpphy node MIME-Version: 1.0 Message-Id: <20230503-topic-sm8450-graphics-dp-next-v3-2-6c43d293995f@linaro.org> References: <20230503-topic-sm8450-graphics-dp-next-v3-0-6c43d293995f@linaro.org> In-Reply-To: <20230503-topic-sm8450-graphics-dp-next-v3-0-6c43d293995f@linaro.org> To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Catalin Marinas , Will Deacon Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Neil Armstrong X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=openpgp-sha256; l=1041; i=neil.armstrong@linaro.org; h=from:subject:message-id; bh=03IEmDrMBSANu38UOlHT7AhDQNDNcVKz+ywk26O48No=; b=owEBbQKS/ZANAwAKAXfc29rIyEnRAcsmYgBkbGgkAE/95UxNmS6z6T24s9SKeklQNlAXn5l5XXC9 xT/rY4CJAjMEAAEKAB0WIQQ9U8YmyFYF/h30LIt33NvayMhJ0QUCZGxoJAAKCRB33NvayMhJ0acoD/ oDw18PcgEdYR7GAEVyguVASjk7sPi9T1NyTcbUPIS8ZCyF0GvqmBq0JgtyQ53yoTO94X0jH1k1P5gl vewytH5qCu7DjS08DYS0LDpDBIhRZmA3hRdA8CvZmMqLM69FIdbY8Z+Ju+fRaILuz5pwH/6XMQmvWv WQpcUErTai3pDVZJXO9w1Twa24PE+kfSpECBsNuLgXuOgr1ErswNAWcATPyePys/SKajhptZqM/yn4 tIqmKaDvp0uVQ2/bnWVP8V2F1s2DoHQzdSzoieEcBA8mWUO59xgZzz2gSCD2qNNR0jfZuYEh60fj/N 3z3yEYgs6u3CxPB8474mY2tDYedmrTJyS8szBDGj1YuHvLgBuilpakULTtX/InLa2Pr1CtLwyMqdQy CQ221iRIi1wsHQ2bUEEjul/e+s3mwS378dLDCvDfdiK+7/1nikIS0mPxCtGARC+YljMHtAwz3qD0eb 4f3tpsV95EmEPZAc67LhPcSMv1vmI0cUmA0NM9Her/tZmBcO6dntu5NyX11Llrkif5pTBeS1erBEBR KJvIZ+/nAhJEkJI19cVJ5+DGMrw8u3la9uIXhjcsqlhfKcbAhgzgLEM05vO7nWax3QseN9/G5W2CYB Q0wwNkeAxzxxJOD0jkou1dKqbVclkmwGbWxSmAjXB82KGDf+fHYG6g7+S/vA== X-Developer-Key: i=neil.armstrong@linaro.org; a=openpgp; fpr=89EC3D058446217450F22848169AB7B1A4CFF8AE Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Add the USB3+DP Combo QMP PHY port subnodes in the SM8450 SoC DTSI to avoid duplication in the devices DTs. Signed-off-by: Neil Armstrong --- arch/arm64/boot/dts/qcom/sm8450.dtsi | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sm8450.dtsi b/arch/arm64/boot/dts/qcom/sm8450.dtsi index d59ea8ee7111..7f193802a7c4 100644 --- a/arch/arm64/boot/dts/qcom/sm8450.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8450.dtsi @@ -2053,6 +2053,32 @@ usb_1_qmpphy: phy@88e8000 { #phy-cells = <1>; status = "disabled"; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + + usb_1_qmpphy_out: endpoint { + }; + }; + + port@1 { + reg = <1>; + + usb_1_qmpphy_usb_ss_in: endpoint { + }; + }; + + port@2 { + reg = <2>; + + usb_1_qmpphy_dp_in: endpoint { + }; + }; + }; }; remoteproc_slpi: remoteproc@2400000 { From patchwork Tue May 23 07:15:47 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Neil Armstrong X-Patchwork-Id: 685135 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 706BCC7EE2D for ; Tue, 23 May 2023 07:16:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235457AbjEWHQU (ORCPT ); Tue, 23 May 2023 03:16:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55878 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235410AbjEWHQH (ORCPT ); Tue, 23 May 2023 03:16:07 -0400 Received: from mail-wm1-x330.google.com (mail-wm1-x330.google.com [IPv6:2a00:1450:4864:20::330]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 57E971A6 for ; Tue, 23 May 2023 00:15:56 -0700 (PDT) Received: by mail-wm1-x330.google.com with SMTP id 5b1f17b1804b1-3f41d087b3bso70651705e9.0 for ; Tue, 23 May 2023 00:15:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1684826155; x=1687418155; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=gz9PoM6wCMhgq1ipkD8tgzicWFuKELgpP14GeTMAjVQ=; b=O1jMtTqZzvNvEkoJbLOy/EHEu0A1KVlLqxZ9F4BuhzSVpAK8g2qnl5VnKWtBR3y/rq H3Ikmrobsr1+Qw8eV5dMb6E1OWeCcWn25QAMo1Kp5qVKO3PF63lBkoLgfOVFSZM8kD8r aEOIIL6b7w3jxic0PelLwNnMAYXMjOFi8AeQGznVptEt6M11MJuFLyUg//SNSXmQvoDO xL39S5eqPvMscKXSTbkmXLQcXaZuDnMLZ12psfGrZqr/GMSdj5M0kgmt9kziPRVGGqAn 2y0pubtp2INl23Vjnt5q6F9L4jDCAcviiYXbA10A8tfA2YENfgpQWirkXBHFeTNucMwn qwHQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684826155; x=1687418155; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=gz9PoM6wCMhgq1ipkD8tgzicWFuKELgpP14GeTMAjVQ=; b=T3kOqKTGw99ytMq++59hq2//U8VK3LOVXl4Ps03khwqoFzbu//WQvgSUI6Jq4C4PvE D+zwgVaMTUAGCnOpEM6HiCzdvglAQISUXUt/4VuqVkZoIbNRvgiLht3Q4pGHIj+MGT88 WK2bjMxRU9jIDcF/IzGr6TSGMgSITxXccsfYOX+4Nxjo8R9YroZEo/m6FSdWzm2NHynR yG1VRXfGrjKhs+r9yOjE4Y+i808JrTBKsKGpLxeZ0xmYZHLiygXEP5euH09f9t2OenTY rZbVIVroITbUAEBuErukQMrowT+W7n9mbsk10SkEL9cKNW7Y90k18/s521HRWTGPBbR8 7Srw== X-Gm-Message-State: AC+VfDwISHn8ia4jaWRQJV6EZ99Ks0Gn2Yf9vHHENbl3SX+mmkfdfICP C8NyilhVkvMUFXDFq8ofob04Ig== X-Google-Smtp-Source: ACHHUZ7k647TBZjH5DKD2Dvs12CGQJFK9uKpc9b6KHeAorMyiqQfeouNwpPCCSVww8yjdin44Cx/eQ== X-Received: by 2002:a1c:ed03:0:b0:3f5:fb98:729e with SMTP id l3-20020a1ced03000000b003f5fb98729emr6498256wmh.22.1684826154932; Tue, 23 May 2023 00:15:54 -0700 (PDT) Received: from arrakeen.starnux.net ([2a01:e0a:982:cbb0:52eb:f6ff:feb3:451a]) by smtp.gmail.com with ESMTPSA id x15-20020a5d490f000000b00306299be5a2sm10096239wrq.72.2023.05.23.00.15.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 May 2023 00:15:54 -0700 (PDT) From: Neil Armstrong Date: Tue, 23 May 2023 09:15:47 +0200 Subject: [PATCH v3 3/6] arm64: dts: qcom: sm8350-hdk: Add QMP & DP to SuperSpeed graph MIME-Version: 1.0 Message-Id: <20230503-topic-sm8450-graphics-dp-next-v3-3-6c43d293995f@linaro.org> References: <20230503-topic-sm8450-graphics-dp-next-v3-0-6c43d293995f@linaro.org> In-Reply-To: <20230503-topic-sm8450-graphics-dp-next-v3-0-6c43d293995f@linaro.org> To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Catalin Marinas , Will Deacon Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Neil Armstrong X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=openpgp-sha256; l=2816; i=neil.armstrong@linaro.org; h=from:subject:message-id; bh=JgbdY9bKmOSujT9ezh1sLrV7q5szRUTjWe1DK2Hxnmk=; b=owEBbQKS/ZANAwAKAXfc29rIyEnRAcsmYgBkbGgl5FXg8bvmxPpqI7kr43oxiNXb12B5Ma2nljv8 zZo5SHKJAjMEAAEKAB0WIQQ9U8YmyFYF/h30LIt33NvayMhJ0QUCZGxoJQAKCRB33NvayMhJ0eUkD/ 999VfrJj1AOs+muIT89ENvlUqsgbLk1VHgewSXbIAWyn5ei3/NWvEm5ltRF50Ev1538T65tGF4Y51y v0R306K0anywJMBqamnhcmOV2RfB9l4p4DsDXwSV1qHJgF0RiXO/YHKbPV1aJD3vO1+FrjAFMZA06b g9R5I5cLiqo+1V5XRCNof85W75T3YSyIrrNcLbd9AQxPmivBaUIhYfLOvHgP42KxSTUnqOpsuzCcNz 13JGnkY3adwJVqqWgkchXwKjZ08cLanc9c+sF+VqyTWr51nM2mIgU1qTma5h/GlDxroIl5BFSCfu0A 5Y+9yp21PNjscejf1in13OoWbXJ7WYiTY17wttGIAGVTWOj9LWXebdbJ/gm0mCp6tb0Ifv9NzJpShJ M4hs+1AX7aoXuHV5Thdt8BaNqEZRc842qFqkpWi6eCYndBOWD8CyiI6xxbJgP37Qp3G9+WQQhdOMaJ Vo0A2Ju/n6Qu+INOTF0/3BdNoFje7bI61qc7Nhz61e/Ut/vt9fwKzHwLxEKAnxipiwv/M+QbwIYa0q zw4dfGZB/fhGVg9APmM2c9WF2tG7oxApoMRFzj8gUnCZ/gfcC5WetA8WDdVwMJAhjskVsBv3fpdRSu FvTHfOF8rVEq+u9gajFkJbsRzBMaY0xV5Ztt87QxYt7dgSactNQhLSSxGkVA== X-Developer-Key: i=neil.armstrong@linaro.org; a=openpgp; fpr=89EC3D058446217450F22848169AB7B1A4CFF8AE Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org With support for the QMP combo phy to react to USB Type-C switch events, introduce it as the next hop for the SuperSpeed lanes of the Type-C connector, and connect the output of the DisplayPort controller to the QMP combo phy. This allows the TCPM to perform orientation switching of both USB and DisplayPort signals. Reviewed-by: Konrad Dybcio Signed-off-by: Neil Armstrong --- arch/arm64/boot/dts/qcom/sm8350-hdk.dts | 76 ++++++++++++++++++++++++++++++++- 1 file changed, 74 insertions(+), 2 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/sm8350-hdk.dts b/arch/arm64/boot/dts/qcom/sm8350-hdk.dts index 2ee1b121686a..d3788bd72ac3 100644 --- a/arch/arm64/boot/dts/qcom/sm8350-hdk.dts +++ b/arch/arm64/boot/dts/qcom/sm8350-hdk.dts @@ -58,7 +58,15 @@ port@1 { reg = <1>; pmic_glink_ss_in: endpoint { - remote-endpoint = <&usb_1_dwc3_ss>; + remote-endpoint = <&usb_1_qmpphy_out>; + }; + }; + + port@2 { + reg = <2>; + + pmic_glink_sbu: endpoint { + remote-endpoint = <&fsa4480_sbu_mux>; }; }; }; @@ -326,6 +334,37 @@ zap-shader { }; }; +&i2c13 { + clock-frequency = <100000>; + + status = "okay"; + + typec-mux@42 { + compatible = "fcs,fsa4480"; + reg = <0x42>; + + interrupts-extended = <&tlmm 2 IRQ_TYPE_LEVEL_LOW>; + + vcc-supply = <&vreg_bob>; + mode-switch; + orientation-switch; + svid = /bits/ 16 <0xff01>; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + + fsa4480_sbu_mux: endpoint { + remote-endpoint = <&pmic_glink_sbu>; + }; + }; + }; + }; +}; + &i2c15 { clock-frequency = <400000>; status = "okay"; @@ -370,6 +409,21 @@ &mdss { status = "okay"; }; +&mdss_dp { + status = "okay"; + + ports { + port@1 { + reg = <1>; + + mdss_dp0_out: endpoint { + data-lanes = <0 1>; + remote-endpoint = <&usb_1_qmpphy_dp_in>; + }; + }; + }; +}; + &mdss_mdp { status = "okay"; }; @@ -416,6 +470,10 @@ &qupv3_id_0 { status = "okay"; }; +&qupv3_id_1 { + status = "okay"; +}; + &qupv3_id_2 { status = "okay"; }; @@ -716,7 +774,7 @@ &usb_1_dwc3_hs { }; &usb_1_dwc3_ss { - remote-endpoint = <&pmic_glink_ss_in>; + remote-endpoint = <&usb_1_qmpphy_usb_ss_in>; }; &usb_1_hsphy { @@ -732,6 +790,20 @@ &usb_1_qmpphy { vdda-phy-supply = <&vreg_l6b_1p2>; vdda-pll-supply = <&vreg_l1b_0p88>; + + orientation-switch; +}; + +&usb_1_qmpphy_dp_in { + remote-endpoint = <&mdss_dp0_out>; +}; + +&usb_1_qmpphy_out { + remote-endpoint = <&pmic_glink_ss_in>; +}; + +&usb_1_qmpphy_usb_ss_in { + remote-endpoint = <&usb_1_dwc3_ss>; }; &usb_2 { From patchwork Tue May 23 07:15:48 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Neil Armstrong X-Patchwork-Id: 686114 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 D2FDBC7EE23 for ; Tue, 23 May 2023 07:16:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235438AbjEWHQS (ORCPT ); Tue, 23 May 2023 03:16:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55748 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235393AbjEWHQG (ORCPT ); Tue, 23 May 2023 03:16:06 -0400 Received: from mail-wm1-x32b.google.com (mail-wm1-x32b.google.com [IPv6:2a00:1450:4864:20::32b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3A8CC1A8 for ; Tue, 23 May 2023 00:15:57 -0700 (PDT) Received: by mail-wm1-x32b.google.com with SMTP id 5b1f17b1804b1-3f606a80d34so10897275e9.0 for ; Tue, 23 May 2023 00:15:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1684826156; x=1687418156; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=hVvJVxoAZM5+EmVQd/l/6++jnHkUtTB+gGHms/8rEDc=; b=D8wsahy80pQidhVeP5AEPRi22lQ6QtNR8/YIZSbWGqWoQU2FMamD/QA06ugXNDZv5v 4bDlIQ/3YYJDE7+Qfj7tFMbktNQfSaX/hdo4jX/Xrum0lxtUuPgmAbTLCDgsR1DT9lR+ Tu0Gz+NtHCZny89TVS/5VCFzUtRbSnfyOpQzvcTN1AmT/nJNKejQFQthuEQJCYjPb44I hjyKpjn+xDoOFw6ev20Y6mBUmXhC64e9d/hmm7kFs7y1MvdNh6lnQdCgk+s/cRRG20yS x94/+pa5hK4PApiUnEdU4+jkdwvmwQCyQAvQleN9PNxQg/YP/O3ZFtFItVu2lg3TosWX uSBQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684826156; x=1687418156; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=hVvJVxoAZM5+EmVQd/l/6++jnHkUtTB+gGHms/8rEDc=; b=UGf9CkLvZFHU7IGkavGAOqZO5f7qfdFskXzUTle1vB/iKRzmrNI4h1s6GpdG/th9cW ce8GBMbn6WN5DeiYWo0CnAVIV/ODKt3iGeE+/5kAAHSruoc6fGHX/06Bh6rs1RYpgPbL 1K3XksLIl83DTOjktAiY1ir6o6RC/TJRtxS5jrn0qoBiNGhl6qEmol+7IK7BIygx4Glu nSCoeE9gJq6gYXthoUypczFguO9IUBb7lBfT44HXc5f6y6h0+BEacDuthr8/oLLWjFmC xSy9c8I2EpydDBZ9GnJ4+LX0tPSCFEs6oPglw6g2oP1SvEXIqrb34L12qsln4Hkjuj4g KLpg== X-Gm-Message-State: AC+VfDznfRf80hipEm+Cg82vO9BSSSyZz0SYmHVd/xDLMokms8uarD0k p77dYt4qIJX0m5A58nrH2xXnMA== X-Google-Smtp-Source: ACHHUZ5PRZwh+G9RBlPJO73KsLDO/XqDaET+wtdS90SPM+LYg15ClKSx9CsFyTAhYQjh1zuqY9h5Kw== X-Received: by 2002:a1c:7516:0:b0:3f4:2365:e5ac with SMTP id o22-20020a1c7516000000b003f42365e5acmr8900523wmc.13.1684826155809; Tue, 23 May 2023 00:15:55 -0700 (PDT) Received: from arrakeen.starnux.net ([2a01:e0a:982:cbb0:52eb:f6ff:feb3:451a]) by smtp.gmail.com with ESMTPSA id x15-20020a5d490f000000b00306299be5a2sm10096239wrq.72.2023.05.23.00.15.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 May 2023 00:15:55 -0700 (PDT) From: Neil Armstrong Date: Tue, 23 May 2023 09:15:48 +0200 Subject: [PATCH v3 4/6] arm64: dts: qcom: sm8450-hdk: Add QMP & DP to SuperSpeed graph MIME-Version: 1.0 Message-Id: <20230503-topic-sm8450-graphics-dp-next-v3-4-6c43d293995f@linaro.org> References: <20230503-topic-sm8450-graphics-dp-next-v3-0-6c43d293995f@linaro.org> In-Reply-To: <20230503-topic-sm8450-graphics-dp-next-v3-0-6c43d293995f@linaro.org> To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Catalin Marinas , Will Deacon Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Neil Armstrong X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=openpgp-sha256; l=2624; i=neil.armstrong@linaro.org; h=from:subject:message-id; bh=mhqlzFH1ENEoCnsxWClRFARSzrlKXwK9ZxQOza6S9v8=; b=owEBbQKS/ZANAwAKAXfc29rIyEnRAcsmYgBkbGglcJDQPJmkkBVVbhOcHOme02dCKUKEan/GDGPp Pa/1bACJAjMEAAEKAB0WIQQ9U8YmyFYF/h30LIt33NvayMhJ0QUCZGxoJQAKCRB33NvayMhJ0ddZD/ 9ey3oj/A8lMAcjhbekcxhNk3mh/hcVlC6qrkSFs/6Scc41lLrF5fSmYLdcKqG9pogdX+9ulRrnc+tx RJCAFel87m9abg90wcfDXZl69H+b4slQnEd7YP6jM8nxHLztDPlAIhZyl97aywKFmxePPvIrQ43ve3 cYtcdcPzWhhSSqXJ8eH6rjPjOdGQjgsipeFqfA3hGvj6mr/jsbfrq3cTS4cnM+zy/HYWHEhCy39WlD i3RwtqaesXE1LBoQST+5CXp3mHdxnsdLD1Oy+kp2W7tjw8Kphbalh8E/Mhal4vgaU7BC7ZrxRJ7Pl2 Yc1+JU/14k6l0MwoP0dEEJWualD2DIRbaxOTfPbdsZ3XfQE8V+r+CdHohnq5x8qowLDp6S60Za+24D ovjKp/kbVN6F0ar+g4QZOb3PZ1N+LfogzGVgCjPiJu+0zISlaK0nOFt59a6viwDg+udUQVWrVsVqMs 7+5b4Ptmsl4OL/amGgsAqtlIy9vmauBhUsOt2TrJ2ZD7ZTP9SuSgCf5gYxSU/p9LD9iWrnQf1VZvHY J2fmtz/3GROfNeB0x2bSqL5Yr+q4eMUFp+uBCZTQ3uw8r1eM4KRkPeKJo5xVVQe5Iv4rJKaH9LY6yY UWCl+FFo5jkKVmZZUC0H+MRl+6A10hlZKUf2RFEeXoqypK3pqrPnPns8+W5Q== X-Developer-Key: i=neil.armstrong@linaro.org; a=openpgp; fpr=89EC3D058446217450F22848169AB7B1A4CFF8AE Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org With support for the QMP combo phy to react to USB Type-C switch events, introduce it as the next hop for the SuperSpeed lanes of the Type-C connector, and connect the output of the DisplayPort controller to the QMP combo phy. This allows the TCPM to perform orientation switching of both USB and DisplayPort signals. Signed-off-by: Neil Armstrong --- arch/arm64/boot/dts/qcom/sm8450-hdk.dts | 73 ++++++++++++++++++++++++++++++++- 1 file changed, 71 insertions(+), 2 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/sm8450-hdk.dts b/arch/arm64/boot/dts/qcom/sm8450-hdk.dts index e931545a2cac..d5aeb7319776 100644 --- a/arch/arm64/boot/dts/qcom/sm8450-hdk.dts +++ b/arch/arm64/boot/dts/qcom/sm8450-hdk.dts @@ -114,9 +114,18 @@ port@1 { reg = <1>; pmic_glink_ss_in: endpoint { - remote-endpoint = <&usb_1_dwc3_ss>; + remote-endpoint = <&usb_1_qmpphy_out>; }; }; + + port@2 { + reg = <2>; + + pmic_glink_sbu: endpoint { + remote-endpoint = <&fsa4480_sbu_mux>; + }; + }; + }; }; }; @@ -494,6 +503,37 @@ lt9611_out: endpoint { }; }; +&i2c5 { + clock-frequency = <100000>; + + status = "okay"; + + typec-mux@42 { + compatible = "fcs,fsa4480"; + reg = <0x42>; + + interrupts-extended = <&tlmm 2 IRQ_TYPE_LEVEL_LOW>; + + vcc-supply = <&vreg_bob>; + mode-switch; + orientation-switch; + svid = /bits/ 16 <0xff01>; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + + fsa4480_sbu_mux: endpoint { + remote-endpoint = <&pmic_glink_sbu>; + }; + }; + }; + }; +}; + &mdss { status = "okay"; }; @@ -513,6 +553,21 @@ &mdss_dsi0_phy { status = "okay"; }; +&mdss_dp0 { + status = "okay"; + + ports { + port@1 { + reg = <1>; + + mdss_dp0_out: endpoint { + data-lanes = <0 1>; + remote-endpoint = <&usb_1_qmpphy_dp_in>; + }; + }; + }; +}; + &mdss_mdp { status = "okay"; }; @@ -766,7 +821,7 @@ &usb_1_dwc3_hs { }; &usb_1_dwc3_ss { - remote-endpoint = <&pmic_glink_ss_in>; + remote-endpoint = <&usb_1_qmpphy_usb_ss_in>; }; &usb_1_hsphy { @@ -782,6 +837,20 @@ &usb_1_qmpphy { vdda-phy-supply = <&vreg_l6b_1p2>; vdda-pll-supply = <&vreg_l1b_0p91>; + + orientation-switch; +}; + +&usb_1_qmpphy_dp_in { + remote-endpoint = <&mdss_dp0_out>; +}; + +&usb_1_qmpphy_out { + remote-endpoint = <&pmic_glink_ss_in>; +}; + +&usb_1_qmpphy_usb_ss_in { + remote-endpoint = <&usb_1_dwc3_ss>; }; &vamacro { From patchwork Tue May 23 07:15:49 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Neil Armstrong X-Patchwork-Id: 686113 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 F3356C7EE23 for ; Tue, 23 May 2023 07:16:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235469AbjEWHQZ (ORCPT ); Tue, 23 May 2023 03:16:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55950 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235423AbjEWHQK (ORCPT ); Tue, 23 May 2023 03:16:10 -0400 Received: from mail-wr1-x42f.google.com (mail-wr1-x42f.google.com [IPv6:2a00:1450:4864:20::42f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1A2E7132 for ; Tue, 23 May 2023 00:15:58 -0700 (PDT) Received: by mail-wr1-x42f.google.com with SMTP id ffacd0b85a97d-3093d10442aso4440586f8f.1 for ; Tue, 23 May 2023 00:15:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1684826156; x=1687418156; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=BIFzUJ/Fo8Ahtm/+Q0i0RdjV4Wsb9+gZKMClGpdw4TU=; b=y1pRU7i1YZlPtpVTMvlPg7VJjN5SENwi2EO1DAZDBQatuebpBOu+bvFsXCmpdIQ6e9 2En8H8JNUeTFMDGTgtAPQ6eJHaBReX77CCJECOfqVoRMohVv6yVs9knWduoJBD+4tYqb krU4QFJWHqmQjTrHEVB718oUAE6igdkEWME90QzwkmQ/XcgkeBe5yy6azQ9XechYb5cg HGe0BhsyUdEWgRKaJaUMXtowhpmzVGYIU/gbVbHjypAUwLEBbeiKq428V5wQB5DtzVa6 E0XoMPIGmj9Y3GRNOvFhPxQMGHKkXqY2rt6D3wJ6cx0yp3mrfoLEdRtRpHD8u5+3TIG4 yzfw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684826156; x=1687418156; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=BIFzUJ/Fo8Ahtm/+Q0i0RdjV4Wsb9+gZKMClGpdw4TU=; b=VJTSDh0HC5UuwfSovSQ8J3PwI01rGyB8Rbyc2eAwC0P7FhIuV15nL7dHSsrFWbBAHZ OxBdO98YqJXlbiOk/8qwCm6jdIJtHK48O2wJO64bDkLaB9JVPStdkv7wHi5i/U8yOTW7 7tYub9TcMEbAPdiDqhn8bLBucxGSH4oLc0ZwYUtBSpYhPZtV9UwOgYO8usrWeV2NSESe Htxq1IG/BLU7nOkplFJ7qLS7+Wsswl+/2/d0vZqqfLvh5IUL/z3mYFoCrS2UWX/MyodY lOk+5cBqEZY0owXquQtcdguIdlMT03N7KgoTqRDnxrFG6+d0YnkP2cqfDZFd7rdGopWH XQVw== X-Gm-Message-State: AC+VfDxbuSCrE7bJzuz3vyXcDALMN5FC4DZeFmXcKXCxsfN79wv3qZSl DOTPzVgjj0hbqxQ+PHCv/uhiRg== X-Google-Smtp-Source: ACHHUZ5swly8Ef9OlVNzaWFCSNvV/5xAtLoC4oKSesRPpd8XQCqS6VROE3AbYDBRqNj7UHKdNrz0Iw== X-Received: by 2002:adf:ce08:0:b0:2f2:783f:ae4a with SMTP id p8-20020adfce08000000b002f2783fae4amr9255461wrn.32.1684826156668; Tue, 23 May 2023 00:15:56 -0700 (PDT) Received: from arrakeen.starnux.net ([2a01:e0a:982:cbb0:52eb:f6ff:feb3:451a]) by smtp.gmail.com with ESMTPSA id x15-20020a5d490f000000b00306299be5a2sm10096239wrq.72.2023.05.23.00.15.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 May 2023 00:15:56 -0700 (PDT) From: Neil Armstrong Date: Tue, 23 May 2023 09:15:49 +0200 Subject: [PATCH v3 5/6] arm64: defconfig: enable FSA4480 driver as module MIME-Version: 1.0 Message-Id: <20230503-topic-sm8450-graphics-dp-next-v3-5-6c43d293995f@linaro.org> References: <20230503-topic-sm8450-graphics-dp-next-v3-0-6c43d293995f@linaro.org> In-Reply-To: <20230503-topic-sm8450-graphics-dp-next-v3-0-6c43d293995f@linaro.org> To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Catalin Marinas , Will Deacon Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Neil Armstrong , Krzysztof Kozlowski X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=openpgp-sha256; l=734; i=neil.armstrong@linaro.org; h=from:subject:message-id; bh=B3Sqs44Cj2/7LrYQ/8MFFmf/0AlhDqUQcfHJIvUSGLY=; b=owEBbQKS/ZANAwAKAXfc29rIyEnRAcsmYgBkbGgmrjeORaFDWpBBmGeK+GzFZuWvuDn0ehBtZ7qL bhu1YTaJAjMEAAEKAB0WIQQ9U8YmyFYF/h30LIt33NvayMhJ0QUCZGxoJgAKCRB33NvayMhJ0f4ND/ wO1tb/ixvvyAtMGcDKbTh4uaw90aBRWSOLKwlB/y8Tfh7Xb5vTQJNWCZFT62V8jndi4xitBfuhvRL2 3Wuuw10qxsbV1CTsRpCJDdgTCgwwmMQUqzlgFVFs9fhR0mfbsueWV5SlSi4FnoqVAx/2ljS1G2g8MA 4vaDc63w3gHc6rbGGz5fTObpdKn6nPHg0cM1ZHTVqte57VxiNqUU1CJN4lvye6/JI6+/82yOFepX65 y4TdaJECEa5hRYJnPRrsUZ49r7ps34N47RVyxM5Fs/M8YS+aeopKMds3XM5kDWAdzC8KH4t4VWJksb VxhPpxvsAhvX0TC9ea81lhblZJnj0D8vU2fLXi7RYRRhpScVF05Hit9009yPnsunJfUABswgYPueTv u+3yeZj2IJl80Cc56pcefuMj9O9MT08B0W6WZjlk/KyzPcXvaID6WW9bAfv4IcTihByNXovi6HLjQK e63YkRFGhVnHwYmxAnvnUSch75rRBelMGoGQpZVMKfSgof/1F2o5P6lfPkK9LGwkMqBMM+JXl4xA3c Th+j0PRp8KzpJidaFjdxwcKUOhklbZtj0Ii5ZVze+2SzzOl7DZ928rD6QmbQPxCloy3JOFA3bdcZ0l 5XA/6loF1hXjZqGCvTxYhoFfAeGA9Zh9Alw0L0FKua2nPkIcD91YGCDAkBOQ== X-Developer-Key: i=neil.armstrong@linaro.org; a=openpgp; fpr=89EC3D058446217450F22848169AB7B1A4CFF8AE Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Enable the FSA4480 driver as module for Qualcomm HDK8350 and HDK8450 platforms to permit USB-C Altmode support. Reviewed-by: Krzysztof Kozlowski Signed-off-by: Neil Armstrong --- arch/arm64/configs/defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig index 052e83197760..57ceb528426d 100644 --- a/arch/arm64/configs/defconfig +++ b/arch/arm64/configs/defconfig @@ -996,6 +996,7 @@ CONFIG_TYPEC_FUSB302=m CONFIG_TYPEC_TPS6598X=m CONFIG_TYPEC_HD3SS3220=m CONFIG_TYPEC_UCSI=m +CONFIG_TYPEC_MUX_FSA4480=m CONFIG_UCSI_CCG=m CONFIG_TYPEC_MUX_GPIO_SBU=m CONFIG_MMC=y From patchwork Tue May 23 07:15:50 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Neil Armstrong X-Patchwork-Id: 685134 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 0D42BC7EE2A for ; Tue, 23 May 2023 07:16:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235423AbjEWHQ0 (ORCPT ); Tue, 23 May 2023 03:16:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55730 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235426AbjEWHQQ (ORCPT ); Tue, 23 May 2023 03:16:16 -0400 Received: from mail-wr1-x42d.google.com (mail-wr1-x42d.google.com [IPv6:2a00:1450:4864:20::42d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E41871B1 for ; Tue, 23 May 2023 00:15:58 -0700 (PDT) Received: by mail-wr1-x42d.google.com with SMTP id ffacd0b85a97d-309d3e8777cso2247101f8f.0 for ; Tue, 23 May 2023 00:15:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1684826157; x=1687418157; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=dqfFtZjpBwpHnbanMeS8saew2f7WSD17vQFnp7exxSY=; b=ELwx8MuM+3lQ8JRNfRhIcN5j/fhD7qpkvAgmUfa15HXJL+N3iftke1aNpTr3LOk3AF w6AbAG203Dlubntrv+qxc4Sw6J56ZZrHTTDqaFw7FVL4kKmvq5dUQsXiIdmLXgnC4Oma Hl0JZ80utXtGC+wlkrHQC8rkRSYcI3BciBQPpfLVUKBOO7ZYBNbwvfVYFC+JyJp3G+7y a0KTjIEAyRRLlw0Zu76PaUL4qNH/KYWPo4MuDYC+q9UqGVvMFW63/swtfuCVCcqVF21P gpfDrCWT0Jaxb86D1Xn5LZvmZXCuKXkJx7mvjMef0d4HOoulLNP4OofTFfcH2NFPzNXJ upZw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684826157; x=1687418157; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=dqfFtZjpBwpHnbanMeS8saew2f7WSD17vQFnp7exxSY=; b=VW1+uWQ6Vlj7XNtLwrNxv8g0jmEOOCqeXUTbaeqOgYspOnfK3e0YfU/d9MGKWZxcpG vJq93zljZ1DrARk7SN9e7iKDjdcYmpMPR/MZio0HnVNKhlH8EwtGrAjeq4k6PlSJYwjs Q02qyU/9Tnfw6tURZhD8Epv7mmrUvYf2ILZZ7RGKTtBgziQVm5J1mwyAXSthkvBVfvIq zn0/sb8M43qGrJPoLoAEyUcRO9GX13XGMg8pMeTqrahBdJHf58VnVJOEQ79KDOeIutHg xH8EmfVva2J/9yXqTcbhz7+XhXY60DCrU0+s0xN+dQ1rc0QUKSBTjaWSFb08YYDOoJVD JA1A== X-Gm-Message-State: AC+VfDzREx08Rmz0Sc/WCdiYAcMrQP6k67ESM5jiI0wkmOGRhAdjkUhN vTaWMCi0oAxc6Ees/CJeOjgI/g== X-Google-Smtp-Source: ACHHUZ5zuYspmr1qTK+GSeX740r9P7sdIPRlFZuzTwCaKyhcWCwH1W3y06lAgoOlsBNlb6Ot0IvRVw== X-Received: by 2002:adf:dc8b:0:b0:303:daff:f1a3 with SMTP id r11-20020adfdc8b000000b00303dafff1a3mr10861571wrj.1.1684826157493; Tue, 23 May 2023 00:15:57 -0700 (PDT) Received: from arrakeen.starnux.net ([2a01:e0a:982:cbb0:52eb:f6ff:feb3:451a]) by smtp.gmail.com with ESMTPSA id x15-20020a5d490f000000b00306299be5a2sm10096239wrq.72.2023.05.23.00.15.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 May 2023 00:15:57 -0700 (PDT) From: Neil Armstrong Date: Tue, 23 May 2023 09:15:50 +0200 Subject: [PATCH v3 6/6] qcom: pmic_glink: enable altmode for SM8450 MIME-Version: 1.0 Message-Id: <20230503-topic-sm8450-graphics-dp-next-v3-6-6c43d293995f@linaro.org> References: <20230503-topic-sm8450-graphics-dp-next-v3-0-6c43d293995f@linaro.org> In-Reply-To: <20230503-topic-sm8450-graphics-dp-next-v3-0-6c43d293995f@linaro.org> To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Catalin Marinas , Will Deacon Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Neil Armstrong X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=openpgp-sha256; l=1399; i=neil.armstrong@linaro.org; h=from:subject:message-id; bh=qkASJFOC8Sum3nf8ciK4XNKG+cxf4hgwBJ+cUAn3rO4=; b=owEBbQKS/ZANAwAKAXfc29rIyEnRAcsmYgBkbGgm6WlljbzOT5Ebr1dohSDk9ClWJzy9HlvwA/f0 A/9B+JWJAjMEAAEKAB0WIQQ9U8YmyFYF/h30LIt33NvayMhJ0QUCZGxoJgAKCRB33NvayMhJ0SPgEA DEDRyKtKbsbfDCe80qP4eiPCG5tzJ8+4FRj5EMisHLJdYofti/C0lzSjEjbpFMV79pMP1Mvus8pGRY 17EvHxpYpQJtB4kwHo1pUtvKXFW87g1RRY3BYT8eXLIVe2orFLAAhBCZBqLYHqrRyj2tsEpC60ybQV Iw0d0nm81h+NmSRxis5hel0FdMvdF5PbA2E1ibczb7xQ71hPc3ZPHfjma2RQdgTZPGMrmlkR1vtVo+ UzHmZaYgbkzTWYL5NOlLk//waI1zzGgay7/KMIumVFEEpYKaFpAAFkwq32AZ5n8S2mbCrdh6Mf5QG2 nofnyrh3ckMWoVo8IE9izjAxUIhTSTkyZmOjc7Ldptg7PnunrvCQnwGrGksbysemjBuSa1nhbXEP2C kgaBlhUJKSCpDKfUnfSrmTp0BtZuJ+72o6QDYh9/oQpxauLTbV5O2fwyq6Hzlos8HHUmlS/KMexqi8 WkPhF60nmo+AKAQVQhqrUlZ/pD4/S4B64yYTv2CYYgNr7HP1RD+Vx/Ri4LW+IflLuY47hu9Umdv0V3 pGAglRRKprzWmIftNxn0MlSKQQqgqV3B5odwLdS8cBTw+bIHj0P3dSw0ozpYPuSjxU0my37eTrfw5s Kry1pklsjRGvXp+L9LevylGWGeKQfQygn5Qnd4YU25u6b9W6o60nwK2dVskQ== X-Developer-Key: i=neil.armstrong@linaro.org; a=openpgp; fpr=89EC3D058446217450F22848169AB7B1A4CFF8AE Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Create a separate bitmask for sm8550 and enable altmode aux driver for sm8450 platform to enable pmic-glink altmode events. Signed-off-by: Neil Armstrong --- drivers/soc/qcom/pmic_glink.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/drivers/soc/qcom/pmic_glink.c b/drivers/soc/qcom/pmic_glink.c index 8bf95df0a56a..c87056769ebd 100644 --- a/drivers/soc/qcom/pmic_glink.c +++ b/drivers/soc/qcom/pmic_glink.c @@ -338,13 +338,17 @@ static int pmic_glink_remove(struct platform_device *pdev) return 0; } -/* Do not handle altmode for now on those platforms */ static const unsigned long pmic_glink_sm8450_client_mask = BIT(PMIC_GLINK_CLIENT_BATT) | + BIT(PMIC_GLINK_CLIENT_ALTMODE) | + BIT(PMIC_GLINK_CLIENT_UCSI); + +/* Do not handle altmode for now on those platforms */ +static const unsigned long pmic_glink_sm8550_client_mask = BIT(PMIC_GLINK_CLIENT_BATT) | BIT(PMIC_GLINK_CLIENT_UCSI); static const struct of_device_id pmic_glink_of_match[] = { { .compatible = "qcom,sm8450-pmic-glink", .data = &pmic_glink_sm8450_client_mask }, - { .compatible = "qcom,sm8550-pmic-glink", .data = &pmic_glink_sm8450_client_mask }, + { .compatible = "qcom,sm8550-pmic-glink", .data = &pmic_glink_sm8550_client_mask }, { .compatible = "qcom,pmic-glink" }, {} };