Skip to content

MIPS: BCM63XX: add and use clkdev lookup support

Jonas Gorski linux-arm-kernel linux-devicetree linux-mips linux-serial 2 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest8 patches 0 repliesNew
  2. v15 of 8 patches 5 repliesSuperseded

Changes in v2 from the cover letter

* Drop the bcm63xx_enet patch, it will be sent again once the clkdev lookup is actually applied.
* Added a patch to fix refcounting in the secondary switch clocks.
* Slightly reordered patches to be ordered thematically.
* Added collected Acks / Reviews to their respective patches.

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/8MIPS: BCM63XX: add clkdev lookup supportarch/mips/Kconfig arch/mips/bcm63xx/clk.c+116 -350 replies
2/8MIPS: BCM63XX: provide periph clock as refclk for uartarch/mips/bcm63xx/clk.c+13 -00 replies
3/8tty/bcm63xx_uart: use refclk for the expected clock namedrivers/tty/serial/bcm63xx_uart.c+1 -10 replies
4/8tty/bcm63xx_uart: allow naming clock in device treeDocumentation/devicetree/bindings/serial/brcm,bcm6345-uart.txt drivers/tty/serial/bcm63xx_uart.c+10 -20 replies
5/8MIPS: BMIPS: name the refclk clock for uartarch/mips/boot/dts/brcm/bcm3368.dtsi arch/mips/boot/dts/brcm/bcm63268.dtsi arch/mips/boot/dts/brcm/bcm6328.dtsi +3 more+12 -00 replies
6/8MIPS: BCM63XX: move the HSSPI PLL HZ into its own clockarch/mips/bcm63xx/clk.c+8 -20 replies
7/8MIPS: BCM63XX: provide enet clocks as "enet" to the ethernet devicesarch/mips/bcm63xx/clk.c+8 -00 replies
8/8MIPS: BCM63XX: split out swpkt_sar/usb clocksarch/mips/bcm63xx/clk.c+51 -100 replies

Reviews trailers per patch

7 of 8 patches have a Reviewed-by or Acked-by.

PatchFlorian FainelliGreg Kroah-HartmanRob Herring
1/8R-b
2/8R-b
3/8R-b A-b
4/8R-b A-b A-b
5/8R-b
6/8R-b
7/8R-b
8/8

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v2 thread

Cover letter [PATCH V2 0/8] MIPS: BCM63XX: add and use clkdev lookup support

This patchset adds support for clckdev lookup support to name input clocks in various drivers more closely to their functions, or simplify their usage.

Since most of these patches touch arch/mips, it probably makes most sense to go through the MIPS tree.

The HSSPI driver was already updated previously to support a "pll" input with ff18e1ef04e2 ("spi/bcm63xx-hsspi: allow providing clock rate through a second clock"), so there is no need to touch it.

This patch series is part of an effort to modernize BCM63XX and clean up its drivers to eventually make them usable with BMIPS and device tree.

Changes V1 -> V2:
* Drop the bcm63xx_enet patch, it will be sent again once the clkdev lookup is actually applied.
* Added a patch to fix refcounting in the secondary switch clocks.
* Slightly reordered patches to be ordered thematically.
* Added collected Acks / Reviews to their respective patches.

Due to none of the patches having changed between V1 and V2 I did not add individual changelogs. These will be added if the code or commit log text changes.

Jonas Gorski (8):
MIPS: BCM63XX: add clkdev lookup support
MIPS: BCM63XX: provide periph clock as refclk for uart tty/bcm63xx_uart: use refclk for the expected clock name tty/bcm63xx_uart: allow naming clock in device tree
MIPS: BMIPS: name the refclk clock for uart
MIPS: BCM63XX: move the HSSPI PLL HZ into its own clock
MIPS: BCM63XX: provide enet clocks as "enet" to the ethernet devices
MIPS: BCM63XX: split out swpkt_sar/usb clocks

 .../bindings/serial/brcm,bcm6345-uart.txt          |   6 +
 arch/mips/Kconfig                                  |   1 +
 arch/mips/bcm63xx/clk.c                            | 242 +++++++++++++++++----
 arch/mips/boot/dts/brcm/bcm3368.dtsi               |   2 +
 arch/mips/boot/dts/brcm/bcm63268.dtsi              |   2 +
 arch/mips/boot/dts/brcm/bcm6328.dtsi               |   2 +
 arch/mips/boot/dts/brcm/bcm6358.dtsi               |   2 +
 arch/mips/boot/dts/brcm/bcm6362.dtsi               |   2 +
 arch/mips/boot/dts/brcm/bcm6368.dtsi               |   2 +
 drivers/tty/serial/bcm63xx_uart.c                  |   6 +-
 10 files changed, 218 insertions(+), 49 deletions(-)
Signature · 1 line
2.13.2