From patchwork Wed May 3 13:10:32 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Neil Armstrong X-Patchwork-Id: 13230158 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 45AECC77B7F for ; Wed, 3 May 2023 13:11:47 +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:MIME-Version:Message-Id:Date: Subject:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=pDQN8yF2mBvUGGts5uEkMD6Li3inL2AkauUWONFBvFc=; b=c1Qq+fe07bAJ6a hX3h778+izRDoVJWRcPRsSc5wZlo+G09HVKDMTnznNPr7ApNbnvCXMA1yF+qg0GFdjWnRgAQCz0Zc SO4u2Uv31NYrvePGdDEmJZF3tT82OqufNJ03U7/s2N9YGWtMLm/zsvL4KnFl9y9G0DoDIeni11jqq Vs7qg6nlbPCiEijE7KdduazcUUBaMiHpztj793fF8q2ZVvbf5Gm0oUGNu31GpohKAC09VZwpqQSsr cv5rc9gy36IfIbsa1oLojKV24TjGh+Q8DucuPlLEdMofsqLF1uXwDz1f+x5+poC5/RX6rnphQU1sR okCxnGiOtjOOuuMUeJmg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1puCFn-004eUw-19; Wed, 03 May 2023 13:10:43 +0000 Received: from mail-wr1-x42c.google.com ([2a00:1450:4864:20::42c]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1puCFk-004eU9-18 for linux-arm-kernel@lists.infradead.org; Wed, 03 May 2023 13:10:41 +0000 Received: by mail-wr1-x42c.google.com with SMTP id ffacd0b85a97d-3063b5f32aaso1174306f8f.2 for ; Wed, 03 May 2023 06:10:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1683119439; x=1685711439; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:from:to:cc:subject:date:message-id:reply-to; bh=HGhjoHsqtpGAvCt96yR+CnnEwvBFAtRaMqZAarDkXaA=; b=YhG45OPWvg/KpGncWxjG8rSHhly+z9qC3UY7/iGT/zTm6UM5PbEIo1cMAUWoRflAKw /FCnXVZecHknk+kn1bBahKKu6r5Ux56T6ruDxvaXcN+9RZnQiYt4QlwaY7LnJoWpzxt0 KArwOpw2/iDBqFR/rXgDFFbdQH/I6n6TrsYs3uG7EdOdJZpyea6My7asGIC0r7og8aPr 8cKpfXweTA0XJw/RnAnELw3PyGuYvmFLmBw1lqMfjELx0okO2nd6ibGRk1x8s5WAAsTQ PrIYtpMdK+LfZsg7kaQNH2WNV7p8/JbUhavyEFqtSmvm8V9HsgCLxUmSrD8CFbYmOapN mdbQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683119439; x=1685711439; 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=HGhjoHsqtpGAvCt96yR+CnnEwvBFAtRaMqZAarDkXaA=; b=YcQKLWBdzjBMh5fhLf6RfmN6ealYZLa7uFqPPSEQOHHDXQJZvfPa4YZumnVZCOuyHQ Mpe8cfxkRLw7LzlMBwxW3OcWWITfJtLA+jfCCWf8ERjxDCEC9335fPjfsGVk5Dg0vuw6 bgAf9GlUjAckmU95xhwWd3SGfEghfsDGF2novMZw1TMCbdo46SfbuCK20v1ermpyG2kk 8a230Y07hwowhgLpQO1AOkW2UckBhDTX0OeLJgit0NYFmuQlt5mbbsMnO5a82ncCZfg9 9ePAMEYMruzXUSZ3UewvHI8eKDtmrwGVxtm261yBfGYRQpF07r5xfgX0iyq9NB8uA9Zv 1Mig== X-Gm-Message-State: AC+VfDzZ2S32LZh3Y6E1wxTEE2AAg0urtRl1/hJm1B1bn6XxBtN7xzN3 PYmKS5/MWxDAL53Emb5SkNmb4Q== X-Google-Smtp-Source: ACHHUZ6H6rMEcexyjbQ76KEEHrcdFlTqDgcGpY5IB+Xv3dbWBDpeQnZ3XIOY8tmrT9xqFmUgNrFIDA== X-Received: by 2002:adf:cd10:0:b0:306:34ae:6a23 with SMTP id w16-20020adfcd10000000b0030634ae6a23mr80497wrm.5.1683119438816; Wed, 03 May 2023 06:10:38 -0700 (PDT) Received: from arrakeen.starnux.net ([2a01:e0a:982:cbb0:8261:5fff:fe11:bdda]) by smtp.gmail.com with ESMTPSA id c10-20020adffb0a000000b00306344eaebfsm5413479wrr.28.2023.05.03.06.10.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 May 2023 06:10:38 -0700 (PDT) From: Neil Armstrong Subject: [PATCH 0/6] arm64: qcom: sm84[34]50: enable DP altmode on USB-C Connector Date: Wed, 03 May 2023 15:10:32 +0200 Message-Id: <20230503-topic-sm8450-graphics-dp-next-v1-0-d1ee9397f2a6@linaro.org> MIME-Version: 1.0 X-B4-Tracking: v=1; b=H4sIAEhdUmQC/x2NSQrDMAwAvxJ0rsBxli5fKT3IthoLUsdYaQmE/ D2mx5nDzA7KRVjh0exQ+CcqS6rQXhrwkdLEKKEyWGM7M5gO1yWLR/3c+sHgVChH8YohY+JtxTa Qu4+WeLwGqA1HyugKJR9rJX3nucpc+C3bf/p8HccJ63ehaYQAAAA= 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=1917; i=neil.armstrong@linaro.org; h=from:subject:message-id; bh=MguxGlBFp7LECZBwSsQYwigxpYUvCvs4cPcikosbYP4=; b=owEBbQKS/ZANAwAKAXfc29rIyEnRAcsmYgBkUl1LdczO4fUc0a5fL4UK3klFWGWxVU63pXBVsGxZ OqU9VPWJAjMEAAEKAB0WIQQ9U8YmyFYF/h30LIt33NvayMhJ0QUCZFJdSwAKCRB33NvayMhJ0ZsmD/ 0TPSbP+An/zeK+WCLDmvG1X1QZxc1rpnXMuYYJTGqNMAbEdivzMBlFqUTTU83M/veQg01ZlKnwuD8B YQQ5f33pNfV2BtW7m5lR+euFF7lOrax5Kg5PPi5jZQHBdo9bblz1YwsMyWpUIA7JlWzPpkZuOK2SDr ICJKIa6jVk0F3onTAU49sskw6vxZry0jbMY99OTPoMGJLIUbZD4Q+aRf3MBwRbNTDwgWKYwQFjJzHI CadeVVVBVQn/lpc0WP2FBR6DZBqtJgLkyFdGL6lIe4/8RY8yfZ0SraVzq0KZ+wX6YC2zMvxTG4F89V hKGZj4nsybmEIY9P2q78SmI3R0C6WpoBgrMki0x5UvggK+vT/kY2xXCwZZCuqC8vRlRy3K5OcQkv1U nsTUeHb7uooGpJYtf2jUlgjzQYoPuZWLHMN/+1SVmN12IXigRJpfibb7NppwwTxu5frMZ7o1WI3+l+ ZgIDPWGunlQrA2JvVFG/vnOXXb0glnVNiHg1Mgo244Qo67NlZ+I/FqjncUTLkByiarUDT9HpuZT+Aa rHSxvCBKSOPQTDv+C9D3gUuChfcJFhV+rq5nOo643jCA7srZrCe235lMHcWqXgRA53mQ099IpR76AL hYov9E7j5iIgtPJPhobC1509UZ5y7Dr/OxMkQUcnxOKbRVn6B0XsnXPDBCig== 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-20230503_061040_393956_AD0479FE X-CRM114-Status: GOOD ( 10.67 ) 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 This is the final step to achieve USB-C Altmode on the HDK8350 and HDK8450 now DP controller support, USB3+DP Combo PHY and pmic glink support have been merged for those platforms. This patchset depends on the QMP Combo USB3+DP PHY orientation support at [1]. The following has been successfully tested: - USB-C PD Power Role, reported status are coherent - USB-C dual-role data - USB2.0 only (no-PD) as DFP or UFP - USB2.0 + USB SuperSpeed as DFP or UFP & in both orientations - USB2.0 + USB SuperSpeed + DisplayPort Altmode in both orientations - DisplayPort-only Altmode in both orientations Data role and SuperSpeed lanes were correctly switched on the PHY side after USB-C removal/insertion. [1] https://lore.kernel.org/all/20230425034010.3789376-1-quic_bjorande@quicinc.com/ Signed-off-by: Neil Armstrong --- Neil Armstrong (6): arm64: dts: qcom: sm8350: add ports subnodes in usb1 qmpphy node arm64: dts: qcom: sm8450: add ports subnodes in usb1 qmpphy node arm64: dts: qcom: sm8350-hdk: Add QMP & DP to SuperSpeed graph arm64: dts: qcom: sm8450-hdk: Add QMP & DP to SuperSpeed graph arm64: defconfig: enable FSA4480 driver as module qcom: pmic_glink: enable altmode for SM8450 arch/arm64/boot/dts/qcom/sm8350-hdk.dts | 74 ++++++++++++++++++++++++++++++++- arch/arm64/boot/dts/qcom/sm8350.dtsi | 26 ++++++++++++ arch/arm64/boot/dts/qcom/sm8450-hdk.dts | 71 ++++++++++++++++++++++++++++++- arch/arm64/boot/dts/qcom/sm8450.dtsi | 26 ++++++++++++ arch/arm64/configs/defconfig | 1 + drivers/soc/qcom/pmic_glink.c | 8 +++- 6 files changed, 200 insertions(+), 6 deletions(-) --- base-commit: b3afd23af1d1a8b690d512be825a7a8aef991eff change-id: 20230503-topic-sm8450-graphics-dp-next-1dab962ae67d Best regards,