All of lore.kernel.org
 help / color / mirror / Atom feed
From: Doug Anderson <dianders@chromium.org>
To: Heiko Stuebner <heiko@sntech.de>
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: Thu, 19 Nov 2015 16:32:23 -0800	[thread overview]
Message-ID: <CAD=FV=V=5vP4a32Gonkv+vw7E+B=tP1VoWSfLA6YTh8knJZcfg@mail.gmail.com> (raw)
In-Reply-To: <1447968149-10979-5-git-send-email-heiko@sntech.de>

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.

That means that if you land the dts changes without the driver changes
that things still work OK.

-Doug

WARNING: multiple messages have this Message-ID (diff)
From: dianders@chromium.org (Doug Anderson)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v3 4/8] phy: rockchip-usb: add compatible values for rk3066a and rk3188
Date: Thu, 19 Nov 2015 16:32:23 -0800	[thread overview]
Message-ID: <CAD=FV=V=5vP4a32Gonkv+vw7E+B=tP1VoWSfLA6YTh8knJZcfg@mail.gmail.com> (raw)
In-Reply-To: <1447968149-10979-5-git-send-email-heiko@sntech.de>

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.

That means that if you land the dts changes without the driver changes
that things still work OK.

-Doug

  reply	other threads:[~2015-11-20  0:32 UTC|newest]

Thread overview: 67+ 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-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
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 [this message]
2015-11-20  0:32     ` Doug Anderson
2015-11-20  0:32     ` Doug Anderson
2015-11-22 19:49     ` Heiko Stuebner
2015-11-22 19:49       ` Heiko Stuebner
2015-11-22 19:49       ` Heiko Stuebner
2015-11-25 17:04       ` Doug Anderson
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: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
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-12-21 20:00       ` Michael Turquette
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
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-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-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='CAD=FV=V=5vP4a32Gonkv+vw7E+B=tP1VoWSfLA6YTh8knJZcfg@mail.gmail.com' \
    --to=dianders@chromium.org \
    --cc=arnd@arndb.de \
    --cc=heiko@sntech.de \
    --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.