Received: by 2002:ab2:6309:0:b0:1fb:d597:ff75 with SMTP id s9csp285864lqt; Thu, 6 Jun 2024 03:43:02 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU3LlTf/oJcbn6DFjd6/12bWxPH2/KtenMqovhyY3NY3mJJS//xtB6rur9oCVKrh8rjGmYLAxtk2Su1EVI9tNN+/BffIsiBBXxGeNVbjA== X-Google-Smtp-Source: AGHT+IH11fbarA0u9WG7A9Yd/vHIjA97zxRzjhxFgugybAnM2xCXnRq8jCsY1FwlJZPz1ldUYvmW X-Received: by 2002:a17:90a:cb03:b0:2bd:d42a:fef7 with SMTP id 98e67ed59e1d1-2c27db531d6mr5205945a91.35.1717670582305; Thu, 06 Jun 2024 03:43:02 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717670582; cv=pass; d=google.com; s=arc-20160816; b=KJfYPefyIJpwN73ZVa78BgMtjTADjFqTO8J8PYUaf1yC8qsSM7djicvd9AfCunXqrJ O539Y/x4ZOLdoCfxTkcYqvP3MYPUP+D2dOvnAUlf36UXiysUbCanPdz8NA/E8VDeLKgv aHYm1VTvCWyKWjnhZe+r/K+cpTYiQChw5w0TFEgin1NCI4qsqmLX3bmUqppEG6JXlH/O uMP0WXzD3tUfsO9jUFgbzzxr0BXudrEEA5+wIG4/9EGLal7RuOCkiaShbqmqmDlDUxGG +u4Vcsm8MztpUUFJf6aVmhUyM5VCv+v4v9+hx0776etVku/4wdwbHk8UNjLHBkoVJaDP 5VOA== 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=gIJHJCpT+527V6EZcYZp/w+XcLy7CxaeC7wb+8Py1Zc=; fh=6aAZDF8L/rQ1LEKZsJ+3Q1IFjmclNqcZjbM025tk+yQ=; b=NN2mmm0CygVlwH6k/GBcfx0+Wi+IZmjWaaasxGctiI4NV2F0re30fvOmN6tqENe6Pz V/zM6UeimMUESIdiV56eTM609PdfwDXSNtdR0njinWisC4UjL0M5/sZIOjFxJ4izRlQt ktIfmfqhJi+yjQpl1Vlfcys+lrqzz+jMw2XRF15/hrkH9Lkr9rilAFDER7MtQo2U85q5 WSpv0lYJV1XvOF77tfjMPO+YI0mW3bSUAbR5nd3lg2tMbz7aSMSwzy7CJG/ViWX7DKL2 MWHOAj4ATs4tHI8FkWCyqSqU6xYlJGrrR4df4EhPireUjrQTFA/L6f9seDpA3Oeat0TN gdaQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=sKGI3hRH; 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-204125-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-204125-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id 98e67ed59e1d1-2c284a83e9asi2674555a91.37.2024.06.06.03.43.02 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Jun 2024 03:43:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-204125-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=sKGI3hRH; 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-204125-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-204125-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 6663A285CC5 for ; Thu, 6 Jun 2024 10:43:01 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 57B08195978; Thu, 6 Jun 2024 10:42:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="sKGI3hRH" Received: from mail-lj1-f175.google.com (mail-lj1-f175.google.com [209.85.208.175]) (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 2BFC21953A0 for ; Thu, 6 Jun 2024 10:42:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.175 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717670534; cv=none; b=ZW0lXVa6snK7wVCoiX8daENXuX/QFJVca/X7TwK7Zmxw4PpHhu9BR/xhWrUgQaXK4Fhdk2QFAyeMJXzjCQdo3Cxjc6JitJxaUjK3LhaOjfzAOJVdH6tmpq4Jp40Rh+kDp5ywSqjO9cb69R94VV6Y0A5Lm8kH9EH9kHno4KFSG7o= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717670534; c=relaxed/simple; bh=aJ9OjcTgat+F6sTE/hsja9zDEG32gQvtNbnEwIjisvc=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=QDStyykro7/A2QS7dj1irQ+N1nWSviIKHeGql9ZUfPFmdkpiXXW71u5dJucWw6v75TO/2SUTkkbH2JnGFB6gSfdNtc9a4AjwnyzDKddXK+RI34u22NWA0I2iu3oZyolv3qayWJYDWLzgexFUVKSgrksxP0LEIPN3AW6Hb0OxDb4= 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=sKGI3hRH; arc=none smtp.client-ip=209.85.208.175 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-lj1-f175.google.com with SMTP id 38308e7fff4ca-2eabd22d3f4so9224851fa.1 for ; Thu, 06 Jun 2024 03:42:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1717670530; x=1718275330; 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=gIJHJCpT+527V6EZcYZp/w+XcLy7CxaeC7wb+8Py1Zc=; b=sKGI3hRHReZa6DjRfP8HILrfE5t0ikaJj782vmKFhpyJt0SB/2M7YQ24jz0PJHbiie nbo7zNT/YsW/fqOdhhFE4r0nDengMESXiv0iulB/eZ6szMrQ5pm0KoYAyVoytWDB9Y46 Os7qObbLloQ5u3sUsviW3LWh6gVNUSI+tkgY4QI1MoiBeNul52E0CYWzsI/V8iM6Rage GtKqYpkeuEWV/Ggn3FKumguUtDeWIRROwLxNjcjK5gfFM7wQF16HZQKiNdMgaGE/95ae 8gY59lBNEx9ob4hiwkA/j/khDjwnfAdC3XUbgg9VO3ofEDhAvqlj3vdlNoWubmDTKklr ez5A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717670530; x=1718275330; 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=gIJHJCpT+527V6EZcYZp/w+XcLy7CxaeC7wb+8Py1Zc=; b=mx5IgSX1f7jqoUAFICgvUaBUb1v/8TkBbu+mohIcl/Td5gZDTTE3vb0Cb3wUDelC+g ybZ5gv6a6PoH/nSC0hp4qbvHe6smxyXzPskUHJrHIxLHGaZKGOrRUchek8cpY2siecfM ummb1q65mQMTXoBKjZTI2yPXn3eq9Lkl58ckKJmtigFdEIDSDac1H3aXYyZk9VZ2WQef SKZhA8CwZ6UjpJV33zXr6ZfKnHyAZ0KE5QL6BmrCNGVdZrq+SNxPCLeCLeN3SFnTJGgR LdX+LSPV3dZqa2Rocuag8gJIB7qoqdgdzgp5o1JaUI7SlcE7/BhE2k5bJvETPFTKbT02 +S7A== X-Forwarded-Encrypted: i=1; AJvYcCVA+Ju+4pnaaPtBBLDtqrrsNPljYR0nrFRleWSoq4vChlLoApLtFcRtBy+zCINrdthCZ+q4GN1irw29+0f2ASuwj6GWYFoee4tDPR1b X-Gm-Message-State: AOJu0YxvKsFnH50jGs3fiAOrZ5WZ2YT7F3bxKGfBuXDob3HRCz1l3SOr 2Vn5b0Va1ewVSoca0JZ6JbuxeQ8IeyzVnF1pxTb1wv82wgdVTCW+XoQ0Q5rovcw= X-Received: by 2002:a05:651c:1028:b0:2e0:c81c:25da with SMTP id 38308e7fff4ca-2eac7a09e27mr30904201fa.30.1717670530235; Thu, 06 Jun 2024 03:42:10 -0700 (PDT) Received: from [127.0.1.1] ([188.27.161.69]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-57aae0cc36bsm871477a12.26.2024.06.06.03.42.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Jun 2024 03:42:09 -0700 (PDT) From: Abel Vesa Date: Thu, 06 Jun 2024 13:41:54 +0300 Subject: [PATCH v2 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: <20240606-x1e80100-dts-pmic-glink-v2-3-972c902e3e6b@linaro.org> References: <20240606-x1e80100-dts-pmic-glink-v2-0-972c902e3e6b@linaro.org> In-Reply-To: <20240606-x1e80100-dts-pmic-glink-v2-0-972c902e3e6b@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=3442; i=abel.vesa@linaro.org; h=from:subject:message-id; bh=aJ9OjcTgat+F6sTE/hsja9zDEG32gQvtNbnEwIjisvc=; b=owEBbQKS/ZANAwAKARtfRMkAlRVWAcsmYgBmYZJ7DxpONl0Co5WG2H3c4LtBBfMdHpyX2Drqo B/lDPAenI2JAjMEAAEKAB0WIQRO8+4RTnqPKsqn0bgbX0TJAJUVVgUCZmGSewAKCRAbX0TJAJUV Vq0iEACgpJlxfXrSiB0ReWnhOTCez4jdHpNYc5vUP48qKi9S3bUcGS2Ut4tlMpu2/OiAO7/Fn3+ +T6GbqLQl2+G6JTmRHwAtR0hys+Ab65Ewvs4Tuzm17s8E0fa0CSN4L79Wuy/JcqnLQEgYhmnd6u /DiT6HjL3pSkAB6O8mCimvfZaaz4nu9s0yDamClTn/d5PbfixtzdsSqly36nKqJRDNRuoA+wzgy ikdLqtbiPnZv8dCrKVfNy6T5rSX0h3uouefKvVPSY8FkzW7sPodUWJkBdUTFXrvp4GnsIXuC2lk /XAEc0uI6C/GFD4KMVb8sG5vulZ7MqkETpZLGb5zOWhwKLhYUHJ5Aq/L1WGQd2sQ3hMPm5L5JQz Flso3DU5olvDDgdvrB8AwF5UDpy3k05JfcbG+Q9OFUHSCltApSfvFFnZrQtz0osZKL2prUoP60p c8niBI0VX3V5RMorn+6keNEHaSEjUq4lNsSx2b+Bnp7FbD/nrkvo2c1t3lWkp/kYlg18ntfpIvT J4T0iV+nzW5y/QXWcOwEX6rlARUrFAnQrLWOvMy4nXzTxNujGOnklEq8b6TAnYKcoyK+ZEpaKSw +xAqcheN0iQBwlilD9/7YHnWCjkDiMl2WyP6f2Nr0oPrxwXCTUU0wwuwei8+yIbSCvetCfacjtB +r58ZKLa7dWm1GA== 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 ports will come at a later stage since they use muxes. Signed-off-by: Abel Vesa --- arch/arm64/boot/dts/qcom/x1e80100-qcp.dts | 119 ++++++++++++++++++++++++++++++ 1 file changed, 119 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/x1e80100-qcp.dts b/arch/arm64/boot/dts/qcom/x1e80100-qcp.dts index a8d0f743228a..e021af54e643 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>; + }; + }; + }; + }; + }; + reserved-memory { linux,cma { compatible = "shared-dma-pool"; @@ -611,6 +706,14 @@ &usb_1_ss0_dwc3 { dr_mode = "host"; }; +&usb_1_ss0_dwc3_hs { + remote-endpoint = <&pmic_glink_ss0_hs_in>; +}; + +&usb_1_ss0_qmpphy_out { + remote-endpoint = <&pmic_glink_ss0_ss_in>; +}; + &usb_1_ss1_hsphy { vdd-supply = <&vreg_l2e_0p8>; vdda12-supply = <&vreg_l2j_1p2>; @@ -635,6 +738,14 @@ &usb_1_ss1_dwc3 { dr_mode = "host"; }; +&usb_1_ss1_dwc3_hs { + remote-endpoint = <&pmic_glink_ss1_hs_in>; +}; + +&usb_1_ss1_qmpphy_out { + remote-endpoint = <&pmic_glink_ss1_ss_in>; +}; + &usb_1_ss2_hsphy { vdd-supply = <&vreg_l2e_0p8>; vdda12-supply = <&vreg_l2j_1p2>; @@ -658,3 +769,11 @@ &usb_1_ss2 { &usb_1_ss2_dwc3 { dr_mode = "host"; }; + +&usb_1_ss2_dwc3_hs { + remote-endpoint = <&pmic_glink_ss2_hs_in>; +}; + +&usb_1_ss2_qmpphy_out { + remote-endpoint = <&pmic_glink_ss2_ss_in>; +}; -- 2.34.1