linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: shawnguo@kernel.org (Shawn Guo)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 04/10] arm64: dts: zx296718: set a better parent clock for I2S0
Date: Wed,  9 Aug 2017 14:30:45 +0800	[thread overview]
Message-ID: <1502260251-6316-5-git-send-email-shawnguo@kernel.org> (raw)
In-Reply-To: <1502260251-6316-1-git-send-email-shawnguo@kernel.org>

From: Shawn Guo <shawn.guo@linaro.org>

The default I2S0 parent clock AUDIO_24M can not be divided into required
sample rate in some cases, for example when 48KHz is needed.  Change the
parent clock to AUDIO_99M which works for most sample rates.

Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
---
 arch/arm64/boot/dts/zte/zx296718.dtsi | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/arch/arm64/boot/dts/zte/zx296718.dtsi b/arch/arm64/boot/dts/zte/zx296718.dtsi
index 53bd504b4400..507bc39be96b 100644
--- a/arch/arm64/boot/dts/zte/zx296718.dtsi
+++ b/arch/arm64/boot/dts/zte/zx296718.dtsi
@@ -566,6 +566,8 @@
 			clocks = <&audiocrm AUDIO_I2S0_WCLK>,
 				 <&audiocrm AUDIO_I2S0_PCLK>;
 			clock-names = "wclk", "pclk";
+			assigned-clocks = <&audiocrm I2S0_WCLK_MUX>;
+			assigned-clock-parents = <&topcrm AUDIO_99M>;
 			interrupts = <GIC_SPI 60 IRQ_TYPE_LEVEL_HIGH>;
 			dmas = <&dma 22>, <&dma 23>;
 			dma-names = "tx", "rx";
-- 
1.9.1

  parent reply	other threads:[~2017-08-09  6:30 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-08-09  6:30 [PATCH 00/10] Update arm64 ZTE zx296718 device trees Shawn Guo
2017-08-09  6:30 ` [PATCH 01/10] arm64: dts: zx296718: add VGA device support Shawn Guo
2017-08-09  6:30 ` [PATCH 02/10] arm64: dts: zx296718: add I2S and I2C audio codec Shawn Guo
2017-08-09  6:30 ` [PATCH 03/10] arm64: dts: zx296718: add pinctrl and gpio devices Shawn Guo
2017-08-09  6:30 ` Shawn Guo [this message]
2017-08-09  6:30 ` [PATCH 05/10] arm64: dts: zx296718: add voltage data into OPP table Shawn Guo
2017-08-09  6:30 ` [PATCH 06/10] arm64: dts: zx296718: add PWM device support Shawn Guo
2017-08-09  6:30 ` [PATCH 07/10] arm64: dts: zx296718: add irdec device for remote control Shawn Guo
2017-08-09  6:30 ` [PATCH 08/10] arm64: dts: zx296718-evb: use audio-graph-card for HDMI audio Shawn Guo
2017-08-09  6:30 ` [PATCH 09/10] arm64: dts: zx296718-evb: add I2S sound card support Shawn Guo
2017-08-09  6:30 ` [PATCH 10/10] arm64: dts: zte: add initial zx296718-pcbox board support Shawn Guo

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=1502260251-6316-5-git-send-email-shawnguo@kernel.org \
    --to=shawnguo@kernel.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    /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;
as well as URLs for NNTP newsgroup(s).