* [PATCH v2 0/5] ARM: dts: rcar-gen2: Convert to new CPG/MSSR bindings
@ 2017-08-18 9:11 Geert Uytterhoeven
2017-08-21 9:02 ` Simon Horman
0 siblings, 1 reply; 2+ messages in thread
From: Geert Uytterhoeven @ 2017-08-18 9:11 UTC (permalink / raw)
To: Simon Horman, Magnus Damm
Cc: linux-renesas-soc, linux-clk, linux-arm-kernel, devicetree,
Geert Uytterhoeven, Andrew Lunn, Florian Fainelli, netdev
Hi Simon, Magnus,
Currently Renesas R-Car Gen2 SoCs use the common clk-rcar-gen2,
clk-mstp, and clk-div6 drivers, which depend on most clocks being
described in DT. Especially the module (MSTP) clocks are cumbersome and
error prone, due to 3 arrays (clocks, clock-indices, and
clock-output-names) to be kept in sync. In addition, the clk-mstp driver
cannot be extended easily to also support module resets, which are
provided by the same hardware module.
Hence when developing support for R-Car Gen3 SoCs, another approach was
chosen, which led to the CPG/MSSR driver core, and SoC-specific
subdrivers (initially for R-Car Gen3, but later also for RZ/G1).
This series converts the various R-Car Gen2 DTSes to migrate to the new
CPG/MSSR drivers that were added in v4.13-rc1.
Note that module reset descriptions will be added later.
Changes compared to v1:
- Rebased.
Dependencies:
- renesas-devel-20170818-v4.13-rc5.
Known issues:
- The CPG/MSSR driver is initialized later than the old clk-rcar-gen2
driver, causing changes of initialization order for other drivers.
Currently the PHY subsystem does not support probe deferral
+irq: no irq domain found for /interrupt-controller@e61c0000 !
-Micrel KSZ8041RNLI ee700000.ethernet-ffffffff:01: attached PHY driver [Micrel KSZ8041RNLI] (mii_bus:phy_addr=ee700000.ethernet-ffffffff:01, irq=182)
+Micrel KSZ8041RNLI ee700000.ethernet-ffffffff:01: attached PHY driver [Micrel KSZ8041RNLI] (mii_bus:phy_addr=ee700000.ethernet-ffffffff:01, irq=-1)
leading to the Ethernet PHY falling back to polling instead of using an
interrupt. This can be remedied by "of_mdio: Fix broken PHY IRQ in
case of probe deferral" (https://patchwork.kernel.org/patch/9734175/),
which is still pending approval.
Fortunately the impact of this is limited to a small delay in the
detection of cable (un)plugging.
Note that when using the PHY interrupt, cable unplugging is reported
instantaneous, but plugging takes ca. 1.5-1.8 seconds. Hence when
using polling with the standard interval of 1 second, the link comes up
in about the same time.
For your convenience, this series is also available in the
topic/rcar2-cpg-mssr-dt-v2 branch of my renesas-drivers git repository at
git://git.kernel.org/pub/scm/linux/kernel/git/geert/renesas-drivers.git.
This has been tested on r8a7790/lager, r8a7791/koelsch, r8a7792/blanche,
r8a7793/gose, and r8a7794/alt. /sys/kernel/debug/clk/clk_summary has
been compared before and after the conversion.
Thanks for applying!
Geert Uytterhoeven (5):
ARM: dts: r8a7790: Convert to new CPG/MSSR bindings
ARM: dts: r8a7791: Convert to new CPG/MSSR bindings
ARM: dts: r8a7792: Convert to new CPG/MSSR bindings
ARM: dts: r8a7793: Convert to new CPG/MSSR bindings
ARM: dts: r8a7794: Convert to new CPG/MSSR bindings
arch/arm/boot/dts/r8a7790-lager.dts | 7 +-
arch/arm/boot/dts/r8a7790.dtsi | 557 ++++++----------------------------
arch/arm/boot/dts/r8a7791-koelsch.dts | 4 +-
arch/arm/boot/dts/r8a7791-porter.dts | 4 +-
arch/arm/boot/dts/r8a7791.dtsi | 557 +++++++---------------------------
arch/arm/boot/dts/r8a7792-blanche.dts | 3 +-
arch/arm/boot/dts/r8a7792-wheat.dts | 3 +-
arch/arm/boot/dts/r8a7792.dtsi | 333 ++++----------------
arch/arm/boot/dts/r8a7793-gose.dts | 4 +-
arch/arm/boot/dts/r8a7793.dtsi | 459 +++++-----------------------
arch/arm/boot/dts/r8a7794-alt.dts | 3 +-
arch/arm/boot/dts/r8a7794-silk.dts | 3 +-
arch/arm/boot/dts/r8a7794.dtsi | 528 +++++---------------------------
13 files changed, 430 insertions(+), 2035 deletions(-)
--
2.7.4
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org
In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH v2 0/5] ARM: dts: rcar-gen2: Convert to new CPG/MSSR bindings
2017-08-18 9:11 [PATCH v2 0/5] ARM: dts: rcar-gen2: Convert to new CPG/MSSR bindings Geert Uytterhoeven
@ 2017-08-21 9:02 ` Simon Horman
0 siblings, 0 replies; 2+ messages in thread
From: Simon Horman @ 2017-08-21 9:02 UTC (permalink / raw)
To: Geert Uytterhoeven
Cc: Magnus Damm, linux-renesas-soc, linux-clk, linux-arm-kernel,
devicetree, Andrew Lunn, Florian Fainelli, netdev
On Fri, Aug 18, 2017 at 11:11:33AM +0200, Geert Uytterhoeven wrote:
> Hi Simon, Magnus,
>
> Currently Renesas R-Car Gen2 SoCs use the common clk-rcar-gen2,
> clk-mstp, and clk-div6 drivers, which depend on most clocks being
> described in DT. Especially the module (MSTP) clocks are cumbersome and
> error prone, due to 3 arrays (clocks, clock-indices, and
> clock-output-names) to be kept in sync. In addition, the clk-mstp driver
> cannot be extended easily to also support module resets, which are
> provided by the same hardware module.
>
> Hence when developing support for R-Car Gen3 SoCs, another approach was
> chosen, which led to the CPG/MSSR driver core, and SoC-specific
> subdrivers (initially for R-Car Gen3, but later also for RZ/G1).
>
> This series converts the various R-Car Gen2 DTSes to migrate to the new
> CPG/MSSR drivers that were added in v4.13-rc1.
>
> Note that module reset descriptions will be added later.
>
> Changes compared to v1:
> - Rebased.
>
> Dependencies:
> - renesas-devel-20170818-v4.13-rc5.
>
> Known issues:
> - The CPG/MSSR driver is initialized later than the old clk-rcar-gen2
> driver, causing changes of initialization order for other drivers.
>
> Currently the PHY subsystem does not support probe deferral
>
> +irq: no irq domain found for /interrupt-controller@e61c0000 !
>
> -Micrel KSZ8041RNLI ee700000.ethernet-ffffffff:01: attached PHY driver [Micrel KSZ8041RNLI] (mii_bus:phy_addr=ee700000.ethernet-ffffffff:01, irq=182)
> +Micrel KSZ8041RNLI ee700000.ethernet-ffffffff:01: attached PHY driver [Micrel KSZ8041RNLI] (mii_bus:phy_addr=ee700000.ethernet-ffffffff:01, irq=-1)
>
> leading to the Ethernet PHY falling back to polling instead of using an
> interrupt. This can be remedied by "of_mdio: Fix broken PHY IRQ in
> case of probe deferral" (https://patchwork.kernel.org/patch/9734175/),
> which is still pending approval.
>
> Fortunately the impact of this is limited to a small delay in the
> detection of cable (un)plugging.
> Note that when using the PHY interrupt, cable unplugging is reported
> instantaneous, but plugging takes ca. 1.5-1.8 seconds. Hence when
> using polling with the standard interval of 1 second, the link comes up
> in about the same time.
>
> For your convenience, this series is also available in the
> topic/rcar2-cpg-mssr-dt-v2 branch of my renesas-drivers git repository at
> git://git.kernel.org/pub/scm/linux/kernel/git/geert/renesas-drivers.git.
>
> This has been tested on r8a7790/lager, r8a7791/koelsch, r8a7792/blanche,
> r8a7793/gose, and r8a7794/alt. /sys/kernel/debug/clk/clk_summary has
> been compared before and after the conversion.
>
> Thanks for applying!
Thanks, applied for v4.15.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-08-21 9:02 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-08-18 9:11 [PATCH v2 0/5] ARM: dts: rcar-gen2: Convert to new CPG/MSSR bindings Geert Uytterhoeven
2017-08-21 9:02 ` Simon Horman
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).