All the mail mirrored from lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 00/14] SCI clocks cleanup
@ 2015-09-14 12:14 Laurent Pinchart
  2015-09-14 12:14   ` Laurent Pinchart
                   ` (5 more replies)
  0 siblings, 6 replies; 10+ messages in thread
From: Laurent Pinchart @ 2015-09-14 12:14 UTC (permalink / raw)
  To: linux-sh

Hello,

The SCI driver currently handles two clocks, an interface clock named sci_ick
and a functional clock named sci_fck. Studying the datasheets of the SH and
ARM SoCs that incorportate (H)SCI(F)([AB]) instances showed (un)surprisingly
that the hardware doesn't have a separate controllable interface clock.

All the platforms that declare an interface clock for the SCI set it to the
clock used as the SCI functional clock. The two clocks can thus be merged on
the driver side, which is what this patch series does. The resulting clock is
called "fck", and all SH and ARM users (both DT and non-DT) are fixed to name
their SCI clocks appropriately.

Support for the "sci_ick" name is kept in the sh-sci driver to ensure DT
backward compatibility, and support for the "peripheral_clk" clock to not
break SH platforms that don't declare device-specific SCI clocks. The later
can be removed when all SH platforms will declare their SCI clocks properly.

The patches have been developed for an ancien (v3.x for those who were born)
kernel and rebased on top of Simon's master branch. I've only compile-tested
them after the rebase. Geert, I believe this series is a good preliminary
cleanup for the SCI baud rate generator clock support. Could you give it a try
as part of your work on that ?

Laurent Pinchart (14):
  serial: sh-sci: Drop the interface clock
  sh: Rename sci_ick and sci_fck clock to fck
  sh: Remove sci_ick clock alias
  ARM: shmobile: sh73a0: Rename the serial port clock to fck
  ARM: shmobile: r7s72100: Rename the serial port clock to fck
  ARM: shmobile: r8a73a4: Rename the serial port clock to fck
  ARM: shmobile: r8a7740: Rename the serial port clock to fck
  ARM: shmobile: r8a7778: Rename the serial port clock to fck
  ARM: shmobile: r8a7779: Rename the serial port clock to fck
  ARM: shmobile: r8a7790: Rename the serial port clock to fck
  ARM: shmobile: r8a7791: Rename the serial port clock to fck
  ARM: shmobile: r8a7793: Rename the serial port clock to fck
  ARM: shmobile: r8a7794: Rename the serial port clock to fck
  serial: sh-sci: Drop the sci_fck clock fallback

 .../bindings/serial/renesas,sci-serial.txt         |  4 +-
 arch/arm/boot/dts/r7s72100.dtsi                    | 16 +++----
 arch/arm/boot/dts/r8a73a4.dtsi                     | 12 ++---
 arch/arm/boot/dts/r8a7740.dtsi                     | 18 +++----
 arch/arm/boot/dts/r8a7778.dtsi                     | 12 ++---
 arch/arm/boot/dts/r8a7779.dtsi                     | 12 ++---
 arch/arm/boot/dts/r8a7790.dtsi                     | 20 ++++----
 arch/arm/boot/dts/r8a7791.dtsi                     | 36 +++++++-------
 arch/arm/boot/dts/r8a7793.dtsi                     |  4 +-
 arch/arm/boot/dts/r8a7794.dtsi                     | 36 +++++++-------
 arch/arm/boot/dts/sh73a0.dtsi                      | 18 +++----
 arch/sh/kernel/cpu/clock-cpg.c                     |  1 -
 arch/sh/kernel/cpu/sh2a/clock-sh7264.c             |  9 +++-
 arch/sh/kernel/cpu/sh2a/clock-sh7269.c             | 16 +++----
 arch/sh/kernel/cpu/sh4a/clock-sh7343.c             |  8 ++--
 arch/sh/kernel/cpu/sh4a/clock-sh7366.c             |  6 +--
 arch/sh/kernel/cpu/sh4a/clock-sh7723.c             | 12 ++---
 arch/sh/kernel/cpu/sh4a/clock-sh7734.c             | 12 ++---
 arch/sh/kernel/cpu/sh4a/clock-sh7757.c             |  6 +--
 arch/sh/kernel/cpu/sh4a/clock-sh7785.c             | 12 ++---
 arch/sh/kernel/cpu/sh4a/clock-sh7786.c             | 12 ++---
 arch/sh/kernel/cpu/sh4a/clock-shx3.c               |  8 ++--
 drivers/tty/serial/sh-sci.c                        | 55 +++++++++++++---------
 23 files changed, 180 insertions(+), 165 deletions(-)

-- 
Regards,

Laurent Pinchart


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2015-11-02 14:27 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-09-14 12:14 [PATCH 00/14] SCI clocks cleanup Laurent Pinchart
2015-09-14 12:14 ` [PATCH 01/14] serial: sh-sci: Drop the interface clock Laurent Pinchart
2015-09-14 12:14   ` Laurent Pinchart
2015-11-02 14:27   ` Geert Uytterhoeven
2015-11-02 14:27     ` Geert Uytterhoeven
2015-09-14 12:26 ` [PATCH 00/14] SCI clocks cleanup Geert Uytterhoeven
2015-09-14 12:37 ` Laurent Pinchart
2015-09-14 12:46 ` Geert Uytterhoeven
2015-09-17  7:30 ` Simon Horman
2015-09-17  7:53 ` Simon Horman

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.