From: Sjoerd Simons <sjoerd.simons@collabora.co.uk>
To: linux-rockchip@lists.infradead.org
Cc: Jaroslav Kysela <perex@perex.cz>,
devicetree@vger.kernel.org, alsa-devel@alsa-project.org,
Heiko Stuebner <heiko@sntech.de>, Mark Brown <broonie@kernel.org>,
linux-kernel@vger.kernel.org, Kumar Gala <galak@codeaurora.org>,
Ian Campbell <ijc+devicetree@hellion.org.uk>,
Takashi Iwai <tiwai@suse.com>,
Liam Girdwood <lgirdwood@gmail.com>,
Sjoerd Simons <sjoerd.simons@collabora.co.uk>,
Pawel Moll <pawel.moll@arm.com>, Rob Herring <robh+dt@kernel.org>,
Mark Rutland <mark.rutland@arm.com>,
Russell King <linux@arm.linux.org.uk>,
linux-arm-kernel@lists.infradead.org,
Arnd Bergmann <arnd@arndb.de>,
Thierry Reding <treding@nvidia.com>,
Olof Johansson <olof@lixom.net>,
linux-clk@vger.kernel.org,
Alexandre Belloni <alexandre.belloni@free-electrons.com>,
Geert Uytterhoeven <geert+renesas@glider.be>,
Ray Jui <rjui@broadcom.com>,
Javier Martinez Canillas <javier@osg.samsung.com>,
Krzysztof Kozlowski <k.kozlowski@samsung.com>,
Kukjin Kim <kgene@kernel.org>,
Michael Turquette <mturquette@baylibre.com>,
Tomeu Vizoso <tomeu.vizoso@collabora.com>,
Stephen Boyd <sboyd@codeaurora.org>,
Lee Jones <lee.jones@linaro.org>
Subject: [PATCH v4 0/8] Add SPDIF support for rockchip
Date: Thu, 8 Oct 2015 15:31:11 +0200 [thread overview]
Message-ID: <1444311079-2892-1-git-send-email-sjoerd.simons@collabora.co.uk> (raw)
This patchset adds support for the Rockchip SPDIF transceiver as present
on RK3066, RK3188 and RK3288 boards and enables it on a Radxa rock pro.
Tested on a Radxa Rock Pro board and Radxa Rock 2 Square board.
Quite a few changes since v3 (mostly based on review comment). One
important addition is proper RK3288 SoC support; While according to the
documentation it has 2 SPDIF "solutions" with the default being the old
one, this variation doesn't actually work.. So support has been added
to switch to the new SPDIF solution on RK3288.
Changes in v4:
- Require rockchip,grf on RK3288 as the 8 channel solution has to be
selected on that SoC
- Make the compatibility string one of a known list rather then
requiring a precise list of options.
- Change the clock names to hclk and mclk instead of spdif_hclk and
spdif_mclk to better match the implementation and data sheets.
- Use hclk and mclk as the clock names matching the update devicetree
documentation
- Drop something useless to_info function
- Open-code tx control in rk_spdif_trigge
- Use devm_regmap_init_mmio_clk to allow the regmap subsystem to manage
the hclk as needed
- Use a more conventionale pm setup (turn everything on,
mark the device as active, enable pm and request the device to go
idle)
- re-add the platfrorm:rockchip-spdif module alias
- Also manage the hclk in the PM callbacks
- Check the return code of clk_set_rate
- Switch to the 8 channel spdif solutions on RK3288
- Add support for 192khz audio rate
- Adjust clock names to match the new names (hclk/mclk)
Changes in v3:
- Fix typos in commit message
- Resent patches to a more complete list of maintainers.
Changes in v2:
- Remove platform: module alias as it was unused
- Call MODULE_DEVICE_TABLE(of, ) right after the of match table
- use rk_spdif as a prefix consistenly throughout the driver
- Check return code of regmap_update and bubble it up
- Sort the spdif node properties
- Drop the 0x prefix from the node name
- Rename the spdif@ node to sound@
Sjoerd Simons (8):
ASoC: dt-bindings: add rockchip tranceiver bindings
ASoC: rockchip: Add rockchip SPDIF transceiver driver
ARM: dts: rockchip: Add SPDIF transceiver for RK3188
ARM: dts: rockchip: Add SPDIF optical out on Radxa Rock
clk: rockchip: Allow the RK3288 SPDIF clocks to change their parent
ARM: dts: rockchip: Add SPDIF transceiver for RK3288
ARM: dts: rockchip: Add SPDIF optical out on Radxa Rock2 Square
ARM: multi_v7_defconfig: Add rockchip audio support
.../devicetree/bindings/sound/rockchip-spdif.txt | 44 +++
arch/arm/boot/dts/rk3188-radxarock.dts | 19 +
arch/arm/boot/dts/rk3188.dtsi | 22 ++
arch/arm/boot/dts/rk3288-rock2-square.dts | 18 +
arch/arm/boot/dts/rk3288.dtsi | 23 ++
arch/arm/configs/multi_v7_defconfig | 5 +
drivers/clk/rockchip/clk-rk3288.c | 16 +-
sound/soc/rockchip/Kconfig | 8 +
sound/soc/rockchip/Makefile | 2 +
sound/soc/rockchip/rockchip_spdif.c | 409 +++++++++++++++++++++
sound/soc/rockchip/rockchip_spdif.h | 63 ++++
11 files changed, 621 insertions(+), 8 deletions(-)
create mode 100644 Documentation/devicetree/bindings/sound/rockchip-spdif.txt
create mode 100644 sound/soc/rockchip/rockchip_spdif.c
create mode 100644 sound/soc/rockchip/rockchip_spdif.h
--
2.6.1
next reply other threads:[~2015-10-08 13:31 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-10-08 13:31 Sjoerd Simons [this message]
2015-10-08 13:31 ` [PATCH v4 1/8] ASoC: dt-bindings: add rockchip tranceiver bindings Sjoerd Simons
2015-10-08 16:50 ` Rob Herring
2015-10-09 11:52 ` Sjoerd Simons
2015-10-08 13:31 ` [PATCH v4 2/8] ASoC: rockchip: Add rockchip SPDIF transceiver driver Sjoerd Simons
2015-10-08 13:31 ` [PATCH v4 3/8] ARM: dts: rockchip: Add SPDIF transceiver for RK3188 Sjoerd Simons
2015-10-08 13:31 ` [PATCH v4 4/8] ARM: dts: rockchip: Add SPDIF optical out on Radxa Rock Sjoerd Simons
2015-10-08 13:31 ` [PATCH v4 5/8] clk: rockchip: Allow the RK3288 SPDIF clocks to change their parent Sjoerd Simons
2015-10-08 15:10 ` Heiko Stuebner
2015-10-09 11:35 ` Sjoerd Simons
2015-10-11 10:43 ` Heiko Stübner
2015-10-22 12:10 ` Michael Turquette
2015-10-08 13:31 ` [PATCH v4 6/8] ARM: dts: rockchip: Add SPDIF transceiver for RK3288 Sjoerd Simons
2015-10-08 13:31 ` [PATCH v4 7/8] ARM: dts: rockchip: Add SPDIF optical out on Radxa Rock2 Square Sjoerd Simons
2015-10-08 13:31 ` [PATCH v4 8/8] ARM: multi_v7_defconfig: Add rockchip audio support Sjoerd Simons
2015-10-08 13:51 ` Javier Martinez Canillas
2015-10-09 7:27 ` Lee Jones
2015-10-13 21:51 ` [PATCH v4 0/8] Add SPDIF support for rockchip Heiko Stübner
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=1444311079-2892-1-git-send-email-sjoerd.simons@collabora.co.uk \
--to=sjoerd.simons@collabora.co.uk \
--cc=alexandre.belloni@free-electrons.com \
--cc=alsa-devel@alsa-project.org \
--cc=arnd@arndb.de \
--cc=broonie@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=galak@codeaurora.org \
--cc=geert+renesas@glider.be \
--cc=heiko@sntech.de \
--cc=ijc+devicetree@hellion.org.uk \
--cc=javier@osg.samsung.com \
--cc=k.kozlowski@samsung.com \
--cc=kgene@kernel.org \
--cc=lee.jones@linaro.org \
--cc=lgirdwood@gmail.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-clk@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-rockchip@lists.infradead.org \
--cc=linux@arm.linux.org.uk \
--cc=mark.rutland@arm.com \
--cc=mturquette@baylibre.com \
--cc=olof@lixom.net \
--cc=pawel.moll@arm.com \
--cc=perex@perex.cz \
--cc=rjui@broadcom.com \
--cc=robh+dt@kernel.org \
--cc=sboyd@codeaurora.org \
--cc=tiwai@suse.com \
--cc=tomeu.vizoso@collabora.com \
--cc=treding@nvidia.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®