linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/9] Audio clocks for sun[457]i, SoC revision detection
@ 2014-07-31 21:28 Emilio López
  2014-07-31 21:28 ` [PATCH 1/9] ARM: sunxi: introduce SoC identification support Emilio López
                   ` (8 more replies)
  0 siblings, 9 replies; 36+ messages in thread
From: Emilio López @ 2014-07-31 21:28 UTC (permalink / raw)
  To: linux-arm-kernel

Hi everyone,

As part of my ongoing GSoC project effort, I did some work on the clock
code we're going to need for the audio blocks. This series adds support for
PLL2 on A10, A10S, A13 and A20. It also includes support for the codec
clock as well as module 1 clocks, used in the audio blocks.

To achieve this, we also need to implement SoC revision detection,
as the PLL2 clock is different on A10 revision A. As discussed on the
RFC series, we achieve this by detecting the revision during runtime and
adjusting the compatibles before the devices get probed. As a side effect,
we can also add support for the SoC bus to expose these details to
userspace.

The first two patches introduce the SoC identification support and the
quirk support. The third patch is a fix to a sparse warning that I hit
while building the code. Patches four to six implement the support for PLL2,
codec and module 1 clocks on our clock driver. The last three patches
add the corresponding clock nodes to the device tree.

As usual, all comments and reviews are welcome.

Thanks!

Emilio

Emilio L?pez (9):
  ARM: sunxi: introduce SoC identification support
  ARM: sunxi: quirk support
  ARM: sunxi: make sun6i SMP ops static
  clk: sunxi: PLL2 support for sun4i, sun5i and sun7i
  clk: sunxi: codec clock support
  clk: sunxi: mod1 clock support
  ARM: sunxi: dt: Add PLL2 support
  ARM: sunxi: dt: Add codec clock support
  ARM: sun7i: dt: Add mod1 clock nodes

 Documentation/devicetree/bindings/clock/sunxi.txt |   4 +
 arch/arm/boot/dts/sun4i-a10.dtsi                  |  16 ++
 arch/arm/boot/dts/sun5i-a10s.dtsi                 |  16 ++
 arch/arm/boot/dts/sun5i-a13.dtsi                  |  16 ++
 arch/arm/boot/dts/sun7i-a20.dtsi                  |  56 +++++
 arch/arm/mach-sunxi/Kconfig                       |   1 +
 arch/arm/mach-sunxi/Makefile                      |   2 +-
 arch/arm/mach-sunxi/platsmp.c                     |   2 +-
 arch/arm/mach-sunxi/quirks.c                      |  82 ++++++++
 arch/arm/mach-sunxi/sunxi-soc-id.c                | 226 ++++++++++++++++++++
 arch/arm/mach-sunxi/sunxi-soc-id.h                |   6 +
 drivers/clk/sunxi/Makefile                        |   3 +
 drivers/clk/sunxi/clk-a10-codec.c                 |  41 ++++
 drivers/clk/sunxi/clk-a10-mod1.c                  |  69 ++++++
 drivers/clk/sunxi/clk-a10-pll2.c                  | 243 ++++++++++++++++++++++
 15 files changed, 781 insertions(+), 2 deletions(-)
 create mode 100644 arch/arm/mach-sunxi/quirks.c
 create mode 100644 arch/arm/mach-sunxi/sunxi-soc-id.c
 create mode 100644 arch/arm/mach-sunxi/sunxi-soc-id.h
 create mode 100644 drivers/clk/sunxi/clk-a10-codec.c
 create mode 100644 drivers/clk/sunxi/clk-a10-mod1.c
 create mode 100644 drivers/clk/sunxi/clk-a10-pll2.c

-- 
2.0.3

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

end of thread, other threads:[~2014-08-08  0:03 UTC | newest]

Thread overview: 36+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-07-31 21:28 [PATCH 0/9] Audio clocks for sun[457]i, SoC revision detection Emilio López
2014-07-31 21:28 ` [PATCH 1/9] ARM: sunxi: introduce SoC identification support Emilio López
2014-08-03 12:40   ` Maxime Ripard
2014-08-03 21:45     ` Emilio López
2014-08-04  8:08       ` Lee Jones
2014-08-04 19:48       ` Maxime Ripard
2014-07-31 21:28 ` [PATCH 2/9] ARM: sunxi: quirk support Emilio López
2014-08-03 12:42   ` Maxime Ripard
2014-08-03 21:37     ` Emilio López
2014-08-04 19:32       ` Maxime Ripard
2014-07-31 21:28 ` [PATCH 3/9] ARM: sunxi: make sun6i SMP ops static Emilio López
2014-08-03 12:41   ` Maxime Ripard
2014-07-31 21:28 ` [PATCH 4/9] clk: sunxi: PLL2 support for sun4i, sun5i and sun7i Emilio López
2014-08-03 12:44   ` Maxime Ripard
2014-08-03 15:58     ` Chen-Yu Tsai
2014-08-03 18:48       ` Maxime Ripard
2014-08-03 22:02     ` Emilio López
2014-08-04 20:02       ` Maxime Ripard
2014-08-04 20:23         ` Emilio López
2014-08-07 11:23           ` Maxime Ripard
2014-08-06 13:51   ` jonsmirl at gmail.com
2014-08-06 15:20   ` jonsmirl at gmail.com
2014-08-08  0:03     ` jonsmirl at gmail.com
2014-07-31 21:28 ` [PATCH 5/9] clk: sunxi: codec clock support Emilio López
2014-07-31 21:28 ` [PATCH 6/9] clk: sunxi: mod1 " Emilio López
2014-08-03 12:47   ` Maxime Ripard
2014-08-03 22:11     ` Emilio López
2014-08-04 19:52       ` Maxime Ripard
2014-07-31 21:28 ` [PATCH 7/9] ARM: sunxi: dt: Add PLL2 support Emilio López
2014-07-31 21:46   ` jonsmirl at gmail.com
2014-08-03 12:50     ` Maxime Ripard
2014-08-03 15:55       ` Chen-Yu Tsai
2014-08-03 22:15         ` Emilio López
2014-08-04 19:53           ` Maxime Ripard
2014-07-31 21:28 ` [PATCH 8/9] ARM: sunxi: dt: Add codec clock support Emilio López
2014-07-31 21:28 ` [PATCH 9/9] ARM: sun7i: dt: Add mod1 clock nodes Emilio López

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).