devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Mark Kettenis <mark.kettenis@xs4all.nl>
To: Johan Jonker <jbx6244@gmail.com>
Cc: linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org
Subject: Re: [PATCH v3 3/8] arm64: dts: rockchip: restyle rk3399 usbdrd3_0 node
Date: Fri, 5 Feb 2021 15:19:53 +0100 (CET)	[thread overview]
Message-ID: <4268f9759816bb98@bloch.sibelius.xs4all.nl> (raw)

> For rk3399 dwc3 usb the wrapper node for only clocks makes no sense,
> so restyle the rk3399 usbdrd3_0 node before more new SoC types are
> added with the same IP.
> 
> Signed-off-by: Johan Jonker <jbx6244 at gmail.com>
> ---
> Changed V3:
>   remove aclk_usb3_rksoc_axi_perf
>   remove aclk_usb3
> ---
>  arch/arm64/boot/dts/rockchip/rk3399-ficus.dts      |  2 +-
>  arch/arm64/boot/dts/rockchip/rk3399-firefly.dts    |  6 +---
>  arch/arm64/boot/dts/rockchip/rk3399-gru.dtsi       |  6 +---
>  arch/arm64/boot/dts/rockchip/rk3399-hugsun-x99.dts |  6 +---
>  .../boot/dts/rockchip/rk3399-khadas-edge.dtsi      |  6 +---
>  arch/arm64/boot/dts/rockchip/rk3399-leez-p710.dts  |  6 +---
>  arch/arm64/boot/dts/rockchip/rk3399-nanopi4.dtsi   |  4 ---
>  arch/arm64/boot/dts/rockchip/rk3399-orangepi.dts   |  6 +---
>  .../boot/dts/rockchip/rk3399-pinebook-pro.dts      |  4 ---
>  .../arm64/boot/dts/rockchip/rk3399-puma-haikou.dts |  4 ---
>  arch/arm64/boot/dts/rockchip/rk3399-roc-pc.dtsi    |  4 ---
>  arch/arm64/boot/dts/rockchip/rk3399-rock-pi-4.dtsi |  6 +---
>  arch/arm64/boot/dts/rockchip/rk3399-rock960.dts    |  2 +-
>  arch/arm64/boot/dts/rockchip/rk3399-rock960.dtsi   |  4 ---
>  arch/arm64/boot/dts/rockchip/rk3399-rockpro64.dtsi |  6 +---
>  arch/arm64/boot/dts/rockchip/rk3399-sapphire.dtsi  |  6 +---
>  arch/arm64/boot/dts/rockchip/rk3399.dtsi           | 37 ++++++++--------------
>  .../boot/dts/rockchip/rk3399pro-vmarc-som.dtsi     |  4 ---
>  18 files changed, 24 insertions(+), 95 deletions(-)

This change is problematic since:

-    	    compatible = "rockchip,rk3399-dwc3";
+    	    compatible = "rockchip,rk3399-dwc3", "snps,dwc3";

This means that an existing "glue" driver will now attach to the node
for the actual DWC3 controller.  Not sure what the consequences
exactly are on Linux, but on other systems that consume device trees
(e.g. U-Boot, OpenBSD) this may break things because only the glue
driver attaches.  And even if on Linux both the "glue" driver and the
"core" driver can share a single device tree node, this will still lead to
multiple drivers manipulating the same clocks and resets, which I
think is undesirable.

You could introduce a new rk3399-specific compatible for the node.
But I don't think this device tree binding change is helpful.

Cheers,

Mark

             reply	other threads:[~2021-02-05 18:22 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-02-05 14:19 Mark Kettenis [this message]
  -- strict thread matches above, loose matches on Subject: below --
2021-02-05 11:40 [PATCH v3 1/8] dt-bindings: usb: convert rockchip,dwc3.txt to yaml Johan Jonker
2021-02-05 11:40 ` [PATCH v3 3/8] arm64: dts: rockchip: restyle rk3399 usbdrd3_0 node Johan Jonker

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=4268f9759816bb98@bloch.sibelius.xs4all.nl \
    --to=mark.kettenis@xs4all.nl \
    --cc=devicetree@vger.kernel.org \
    --cc=jbx6244@gmail.com \
    --cc=linux-arm-kernel@lists.infradead.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).