Received: by 2002:a89:d88:0:b0:1fa:5c73:8e2d with SMTP id eb8csp1907797lqb; Mon, 27 May 2024 01:09:15 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCX6vJgey4PUZsiMn1mRjMKk/w/S8SbDBXnAfc9raP1/HOyPRzRoE/4LpTtZjtepbKpCz/I5d9CO/OiaTiK2s+vFvUgZHJMdMJonj9juVA== X-Google-Smtp-Source: AGHT+IG8jS/yfDM8mdH/uQn7+p3u0wP3Pmehj8uWyY6NXeR/cFSmbbr5LIaZx5iZqRrh/vsSXISx X-Received: by 2002:a17:906:66c7:b0:a59:ba2b:5915 with SMTP id a640c23a62f3a-a6265119463mr1036133466b.50.1716797355642; Mon, 27 May 2024 01:09:15 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716797355; cv=pass; d=google.com; s=arc-20160816; b=PjZOBwzGXeueoUYXLvKm9NX5VNakO2rCeDg2nmglMeCSf3ffrJfgysPlrwSOjUtFEy OFr04v0JEr5jlSu6R734ko2sk9YPeMbWMrB7vRbP96yYWBJXYmZqItT5LSoBPvfDCFQW 1JTld9klXx0N+4ljo1K7KiFDdkZlp1ZW0yyVwon+s9ey6QcNxW5IyMsTbF4Gejygk1Ss uMbLIat+X/bxOgYMQcqtS6ANbcekXp3jVlbyTvzI7mj9BoANeyz8aW9j/8JPAPngOcm3 gdG06A82cH+QLwYyuLXcMsPMDHgsQScPzIHH6nENZ1cgA8nA62yGF+u5hff7N02O4t9P InMA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :subject:date:from:dkim-signature; bh=w794Jc9ulQoga5+/dsXAFbxB9u1U937YIUKTLLXw2s4=; fh=sNrylg2F8xtqjg1L9ZuJk0pwCnYvGKxmZuwaHgPpfkk=; b=Ix6Ggg3qZS++c3VVYD+zweQn5Kt9RNfK1X0MgoLDknkVaCmvFWRIoZfKdyxDQdrL3o 8GuW+V7o3k06QK4Oko3UPalUGJDKkBvrpdBkC6ikuJ8Le2yOjhsXO0odYPB1QIyNtJht +oSeuYyqZ1nr+iwyFAmECGI66xHnHN6JY2SQWfp67Ekyv0i5LKL8dIHvcbwsP6U/RFKO 37CUBuD2gzKxFj89Q/ZoiFqrR+0MjThsweFcB5SF4ITjCtKbux29o8BV8nl3G2y8eOCy 6rluc7kxRWjsBsVTjwAR4czNLFh5byNBCVsPfjK9OxYm7xHdjnoc5/1GCPJMbt8v1+Lb MR9g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Lh2gEfGI; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-190195-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-190195-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id a640c23a62f3a-a626c801a15si370120666b.57.2024.05.27.01.09.15 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 May 2024 01:09:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-190195-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Lh2gEfGI; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-190195-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-190195-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 5A6BE1F21965 for ; Mon, 27 May 2024 08:08:33 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A2982626DF; Mon, 27 May 2024 08:07:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="Lh2gEfGI" Received: from mail-ed1-f51.google.com (mail-ed1-f51.google.com [209.85.208.51]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D7C5E3A260 for ; Mon, 27 May 2024 08:07:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.51 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716797266; cv=none; b=Wj/5Y/FXR4UgBi+sC6YGUS/XQvMX29oc/HZtgSnbxA/fT7or27wFtG5CMVj8E9KQg4KfZbV8Bbjdyskr5hvE6RtANJpdQ+MT2lsUxx88PyCTplLLiYbP5ch522edkNfnrHsGo83m+6utYEZQ1Y5I9xNvHYk7/niYaaqIjEMHxXs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716797266; c=relaxed/simple; bh=XI2FDb/7NtFHwP6ncH4VK34anbbKyDSEs2qwvfVMI3g=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=srXVFLpmM3GfT4Ea2h9LtegJAKjNFzcSlLyWlWgk7thpmdlx4mjhhkEItN/dL51g6EA/EWtWZFcgbFMmtPjwPL50KvPYP7U3OfaWJZVtPsGt1ukZhJj1MNFH2bBaVv9isAYBYm0ALliNEipFfadXqPxwiUqPJHUU97wknZlnUoc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=Lh2gEfGI; arc=none smtp.client-ip=209.85.208.51 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-ed1-f51.google.com with SMTP id 4fb4d7f45d1cf-579d02657abso1038245a12.3 for ; Mon, 27 May 2024 01:07:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1716797263; x=1717402063; darn=vger.kernel.org; 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=w794Jc9ulQoga5+/dsXAFbxB9u1U937YIUKTLLXw2s4=; b=Lh2gEfGIng01ToyPe7ZDFfM5aYQoF2H/SId04ePgDSpiuj9SHxe9MnvXaQEDJAGbFo +xoQ5SQY10oRHkge0yVkYYxjjwni7pFlJrgguivcKs/y8sV16/HN8/6ZbsEvs3bOOqhs xPVigwxooGvKCKicBFiD0LI9sbr0/uvAbQVFGIr7hAhUpnsiRWvU7Fdh/ZF+9+ocoXO/ cR5coEcjmzNLLWZkJGbuHnXYlz0k3CQ8mUu6Mgl95YsSJ7R7oBHtKZzzwQwUCDYmTKvM heiB2DEa1jjUNgIT2Jlw/AGhxcCMWxHZsaOp2xPa5NrnspSb2HnHvIAE1eqWj6exfocs H5kA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716797263; x=1717402063; 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=w794Jc9ulQoga5+/dsXAFbxB9u1U937YIUKTLLXw2s4=; b=JszPyUZvvOLpi5SiSNw7FQBOaTSvc0uZM6fLDuEx8+ALrd6gZlRKe0dA+qffBbNhB/ F0+UN7y9biXwIFLt/fiTG00gx70394h5GF9hrLSiTEM1l5GB5kYKQSKfi2ysRHIS05Hq Oag6BJ6xzqboPbHcWMkj/HFTQf/yRfjY9AwqV+fxCL3u2PP3y+kgn7ELtLlQOhurpAmc VxaifGlY6ykDQ8OMyzys1ckgNzJV6fDsTIdNFeONfoeKcf0vuUAPoE7pzZaKXlZPq5IH btTD6pxMrA89Q4puRLXCIn5g+sD90vgdwZah7ecAFVpAuJh9zVRLF8gpJUmlW6r9nw95 dHyA== X-Forwarded-Encrypted: i=1; AJvYcCVCtHgd4hInpSrfHH2xEGailZh1aqYiulUd0eHimKjnJZcqBUqP4U1ZpCvZPEV6Vqr9etoKqZE10gYsRbuizXaGMiQKQ0ni8qFUuev8 X-Gm-Message-State: AOJu0Yx1QhwM9WoZO+bVa4RVjnlE0QByTWXwRdRck3FqS3zAhzgw6SJW YPLGt0Pv3z9yJ29GqGMDuMS6Y0HCUjBmMYtdcqs8VE3RumGj81/H+02mrKQR5dA= X-Received: by 2002:a50:c2d2:0:b0:578:42fb:a4d with SMTP id 4fb4d7f45d1cf-578519aa3ffmr8537851a12.30.1716797263231; Mon, 27 May 2024 01:07:43 -0700 (PDT) Received: from [127.0.1.1] ([188.27.161.69]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-579d30b82a8sm1240893a12.79.2024.05.27.01.07.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 May 2024 01:07:42 -0700 (PDT) From: Abel Vesa Date: Mon, 27 May 2024 11:07:29 +0300 Subject: [PATCH 3/3] arm64: dts: qcom: x1e80100-qcp: Add pmic-glink node with all 3 connectors Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20240527-x1e80100-dts-pmic-glink-v1-3-7ea5c8eb4d2b@linaro.org> References: <20240527-x1e80100-dts-pmic-glink-v1-0-7ea5c8eb4d2b@linaro.org> In-Reply-To: <20240527-x1e80100-dts-pmic-glink-v1-0-7ea5c8eb4d2b@linaro.org> To: Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Abel Vesa X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=3938; i=abel.vesa@linaro.org; h=from:subject:message-id; bh=XI2FDb/7NtFHwP6ncH4VK34anbbKyDSEs2qwvfVMI3g=; b=owEBbQKS/ZANAwAKARtfRMkAlRVWAcsmYgBmVD9JIuGpagS3kazFLBrzcKj2DLF0EHbtHf0rU SV4Qc3h1I+JAjMEAAEKAB0WIQRO8+4RTnqPKsqn0bgbX0TJAJUVVgUCZlQ/SQAKCRAbX0TJAJUV VgzAD/kBAvCtqp7dxEI+ETdOOMzYGNvCFspkEHntdq7NDIgZDl+JP89mL8Fj63BrC9cLZSz3brE ZTlfUYCtZalbXVtev2aq3qDyhceGRn22umNclV8Dc20psnpukQach25zkGcpj4wiathGYOVgPP8 raI2yigxzh8u8T1BcU0lern4fqemL8T+EpykIgfRGbvK53PgMrmg/ANlHPijRIUBUvXgA7birrm j+D+s13ObQa8rBtBE9QlbYKU5OefC5s0/hrbJakVGlwnIP+R88Mo+PvV20p6f6411Ubh5HoNcE9 EOo612QAdAMLveGyyG4UOySRfELY745oTwj3Vho+++zu1hg8rbWyEXEIgkgIkFE34cB6eOE+S1t TsTY3sjmSPYR1nGC4uNV/i/ZLWEdJqv0S45yQ54hwte7TdQBTay+PppVbNc8wz+tPOoC9HG7sCY ZVPrJ/1woFV1AwtZ4WxJ74qTPhvMdFj6abcZXi+Uu3NnsXxZ1c/6kD0HAcMqmlEWKaS7TsAwKuk ekF8Qqj+ZI9b15tjqsftoVZcrwVjf1hHOwAyy55nxptPC4NGAaZ4vgbeaEPG4NThvHdP3kmMRTX 55HRrv3jE/cmVHeHg+sXQ8U1e8YIBK8Wlf70CdFguo4YZ5Cg4ybo/b17TzO15YBdAaNaLKi5IKH D7UfhJMStBLsj3w== X-Developer-Key: i=abel.vesa@linaro.org; a=openpgp; fpr=6AFF162D57F4223A8770EF5AF7BF214136F41FAE Add the pmic-glink node and describe all 3 USB Type-C connectors. Do this for USB only, for now. The DP port will come at a later stage since it uses a mux. Signed-off-by: Abel Vesa --- arch/arm64/boot/dts/qcom/x1e80100-qcp.dts | 143 ++++++++++++++++++++++++++++++ 1 file changed, 143 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/x1e80100-qcp.dts b/arch/arm64/boot/dts/qcom/x1e80100-qcp.dts index 2061fbe7b75a..a7eecf84b6d6 100644 --- a/arch/arm64/boot/dts/qcom/x1e80100-qcp.dts +++ b/arch/arm64/boot/dts/qcom/x1e80100-qcp.dts @@ -23,6 +23,101 @@ chosen { stdout-path = "serial0:115200n8"; }; + pmic-glink { + compatible = "qcom,x1e80100-pmic-glink", + "qcom,sm8550-pmic-glink", + "qcom,pmic-glink"; + #address-cells = <1>; + #size-cells = <0>; + orientation-gpios = <&tlmm 121 GPIO_ACTIVE_HIGH>, + <&tlmm 123 GPIO_ACTIVE_HIGH>, + <&tlmm 125 GPIO_ACTIVE_HIGH>; + + connector@0 { + compatible = "usb-c-connector"; + reg = <0>; + power-role = "dual"; + data-role = "dual"; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + + pmic_glink_ss0_hs_in: endpoint { + remote-endpoint = <&usb_1_ss0_dwc3_hs>; + }; + }; + + port@1 { + reg = <1>; + + pmic_glink_ss0_ss_in: endpoint { + remote-endpoint = <&usb_1_ss0_qmpphy_out>; + }; + }; + }; + }; + + connector@1 { + compatible = "usb-c-connector"; + reg = <1>; + power-role = "dual"; + data-role = "dual"; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + + pmic_glink_ss1_hs_in: endpoint { + remote-endpoint = <&usb_1_ss1_dwc3_hs>; + }; + }; + + port@1 { + reg = <1>; + + pmic_glink_ss1_ss_in: endpoint { + remote-endpoint = <&usb_1_ss1_qmpphy_out>; + }; + }; + }; + }; + + connector@2 { + compatible = "usb-c-connector"; + reg = <2>; + power-role = "dual"; + data-role = "dual"; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + + pmic_glink_ss2_hs_in: endpoint { + remote-endpoint = <&usb_1_ss2_dwc3_hs>; + }; + }; + + port@1 { + reg = <1>; + + pmic_glink_ss2_ss_in: endpoint { + remote-endpoint = <&usb_1_ss2_qmpphy_out>; + }; + }; + }; + }; + }; + vph_pwr: vph-pwr-regulator { compatible = "regulator-fixed"; @@ -548,6 +643,22 @@ &usb_1_ss0_dwc3 { usb-role-switch; }; +&usb_1_ss0_dwc3_hs { + remote-endpoint = <&pmic_glink_ss0_hs_in>; +}; + +&usb_1_ss0_dwc3_ss { + remote-endpoint = <&usb_1_ss0_qmpphy_usb_ss_in>; +}; + +&usb_1_ss0_qmpphy_out { + remote-endpoint = <&pmic_glink_ss0_ss_in>; +}; + +&usb_1_ss0_qmpphy_usb_ss_in { + remote-endpoint = <&usb_1_ss0_dwc3_ss>; +}; + &usb_1_ss1_hsphy { vdd-supply = <&vreg_l2e_0p8>; vdda12-supply = <&vreg_l3e_1p2>; @@ -570,6 +681,22 @@ &usb_1_ss1_dwc3 { usb-role-switch; }; +&usb_1_ss1_dwc3_hs { + remote-endpoint = <&pmic_glink_ss1_hs_in>; +}; + +&usb_1_ss1_dwc3_ss { + remote-endpoint = <&usb_1_ss1_qmpphy_usb_ss_in>; +}; + +&usb_1_ss1_qmpphy_out { + remote-endpoint = <&pmic_glink_ss1_ss_in>; +}; + +&usb_1_ss1_qmpphy_usb_ss_in { + remote-endpoint = <&usb_1_ss1_dwc3_ss>; +}; + &usb_1_ss2_hsphy { vdd-supply = <&vreg_l2e_0p8>; vdda12-supply = <&vreg_l3e_1p2>; @@ -591,3 +718,19 @@ &usb_1_ss2_dwc3 { dr_mode = "host"; usb-role-switch; }; + +&usb_1_ss2_dwc3_hs { + remote-endpoint = <&pmic_glink_ss2_hs_in>; +}; + +&usb_1_ss2_dwc3_ss { + remote-endpoint = <&usb_1_ss2_qmpphy_usb_ss_in>; +}; + +&usb_1_ss2_qmpphy_out { + remote-endpoint = <&pmic_glink_ss2_ss_in>; +}; + +&usb_1_ss2_qmpphy_usb_ss_in { + remote-endpoint = <&usb_1_ss2_dwc3_ss>; +}; -- 2.34.1