From: Heiko Stuebner <heiko@sntech.de>
To: Doug Anderson <dianders@chromium.org>
Cc: Kishon Vijay Abraham I <kishon@ti.com>,
Michael Turquette <mturquette@baylibre.com>,
Stephen Boyd <sboyd@codeaurora.org>,
"linux-arm-kernel@lists.infradead.org"
<linux-arm-kernel@lists.infradead.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
"open list:ARM/Rockchip SoC..."
<linux-rockchip@lists.infradead.org>,
Romain Perier <romain.perier@gmail.com>,
Arnd Bergmann <arnd@arndb.de>, Lin Huang <hl@rock-chips.com>
Subject: Re: [PATCH v3 4/8] phy: rockchip-usb: add compatible values for rk3066a and rk3188
Date: Sun, 22 Nov 2015 20:49:21 +0100 [thread overview]
Message-ID: <1586601.dy8rrhuEYg@phil> (raw)
In-Reply-To: <CAD=FV=V=5vP4a32Gonkv+vw7E+B=tP1VoWSfLA6YTh8knJZcfg@mail.gmail.com>
Am Donnerstag, 19. November 2015, 16:32:23 schrieb Doug Anderson:
> Heiko,
>
> On Thu, Nov 19, 2015 at 1:22 PM, Heiko Stuebner <heiko@sntech.de> wrote:
> > We need custom handling for these two socs in the driver shortly,
> > so add the necessary compatible values to binding and driver.
> >
> > Signed-off-by: Heiko Stuebner <heiko@sntech.de>
> > ---
> > Documentation/devicetree/bindings/phy/rockchip-usb-phy.txt | 5 ++++-
> > drivers/phy/phy-rockchip-usb.c | 2 ++
> > 2 files changed, 6 insertions(+), 1 deletion(-)
> >
> > diff --git a/Documentation/devicetree/bindings/phy/rockchip-usb-phy.txt
b/Documentation/devicetree/bindings/phy/rockchip-usb-phy.txt
> > index 826454a..9b37242 100644
> > --- a/Documentation/devicetree/bindings/phy/rockchip-usb-phy.txt
> > +++ b/Documentation/devicetree/bindings/phy/rockchip-usb-phy.txt
> > @@ -1,7 +1,10 @@
> > ROCKCHIP USB2 PHY
> >
> > Required properties:
> > - - compatible: rockchip,rk3288-usb-phy
> > + - compatible: matching the soc type, one of
> > + "rockchip,rk3066a-usb-phy"
> > + "rockchip,rk3188-usb-phy"
> > + "rockchip,rk3288-usb-phy"
>
> I can never quite keep it straight how this is supposed to work, but
> since previously only "rockchip,rk3288-usb-phy" was supported and now
> we have these new compatible strings, I would have expected the new
> strings to specify the old ones as fallback. That would mean your
> choices would be:
>
> - "rockchip,rk3288-usb-phy" - A real rk3288
> - "rockchip,rk3188-usb-phy", "rockchip,rk3288-usb-phy" - A rk3188 with
> fallback to 3288 driver.
> - "rockchip,rk3066a-usb-phy", "rockchip,rk3288-usb-phy" - A rk3066a
> with fallback to 3288 driver.
How this is supposed to be done also is sometimes confusing for me :-)
But I don't think that specifying the "fallbacks" is part of the binding at
all, when the binding really is done in a soc-specific way. For example
following the suggestion of the dt-maintainers at the time we're specifying
the uarts as
compatible = "rockchip,rk3288-uart", "snps,dw-apb-uart"
as a measure to use a more-special driver if there is ever the need for it.
But here the "snps,dw-apb-uart" actually is a superset (a more generic
implementation), while in the usb-uart-case
> That means that if you land the dts changes without the driver changes
> that things still work OK.
We already have the alternative for the usb-phys in the devicetree, but I
still don't think that this alternative is part of the binding itself :-)
Heiko
WARNING: multiple messages have this Message-ID (diff)
From: heiko@sntech.de (Heiko Stuebner)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v3 4/8] phy: rockchip-usb: add compatible values for rk3066a and rk3188
Date: Sun, 22 Nov 2015 20:49:21 +0100 [thread overview]
Message-ID: <1586601.dy8rrhuEYg@phil> (raw)
In-Reply-To: <CAD=FV=V=5vP4a32Gonkv+vw7E+B=tP1VoWSfLA6YTh8knJZcfg@mail.gmail.com>
Am Donnerstag, 19. November 2015, 16:32:23 schrieb Doug Anderson:
> Heiko,
>
> On Thu, Nov 19, 2015 at 1:22 PM, Heiko Stuebner <heiko@sntech.de> wrote:
> > We need custom handling for these two socs in the driver shortly,
> > so add the necessary compatible values to binding and driver.
> >
> > Signed-off-by: Heiko Stuebner <heiko@sntech.de>
> > ---
> > Documentation/devicetree/bindings/phy/rockchip-usb-phy.txt | 5 ++++-
> > drivers/phy/phy-rockchip-usb.c | 2 ++
> > 2 files changed, 6 insertions(+), 1 deletion(-)
> >
> > diff --git a/Documentation/devicetree/bindings/phy/rockchip-usb-phy.txt
b/Documentation/devicetree/bindings/phy/rockchip-usb-phy.txt
> > index 826454a..9b37242 100644
> > --- a/Documentation/devicetree/bindings/phy/rockchip-usb-phy.txt
> > +++ b/Documentation/devicetree/bindings/phy/rockchip-usb-phy.txt
> > @@ -1,7 +1,10 @@
> > ROCKCHIP USB2 PHY
> >
> > Required properties:
> > - - compatible: rockchip,rk3288-usb-phy
> > + - compatible: matching the soc type, one of
> > + "rockchip,rk3066a-usb-phy"
> > + "rockchip,rk3188-usb-phy"
> > + "rockchip,rk3288-usb-phy"
>
> I can never quite keep it straight how this is supposed to work, but
> since previously only "rockchip,rk3288-usb-phy" was supported and now
> we have these new compatible strings, I would have expected the new
> strings to specify the old ones as fallback. That would mean your
> choices would be:
>
> - "rockchip,rk3288-usb-phy" - A real rk3288
> - "rockchip,rk3188-usb-phy", "rockchip,rk3288-usb-phy" - A rk3188 with
> fallback to 3288 driver.
> - "rockchip,rk3066a-usb-phy", "rockchip,rk3288-usb-phy" - A rk3066a
> with fallback to 3288 driver.
How this is supposed to be done also is sometimes confusing for me :-)
But I don't think that specifying the "fallbacks" is part of the binding at
all, when the binding really is done in a soc-specific way. For example
following the suggestion of the dt-maintainers at the time we're specifying
the uarts as
compatible = "rockchip,rk3288-uart", "snps,dw-apb-uart"
as a measure to use a more-special driver if there is ever the need for it.
But here the "snps,dw-apb-uart" actually is a superset (a more generic
implementation), while in the usb-uart-case
> That means that if you land the dts changes without the driver changes
> that things still work OK.
We already have the alternative for the usb-phys in the devicetree, but I
still don't think that this alternative is part of the binding itself :-)
Heiko
next prev parent reply other threads:[~2015-11-22 19:49 UTC|newest]
Thread overview: 61+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-11-19 21:22 [PATCH v3 0/8] phy: rockchip-usb: correct pll handling and usb-uart Heiko Stuebner
2015-11-19 21:22 ` Heiko Stuebner
2015-11-19 21:22 ` Heiko Stuebner
2015-11-19 21:22 ` [PATCH v3 1/8] phy: rockchip-usb: fix clock get-put mismatch Heiko Stuebner
2015-11-19 21:22 ` Heiko Stuebner
2015-11-19 21:22 ` Heiko Stuebner
2015-11-19 21:22 ` [PATCH v3 2/8] phy: rockchip-usb: introduce a common data-struct for the device Heiko Stuebner
2015-11-19 21:22 ` Heiko Stuebner
2015-11-20 0:38 ` Doug Anderson
2015-11-20 0:38 ` Doug Anderson
2015-11-19 21:22 ` [PATCH v3 3/8] phy: rockchip-usb: move per-phy init into a separate function Heiko Stuebner
2015-11-19 21:22 ` Heiko Stuebner
2015-11-19 21:22 ` Heiko Stuebner
[not found] ` <1447968149-10979-1-git-send-email-heiko-4mtYJXux2i+zQB+pC5nmwQ@public.gmane.org>
2015-11-19 21:22 ` [PATCH v3 4/8] phy: rockchip-usb: add compatible values for rk3066a and rk3188 Heiko Stuebner
2015-11-19 21:22 ` Heiko Stuebner
2015-11-19 21:22 ` Heiko Stuebner
2015-11-20 0:32 ` Doug Anderson
2015-11-20 0:32 ` Doug Anderson
2015-11-22 19:49 ` Heiko Stuebner [this message]
2015-11-22 19:49 ` Heiko Stuebner
2015-11-25 17:04 ` Doug Anderson
2015-11-25 17:04 ` Doug Anderson
2015-11-25 18:24 ` Heiko Stübner
2015-11-25 18:24 ` Heiko Stübner
2015-11-25 18:35 ` Doug Anderson
2015-11-25 18:35 ` Doug Anderson
2015-11-25 18:35 ` Doug Anderson
2015-11-19 21:22 ` [PATCH v3 5/8] phy: rockchip-usb: expose the phy-internal PLLs Heiko Stuebner
2015-11-19 21:22 ` Heiko Stuebner
2015-11-19 21:22 ` Heiko Stuebner
[not found] ` <1447968149-10979-6-git-send-email-heiko-4mtYJXux2i+zQB+pC5nmwQ@public.gmane.org>
2015-12-15 10:53 ` Kishon Vijay Abraham I
2015-12-15 10:53 ` Kishon Vijay Abraham I
2015-12-15 10:53 ` Kishon Vijay Abraham I
2015-12-21 20:00 ` Michael Turquette
2015-12-21 20:00 ` Michael Turquette
2015-11-19 21:22 ` [PATCH v3 8/8] phy: rockchip-usb: add handler for usb-uart functionality Heiko Stuebner
2015-11-19 21:22 ` Heiko Stuebner
2015-11-19 21:22 ` Heiko Stuebner
2015-11-19 21:22 ` [PATCH v3 6/8] ARM: dts: rockchip: add clock-cells for usb phy nodes Heiko Stuebner
2015-11-19 21:22 ` Heiko Stuebner
2015-11-19 21:22 ` Heiko Stuebner
2016-01-25 14:06 ` Heiko Stübner
2016-01-25 14:06 ` Heiko Stübner
2015-11-19 21:22 ` [PATCH v3 7/8] clk: rockchip: fix usbphy-related clocks Heiko Stuebner
2015-11-19 21:22 ` Heiko Stuebner
2015-11-19 21:22 ` Heiko Stuebner
[not found] ` <1447968149-10979-8-git-send-email-heiko-4mtYJXux2i+zQB+pC5nmwQ@public.gmane.org>
2015-12-15 10:52 ` Kishon Vijay Abraham I
2015-12-15 10:52 ` Kishon Vijay Abraham I
2015-12-15 10:52 ` Kishon Vijay Abraham I
2015-12-19 17:21 ` Heiko Stübner
2015-12-19 17:21 ` Heiko Stübner
2015-12-20 9:09 ` Kishon Vijay Abraham I
2015-12-20 9:09 ` Kishon Vijay Abraham I
2015-12-20 9:09 ` Kishon Vijay Abraham I
2016-01-25 14:04 ` Heiko Stübner
2016-01-25 14:04 ` Heiko Stübner
2015-12-02 15:32 ` [PATCH v3 0/8] phy: rockchip-usb: correct pll handling and usb-uart Heiko Stübner
2015-12-02 15:32 ` Heiko Stübner
2015-12-03 6:05 ` Kishon Vijay Abraham I
2015-12-03 6:05 ` Kishon Vijay Abraham I
2015-12-03 6:05 ` Kishon Vijay Abraham I
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=1586601.dy8rrhuEYg@phil \
--to=heiko@sntech.de \
--cc=arnd@arndb.de \
--cc=dianders@chromium.org \
--cc=hl@rock-chips.com \
--cc=kishon@ti.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-rockchip@lists.infradead.org \
--cc=mturquette@baylibre.com \
--cc=romain.perier@gmail.com \
--cc=sboyd@codeaurora.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.