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 = ; + }; +};