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>;