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: 13251598 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 3B83DC7EE2D for ; Tue, 23 May 2023 07:16:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References:Message-Id :MIME-Version:Subject:Date:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=Cp0AFi3Rr4eSneR2/W3RpXFhU1wYGtvdyi2NfN4REXc=; b=Aci7PwTzM3lX/v 8sMQiJCUXnNIFa5T/W99ywpUHRDAXW2cP5tCPXD/Cn9nlCpZ4+7+/i2gVplN4Ery64wul2cGLxC8l MZAW9DL+O+ClVFtIkpP02XZ0e9HVw2r/l2M370v4MxVxUORdIQK0vE56pfew9dIU/8WmMYvld5U7H LLE+KcdKlq1BGeFTHUItuUJbM3vEeNFpFGnJFHpWncey7+VKmfdGBWhmaGZRd/VqSlteghNIxHRgK 7dYGcRt92hXnTqZUf9JG1BMbP16DLhTsbFFJ1axuBkHYPM7eLs8lKq6tQfHOaDASNSTLKfpctNMjh 77r4stkqgHk3XFVLVjLA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1q1MFb-009BX8-1V; Tue, 23 May 2023 07:16:07 +0000 Received: from mail-wr1-x42d.google.com ([2a00:1450:4864:20::42d]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1q1MFP-009BS9-0T for linux-arm-kernel@lists.infradead.org; Tue, 23 May 2023 07:16:02 +0000 Received: by mail-wr1-x42d.google.com with SMTP id ffacd0b85a97d-30644c18072so4439500f8f.2 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=XRHlA8xhKLLYFI59jyf0owkdhb5S0ZdMvQQphW+dryN2+HoWjhH76FT6zh9yxYOjAT 25i9YuHYXYuTPKd3lUhX5fDg2cZsP2toTQYuhiMtPd3b/U3HhVPdbpLclToeONPhc5yM iu939wRwS9NxNI6M3HvrgFJO7qyys45RTluJqzP3hqdnCgbmGr+tdQBx2ZTOQ40FPRSx iRoDqNIqU9fb85omzFmH22IAXSBmYA0n+GrvthI/IhKl23CH8T3KnPh7lqcGQ1CrYwpz unGQJkygdtTiyyx9nclZpNXcXxDgqWS9IMtGRElAJU4LzeFcPdr9gBYDo32FiRz3+sFN TfNw== X-Gm-Message-State: AC+VfDymd4os3fe9vRuW9u5fiCNxRtP3zWSykgf10bKD14M7yBYer4Kx PYiVk1T3J3XIIjJWQKZKzQnT0A== 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230523_001555_184981_5F62BBBC X-CRM114-Status: UNSURE ( 9.95 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.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: 13251600 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 9D31FC7EE2A for ; Tue, 23 May 2023 07:16:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References:Message-Id :MIME-Version:Subject:Date:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=s49o+alZb73QF8nntfqsmVp+r1+P7TaBXOubKMrJINQ=; b=VJZN5z0GQ3cqaD xY16fEP8UJQsDsjOg9aX9eU3E4VO5nkp+tg8w857yEeQJIIIUrzM5YZ3g665YqtmfMRetEhC4O31g iIXjb7yZUC78dsRRJa7Z8LhVMoUvUCmwjtX9YGyOaTVoBDMhYBMTA1IIveNnLKIbfXGgsMxvktwsl ozyfD36lSaVDWNfZ66PaOk4SbPEwYAAUV7ngFexrlC8AWyyTf5fTD2Nr37yxIzKkdfzazUbU0+NJ6 dXZVlB2rA+ksP0w3xXpLy0eYYWO5QIDuDjbs5RZ5pn0t2+cUkkhMvjZh9iAMHDgt3TTCGS//Fqmkx IKx8vKcUFcHGUmU4A/mA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1q1MFb-009BXl-39; Tue, 23 May 2023 07:16:07 +0000 Received: from mail-wm1-x32a.google.com ([2a00:1450:4864:20::32a]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1q1MFP-009BSE-1b for linux-arm-kernel@lists.infradead.org; Tue, 23 May 2023 07:16:02 +0000 Received: by mail-wm1-x32a.google.com with SMTP id 5b1f17b1804b1-3f608074b50so12822245e9.0 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=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=NDk/NeRZoHWFnnCZOjhOu3PcHn5zwhll2WgVIbxw8NeABAVqM8T0EBO0boC6B8rIUL Q6TP29PEFjuC52wfnGcnDhrZkFHKseuyeuNeF2+IhPRFKZStEK6MQzflhi2ZBmW5XRgx bcvRyxEpGo7r5IMevwYSkG2ymPXi5cDOeTZaXqqsVcnZNJ2LRk0g51RMjv2SDJyCSroC /iYDv9CGO7pGMcRyA2YRm0drWLwxXF4xVTKJmG6KE8F8SVSQ9UbMcLpZm5ozhWl6e3D5 GJUW1hEzTfoK538H9sGPfY4V1q3TULvvUDaxhN8gH7MFlehHEF0ivaoMPmpJDyVhXJS/ zH3w== X-Gm-Message-State: AC+VfDzKZT+jYsmjUtvHHgtvDF+Q6n7CuPY21quGOyOQfE+wPNqqTAh5 qRLqOAAhWRNGEud3Phf2fcJaLw== 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230523_001555_532263_5D931F2C X-CRM114-Status: UNSURE ( 9.95 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.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: 13251599 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id A7338C77B75 for ; Tue, 23 May 2023 07:16:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References:Message-Id :MIME-Version:Subject:Date:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=nub+wBpHeODHp3tVnoddvTQQeaFIi7GkZfzCa7F0doo=; b=yWA7gQ+ChZ2BCO ahcuces5pXGEs/em5KXiEPtJCdd8sIzUHeHUyIXXRKTLFvi8lJHoUugIBQB6rc+Us6BDhn6Pl5yZC O77l+a74aUpfoXtLZFyFYhKQSuXrNjbDBOLv2xlXzA/+XBrXlKgm8fbAxu04WoU3KaDp2S0+OAv9a uf3pUZeqtC7bhwnRe4hYa66JhMb/zhSybZwIDYW8L4w/mWEoowv+yRHPLXOs4mkFBbofAVL2VHbjR zxZTq9gLW9N7T6AXgLBfxOlsAsgl4SFgnuTlVXxt+76XtebYbjPQ/IAMWsdN+KuvSCJ8ILGFsQvfF GrZHlwbJPyw9hl0syHDg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1q1MFc-009BY7-1X; Tue, 23 May 2023 07:16:08 +0000 Received: from mail-wm1-x330.google.com ([2a00:1450:4864:20::330]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1q1MFQ-009BSw-2G for linux-arm-kernel@lists.infradead.org; Tue, 23 May 2023 07:16:02 +0000 Received: by mail-wm1-x330.google.com with SMTP id 5b1f17b1804b1-3f60dfc6028so520285e9.1 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=ODgZzW8wbZtBV7EuRBH81m2xGlW7V+JYT7zzbhbJ7OY49MrbvCZtuAUIFRo0Xan+RV d/gcETyi2mLAkW6OtgTIQpHhgjrYz06vgzUnbn56RWOkGzJvaleS+9DR/Zo8facUkcZX XaZIkY3norCknwkdh9bn4QctA6lgrE8C8BT+FdqNKydD71q2/TpJiYaLVcOrZdcHAg3O 4vqwMybZvlpBOn8XW1TRa9i9d/i7vCaojDLo3KIrAszcdjpt5WGCGw5dGrbLGQAlRb81 WPMGjLZMKIfaJjiJz37Hs6ifWLUCR9MrqpXFlmCgBrUYJjI1i5ncJ2pnZo532dyc8tWN A6Bg== X-Gm-Message-State: AC+VfDyDPHPsho1H+uQrGreWWJGsNlMvLxCxnHUg2P7t1CDoBQ6pSzNm 5j/sK1/BLNnhIrVWUDiCBrUO2g== 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230523_001556_739320_30D83A99 X-CRM114-Status: GOOD ( 12.52 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.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: 13251603 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 043E5C77B75 for ; Tue, 23 May 2023 07:16:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References:Message-Id :MIME-Version:Subject:Date:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=LA+mp81cU2RRedORhhXQOTWS51J9ZEUx5d9KRkuMROw=; b=StwoKMaqKgusnu AxqMX3c6JRI0rVgNe9AWtkE/N0IKcxVPT8Ei5uad45okvEv9WIBTxGTUziL/2Ws8M8jre9M8uBRLA i3Rta/6ri3+7GsguZwgKlENxGDVCPjeYcZn+qnfDPYtCpsSEfj71IhqkFvWY7QfQ3Jk2OaFyTsCkE sTau/l5xUtwyCXdpayQRbvZSHxpeqoS4YY3JHHpYMiI8oS06ktx1Xcr0cjyVBIOCY8Kp7ypX5XVNu sXCnMyQlgikSTViVS2ge9MikZwPkubWqrv4LiOIhga2rA9SgTMq8Qb6NSUvjN+Zky1g36bFK19vSi Bq1bHcNXCcZBL30jpPWQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1q1MFd-009BYX-09; Tue, 23 May 2023 07:16:09 +0000 Received: from mail-wm1-x329.google.com ([2a00:1450:4864:20::329]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1q1MFR-009BTC-2X for linux-arm-kernel@lists.infradead.org; Tue, 23 May 2023 07:16:02 +0000 Received: by mail-wm1-x329.google.com with SMTP id 5b1f17b1804b1-3f607e60902so9385545e9.2 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=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=PzHm13ZGqcOUGKiNwIEy4/1CpUHJTFc970jWIOq+aXndgyScAd7p5HeabWnpReRFGC bosnXuRN8ejWg/Huf/MvK3EYyyg71vZQfjv/7F9QWbfXS4oq6PEZXFlUNXQxBbmqqlpL Op5Fx1CSLod5TO0AJNOtKDcYTVSOvA/Q6zI+UiCK2v6EkC9V7qHgqJl8J3k7LhJji7mc Cce7nJBUiR5aoxv6D2kyWGBzQAatJdssEDZ0aV31Xy7D+aJHgq+ftdFiwcQpz1KVtenf P+zvUGRwNVPwhzzfzG2l0YxD6LQOpf540/4Jyv+j1+9EVK/ThS0on1Y/vRN2RsJp5sET h6DQ== X-Gm-Message-State: AC+VfDxPlXEfy9nHN8nm61W+Khxb9LLbXE8qZrWqu84JIJeYd4ZWnbvJ VqkceItHDFLBibrkD1D8Kh8mIQ== 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230523_001557_825721_27F658CD X-CRM114-Status: GOOD ( 12.72 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.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: 13251601 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id EFC00C7EE2D for ; Tue, 23 May 2023 07:16:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References:Message-Id :MIME-Version:Subject:Date:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=3V4L4n7o+/XZ4zzmtvXZg5UEjIyxj5cIzFMnkoYh1i8=; b=hglBxpagM5hA95 xUhBZ+uvMlqSgvqBUSbv80KPf8y9rLcymmQyFYyI7a6CeFAR4c7bZp4bQSlCdmLG0spijEYTBEJbs tV/SgZrGcx6r+5TWeDaK4mwLC3GdCaIa4Uh+64TnSisBonRCx5fFCricA4GPTkW7rVOHpSEaNngq+ 7+eucig2Lnvx1gjEVTCCBIEZB7EQK+xLpFI6U3TZiejn2mtenNpEer0ND/+abi+fl8pj3JKQxE/s7 8jPGvAl9joiEDwttcuQNoblsgjFzjUcjcaJ0AKQMicon+ZPVEsrb6gsd2BxjTi8za/m/xSRMIEVzU aCBtoXTDZF/fceE55d+A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1q1MFd-009BYx-1n; Tue, 23 May 2023 07:16:09 +0000 Received: from mail-wm1-x331.google.com ([2a00:1450:4864:20::331]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1q1MFS-009BTS-2j for linux-arm-kernel@lists.infradead.org; Tue, 23 May 2023 07:16:03 +0000 Received: by mail-wm1-x331.google.com with SMTP id 5b1f17b1804b1-3f6042d605dso14772045e9.2 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=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=P5NFUDHR6ZRx0/juFm5ZTY5qasHlgI5tjHL9jgNq+uYaunFVQq1UBwE5zbFIrZCw+e VTeSYyloxHdFfjAGTkSWpPGDrEKr/RsXudi96NkhlB9F6ljh0xu+gCinc3K03Xw4AFJs JlIITPMv06stvdgHd/7aJKkDQyz7UGPQVrk4oEAZ/TtIGI4dVjxlPU4AkpfA7QqeB+cP reZqaw1K+HPdUse4ZbW6MBY1wDnEkfeKN0B45vQHC9UnYnGt8FL8FHdG6WS9iaP0x8GN SYFfOO5iniLZ5AbfTfSCYMiz0p/lVvurp4F3n620nXEjrXsRuhoOhtwrgldE3RueNlfc 7How== X-Gm-Message-State: AC+VfDw8uwan1YO965gUX09V2R/xvfOEvFVapC+7MD/sPs8bkE1YMSKf R4LSD3vSXfuLoD1sKm8UcpJyOA== 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230523_001558_885998_6FA13BC3 X-CRM114-Status: UNSURE ( 9.91 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.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: 13251602 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id AF1FFC7EE2F for ; Tue, 23 May 2023 07:16:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References:Message-Id :MIME-Version:Subject:Date:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=7fRMQY/SyCGZQZP1BO+BaPLOpODz1dqauBwTL5uwVes=; b=zBvkBSFbj4W9xQ sEGuIBXpM4QgzHiQji1RVvDbIc2fB4lPVoPrycMpCXQUN3gUEl5dpC5mwMsLZx9qHpfUHcHfHwJKM ZeE/iwOL2o+N2CaPYr6lENHQzNVaBh78KPWtOWMdu4gLR8Z5nZ2Ii0hkEng0mrgEHg3lRJa7uyUvd B2GE7VnMNyTZKowK9Q6Oe429DhBFsmzIsAyKtcuT9ZzmyZWdxqdNbp1RxKz83ZK9XaqmNJrJYWtJE tZOvTDyb5Lnc7xt+RCJR47+di6Eam+toCENczVJsP1EMxiicj6fj7Edoj0sKMAbu+Uxc8egVuwmiM cdWtYRI9SRHC+Xc11fRQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1q1MFe-009BZL-0D; Tue, 23 May 2023 07:16:10 +0000 Received: from mail-wr1-x431.google.com ([2a00:1450:4864:20::431]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1q1MFT-009BTs-0v for linux-arm-kernel@lists.infradead.org; Tue, 23 May 2023 07:16:06 +0000 Received: by mail-wr1-x431.google.com with SMTP id ffacd0b85a97d-30a992a9c3eso495444f8f.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=KrYIOhPeY9Gw5M++BLHV9M7CM3MY07drm7iJZ0Wh0q1JFJxG+3t2eNp3a9gcfMRaQb P4N/eIn3h2lF3NOihDsbmmKnADNs2YqXX6xxysSccfdZq/5XKzlkHdtpclxSP+SBJWjY lIuOpdC/MHHSct5gfThZSBH08VtWL85fuiRYeG/H89a1jDjVMqMVKVvMD3vYrsyr9Yru F1nyOzkPMgWesYT4xCXW1QJMgRJa6x+rsvFjvTeNY2vIrI4d3IDDfKADVStVsT5P11dv dBaTjouBlzxz/6SyZdBz82UWZVh8Yod095eD6Gl6PwiBlscY7OQnhmIM9cf1EmOeBGQR QASw== X-Gm-Message-State: AC+VfDwVRNQXpKMH9nfJUvA3JOtlPvQIFMmkuoK2f6o+iFE9UjOQvMoD DbyhJWilfTTQVkr3u+GX4JZEsQ== 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230523_001559_325519_9F26D886 X-CRM114-Status: GOOD ( 13.13 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.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" }, {} };