Received: by 2002:a05:7412:3290:b0:fa:6e18:a558 with SMTP id ev16csp509166rdb; Fri, 26 Jan 2024 02:22:42 -0800 (PST) X-Google-Smtp-Source: AGHT+IGyaEi/BzloH/6cFuaJT+IWfShkpG4vwBkapTvpxrwY+Mkg1aa/iMRRfMCB+54MhsC0G0rC X-Received: by 2002:a17:90a:df81:b0:294:ea3:3897 with SMTP id p1-20020a17090adf8100b002940ea33897mr367787pjv.81.1706264562710; Fri, 26 Jan 2024 02:22:42 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706264562; cv=pass; d=google.com; s=arc-20160816; b=GXiUEICFNfPZkwRJ4DlZfAK8hpOtpKZsOLREmlekW+MK35peEUP2mdk14z9PO7V5pc 71zVZw5tMbRgHJgMGh1WSE/7LOhZaUN0I6uqdfk/vXeiJget7eQ5wg+Wbe6Jzn7xmYA3 s9cOruaV8Digi0iFvfayqaP+3eBYUH7dAtpLODKhP/jh/SH/31Mss+NWrysG0cuxrQ+H WuIpOxEW5Sh7W6okf2dxM+lI3XY7OG5Q3/8qK53fEc+qhm44k2ng7T+j7yvqGzJwGpos 1/kw6ZxylccW+HAMSB+MElfzXJU+h4xaGRAAsftOJGSZ1Wxmz/fB6zHLzbjAD1d4w5Ca cmbw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=ZYRnOn7CihmGzjyxvq8SD+5GxdZZRHfMU/gDjslPAbs=; fh=m9ghCPikRXTiPPqkGaS0lzHaNxZrsKQAGaYZetBMAVQ=; b=kR1ViUteUh85xUSHnK49oRTDtbwjHn1gLzXQ2Lm+T7DqgEBLn0ORGp78ehgMC81gTl 23HLdwkUc2wq3SE4yth/NyVVbJhexpofrMzFZhK4PqTCAcDS3u0Kz9vsq2jvl1ZqbNWB YppGNa/9XyTv0uKg3A6UqdUdx/rTj1ToQxYQ/XJ69CCVtbWzcfmeqrmPTtccQ+fKyAjy jmOFUx5yRZ0K+OhkgK5iUtiB6Y+wkimiYwClcrBC9QbuAwLghAqeCCjtMtSf7+j2IF4e KeoAKuHAsvIHFlWpY6NNmW1C8MKLtR1t2AN5iCokDrJs9PWd5gkaHneq1K2ilG1/MahV HCKg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=L+gtxQ0t; 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-39933-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-39933-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. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id lk18-20020a17090b33d200b00292a409e5b3si961663pjb.55.2024.01.26.02.22.42 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 26 Jan 2024 02:22:42 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-39933-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=L+gtxQ0t; 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-39933-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-39933-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 607B229B0BF for ; Fri, 26 Jan 2024 10:13:58 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 63847241F9; Fri, 26 Jan 2024 09:38:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="L+gtxQ0t" Received: from mail-wm1-f51.google.com (mail-wm1-f51.google.com [209.85.128.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 BB802241E3 for ; Fri, 26 Jan 2024 09:38:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.51 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706261918; cv=none; b=TLE5EgMEJ4ux6n/Yes6SfVttybAFWhqbkYmgZYxirmMI5Ke4jvayrTW/MX8RsWuJ+PL9pTizVEUaslU963Tr4p5AEP+VutAClOEBj8a8bVE2Vko0m8T21FiMv7cFC3FKfpxubpZRPaTpgAgx+lLPvWjmsywzJeEmlp6S0m6263c= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706261918; c=relaxed/simple; bh=3vfpV1Ilbnjr4WtTJysV6pyuIb/B9dwNZp/iIqvuAdI=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=dpjYhFEq95O7iXhViB2TnRzBoPGyfIJsZd6iXg181vTaPqRp24vr0Qa7grf0cuZ7V10BSsK8ymR67nFfOr5T3llkoNW2mP15owWvX1hG4KbkhlzBOy3gZiE75U6r5gc7w1iMmkmtEKrc4GYoOu07A4L0qx62oV8DPys3YkaXbMg= 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=L+gtxQ0t; arc=none smtp.client-ip=209.85.128.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-wm1-f51.google.com with SMTP id 5b1f17b1804b1-40ee0ac37f8so2464445e9.0 for ; Fri, 26 Jan 2024 01:38:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1706261915; x=1706866715; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=ZYRnOn7CihmGzjyxvq8SD+5GxdZZRHfMU/gDjslPAbs=; b=L+gtxQ0tcjviU2dkQJQ/gqWr92FRZX9cBVC3kD2O/I+b+drCisOEJJUxmDg3oUkS6A kiQY/kwZqsD/zFLdB+Bgzzg+U2667eg6F4zuFw11MBJZ9+eBa+rY5GdWE+Xw6w4onTjE mIdndhLxTDw1TsaEurkA/Ujaq1/Vf9uoQP6DD/oQIVbljWnDzBg9P3NHAK4hngyZSQv/ 9QXdJ6aRE6gwYzgUwbSAhHmThhlfFYEPiLud8yv77LQsPVGt3fMpvasnqkxYC3TEpSF+ XSIO3mxu7wN7M3G2d4M6dOE0vXQtYqU8+qrFGvU4ml9AAdOju6v75WFrIpV+NeM4qwbI KShA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706261915; x=1706866715; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=ZYRnOn7CihmGzjyxvq8SD+5GxdZZRHfMU/gDjslPAbs=; b=tyPBiCgk10lIfviG2uFYw9T5qvJWdFuJXEkuufidCQi7r13KQRRODCLdOqCLGq0/ar C2tueHD9+Vj+U9nuCgdxqhHEFcYRlk7OME5+UCa6WwkKCPbj0qiyqWLi3uUsNre0zQuC w0UO5jCVmJoJp8QiTEQCjvY5HtzqKIxL80Ca1V/zF2l2YNF16SGh7p5YoOpItMB6tZ3I JkldGIcpLrBAf5qzUy3vx/MotDgZMtzIuLcUFIM3gBTnywWUJg9DyIQNWr+VOadSGgcs ngPNobGyTF3Zqrz6FyLIhaC/zfAZZWpN6p9tJNXnNEmzarjr9HC9QKAVeygpegASTl6o vrTw== X-Gm-Message-State: AOJu0Yw1cr+ZqM1LWOmswhNjLVst+Aclz1+fJbMoGhxoeswTVNkQ6KEt bZgQylgtqZsbnfMdZBAeTHF14JcipRMB1BL15P88m7crWVVUW6F9sYdpdKtZwwg= X-Received: by 2002:a05:600c:214d:b0:40e:94f9:229e with SMTP id v13-20020a05600c214d00b0040e94f9229emr698007wml.68.1706261915027; Fri, 26 Jan 2024 01:38:35 -0800 (PST) Received: from linaro.org ([79.115.23.25]) by smtp.gmail.com with ESMTPSA id ci11-20020a170906c34b00b00a2f181266f6sm430269ejb.148.2024.01.26.01.38.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 26 Jan 2024 01:38:34 -0800 (PST) Date: Fri, 26 Jan 2024 11:38:33 +0200 From: Abel Vesa To: Konrad Dybcio Cc: Andy Gross , Bjorn Andersson , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Sibi Sankar , Rajendra Nayak , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v4 06/11] arm64: dts: qcom: x1e80100: Add USB nodes Message-ID: References: <20240123-x1e80100-dts-missing-nodes-v4-0-072dc2f5c153@linaro.org> <20240123-x1e80100-dts-missing-nodes-v4-6-072dc2f5c153@linaro.org> <9af6d68f-ccc0-4d2b-ab59-77864a628bb4@linaro.org> 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=us-ascii Content-Disposition: inline In-Reply-To: <9af6d68f-ccc0-4d2b-ab59-77864a628bb4@linaro.org> On 24-01-23 19:17:10, Konrad Dybcio wrote: > > > On 1/23/24 12:01, Abel Vesa wrote: > > Add nodes for all USB controllers and their PHYs for X1E80100 platform. > > > > Co-developed-by: Sibi Sankar > > Signed-off-by: Sibi Sankar > > Co-developed-by: Rajendra Nayak > > Signed-off-by: Rajendra Nayak > > Signed-off-by: Abel Vesa > > --- > > arch/arm64/boot/dts/qcom/x1e80100.dtsi | 435 ++++++++++++++++++++++++++++++++- > > 1 file changed, 432 insertions(+), 3 deletions(-) > > > > diff --git a/arch/arm64/boot/dts/qcom/x1e80100.dtsi b/arch/arm64/boot/dts/qcom/x1e80100.dtsi > > index 2b6c55a486b2..593ead89706c 100644 > > --- a/arch/arm64/boot/dts/qcom/x1e80100.dtsi > > +++ b/arch/arm64/boot/dts/qcom/x1e80100.dtsi > > @@ -5,11 +5,13 @@ > > #include > > #include > > +#include > > #include > > #include > > #include > > #include > > #include > > +#include > > #include > > #include > > #include > > @@ -734,9 +736,9 @@ gcc: clock-controller@100000 { > > <0>, > > <0>, > > <0>, > > - <0>, > > - <0>, > > - <0>; > > + <&usb_1_ss0_qmpphy QMP_USB43DP_USB3_PIPE_CLK>, > > + <&usb_1_ss1_qmpphy QMP_USB43DP_USB3_PIPE_CLK>, > > + <&usb_1_ss2_qmpphy QMP_USB43DP_USB3_PIPE_CLK>; > > power-domains = <&rpmhpd RPMHPD_CX>; > > #clock-cells = <1>; > > @@ -2492,6 +2494,126 @@ &config_noc SLAVE_QUP_0 QCOM_ICC_TAG_ALWAYS>, > > }; > > }; > > + usb_1_ss0_hsphy: phy@fd3000 { > > + compatible = "qcom,x1e80100-snps-eusb2-phy", > > + "qcom,sm8550-snps-eusb2-phy"; > > + reg = <0 0x00fd3000 0 0x154>; > > + #phy-cells = <0>; > > + > > + clocks = <&tcsr TCSR_USB2_1_CLKREF_EN>; > > + clock-names = "ref"; > > You use this exact same clock for all HS PHYs. Are you sure? The USB2 HS PHY should use TCSR_USB2_2_CLKREF_EN, while all of the USB1 SS[1-3] HS PHYs seems they share the TCSR_USB2_1_CLKREF_EN. > > > + > > + resets = <&gcc GCC_QUSB2PHY_PRIM_BCR>; > > + > > + status = "disabled"; > > + }; > > + > > + usb_1_ss0_qmpphy: phy@fd5000 { > > + compatible = "qcom,x1e80100-qmp-usb3-dp-phy"; > > + reg = <0 0x00fd5000 0 0x4000>; > > + > > + clocks = <&gcc GCC_USB3_PRIM_PHY_AUX_CLK>, > > + <&rpmhcc RPMH_CXO_CLK>, > > + <&gcc GCC_USB3_PRIM_PHY_COM_AUX_CLK>, > > + <&gcc GCC_USB3_PRIM_PHY_PIPE_CLK>; > > + clock-names = "aux", > > + "ref", > > + "com_aux", > > + "usb3_pipe"; > > + > > + power-domains = <&gcc GCC_USB_0_PHY_GDSC>; > > This is likely RPMHPD_MX(A/C) Nope, this platform has dedicated GDSCs for each of the USB1 SS[1-3] QMP PHYs. > > [...] > > > + usb_1_ss2_dwc3: usb@a000000 { > > + compatible = "snps,dwc3"; > > + reg = <0 0x0a000000 0 0xcd00>; > > + interrupts = ; > > + iommus = <&apps_smmu 0x14a0 0x0>; > > + snps,dis_u2_susphy_quirk; > > + snps,dis_enblslpm_quirk; > > + snps,usb3_lpm_capable; > > + phys = <&usb_1_ss2_hsphy>, > > + <&usb_1_ss2_qmpphy QMP_USB43DP_USB3_PHY>; > > + phy-names = "usb2-phy", > > + "usb3-phy"; > > Should this be marked dma-coherent? Will add. > > Konrad