From patchwork Wed Aug 16 11:51:45 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bryan O'Donoghue X-Patchwork-Id: 715493 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 6F60DC04FE0 for ; Wed, 16 Aug 2023 11:52:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244805AbjHPLwM (ORCPT ); Wed, 16 Aug 2023 07:52:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53848 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244875AbjHPLwB (ORCPT ); Wed, 16 Aug 2023 07:52:01 -0400 Received: from mail-wm1-x32f.google.com (mail-wm1-x32f.google.com [IPv6:2a00:1450:4864:20::32f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0F2E72123 for ; Wed, 16 Aug 2023 04:51:57 -0700 (PDT) Received: by mail-wm1-x32f.google.com with SMTP id 5b1f17b1804b1-3fe4ad22eb0so62824745e9.3 for ; Wed, 16 Aug 2023 04:51:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1692186715; x=1692791515; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=G7oGum5pCxYXSoJ0gOXkhrsK7bDcAuYfzLXErLOePNc=; b=Thzl6MEwqX2EG4ah95QbNXFdMDhTZJe6XEpejlyxl7vzueYv3X1GJtAIO/b7+9TdBM 1EU5gEg5dKdrA/w0zG9gflZyXzptlyBmT7Uv+dBu3pnbhYvujX0vs+AbgqJGYj0CGrX2 rK5OT8RNbFaHK8zxZiOVtEaUb1HCO6P4a9h8D3ZfKCp+HonAe9dai3veuPgOTEOILmDs 1L+ISeGDH4IRQXRQA4Yi6uENl8UOFgvinp+1Oj1m/58cQ53Lh3+qb+79/wdgFuQMRGcz h0KBoGbwpo5tJQh/Xp1aHrEpagfYZwIrKfh33X2uucHT+Y5uv3388F//W2UiTFZEkh5o Tpqw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1692186715; x=1692791515; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=G7oGum5pCxYXSoJ0gOXkhrsK7bDcAuYfzLXErLOePNc=; b=Jb65MgaoSwM+4vxF9Clm91U4DGd5lMLnZt8EAwvIHAN/AEycjZmzoicvKcwgH47gMh xOcppmxQONzn0WdfOeEL0YiJEN+tMcE8jqb0dqvJRDK+ZE3cuKpmeL85lBWZZMOtJ0BE aNz8CSb1Gkbk7QA49Riy9AMiOhK3YXC9whk8Xx8SrOwsnv6zAPEExoW+3AMByuX3+6Zr LjloaMI54wgfD/5MsZKxY40DuOIx7gFnY3RDeHEXDX0Pd6D+ObGujcEnNqciA7o9K8Yr jBeJPyzbhyh9UNaStQpitC6m+auOA7c3j0VOgVZmAO03thxRL30GosPwpavEKDVUgdsp MX8w== X-Gm-Message-State: AOJu0Yz6kybdaz/wOH3wIFFbEjsc6+aMInkogEA7lRXghb0QNpCAcB6t b+QaJC7pXNJ75SocxjO0Saa9JA== X-Google-Smtp-Source: AGHT+IGKKt/5GN8Voyhb2f+eEeYq7Z0jaVDOdWiPNhgmcX5J8bnStHY5ce0fSMZ4EUt5JklZF49MRA== X-Received: by 2002:a7b:c4cb:0:b0:3fb:e573:4172 with SMTP id g11-20020a7bc4cb000000b003fbe5734172mr1253510wmk.31.1692186715540; Wed, 16 Aug 2023 04:51:55 -0700 (PDT) Received: from sagittarius-a.chello.ie (188-141-3-169.dynamic.upc.ie. [188.141.3.169]) by smtp.gmail.com with ESMTPSA id fk3-20020a05600c0cc300b003fc05b89e5bsm21280663wmb.34.2023.08.16.04.51.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Aug 2023 04:51:54 -0700 (PDT) From: Bryan O'Donoghue To: agross@kernel.org, andersson@kernel.org, konrad.dybcio@linaro.org, lee@kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, sboyd@kernel.org, luca.weiss@fairphone.com Cc: bryan.odonoghue@linaro.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Krzysztof Kozlowski Subject: [PATCH v9 1/7] dt-bindings: mfd: qcom,spmi-pmic: Add typec to SPMI device types Date: Wed, 16 Aug 2023 12:51:45 +0100 Message-ID: <20230816115151.501736-2-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230816115151.501736-1-bryan.odonoghue@linaro.org> References: <20230816115151.501736-1-bryan.odonoghue@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Add the PMIC Type-C port driver to the list of devices. Acked-by: Krzysztof Kozlowski Signed-off-by: Bryan O'Donoghue --- Documentation/devicetree/bindings/mfd/qcom,spmi-pmic.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Documentation/devicetree/bindings/mfd/qcom,spmi-pmic.yaml b/Documentation/devicetree/bindings/mfd/qcom,spmi-pmic.yaml index 8b9a2008a354e..7fdbd15969d27 100644 --- a/Documentation/devicetree/bindings/mfd/qcom,spmi-pmic.yaml +++ b/Documentation/devicetree/bindings/mfd/qcom,spmi-pmic.yaml @@ -164,6 +164,10 @@ patternProperties: type: object $ref: /schemas/thermal/qcom,spmi-temp-alarm.yaml# + "^typec@[0-9a-f]+$": + type: object + $ref: /schemas/usb/qcom,pmic-typec.yaml# + "^usb-detect@[0-9a-f]+$": type: object $ref: /schemas/extcon/qcom,pm8941-misc.yaml# From patchwork Wed Aug 16 11:51:46 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bryan O'Donoghue X-Patchwork-Id: 715492 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 32494C07E8D for ; Wed, 16 Aug 2023 11:52:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244816AbjHPLwO (ORCPT ); Wed, 16 Aug 2023 07:52:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53962 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244886AbjHPLwE (ORCPT ); Wed, 16 Aug 2023 07:52:04 -0400 Received: from mail-wm1-x32a.google.com (mail-wm1-x32a.google.com [IPv6:2a00:1450:4864:20::32a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 60A2826A4 for ; Wed, 16 Aug 2023 04:51:58 -0700 (PDT) Received: by mail-wm1-x32a.google.com with SMTP id 5b1f17b1804b1-3fe4b95c371so38356735e9.1 for ; Wed, 16 Aug 2023 04:51:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1692186717; x=1692791517; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=JV00bZkaIhPWpOxXyRCh8E/f/JJawPGdTZeIZXeOFXQ=; b=qaoiO6J6BahFe7jSR2wlw2iWxl+NuzmBeCt74oguzunznZWIZm8APWNfCAE0gT1AfN A6/SjB5B/KwShKq+qzsLblc3LyZc6+wYIXGOYL3vVVQWIsK2t8zXUUd0hIwkayVIONhz 5zv2vFJhj1CDYpA8oqM9McT/+QbSI9s9XWNDjSFht7n0xVezbRoZS+3nE+EbpordaQ3H Gptbye2QQ2Zk5iXOCaI81rGolmYbfpgtz/wQhgrkbQxkamGaKjppeUk4DDoSSPbwPhkd +bNiS7ZqaS3MVOJz+QOXQyFKLWwsN2gEd4CaIVqsWGuweHc2R/B1b2bSpRV62oJRoXDx 3c3w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1692186717; x=1692791517; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=JV00bZkaIhPWpOxXyRCh8E/f/JJawPGdTZeIZXeOFXQ=; b=CHlQ0Km5lyA2Z3ATTTfIPpz3wN4I5JZg5bTTMgIGHW8OaZr3tJuo9lPuiE4UHmQsMW QsXUTFMJoMHYwl62Yc3/zeriyUwfHRlgRyI8EC2jQr8x+ZQGXtO6SldTQr8bPc7QT952 nFSgGKa5ot+/qLRvQCaKLrNJ9SF10tkU43P/CDpJGXjkP32/v2HcaDtrCEl4P3tQ8/fM znTTLqeLKolKamHxksHF0WroBOpfTh+aSkjvfN7CEMKLjSjU3CbfFsua/QD2EQiXbCH4 92JcQ8KsuK0WN7/PqyGlJjDWS05e0dApGB7DlP2+uvxQx3D4Xwo5TSBtqck8tpOE+vL3 yiyQ== X-Gm-Message-State: AOJu0YxbFkfxnCtsy81qmnx565zj3x+YEzf54ZXbUdJB44HjsuhRmJm3 Dmdh8O9IK2d0ZPt8gQ68EqfSpw== X-Google-Smtp-Source: AGHT+IEtOq3k16VomGJ0zPhS63jvQjeTvHdx15cNuaELY7tU1EaOFnAsRIsT9S9/Ry2Z8SPQ1JtKUg== X-Received: by 2002:a7b:c405:0:b0:3fe:1166:e33f with SMTP id k5-20020a7bc405000000b003fe1166e33fmr1491664wmi.10.1692186716979; Wed, 16 Aug 2023 04:51:56 -0700 (PDT) Received: from sagittarius-a.chello.ie (188-141-3-169.dynamic.upc.ie. [188.141.3.169]) by smtp.gmail.com with ESMTPSA id fk3-20020a05600c0cc300b003fc05b89e5bsm21280663wmb.34.2023.08.16.04.51.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Aug 2023 04:51:56 -0700 (PDT) From: Bryan O'Donoghue To: agross@kernel.org, andersson@kernel.org, konrad.dybcio@linaro.org, lee@kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, sboyd@kernel.org, luca.weiss@fairphone.com Cc: bryan.odonoghue@linaro.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v9 2/7] arm64: dts: qcom: sm8250: Define ports for qmpphy orientation-switching Date: Wed, 16 Aug 2023 12:51:46 +0100 Message-ID: <20230816115151.501736-3-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230816115151.501736-1-bryan.odonoghue@linaro.org> References: <20230816115151.501736-1-bryan.odonoghue@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org ports for orientation switching input and output. The individual board dts files will instantiate port@0, port@1 and/or port@2 depending on the supported feature-set. Reviewed-by: Konrad Dybcio Signed-off-by: Bryan O'Donoghue --- arch/arm64/boot/dts/qcom/sm8250.dtsi | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sm8250.dtsi b/arch/arm64/boot/dts/qcom/sm8250.dtsi index 83ab6de459bc4..c79173504a3fd 100644 --- a/arch/arm64/boot/dts/qcom/sm8250.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8250.dtsi @@ -3613,6 +3613,23 @@ dp_phy: dp-phy@88ea200 { #phy-cells = <0>; #clock-cells = <1>; }; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + }; + + port@1 { + reg = <1>; + }; + + port@2 { + reg = <2>; + }; + }; }; usb_2_qmpphy: phy@88eb000 { From patchwork Wed Aug 16 11:51:47 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bryan O'Donoghue X-Patchwork-Id: 714133 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 DEC05C0729B for ; Wed, 16 Aug 2023 11:52:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244823AbjHPLwP (ORCPT ); Wed, 16 Aug 2023 07:52:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53946 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244885AbjHPLwE (ORCPT ); Wed, 16 Aug 2023 07:52:04 -0400 Received: from mail-wm1-x32d.google.com (mail-wm1-x32d.google.com [IPv6:2a00:1450:4864:20::32d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8F2A51FD0 for ; Wed, 16 Aug 2023 04:51:59 -0700 (PDT) Received: by mail-wm1-x32d.google.com with SMTP id 5b1f17b1804b1-3fe1d462762so59543845e9.0 for ; Wed, 16 Aug 2023 04:51:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1692186718; x=1692791518; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=42aTomtEutSZIoTJca8uXgd74cE218R8+M1C+k9J/YQ=; b=UfaJ2N0cFaOEM0KK+0csd3LOq0jyps3FdTDKnYJev6q7dwoa1+c6EgHtJLQCsA7tsU FDuiuXDxHOkFIKJFBvSe5jC7iWfgEspVHczRqaH+YZmEb57uhMHWRAtg52PP3MwCbfo+ RCQbDtqpaAqTI5si08BCI4mR2oN5EJxSGKS8b7kqP2i5wIy23ahW92dAgox+88eUT1HW qTLe2fj7p0c5B9kmhkOvs+lJBE8Q4kS6/zbaI/uba1Q7mC+jsJQHJZaoomSPgeWEkKqu t3S0t2q3lAacxRpIadhd7LCBIJ+Ix2YD6ss/7mQdlVY9ck7KUTDxYvDKrlNSQE7h5zaM qXmg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1692186718; x=1692791518; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=42aTomtEutSZIoTJca8uXgd74cE218R8+M1C+k9J/YQ=; b=F2qCh3p6dzxnnPdyhW9C1ulv1ZkZQAnJsMS9XSuR0HsPuD8ARmcTka+22valokOUVd UC6KYnJIoYQq4+codkEFPsKulC6bw9nZ6zNIBR3vYVFl3sP/z3JZnTckFzsy+Op9vMH4 FCorgiS+MwHCIsfunmZB2OH/Ia8ReGe0o8y9LxI52s+KOGoPGHqLt/eb5P+azN4J++wH j+GWmuftFBicWZN6h7dnfI0lbAL7e/oz2+Atp92nZVoeO1kl9PtHFwTWDMIo8po6LQ7Z W4D8U1TxzKxSpTkFMCbbJGxt7vK/gX1TT3wyHyNzNjeSEUg2ZPzSEj4K5kDMz1PSFFZv 69/A== X-Gm-Message-State: AOJu0YwsZUK8hjOQT0rjQ87imFSpxUqRZqXQJa3tWef0GrJpCx0+cvli nBQO0v36m1KJFDY8Zm+zDKGJMg== X-Google-Smtp-Source: AGHT+IG0sVz2Z6BjXqDENCNlr1OVyPr1X6oLg8Jm7OPxZBFr63UolJSUDfe5UeEAH3Pt5ZTy0/cgMQ== X-Received: by 2002:a1c:f707:0:b0:3fe:15f0:dfbc with SMTP id v7-20020a1cf707000000b003fe15f0dfbcmr1385194wmh.12.1692186718075; Wed, 16 Aug 2023 04:51:58 -0700 (PDT) Received: from sagittarius-a.chello.ie (188-141-3-169.dynamic.upc.ie. [188.141.3.169]) by smtp.gmail.com with ESMTPSA id fk3-20020a05600c0cc300b003fc05b89e5bsm21280663wmb.34.2023.08.16.04.51.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Aug 2023 04:51:57 -0700 (PDT) From: Bryan O'Donoghue To: agross@kernel.org, andersson@kernel.org, konrad.dybcio@linaro.org, lee@kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, sboyd@kernel.org, luca.weiss@fairphone.com Cc: bryan.odonoghue@linaro.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v9 3/7] arm64: dts: qcom: pm8150b: Add a TCPM description Date: Wed, 16 Aug 2023 12:51:47 +0100 Message-ID: <20230816115151.501736-4-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230816115151.501736-1-bryan.odonoghue@linaro.org> References: <20230816115151.501736-1-bryan.odonoghue@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Type-C port management functionality lives inside of the PMIC block on pm8150b. The Type-C port management logic controls orientation detection, vbus/vconn sense and to send/receive Type-C Power Domain messages. Signed-off-by: Bryan O'Donoghue Reviewed-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/pm8150b.dtsi | 40 +++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/pm8150b.dtsi b/arch/arm64/boot/dts/qcom/pm8150b.dtsi index 66752cc063d60..136e5f96a3d53 100644 --- a/arch/arm64/boot/dts/qcom/pm8150b.dtsi +++ b/arch/arm64/boot/dts/qcom/pm8150b.dtsi @@ -59,6 +59,46 @@ pm8150b_vbus: usb-vbus-regulator@1100 { reg = <0x1100>; }; + pm8150b_typec: typec@1500 { + compatible = "qcom,pm8150b-typec"; + status = "disabled"; + reg = <0x1500>, + <0x1700>; + interrupts = <0x2 0x15 0x00 IRQ_TYPE_EDGE_RISING>, + <0x2 0x15 0x01 IRQ_TYPE_EDGE_BOTH>, + <0x2 0x15 0x02 IRQ_TYPE_EDGE_RISING>, + <0x2 0x15 0x03 IRQ_TYPE_EDGE_BOTH>, + <0x2 0x15 0x04 IRQ_TYPE_EDGE_RISING>, + <0x2 0x15 0x05 IRQ_TYPE_EDGE_RISING>, + <0x2 0x15 0x06 IRQ_TYPE_EDGE_BOTH>, + <0x2 0x15 0x07 IRQ_TYPE_EDGE_RISING>, + <0x2 0x17 0x00 IRQ_TYPE_EDGE_RISING>, + <0x2 0x17 0x01 IRQ_TYPE_EDGE_RISING>, + <0x2 0x17 0x02 IRQ_TYPE_EDGE_RISING>, + <0x2 0x17 0x03 IRQ_TYPE_EDGE_RISING>, + <0x2 0x17 0x04 IRQ_TYPE_EDGE_RISING>, + <0x2 0x17 0x05 IRQ_TYPE_EDGE_RISING>, + <0x2 0x17 0x06 IRQ_TYPE_EDGE_RISING>, + <0x2 0x17 0x07 IRQ_TYPE_EDGE_RISING>; + interrupt-names = "or-rid-detect-change", + "vpd-detect", + "cc-state-change", + "vconn-oc", + "vbus-change", + "attach-detach", + "legacy-cable-detect", + "try-snk-src-detect", + "sig-tx", + "sig-rx", + "msg-tx", + "msg-rx", + "msg-tx-failed", + "msg-tx-discarded", + "msg-rx-discarded", + "fr-swap"; + vdd-vbus-supply = <&pm8150b_vbus>; + }; + pm8150b_temp: temp-alarm@2400 { compatible = "qcom,spmi-temp-alarm"; reg = <0x2400>; From patchwork Wed Aug 16 11:51:48 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bryan O'Donoghue X-Patchwork-Id: 714132 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 47D5CC3DA40 for ; Wed, 16 Aug 2023 11:52:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244813AbjHPLwN (ORCPT ); Wed, 16 Aug 2023 07:52:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54050 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244894AbjHPLwF (ORCPT ); Wed, 16 Aug 2023 07:52:05 -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 E0F0E26A9 for ; Wed, 16 Aug 2023 04:52:00 -0700 (PDT) Received: by mail-wm1-x32b.google.com with SMTP id 5b1f17b1804b1-3fe1a17f983so58193325e9.3 for ; Wed, 16 Aug 2023 04:52:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1692186719; x=1692791519; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=Hv1dByAC4O+93wVPqRp/nC5owKK9YptPjWZq1jFb2OQ=; b=OGLweqSCYLH4Y50og178nxVSV2wIPmtbQ8teMsDmwO74PAxkJOm4v2hz9W76ggMq24 A/A2phvV8hBEQVqteTyvtfAqUus5NoZUjKzO+XIH/7o9mZFN2MQv6u+J0R29uYsr++I7 OJm1pmiEUyVAQljYYLA06XKcSYY8tsC5GKeg+YvWULJtrrKN/GAPMomsh+vI8VuV+bn/ LGjwipuxvcl/T+J91VzDw8Z97nhRHY5KKfXzVLWttycvW/3sWZ3+OXBOmmpcEvA9eDdH D0thz530tW6qwPACKsab3ydai6otC/zww4ErnrdqfIz7eVBv2WWDBnoulCZFsebGWHiD BaUQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1692186719; x=1692791519; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Hv1dByAC4O+93wVPqRp/nC5owKK9YptPjWZq1jFb2OQ=; b=cHsKEmNtAk0vYNc/GTcoAyf4nnKJArLwvTq9Lhflr6FiM66p1HNEiMy1FYadJjwcfA 0qw19I7e0UGNBKMM6SbIC3qtxvNCAy4O853FWXF3yWVbz5pizIjWlcT0AedeN8+mHwyg oqR1zt2YaKhVB6wKA2BiqjkoNpt/gDtA3shJ4AtE+fRY/QAK/3Ok9KvJvRuPBhcqJnQx WyDKXvNStGzN+kJ5D8Mg8ayAZqyWfXl4rl2IBjCCOqe42SDf0TCvOryP74sgBapK1Fm6 mFwbXIEVqUJwxzKepovnspGfvgTxwSWnNqEr6PqwSfSJmGB8/zoI+fOf0pehzVTzx8oo Hs5Q== X-Gm-Message-State: AOJu0YytAtI4xMOQgiT2+EL/2ky5jqkVRfA8vglvI2bRc4KPglU+c6W+ QCs1ruBNFFP4M5VBgzV5xWRVTg== X-Google-Smtp-Source: AGHT+IFx6vhmAs+gDskNm8HUy26/1I+GNC9to4jvOk6cJiEmy5y9jqJi7/JMtXFaNJyA17AYmKDwNw== X-Received: by 2002:a05:600c:228c:b0:3fe:16c8:65fa with SMTP id 12-20020a05600c228c00b003fe16c865famr1263861wmf.4.1692186719505; Wed, 16 Aug 2023 04:51:59 -0700 (PDT) Received: from sagittarius-a.chello.ie (188-141-3-169.dynamic.upc.ie. [188.141.3.169]) by smtp.gmail.com with ESMTPSA id fk3-20020a05600c0cc300b003fc05b89e5bsm21280663wmb.34.2023.08.16.04.51.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Aug 2023 04:51:58 -0700 (PDT) From: Bryan O'Donoghue To: agross@kernel.org, andersson@kernel.org, konrad.dybcio@linaro.org, lee@kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, sboyd@kernel.org, luca.weiss@fairphone.com Cc: bryan.odonoghue@linaro.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v9 4/7] arm64: dts: qcom: qrb5165-rb5: Switch on Type-C VBUS boost Date: Wed, 16 Aug 2023 12:51:48 +0100 Message-ID: <20230816115151.501736-5-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230816115151.501736-1-bryan.odonoghue@linaro.org> References: <20230816115151.501736-1-bryan.odonoghue@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Switch on VBUS for the Type-C port. We need to support a higher amperage than the bootloader set 2 Amps. Reviewed-by: Konrad Dybcio Signed-off-by: Bryan O'Donoghue --- arch/arm64/boot/dts/qcom/qrb5165-rb5.dts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/qrb5165-rb5.dts b/arch/arm64/boot/dts/qcom/qrb5165-rb5.dts index 9022ad726741c..624d6ffc2f12f 100644 --- a/arch/arm64/boot/dts/qcom/qrb5165-rb5.dts +++ b/arch/arm64/boot/dts/qcom/qrb5165-rb5.dts @@ -1334,3 +1334,9 @@ &qup_spi0_data_clk { drive-strength = <6>; bias-disable; }; + +&pm8150b_vbus { + regulator-min-microamp = <500000>; + regulator-max-microamp = <3000000>; + status = "okay"; +}; From patchwork Wed Aug 16 11:51:49 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bryan O'Donoghue X-Patchwork-Id: 715491 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 5D6BBC07E8C for ; Wed, 16 Aug 2023 11:52:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244838AbjHPLwQ (ORCPT ); Wed, 16 Aug 2023 07:52:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54068 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244896AbjHPLwF (ORCPT ); Wed, 16 Aug 2023 07:52:05 -0400 Received: from mail-wm1-x334.google.com (mail-wm1-x334.google.com [IPv6:2a00:1450:4864:20::334]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 37B1C1FC7 for ; Wed, 16 Aug 2023 04:52:02 -0700 (PDT) Received: by mail-wm1-x334.google.com with SMTP id 5b1f17b1804b1-3fe4b45a336so58414735e9.1 for ; Wed, 16 Aug 2023 04:52:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1692186721; x=1692791521; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=UG3UnUv+VxY4mzDZ/Pj2e56inNw78lJ/+YPxFNE8oEM=; b=pTuFYy01fv3gPStTKioRX2KGpRMXW3ygQoftVRHmywG+XbtE0grN+oYQ6Qnxi07Yt3 e1o9GbzvyH04KW10PcVwkvwCzJqMWWwUZAA61dxr1rMJ0TxqpG42rSPzfa4WupzSJbq1 Zl6jswGi5H4JOCaOYFykGj3cKjLC+oci/J8vDF+x86rEc1qYx26vEk3EMmNagnnT4MQ+ ta50RrQNAaZ6e5IDl3ONPVvWkwZai68GzhVMS2tIvYUw9MUGGDIs1igmZLCV/XMyOGoL OJZrOFJhKPLyfzbq1akXyE/fdBJpz5HQIPpeu9sD6UhnSdfBgpn1yy5RQaAugA/pW7g2 ZWuA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1692186721; x=1692791521; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=UG3UnUv+VxY4mzDZ/Pj2e56inNw78lJ/+YPxFNE8oEM=; b=k8niPWlDPLLE39p7AAEOLvgqb4VqDfD/7DYpsRNJWnHKzoaeKXFhau/94MVOQzmjYd 5ikWBLR9lF+dstjDHqexOPHtKhOqw4SjoV9tb7CmkO89m5C68QJwaFJI1/VYyaClLgFX l65Uj6oERVXjoofX0DYwEXA4fsopmoeRzsQUrDO1n//qhH70IP/qeDG07/aHCFa/l4is o5w3gOI8o1UYQZHzo4ocG7wM2480bF46GysVglfQaxI3cJSm8CeOCh1iEVABGO6MC+LD LDT6EID9Pqo2v/XuneUPjmttznfqCt6IF+Vtr1UlJQjj0GVeo+Ac3O2H4iEgp2vpVbp3 6yEQ== X-Gm-Message-State: AOJu0YwBX3X9Fo791uGgfSQkGK8weXZ13Wdn9P3Gsxps1Y+jfrPWjr7Y fPo1qozT3KpCw/tMiOUQTu/aKA== X-Google-Smtp-Source: AGHT+IFyTvlUB4U2wDMd7NVyiATimwhhBvORx06S9Mezb0gzh/QfZPTD4kRABBihqRNDsXJL86uOwQ== X-Received: by 2002:a1c:ed13:0:b0:3fe:111b:7fc4 with SMTP id l19-20020a1ced13000000b003fe111b7fc4mr1285938wmh.21.1692186720686; Wed, 16 Aug 2023 04:52:00 -0700 (PDT) Received: from sagittarius-a.chello.ie (188-141-3-169.dynamic.upc.ie. [188.141.3.169]) by smtp.gmail.com with ESMTPSA id fk3-20020a05600c0cc300b003fc05b89e5bsm21280663wmb.34.2023.08.16.04.51.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Aug 2023 04:52:00 -0700 (PDT) From: Bryan O'Donoghue To: agross@kernel.org, andersson@kernel.org, konrad.dybcio@linaro.org, lee@kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, sboyd@kernel.org, luca.weiss@fairphone.com Cc: bryan.odonoghue@linaro.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v9 5/7] arm64: dts: qcom: qrb5165-rb5: Switch on basic TCPM Date: Wed, 16 Aug 2023 12:51:49 +0100 Message-ID: <20230816115151.501736-6-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230816115151.501736-1-bryan.odonoghue@linaro.org> References: <20230816115151.501736-1-bryan.odonoghue@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Switch on TCPM for the RB5. Here we declare as a source only not a sink since qrb5165 doesn't support powering exclusively from the type-c port. Reviewed-by: Konrad Dybcio Signed-off-by: Bryan O'Donoghue --- arch/arm64/boot/dts/qcom/qrb5165-rb5.dts | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/qrb5165-rb5.dts b/arch/arm64/boot/dts/qcom/qrb5165-rb5.dts index 624d6ffc2f12f..55389f8903b5c 100644 --- a/arch/arm64/boot/dts/qcom/qrb5165-rb5.dts +++ b/arch/arm64/boot/dts/qcom/qrb5165-rb5.dts @@ -9,6 +9,7 @@ #include #include #include +#include #include "sm8250.dtsi" #include "pm8150.dtsi" #include "pm8150b.dtsi" @@ -1340,3 +1341,22 @@ &pm8150b_vbus { regulator-max-microamp = <3000000>; status = "okay"; }; + +&pm8150b_typec { + status = "okay"; + + vdd-pdphy-supply = <&vreg_l2a_3p1>; + + connector { + compatible = "usb-c-connector"; + + power-role = "source"; + data-role = "dual"; + self-powered; + + source-pdos = ; + }; +}; From patchwork Wed Aug 16 11:51:50 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bryan O'Donoghue X-Patchwork-Id: 715490 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 B067AC10F19 for ; Wed, 16 Aug 2023 11:52:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244830AbjHPLwP (ORCPT ); Wed, 16 Aug 2023 07:52:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54080 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244898AbjHPLwG (ORCPT ); Wed, 16 Aug 2023 07:52:06 -0400 Received: from mail-wm1-x32c.google.com (mail-wm1-x32c.google.com [IPv6:2a00:1450:4864:20::32c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 59DCB1FC8 for ; Wed, 16 Aug 2023 04:52:03 -0700 (PDT) Received: by mail-wm1-x32c.google.com with SMTP id 5b1f17b1804b1-3fe4a89e7efso58336505e9.3 for ; Wed, 16 Aug 2023 04:52:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1692186722; x=1692791522; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=+gfwLJHeXq1r3D11R/xOSfSzEcmiqa5uyfuPQt3SmpI=; b=LEu7DaJ6/W6HEKpjQqhCfrzlmeUJEg+Uwq9V7LmfIgR0ZmPZsr3B0eaLixEkAI6hzI 5IRz5jD3aITjms8MV86DveXJP2kmAKhl8r1SRy0g1mpadYIWjDgLEGidtzV1oNmm9sGn Ke2HTahRAFczgELwSu4aK6uRxDU07xORFLMxMdG9Ka3VM8aVqSAScUU8adRu9a9+9AtS 4np4612imfC84tYlOoosDjxY6heiJmsEBFaEFz2UeYCU1tKGVdwLYmR8i6Et1C7FHU/D t5OsH2gWqMs7mLA2KA1fDiNm5ZL2VRp00oySc2i38xGlDWqLMMzDjCvzQ8yF8x0JwVGn Ng7Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1692186722; x=1692791522; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=+gfwLJHeXq1r3D11R/xOSfSzEcmiqa5uyfuPQt3SmpI=; b=hLxvgBLxXLy+k6eCJAGMZF9Kegz2xb3E3ZCgu15pbbqMHciH8c3+mAZ2cOvxK0lZrX YqqxUXzMv2XogXLSRDxrYx7l1Q6hTmZhNmqf0d/zsBxmHORBkjvAiec9ZGsKD5Ah8NU2 sCLjNciKPJ1qIVabTkfz8XwETaOqF6t5l/XYqqLiVAfMg74WrQTgpFA2j1P4BFXCWUDx qeOGOp8qV47c25uT0QzwbCo6IawH4jiJeYhBRSsFEJy3Z0Un4oD9l0A3u3g2/9kyjelp vOxZBFrU4RheC/LpJD+H95hILvHOhg7uiWpU65qrVjcgC0A7H+QMjbRW6KwKbrgHR1Rx iYAw== X-Gm-Message-State: AOJu0YwI1giGo+ZuSek4og9EqgFfTY4vL8gi0YoGNmjFjbS40ui32Nf3 04wrvZ0SuX3SHGvOZZ4NIBy6VA== X-Google-Smtp-Source: AGHT+IFQKJ680LNckCDPVIoFQksMzyH5xIITwYP1ML9Nuk0oOLaVn7BDnACWSmdXA0n9BMVoGvpTgQ== X-Received: by 2002:a05:600c:228d:b0:3fb:fca1:1965 with SMTP id 13-20020a05600c228d00b003fbfca11965mr1093292wmf.18.1692186721984; Wed, 16 Aug 2023 04:52:01 -0700 (PDT) Received: from sagittarius-a.chello.ie (188-141-3-169.dynamic.upc.ie. [188.141.3.169]) by smtp.gmail.com with ESMTPSA id fk3-20020a05600c0cc300b003fc05b89e5bsm21280663wmb.34.2023.08.16.04.52.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Aug 2023 04:52:01 -0700 (PDT) From: Bryan O'Donoghue To: agross@kernel.org, andersson@kernel.org, konrad.dybcio@linaro.org, lee@kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, sboyd@kernel.org, luca.weiss@fairphone.com Cc: bryan.odonoghue@linaro.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v9 6/7] arm64: dts: qcom: qrb5165-rb5: Switch on TCPM usb-role-switching for usb_1 Date: Wed, 16 Aug 2023 12:51:50 +0100 Message-ID: <20230816115151.501736-7-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230816115151.501736-1-bryan.odonoghue@linaro.org> References: <20230816115151.501736-1-bryan.odonoghue@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Switch on usb-role-switching for usb_1 via TCPM. We need to declare usb-role-switch in &usb_1 and associate with the remote-endpoint in TCPM which provides the necessary signal. Signed-off-by: Bryan O'Donoghue --- arch/arm64/boot/dts/qcom/qrb5165-rb5.dts | 19 ++++++++++++++++++- arch/arm64/boot/dts/qcom/sm8250.dtsi | 4 ++++ 2 files changed, 22 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/qcom/qrb5165-rb5.dts b/arch/arm64/boot/dts/qcom/qrb5165-rb5.dts index 55389f8903b5c..3e34f4e2af14a 100644 --- a/arch/arm64/boot/dts/qcom/qrb5165-rb5.dts +++ b/arch/arm64/boot/dts/qcom/qrb5165-rb5.dts @@ -1269,7 +1269,12 @@ &usb_1 { }; &usb_1_dwc3 { - dr_mode = "peripheral"; + dr_mode = "otg"; + usb-role-switch; +}; + +&usb_1_role_switch_out { + remote-endpoint = <&pm8150b_role_switch_in>; }; &usb_1_hsphy { @@ -1358,5 +1363,17 @@ connector { PDO_FIXED_DUAL_ROLE | PDO_FIXED_USB_COMM | PDO_FIXED_DATA_SWAP)>; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + pm8150b_role_switch_in: endpoint { + remote-endpoint = <&usb_1_role_switch_out>; + }; + }; + }; }; }; diff --git a/arch/arm64/boot/dts/qcom/sm8250.dtsi b/arch/arm64/boot/dts/qcom/sm8250.dtsi index c79173504a3fd..733de2fd5e753 100644 --- a/arch/arm64/boot/dts/qcom/sm8250.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8250.dtsi @@ -3780,6 +3780,10 @@ usb_1_dwc3: usb@a600000 { snps,dis_enblslpm_quirk; phys = <&usb_1_hsphy>, <&usb_1_ssphy>; phy-names = "usb2-phy", "usb3-phy"; + + port { + usb_1_role_switch_out: endpoint {}; + }; }; }; From patchwork Wed Aug 16 11:51:51 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bryan O'Donoghue X-Patchwork-Id: 714131 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 8FD19C07E8F for ; Wed, 16 Aug 2023 11:52:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244834AbjHPLwP (ORCPT ); Wed, 16 Aug 2023 07:52:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54008 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244903AbjHPLwG (ORCPT ); Wed, 16 Aug 2023 07:52:06 -0400 Received: from mail-wm1-x333.google.com (mail-wm1-x333.google.com [IPv6:2a00:1450:4864:20::333]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C16212135 for ; Wed, 16 Aug 2023 04:52:04 -0700 (PDT) Received: by mail-wm1-x333.google.com with SMTP id 5b1f17b1804b1-3fe2ba3e260so63012515e9.2 for ; Wed, 16 Aug 2023 04:52:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1692186723; x=1692791523; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=kTUJIqUuvJpBEpmv4Fc4n2cbYwvZtXF9XlgfvfufwVo=; b=T3sdARg0nYPapz3ox/SJbjs2LShMs9XEyARdb+QyUWd1UaYcM5eLoV1P1oxiBRlB/z LLoMQySwr5gu01MKqJr2HUKh/Kc3DttbYXwisck//WgPQjHh5BaJksHur1qIRtVtEnCQ gLsYnda5WjlUSAS5lLg0dX731KJUZQInbP06EefR8cEnv8elAqE/YgONzDk9JSYlaIDv 1X/GK/IYFMYZb1jYYRjMvgo+CjMKhbXvftEqRB7szZrHhZGD30ja5/ssagQwE8c+Ladz l155JlTy5TWUxlQqx8yikXnqWdSI3PINEJfqw14z/6NKceGeaNOXz1Kzkk/A76m5dpMd o72g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1692186723; x=1692791523; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=kTUJIqUuvJpBEpmv4Fc4n2cbYwvZtXF9XlgfvfufwVo=; b=gdVbFp0hH/Pbc3N3Wqq26uDIyZfNhvhrnD0pmHfFg4/2lSqmyDy+7joPAfSie0JhVg XqWvTpD135ibz9uMzk542Dn0n7U+7s1BUiQd/i5mH8PSb4S0UivzIIjFBNTpI1fpOEi1 SGr7FjfG96DhHt5JfoCRxPWE2eZvg/+pOUN1xDduvA3zDShm/IrIHp7CDqXMUXlkv1CS KAIj7+EwtngjiHXCdgufngC8KVNtXW6+KTjptuwwKYIFhTYS6KwLF89irxqP248Lmf4s DqpOhC68momCbVmN//frVRai7HW6+hboJUA3L0IoPQm0Lfr89AqMyijamhE5r18h+JE1 zYlw== X-Gm-Message-State: AOJu0YwCXohCwTP+zphAmORP6XaZfw/4erz9nkmZRowmOPscd/9sY4xU 6T2LSiWV23q66SlwAvqPprT/Xg== X-Google-Smtp-Source: AGHT+IHvnASHedvOmPzr/nGlmoJv0wA6pOFu6rLk5qzIr/3ZASVR4rjqKOHbS4uv69pak+c2ma/oww== X-Received: by 2002:a05:600c:1d06:b0:3fe:26bf:65ea with SMTP id l6-20020a05600c1d0600b003fe26bf65eamr1244603wms.29.1692186723184; Wed, 16 Aug 2023 04:52:03 -0700 (PDT) Received: from sagittarius-a.chello.ie (188-141-3-169.dynamic.upc.ie. [188.141.3.169]) by smtp.gmail.com with ESMTPSA id fk3-20020a05600c0cc300b003fc05b89e5bsm21280663wmb.34.2023.08.16.04.52.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Aug 2023 04:52:02 -0700 (PDT) From: Bryan O'Donoghue To: agross@kernel.org, andersson@kernel.org, konrad.dybcio@linaro.org, lee@kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, sboyd@kernel.org, luca.weiss@fairphone.com Cc: bryan.odonoghue@linaro.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v9 7/7] arm64: dts: qcom: qrb5165-rb5: Switch on TCPM orientation-switch for usb_1_qmpphy Date: Wed, 16 Aug 2023 12:51:51 +0100 Message-ID: <20230816115151.501736-8-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230816115151.501736-1-bryan.odonoghue@linaro.org> References: <20230816115151.501736-1-bryan.odonoghue@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Switch on USB orientation-switching for usb_1_qmp via TCPM. Detecting the orientation switch is required to get the PHY to reset and bring-up the PHY with the CC lines set to the appropriate lane. Signed-off-by: Bryan O'Donoghue --- arch/arm64/boot/dts/qcom/qrb5165-rb5.dts | 12 ++++++++++++ arch/arm64/boot/dts/qcom/sm8250.dtsi | 1 + 2 files changed, 13 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/qrb5165-rb5.dts b/arch/arm64/boot/dts/qcom/qrb5165-rb5.dts index 3e34f4e2af14a..b878d765f8c42 100644 --- a/arch/arm64/boot/dts/qcom/qrb5165-rb5.dts +++ b/arch/arm64/boot/dts/qcom/qrb5165-rb5.dts @@ -1290,6 +1290,11 @@ &usb_1_qmpphy { vdda-phy-supply = <&vreg_l9a_1p2>; vdda-pll-supply = <&vreg_l18a_0p92>; + orientation-switch; +}; + +&usb_1_qmpphy_out { + remote-endpoint = <&pm8150b_typec_mux_in>; }; &usb_2 { @@ -1374,6 +1379,13 @@ pm8150b_role_switch_in: endpoint { remote-endpoint = <&usb_1_role_switch_out>; }; }; + + port@1 { + reg = <1>; + pm8150b_typec_mux_in: endpoint { + remote-endpoint = <&usb_1_qmpphy_out>; + }; + }; }; }; }; diff --git a/arch/arm64/boot/dts/qcom/sm8250.dtsi b/arch/arm64/boot/dts/qcom/sm8250.dtsi index 733de2fd5e753..fe29b3da90c19 100644 --- a/arch/arm64/boot/dts/qcom/sm8250.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8250.dtsi @@ -3620,6 +3620,7 @@ ports { port@0 { reg = <0>; + usb_1_qmpphy_out: endpoint {}; }; port@1 {