diff mbox series

[1/2] arm64: dts: qcom: sm8250: fix usb2 qmp phy node

Message ID 20210706230702.299047-2-bryan.odonoghue@linaro.org
State New
Headers show
Series pm8150b qmp phy type-c orientation fixes | expand

Commit Message

Bryan O'Donoghue July 6, 2021, 11:07 p.m. UTC
From: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>


Use 'lanes' as SuperSpeed lanes device node instead of just 'lane' to
fix issues with TypeC support.

Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>

Fixes: be0624b99042 ("arm64: dts: qcom: sm8250: Add USB and PHY device nodes")
Cc: robh+dt@kernel.org
Cc: devicetree@vger.kernel.org
Tested-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org>

Signed-off-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org>

---
 arch/arm64/boot/dts/qcom/sm8250.dtsi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

-- 
2.30.1

Comments

Dmitry Baryshkov July 6, 2021, 11:26 p.m. UTC | #1
Him

On Wed, 7 Jul 2021 at 02:05, Bryan O'Donoghue
<bryan.odonoghue@linaro.org> wrote:
>

> From: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>

>

> Use 'lanes' as SuperSpeed lanes device node instead of just 'lane' to

> fix issues with TypeC support.


I think this should not be required anymore, it is a leftover from the
previous series which used strcmp("lanes") to create phys.

>

> Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>

> Fixes: be0624b99042 ("arm64: dts: qcom: sm8250: Add USB and PHY device nodes")

> Cc: robh+dt@kernel.org

> Cc: devicetree@vger.kernel.org

> Tested-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org>

> Signed-off-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org>

> ---

>  arch/arm64/boot/dts/qcom/sm8250.dtsi | 2 +-

>  1 file changed, 1 insertion(+), 1 deletion(-)

>

> diff --git a/arch/arm64/boot/dts/qcom/sm8250.dtsi b/arch/arm64/boot/dts/qcom/sm8250.dtsi

> index 4c0de12aaba6..270d7ff59ec1 100644

> --- a/arch/arm64/boot/dts/qcom/sm8250.dtsi

> +++ b/arch/arm64/boot/dts/qcom/sm8250.dtsi

