Received: by 2002:ab2:1689:0:b0:1f7:5705:b850 with SMTP id d9csp1327721lqa; Mon, 29 Apr 2024 05:44:40 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWqWeBCHZ1hfzBSuXUgi7/KmDfqL1RCmwIBZZfpsTK+Ed0wyaGj5S8GaBiPZ1VMZPlJpdPKeXVFquRxr/qR3lU4pcSRAjQ4cM1Ks3SxRQ== X-Google-Smtp-Source: AGHT+IFGBo00JhHIJ/NAR2BDpVfc7UmKtQCqPcqFjND1/bPZBaoIPouypXIOvudNJPKNeXadS2Pl X-Received: by 2002:a05:6358:7a7:b0:17e:a9b7:2636 with SMTP id n39-20020a05635807a700b0017ea9b72636mr9708588rwj.22.1714394679831; Mon, 29 Apr 2024 05:44:39 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714394679; cv=pass; d=google.com; s=arc-20160816; b=a3TVK8c29gHmzqfZs5OdpBzV6SaCx6CIWBcxqjMGxzoTbfz+Fy6aCBBa26Os+gyKIg gjH6tsgUAcPfyzKH0cxToMvEQeXMHk8XMulBCIpCOJsg8zeGU613m3EQ2UXu3pZzWUix 7mL5e7Jalrr33yvlcS21evPKdBLlFJ0GYPtGCOfe28J0+NeFUFHSrg7lYQBy+MpBHmv9 o1PDifjJiEIsdroDealrIyjURgq2V7ALCsy7Zu/gyQX/wTlCui9sQAdBkv6QypwLsSaU LWlHyhQbBoNTpPznL0Og05ZbfRtVHaf4xFtKsbAy+nq3IDuLkX/V1uopxbLou+3M4JWj hA0w== 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=WUoXRRFUJQQBOWuIqHtXudyyJPn9iQWzIcDItzMD4xo=; fh=gfaGrLZ42JGVOwIShN6yTOQGBY6w1FVZ3i5rK5Nv7uM=; b=t0LyIzLveCoLjWGRrhvGqL55sZSOByqoM3yyyLntVDGRgfFKBrBYGfTbMLOSXZj6VD WQNkd63VtGD8XynR5amlJ6y9u8xmKFIn5PwAj15bQPXhRJNy3iu1xFatfoB4kfBDro54 jDcmCa2i6BGsXwK8GOt5m0DnvdEgkjV7YRoHZLJntFL+UuyHtT219bKT30C7LneMjaRy 1oLxKwStZ/JN+FO1RAT5u69o1a65pAmSgmENGVvl1BBCm+QgM0jWnhdf9l5VuMioyMha cRkwb3SjDLgZI649/hsmCobm09AySkefsyOISvBBgUaMjNt399bxmTRCl1cP7qBBqkc4 fgig==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="A/aNV9SI"; 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-162268-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-162268-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id g17-20020ac87d11000000b0043ae7183924si2348307qtb.765.2024.04.29.05.44.39 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Apr 2024 05:44:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-162268-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="A/aNV9SI"; 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-162268-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-162268-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 7C8FB1C2171F for ; Mon, 29 Apr 2024 12:44:39 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5007D6FE2D; Mon, 29 Apr 2024 12:43:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="A/aNV9SI" Received: from mail-lf1-f52.google.com (mail-lf1-f52.google.com [209.85.167.52]) (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 7E6FE2E40C for ; Mon, 29 Apr 2024 12:43:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.52 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714394630; cv=none; b=lBgw6QI+vPxsbRp6L191+eVWBTUTq4QkegpZQcLlbpiCQX4A6QkTpNMeUdC4IogeF/xJYR6ryZhlX3RIzmJ7BXkkctGeolls5Kim0CrKIjDl9HGmVG7bMLZ7+KOjqA9zNuEelma8Gf5VPQ3Wl/ui0LPr9FadiyeZZY1j2FwbA6U= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714394630; c=relaxed/simple; bh=T611xpa2u6i4khfTFU2OgFjuDM98KKpM9628a4zNbDM=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=sqQ+kl0iwKD0LeXug+kpZfry/3+qLSyzhu9PN8pVz4kP5RI00j8umB96L1kY33tmFaQ3RZ3xZ9EZeoN2Dpn3O7XBT5S1TDOoXPK+bbt9qoOZ14gt8JbxY8yOh85Kssejr2cY9SD/vF+yetczftN5/hQMMSExup/+yBLRBp+74+Q= 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=A/aNV9SI; arc=none smtp.client-ip=209.85.167.52 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-lf1-f52.google.com with SMTP id 2adb3069b0e04-51c077cfc09so5149124e87.2 for ; Mon, 29 Apr 2024 05:43:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1714394625; x=1714999425; 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=WUoXRRFUJQQBOWuIqHtXudyyJPn9iQWzIcDItzMD4xo=; b=A/aNV9SI+OThSesec3lgnw6AVerYvVFzXRfo3H31JxG6HhOBIhWNVn30p3ccY90Yiz Hd7GqApxV2W0uS3dm/l6z1BLRq46QdLfRQQ988BOs8DWychIJEzr+lFV3KQo9zVtT1Z2 Oo1GginNxY0WJGva331aKfDhILeUBRsvmxnIOahSE2xcwh8ujXHeJiBOg40MQIxgrplD YlZj4gkNxDtiy1wohCPJgVILLSDLa33GGBZQT9L5fZpFvZ9xmRIILgr4cqTKMHszuUHP VhjBrWgmIYjhnKecJxvKlKNFmypap0OmvZeFmB8W8kH0x/RPCb5guwJTHuck8LKA+kv0 P4hQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714394625; x=1714999425; 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=WUoXRRFUJQQBOWuIqHtXudyyJPn9iQWzIcDItzMD4xo=; b=HtldVH7DgqUcQoV+sU3JOY0tBhfLq16LRHHeMmI8l4SUU5BAY+G2Pi2XQZAV8UhKWz hPRQDPJDwDrwMUWXHKljG6Ia2whneicEOa/3JErWe+y9LPOV2FGmGHjKFteFn7g3981/ 5k+UbjHNZfSBWSMIRalihmSuxobQix403zmQjgCAbUBTJEgqlsrlWu7GBkzLBfcb6hFI sSkeqCms55orlYETd5UjtL6GtWVizIEQf7qTmeJRJfuJXlHN1Frs28jOjOJIQUTbtYMI SE9MqZ2COUUxDZYJxuh/8fcmP2BrIUBjzHCNSdLP4glMqkl5eY0Bzzw7kd8oj3ky0lSZ RcUQ== X-Forwarded-Encrypted: i=1; AJvYcCVU0DkfB8JvjrRrMQbEN+87PZZtZEAonyuN1lOghVjmMzbC76KlE8v+EnQBojYvDbQbnHd0zkEkHWGwXwkLbbtf8gOmc7bhZAkou7Nm X-Gm-Message-State: AOJu0Yw9Lb5GjMUZPhAmRdNbHvfXATe6wqGq+z7OxQK4VLKzYkiLw02Q Nn2tCloGTxim/YAKA+IHYbyictao7+lDnthnOcMOkmlyIKmQ5avT8WZe9vWy3y/LQPl0/C0l1Gt c X-Received: by 2002:a05:6512:2395:b0:513:edf4:6f20 with SMTP id c21-20020a056512239500b00513edf46f20mr7214514lfv.54.1714394625729; Mon, 29 Apr 2024 05:43:45 -0700 (PDT) Received: from umbar.lan ([192.130.178.91]) by smtp.gmail.com with ESMTPSA id h18-20020a0565123c9200b0051d94297380sm467538lfv.241.2024.04.29.05.43.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Apr 2024 05:43:45 -0700 (PDT) From: Dmitry Baryshkov Date: Mon, 29 Apr 2024 15:43:40 +0300 Subject: [PATCH 03/12] arm64: dts: qcom: sm8450: move USB graph to the SoC dtsi 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: <20240429-usb-link-dtsi-v1-3-87c341b55cdf@linaro.org> References: <20240429-usb-link-dtsi-v1-0-87c341b55cdf@linaro.org> In-Reply-To: <20240429-usb-link-dtsi-v1-0-87c341b55cdf@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, Dmitry Baryshkov X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=2551; i=dmitry.baryshkov@linaro.org; h=from:subject:message-id; bh=T611xpa2u6i4khfTFU2OgFjuDM98KKpM9628a4zNbDM=; b=owGbwMvMwMXYbdNlx6SpcZXxtFoSQ5r+1L8Oixd7Xp/9fM8yX9HLyjfFy6TflWsoBbDMsTe4l 1ncPdWzk9GYhYGRi0FWTJHFp6Blasym5LAPO6bWwwxiZQKZwsDFKQATOXSWg2Em6xuHlhdT/jsH BzK4HXE5W7hXQf7R2krep955be7PWJ/7tei53ejJiZP+1TT9/q0ggaVHZj6+ca2Fd9G6oLMpgg6 zvBfeUrjEI5D5iqNCc0dlhTzn3XR+eybBXAcZLbnVd16l5LE8/ziz1a5i38Peb3Ic3ony13NvR3 KcnayosnLZNj/NSS3i9ZW6nIttpuzq+HOtuuP3FXYbuRV3jwVOYjYKT5jh56/T83ffzimuQVMVr ud5T7u9o77xs4HJ9+s3U1gtpplKK+YtUIjJdHohlcqwZ/cLX7bOGUUtzA1GEyNLJ4UIXfEQnXkw WeGV5IRTfOJ1UnYcrT0b6j9k1WS0175uj2aJNd52YuY7AA== X-Developer-Key: i=dmitry.baryshkov@linaro.org; a=openpgp; fpr=8F88381DD5C873E4AE487DA5199BF1243632046A Move the graph connection between USB host, USB SS PHY and DP port to the SoC dtsi file. They are linked in hardware in this way. Signed-off-by: Dmitry Baryshkov --- arch/arm64/boot/dts/qcom/sm8450-hdk.dts | 25 +++---------------------- arch/arm64/boot/dts/qcom/sm8450.dtsi | 11 +++++++++++ 2 files changed, 14 insertions(+), 22 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/sm8450-hdk.dts b/arch/arm64/boot/dts/qcom/sm8450-hdk.dts index 3be46b56c723..9926294e4f84 100644 --- a/arch/arm64/boot/dts/qcom/sm8450-hdk.dts +++ b/arch/arm64/boot/dts/qcom/sm8450-hdk.dts @@ -674,17 +674,10 @@ &mdss_dsi0_phy { &mdss_dp0 { status = "okay"; +}; - ports { - port@1 { - reg = <1>; - - mdss_dp0_out: endpoint { - data-lanes = <0 1>; - remote-endpoint = <&usb_1_qmpphy_dp_in>; - }; - }; - }; +&mdss_dp0_out { + data-lanes = <0 1>; }; &pcie0 { @@ -1114,10 +1107,6 @@ &usb_1_dwc3_hs { remote-endpoint = <&pmic_glink_hs_in>; }; -&usb_1_dwc3_ss { - remote-endpoint = <&usb_1_qmpphy_usb_ss_in>; -}; - &usb_1_hsphy { status = "okay"; @@ -1135,18 +1124,10 @@ &usb_1_qmpphy { orientation-switch; }; -&usb_1_qmpphy_dp_in { - remote-endpoint = <&mdss_dp0_out>; -}; - &usb_1_qmpphy_out { remote-endpoint = <&pmic_glink_ss_in>; }; -&usb_1_qmpphy_usb_ss_in { - remote-endpoint = <&usb_1_dwc3_ss>; -}; - &vamacro { pinctrl-0 = <&dmic01_default>, <&dmic23_default>; pinctrl-names = "default"; diff --git a/arch/arm64/boot/dts/qcom/sm8450.dtsi b/arch/arm64/boot/dts/qcom/sm8450.dtsi index 616461fcbab9..d138b90bb280 100644 --- a/arch/arm64/boot/dts/qcom/sm8450.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8450.dtsi @@ -2321,6 +2321,7 @@ port@1 { reg = <1>; usb_1_qmpphy_usb_ss_in: endpoint { + remote-endpoint = <&usb_1_dwc3_ss>; }; }; @@ -2328,6 +2329,7 @@ port@2 { reg = <2>; usb_1_qmpphy_dp_in: endpoint { + remote-endpoint = <&mdss_dp0_out>; }; }; }; @@ -3119,6 +3121,14 @@ mdss_dp0_in: endpoint { remote-endpoint = <&dpu_intf0_out>; }; }; + + port@1 { + reg = <1>; + + mdss_dp0_out: endpoint { + remote-endpoint = <&usb_1_qmpphy_dp_in>; + }; + }; }; dp_opp_table: opp-table { @@ -4584,6 +4594,7 @@ port@1 { reg = <1>; usb_1_dwc3_ss: endpoint { + remote-endpoint = <&usb_1_qmpphy_usb_ss_in>; }; }; }; -- 2.39.2