All of lore.kernel.org
 help / color / mirror / Atom feed
From: Konrad Dybcio <konrad.dybcio@linaro.org>
To: Rudraksha Gupta <guptarud@gmail.com>,
	Andy Gross <agross@kernel.org>,
	Bjorn Andersson <andersson@kernel.org>,
	Rob Herring <robh+dt@kernel.org>,
	Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>,
	Conor Dooley <conor+dt@kernel.org>
Cc: david@ixit.cz, linux-arm-msm@vger.kernel.org,
	devicetree@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH 4/5] ARM: Blindly copy the usb node from apq8064.dtsi
Date: Sat, 27 May 2023 01:30:46 +0200	[thread overview]
Message-ID: <7f40f870-c11f-3105-f016-445a22fe258f@linaro.org> (raw)
In-Reply-To: <20230524230459.120681-4-guptarud@gmail.com>



On 25.05.2023 01:04, Rudraksha Gupta wrote:
> apq8064 and msm8960 are extremely similar SoCs. Therefore copying this
> from the apq8064 dtsi file should not be a problem. Tested this on the
> Samsung Galaxy Express and this works.
> 
> Signed-off-by: Rudraksha Gupta <guptarud@gmail.com>
> ---
Well admitting to this upfront doesn't sound very good :P

Please reword the message to something like:

ARM: dts: qcom-msm8960: Add USB

Add the required nodes to support USB on MSM8960.
As it's very similar to APQ8064, the setup is almost identical



As for the contents itself, I tried taking a brief peek into the
swamp that are the msm-3.0 boardfiles, but I barely managed to
escape before getting drawn into the quicksands of 13yo legacy..

I am however inclined to believe that the setup may in fact be
identical(or close to) on these two SoCs..

Konrad

>  arch/arm/boot/dts/qcom-msm8960.dtsi | 33 +++++++++++++++++++++++++++++
>  1 file changed, 33 insertions(+)
> 
> diff --git a/arch/arm/boot/dts/qcom-msm8960.dtsi b/arch/arm/boot/dts/qcom-msm8960.dtsi
> index a4d8dd2d24a6..b11e606440cd 100644
> --- a/arch/arm/boot/dts/qcom-msm8960.dtsi
> +++ b/arch/arm/boot/dts/qcom-msm8960.dtsi
> @@ -3,6 +3,7 @@
>  
>  #include <dt-bindings/interrupt-controller/arm-gic.h>
>  #include <dt-bindings/clock/qcom,gcc-msm8960.h>
> +#include <dt-bindings/reset/qcom,gcc-msm8960.h>
>  #include <dt-bindings/clock/qcom,lcc-msm8960.h>
>  #include <dt-bindings/mfd/qcom-rpm.h>
>  #include <dt-bindings/soc/qcom,gsbi.h>
> @@ -370,5 +371,37 @@ gsbi1_spi: spi@16080000 {
>  				status = "disabled";
>  			};
>  		};
> +
> +		usb1: usb@12500000 {
> +			compatible = "qcom,ci-hdrc";
> +			reg = <0x12500000 0x200>,
> +			      <0x12500200 0x200>;
> +			interrupts = <GIC_SPI 100 IRQ_TYPE_LEVEL_HIGH>;
> +			clocks = <&gcc USB_HS1_XCVR_CLK>, <&gcc USB_HS1_H_CLK>;
> +			clock-names = "core", "iface";
> +			assigned-clocks = <&gcc USB_HS1_XCVR_CLK>;
> +			assigned-clock-rates = <60000000>;
> +			resets = <&gcc USB_HS1_RESET>;
> +			reset-names = "core";
> +			phy_type = "ulpi";
> +			ahb-burst-config = <0>;
> +			phys = <&usb_hs1_phy>;
> +			phy-names = "usb-phy";
> +			status = "disabled";
> +			#reset-cells = <1>;
> +
> +			ulpi {
> +				usb_hs1_phy: phy {
> +					compatible = "qcom,usb-hs-phy-msm8960",
> +						     "qcom,usb-hs-phy";
> +					clocks = <&sleep_clk>, <&cxo_board>;
> +					clock-names = "sleep", "ref";
> +					resets = <&usb1 0>;
> +					reset-names = "por";
> +					#phy-cells = <0>;
> +				};
> +			};
> +		};
> +
>  	};
>  };

  reply	other threads:[~2023-05-26 23:30 UTC|newest]