> @@ -2123,7 +2123,7 @@ usb_2_qmpphy: phy@88eb000 {

>                                  <&gcc GCC_USB3_PHY_SEC_BCR>;

>                         reset-names = "phy", "common";

>

> -                       usb_2_ssphy: lane@88eb200 {

> +                       usb_2_ssphy: lanes@88eb200 {

>                                 reg = <0 0x088eb200 0 0x200>,

>                                       <0 0x088eb400 0 0x200>,

>                                       <0 0x088eb800 0 0x800>;

> --

> 2.30.1

>



--
With best wishes
Dmitry
Bryan O'Donoghue July 6, 2021, 11:29 p.m. UTC | #2
On 07/07/2021 00:26, Dmitry Baryshkov wrote:
> Him

> 

> On Wed, 7 Jul 2021 at 02:05, Bryan O'Donoghue

> <bryan.odonoghue@linaro.org> wrote:

>>

>> From: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>

>>

>> Use 'lanes' as SuperSpeed lanes device node instead of just 'lane' to

>> fix issues with TypeC support.

> 

> I think this should not be required anymore, it is a leftover from the

> previous series which used strcmp("lanes") to create phys.

> 

>>

>> Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>

>> Fixes: be0624b99042 ("arm64: dts: qcom: sm8250: Add USB and PHY device nodes")

>> Cc: robh+dt@kernel.org

>> Cc: devicetree@vger.kernel.org

>> Tested-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org>

>> Signed-off-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org>

>> ---

>>   arch/arm64/boot/dts/qcom/sm8250.dtsi | 2 +-

>>   1 file changed, 1 insertion(+), 1 deletion(-)

>>

>> diff --git a/arch/arm64/boot/dts/qcom/sm8250.dtsi b/arch/arm64/boot/dts/qcom/sm8250.dtsi

>> index 4c0de12aaba6..270d7ff59ec1 100644

>> --- a/arch/arm64/boot/dts/qcom/sm8250.dtsi

>> +++ b/arch/arm64/boot/dts/qcom/sm8250.dtsi

>> @@ -2123,7 +2123,7 @@ usb_2_qmpphy: phy@88eb000 {

>>                                   <&gcc GCC_USB3_PHY_SEC_BCR>;

>>                          reset-names = "phy", "common";

>>

>> -                       usb_2_ssphy: lane@88eb200 {

>> +                       usb_2_ssphy: lanes@88eb200 {

>>                                  reg = <0 0x088eb200 0 0x200>,

>>                                        <0 0x088eb400 0 0x200>,

>>                                        <0 0x088eb800 0 0x800>;

>> --

>> 2.30.1

>>

> 

> 

> --

> With best wishes

> Dmitry

> 


Ok great.
Bjorn Andersson July 7, 2021, 12:04 a.m. UTC | #3
On Tue 06 Jul 18:07 CDT 2021, Bryan O'Donoghue wrote:

> From: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
> 
> Use 'lanes' as SuperSpeed lanes device node instead of just 'lane' to
> fix issues with TypeC support.
> 
> Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
> Fixes: be0624b99042 ("arm64: dts: qcom: sm8250: Add USB and PHY device nodes")
> Cc: robh+dt@kernel.org
> Cc: devicetree@vger.kernel.org
> Tested-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org>
> Signed-off-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org>
> ---
>  arch/arm64/boot/dts/qcom/sm8250.dtsi | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/arch/arm64/boot/dts/qcom/sm8250.dtsi b/arch/arm64/boot/dts/qcom/sm8250.dtsi
> index 4c0de12aaba6..270d7ff59ec1 100644
> --- a/arch/arm64/boot/dts/qcom/sm8250.dtsi
> +++ b/arch/arm64/boot/dts/qcom/sm8250.dtsi
> @@ -2123,7 +2123,7 @@ usb_2_qmpphy: phy@88eb000 {
>  				 <&gcc GCC_USB3_PHY_SEC_BCR>;
>  			reset-names = "phy", "common";
>  
> -			usb_2_ssphy: lane@88eb200 {
> +			usb_2_ssphy: lanes@88eb200 {

The uni-phy binding says that this should be named "^phy@[0-9a-f]+$"

So while Dmitry is right about the logic in the driver, it would be nice
if you would spin this patch to make us pass the dt-binding check -
which can be sent independently from the driver patch.

Regards,
Bjorn

>  				reg = <0 0x088eb200 0 0x200>,
>  				      <0 0x088eb400 0 0x200>,
>  				      <0 0x088eb800 0 0x800>;
> -- 
> 2.30.1
>
Bryan O'Donoghue July 7, 2021, 12:10 a.m. UTC | #4
On 07/07/2021 01:04, Bjorn Andersson wrote:
> So while Dmitry is right about the logic in the driver, it would be nice

> if you would spin this patch to make us pass the dt-binding check -

> which can be sent independently from the driver patch.


ok
diff mbox series

Patch

diff --git a/arch/arm64/boot/dts/qcom/sm8250.dtsi b/arch/arm64/boot/dts/qcom/sm8250.dtsi
index 4c0de12aaba6..270d7ff59ec1 100644
--- a/arch/arm64/boot/dts/qcom/sm8250.dtsi
+++ b/arch/arm64/boot/dts/qcom/sm8250.dtsi
@@ -2123,7 +2123,7 @@  usb_2_qmpphy: phy@88eb000 {
 				 <&gcc GCC_USB3_PHY_SEC_BCR>;
 			reset-names = "phy", "common";
 
-			usb_2_ssphy: lane@88eb200 {
+			usb_2_ssphy: lanes@88eb200 {
 				reg = <0 0x088eb200 0 0x200>,
 				      <0 0x088eb400 0 0x200>,
 				      <0 0x088eb800 0 0x800>;