Received: by 2002:ab2:1689:0:b0:1f7:5705:b850 with SMTP id d9csp1327470lqa; Mon, 29 Apr 2024 05:44:08 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU16drYXBgRfscmOlWRxYnCq7J9Vx3C5XlEJD6SaUMLMUQSoUwALaTpVmRR+/GSRu+attC4bABXhjLH9jyU5tY0ymsMsvG6eK+oFMGWdw== X-Google-Smtp-Source: AGHT+IGwFhPILIlaqP3F06mdXKPu7/9jKrLEBWVU+OPSpAHvG0R1vVMz2pVMCEdeYneLMVNrEeO5 X-Received: by 2002:a50:c31a:0:b0:570:f8b:3de3 with SMTP id a26-20020a50c31a000000b005700f8b3de3mr6027886edb.20.1714394647971; Mon, 29 Apr 2024 05:44:07 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714394647; cv=pass; d=google.com; s=arc-20160816; b=VzxiHy8404gcWO8jSfhjReuhgY3dj6ss2fj7lo1CUPpIVqpocqBhYXeLQ2PwKnxy2R rl867UzyjA6ABLysXYWfXsGPX+xfqjVgrElpKaULRQxycmblZZISUgCn7gZ1yPVhOHvg sMhssQKPkWMVpTFpdcjubezCRCFeqRumjTTCm+nEd5e81Wzc1Ct3bOKC4zc1u5lSZAnh hSfMVMOEV2ccd8LskVPIL1nuqYzqGx0L351p7ZxI5+lFDN2u83URYwLOMospjxLbWHMx PpF/AQRYC9AgcXJFP660MacgcQ2D0XgjRSpngkijfKLCov3Z9yvJbV1FTEkyfpnWx7vh woVA== 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=NNutWFZyGINp4G7joe8+n09dkk5KMMBPhLsYqPUlzNI=; fh=WLahfwGWyyFXbVV9XIUBT/LNATEL31MQ0vwGC8FfnPc=; b=dPCcnZ9MA+rH+gPIPi8l0cKS/CNvt3Ll3/gCsrYirXtAn+UL40oWsybyEoF7fsp3sn O88n6IT8ASMs2rJle0M5nyk8EYb6p149P8RFDvFVI4WnrowoyLZ3ySnyT690eKvGYVwQ NZ1gA8Blh78X75uW7wcusaNhb44gCbMyQAtzNBTKatwdtWTr9soTzJana6OgdjIcb5Qw nK4H+ib6auxbYwofCwg4ghCWE1uQXh/ENC/qKvbaW7tYaRDFjpee+n+eA2k80zGbNcjD i2AYfskgoy+TRWS0Hjc3JB/cFlEwUTOuQYAIktV2rgH1aS2SYccJ6T8JkoMTRavJlZyg 0EPA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=u9KKIMvb; 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-162265-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-162265-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 a16-20020a50c310000000b0057225bd1865si6991516edb.430.2024.04.29.05.44.07 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Apr 2024 05:44:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-162265-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=u9KKIMvb; 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-162265-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-162265-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 888621F21F4C for ; Mon, 29 Apr 2024 12:44:07 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 58E6954910; Mon, 29 Apr 2024 12:43:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="u9KKIMvb" Received: from mail-lf1-f48.google.com (mail-lf1-f48.google.com [209.85.167.48]) (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 9C56410A2E for ; Mon, 29 Apr 2024 12:43:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.48 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714394628; cv=none; b=D30r7h2DYBZbIw5uyzOgwsaQRyIdwIH0Ek5ViMFvfHxtU8B+o1e0u+lh/lOy/HQizsseGE3BjjKHhUEKyY6cPbW/0soB2GhV+d9cl/sFXdu1GojU/oAWYe9lgruf27kdZg7gEGuqdgCmZseXsgcrO7A9qFitXyycI4A9mceODkw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714394628; c=relaxed/simple; bh=3ahalgQrX1I3yfQnq7+cpNw3xYKZCyqvysUuHDXO+Mo=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=C90boIzk91XorcOq+I/8war545kjZkI9JuZ6L5VBU9dhyRBJXOVyNooSgcwclEhw3rQVxika1MBvQr33x7ghRz/UJgatEOLJSk1b+jAe7T9rVzaBubt53nUX6lJfaPw7ZGcUL2bNnoRznCPTc7FQ1BRB8kkqEZoRDtLTr6NCWFM= 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=u9KKIMvb; arc=none smtp.client-ip=209.85.167.48 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-f48.google.com with SMTP id 2adb3069b0e04-516ef30b16eso4873106e87.3 for ; Mon, 29 Apr 2024 05:43:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1714394624; x=1714999424; 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=NNutWFZyGINp4G7joe8+n09dkk5KMMBPhLsYqPUlzNI=; b=u9KKIMvbaViEflCuvFHS/uWv6HoUv3raijzwS26xrQK2T1XvUj+Dxw+wAQFGWRv5uv I+EJHXtJ3sa6Siq3RKlrHwvkR5vviX9E9z94F+7WeOKJuK438gp9eHKozSJlWxo7QdDi GknjiJY7RYqr7KZXReFgnj4dGRUVvZEOwjPvdyTQZCatZ63lzZz1jpB+nOI6PTMgAbsU CKziPnJiSi9pOMyjgVsTpz2OW/meiHiJNzPX7wZRxGOuVMQFEAiJlKbUVFiAQZU6wjTe Ma4IhEuQVBiuU/FlDxMPBmJs1OF1Q0hKwP4RSLSowg27z1o9QC1BAJVui5QMxMDYttYB WaeA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714394624; x=1714999424; 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=NNutWFZyGINp4G7joe8+n09dkk5KMMBPhLsYqPUlzNI=; b=hg+u8XeJQomA5qRaYmS6NHjVic5n/z/QkozsnX5/ExUrpcvXM0HYTHGGdtpKAZddx7 Q0XLN+FVSOBK6LHcss8Klx5WD+Txn3+m7dFtW72SaLzaskiDQ4L8m/IKsj7h27WYxuqg XueZOtoMd4pK0z1g8w/2gc+ZhwXPPQ8Vm8Wvxw5HmBs30IXzo5Y0ZOhwPRKot+DGj9qk UGqNwZ9kfzHJ4jJiu5Of/rEd5MIx1qoySenow+f4jkhJ+CFXN9qsk4IlFFVJeOz80zC1 Tz6aQX7tYYIZ2gS4KmFzS7LLXlmau8HFQOkY5RU3XLmAcuHYujd4QjamemJQXu6Zrhdn 15QQ== X-Forwarded-Encrypted: i=1; AJvYcCXu7F+0vhf+h640eC7twNhySxkOjwVxPKHWc/bKB3wWqpIJky1NbFQAUj8MKueIxSfsaMSfDsnNz+uaL7l3g7O3M5p6LykqUS7qYNVg X-Gm-Message-State: AOJu0YwcxgJ6Xow28oVnn2bUPeu2mbNocMphEU2NeG2Hv3i2ZzV9NnUO RJRpPEeCFVu/5m2AY06oJ9Ul/ODmpqaJlU+DtfVfb/KehvINlV5G6iMaGALrQP1ia3rBbdKuO9G S X-Received: by 2002:a05:6512:104a:b0:51d:98c4:94a4 with SMTP id c10-20020a056512104a00b0051d98c494a4mr3042535lfb.58.1714394624562; Mon, 29 Apr 2024 05:43:44 -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.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Apr 2024 05:43:44 -0700 (PDT) From: Dmitry Baryshkov Date: Mon, 29 Apr 2024 15:43:38 +0300 Subject: [PATCH 01/12] arm64: dts: qcom: sm8150: 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-1-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=2204; i=dmitry.baryshkov@linaro.org; h=from:subject:message-id; bh=3ahalgQrX1I3yfQnq7+cpNw3xYKZCyqvysUuHDXO+Mo=; b=owEBbQGS/pANAwAKAYs8ij4CKSjVAcsmYgBmL5X9/mDMPuhor2aKIoNFUPaYHHrtHcUIR55XM CfkMaujkByJATMEAAEKAB0WIQRMcISVXLJjVvC4lX+LPIo+Aiko1QUCZi+V/QAKCRCLPIo+Aiko 1UzVB/0Q8OdOxh0ZQiAxky+sBdCuAuqwjeEZsEjpN/UX3IV0oakPn2Er+gU1ZFz2a+/dsqX9xOe UQIslyEqpZDT40pRb+F/QuS53yAJN2Z0NP7XcItFiD3jmTj3cRvYdpqh7hheWsLvYDTzESCouMm ibIIT1jgU6Znfwn+Vqtw90Qi8OwEvVb3nlljux2dHuW3hFJM1rb5h3AEvNfspEpnmhFpS4krwrp zIQgwQRYcX8ck6V1JGRKaDj2BD/zW0kjoiguXt4/Z2aVYs2lFWuSSXPW9B305UXC0jko36/ewJ7 RxgZwT37ynVPNRmBljWdLqya3GEroqmq6U/810FhcjO2GGt4 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/sm8150-hdk.dts | 13 ------------- arch/arm64/boot/dts/qcom/sm8150.dtsi | 4 ++++ 2 files changed, 4 insertions(+), 13 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/sm8150-hdk.dts b/arch/arm64/boot/dts/qcom/sm8150-hdk.dts index e9b9abc18746..bac08f00b303 100644 --- a/arch/arm64/boot/dts/qcom/sm8150-hdk.dts +++ b/arch/arm64/boot/dts/qcom/sm8150-hdk.dts @@ -470,7 +470,6 @@ &mdss_dp { &mdss_dp_out { data-lanes = <0 1>; - remote-endpoint = <&usb_1_qmpphy_dp_in>; }; &mdss_dsi0 { @@ -676,18 +675,10 @@ &usb_1_qmpphy { orientation-switch; }; -&usb_1_qmpphy_dp_in { - remote-endpoint = <&mdss_dp_out>; -}; - &usb_1_qmpphy_out { remote-endpoint = <&pm8150b_typec_mux_in>; }; -&usb_1_qmpphy_usb_ss_in { - remote-endpoint = <&usb_1_dwc3_ss>; -}; - &usb_2_qmpphy { status = "okay"; vdda-phy-supply = <&vreg_l3c_1p2>; @@ -711,10 +702,6 @@ &usb_1_dwc3_hs { remote-endpoint = <&pm8150b_hs_in>; }; -&usb_1_dwc3_ss { - remote-endpoint = <&usb_1_qmpphy_usb_ss_in>; -}; - &usb_2_dwc3 { dr_mode = "host"; }; diff --git a/arch/arm64/boot/dts/qcom/sm8150.dtsi b/arch/arm64/boot/dts/qcom/sm8150.dtsi index ff22e4346660..cb878b7305c2 100644 --- a/arch/arm64/boot/dts/qcom/sm8150.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8150.dtsi @@ -3507,6 +3507,7 @@ port@1 { reg = <1>; usb_1_qmpphy_usb_ss_in: endpoint { + remote-endpoint = <&usb_1_dwc3_ss>; }; }; @@ -3514,6 +3515,7 @@ port@2 { reg = <2>; usb_1_qmpphy_dp_in: endpoint { + remote-endpoint = <&mdss_dp_out>; }; }; }; @@ -3672,6 +3674,7 @@ port@1 { reg = <1>; usb_1_dwc3_ss: endpoint { + remote-endpoint = <&usb_1_qmpphy_usb_ss_in>; }; }; }; @@ -3894,6 +3897,7 @@ port@1 { reg = <1>; mdss_dp_out: endpoint { + remote-endpoint = <&usb_1_qmpphy_dp_in>; }; }; }; -- 2.39.2