Thread overview: 76+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-05-24 23:04 [PATCH 1/5] ARM: Add label to sleep_clk in qcom-msm8960.dtsi Rudraksha Gupta
2023-05-24 23:04 ` [PATCH 2/5] ARM: Add samsung,expressatt to qcom.yaml Rudraksha Gupta
2023-05-30 13:19   ` Krzysztof Kozlowski
2023-05-24 23:04 ` [PATCH 3/5] ARM: Add qcom,usb-hs-phy-msm8960 to qcom,usb-hs-phy.yaml Rudraksha Gupta
2023-05-24 23:04   ` Rudraksha Gupta
2023-05-30 13:19   ` Krzysztof Kozlowski
2023-05-30 13:19     ` Krzysztof Kozlowski
2023-05-24 23:04 ` [PATCH 4/5] ARM: Blindly copy the usb node from apq8064.dtsi Rudraksha Gupta
2023-05-26 23:30   ` Konrad Dybcio [this message]
2023-05-24 23:04 ` [PATCH 5/5] ARM: Add Samsung Galaxy Express support Rudraksha Gupta
2023-05-24 23:04   ` Rudraksha Gupta
2023-05-26 23:36   ` Konrad Dybcio
2023-05-26 23:36     ` Konrad Dybcio
2023-05-30 13:20   ` Krzysztof Kozlowski
2023-05-30 13:20     ` Krzysztof Kozlowski
2023-05-27  4:09 ` [PATCH 1/5] ARM: Add label to sleep_clk in qcom-msm8960.dtsi Bjorn Andersson
2023-05-28  0:10   ` [PATCH v2 0/4] Samsung Galaxy Express SGH-I437 Support Rudraksha Gupta
2023-05-28  0:10     ` Rudraksha Gupta
2023-05-28  0:10     ` Rudraksha Gupta
2023-05-30 13:21     ` Krzysztof Kozlowski
2023-05-30 13:21       ` Krzysztof Kozlowski
2023-05-30 13:21       ` Krzysztof Kozlowski
2023-05-28  0:10   ` [PATCH v2 1/4] dt-bindings: arm: qcom: Add Samsung Galaxy Express Rudraksha Gupta
2023-05-28  0:10     ` Rudraksha Gupta
2023-05-28  0:10     ` Rudraksha Gupta
2023-05-28  8:51     ` Conor Dooley
2023-05-28  8:51       ` Conor Dooley
2023-05-28  8:51       ` Conor Dooley
2023-05-28 13:36       ` Rudraksha Gupta
2023-05-28 13:36         ` Rudraksha Gupta
2023-05-28 13:36         ` Rudraksha Gupta
2023-05-28 19:10         ` Conor Dooley
2023-05-28 19:10           ` Conor Dooley
2023-05-28 19:10           ` Conor Dooley
2023-05-29  7:41         ` Konrad Dybcio
2023-05-29  7:41           ` Konrad Dybcio
2023-05-29  7:41           ` Konrad Dybcio
2023-05-29 22:28           ` Rudraksha Gupta
2023-05-29 22:28             ` Rudraksha Gupta
2023-05-29 22:28             ` Rudraksha Gupta
2023-05-29 22:37             ` Conor Dooley
2023-05-29 22:37               ` Conor Dooley
2023-05-29 22:37               ` Conor Dooley
2023-05-29 22:50               ` Rudraksha Gupta
2023-05-29 22:50                 ` Rudraksha Gupta
2023-05-29 22:50                 ` Rudraksha Gupta
2023-05-30 12:57     ` Krzysztof Kozlowski
2023-05-30 12:57       ` Krzysztof Kozlowski
2023-05-30 12:57       ` Krzysztof Kozlowski
2023-05-28  0:10   ` [PATCH v2 2/4] dt-bindings: Add qcom,usb-hs-phy-msm8960 Rudraksha Gupta
2023-05-28  0:10     ` Rudraksha Gupta
2023-05-28  0:10     ` Rudraksha Gupta
2023-05-28  8:47     ` Conor Dooley
2023-05-28  8:47       ` Conor Dooley
2023-05-28  8:47       ` Conor Dooley
2023-05-30 13:22     ` Krzysztof Kozlowski
2023-05-30 13:22       ` Krzysztof Kozlowski
2023-05-30 13:22       ` Krzysztof Kozlowski
2023-05-31  2:49       ` Rudraksha Gupta
2023-05-31  2:49         ` Rudraksha Gupta
2023-05-31  2:49         ` Rudraksha Gupta
2023-05-31  2:56         ` Dmitry Baryshkov
2023-05-31  2:56           ` Dmitry Baryshkov
2023-05-31  2:56           ` Dmitry Baryshkov
2023-05-28  0:10   ` [PATCH v2 3/4] ARM: dts: qcom: msm8960: Add USB node Rudraksha Gupta
2023-05-28  0:10     ` Rudraksha Gupta
2023-05-28  0:10     ` Rudraksha Gupta
2023-05-30 13:22     ` Krzysztof Kozlowski
2023-05-30 13:22       ` Krzysztof Kozlowski
2023-05-30 13:22       ` Krzysztof Kozlowski
2023-05-28  0:10   ` [PATCH v2 4/4] ARM: dts: qcom: Add Samsung Galaxy Express support Rudraksha Gupta
2023-05-28  0:10     ` Rudraksha Gupta
2023-05-28  0:10     ` Rudraksha Gupta
2023-05-30 13:24     ` Krzysztof Kozlowski
2023-05-30 13:24       ` Krzysztof Kozlowski
2023-05-30 13:24       ` Krzysztof Kozlowski

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=7f40f870-c11f-3105-f016-445a22fe258f@linaro.org \
    --to=konrad.dybcio@linaro.org \
    --cc=agross@kernel.org \
    --cc=andersson@kernel.org \
    --cc=conor+dt@kernel.org \
    --cc=david@ixit.cz \
    --cc=devicetree@vger.kernel.org \
    --cc=guptarud@gmail.com \
    --cc=krzysztof.kozlowski+dt@linaro.org \
    --cc=linux-arm-msm@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=robh+dt@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.