* [RESENT PATCH v7 0/7] ASoC: rockchip: Parse dai links from dts
@ 2017-08-24 4:52 Jeffy Chen
2017-08-24 4:52 ` [RESENT PATCH v7 2/7] arm64: dts: rockchip: Add rt5514 dsp for Gru Jeffy Chen
` (2 more replies)
0 siblings, 3 replies; 10+ messages in thread
From: Jeffy Chen @ 2017-08-24 4:52 UTC (permalink / raw)
To: linux-kernel, dgreid, heiko
Cc: Mark Rutland, devicetree, alsa-devel, briannorris, Liam Girdwood,
Catalin Marinas, Mark Brown, Jeffy Chen, Will Deacon, dianders,
Rob Herring, linux-rockchip, mka, Klaus Goger, Takashi Iwai,
linux-arm-kernel, Caesar Wang
Currently we are using a fixed list of dai links in the driver.
This serial of patches would let the driver parse dai links from
dts, so that we can make some of them optional for future boards.
Tested on my chromebook bob(with cros 4.4 kernel), it still works
after disabled rt5514 codecs in the dts.
Changes in v7:
Rebase on the newest for-next
Changes in v6:
Add dmic wakeup delay(not used for now).
Changes in v3:
Use compatible to match audio codecs
-- Suggested-by Matthias Kaehlcke <mka@chromium.org>
Changes in v2:
Let rockchip,codec-names be a required property, because we plan to
add more supported codecs to the fixed dai link list in the driver.
Jeffy Chen (7):
ASoC: rockchip: Use codec of_node and dai_name for rt5514 dsp
arm64: dts: rockchip: Add rt5514 dsp for Gru
arm64: dts: rockchip: Update rt5514 devices' compatible for Gru
ASoC: rockchip: Parse dai links from dts
ASoC: rockchip: Add support for DP codec
ASoC: rockchip: Add support for DMIC codec
dt-bindings: ASoC: rockchip: Update description of rockchip,codec
.../bindings/sound/rockchip,rk3399-gru-sound.txt | 2 +-
arch/arm64/boot/dts/rockchip/rk3399-gru.dtsi | 7 +-
sound/soc/rockchip/Kconfig | 2 +
sound/soc/rockchip/rk3399_gru_sound.c | 255 +++++++++++++++------
4 files changed, 186 insertions(+), 80 deletions(-)
--
2.11.0
^ permalink raw reply [flat|nested] 10+ messages in thread
* [RESENT PATCH v7 2/7] arm64: dts: rockchip: Add rt5514 dsp for Gru
2017-08-24 4:52 [RESENT PATCH v7 0/7] ASoC: rockchip: Parse dai links from dts Jeffy Chen
@ 2017-08-24 4:52 ` Jeffy Chen
[not found] ` <20170824045227.15504-3-jeffy.chen-TNX95d0MmH7DzftRWevZcw@public.gmane.org>
2017-08-24 4:52 ` [RESENT PATCH v7 3/7] arm64: dts: rockchip: Update rt5514 devices' compatible " Jeffy Chen
2017-08-24 4:52 ` [RESENT PATCH v7 7/7] dt-bindings: ASoC: rockchip: Update description of rockchip,codec Jeffy Chen
2 siblings, 1 reply; 10+ messages in thread
From: Jeffy Chen @ 2017-08-24 4:52 UTC (permalink / raw)
To: linux-kernel, dgreid, heiko
Cc: briannorris, mka, dianders, Jeffy Chen, devicetree, Klaus Goger,
linux-rockchip, Rob Herring, linux-arm-kernel, Will Deacon,
Mark Rutland, Caesar Wang, Catalin Marinas
Add rt5514 dsp of_node to codec list for Gru boards.
Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com>
---
Changes in v7: None
Changes in v6: None
Changes in v3: None
Changes in v2: None
arch/arm64/boot/dts/rockchip/rk3399-gru.dtsi | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/arch/arm64/boot/dts/rockchip/rk3399-gru.dtsi b/arch/arm64/boot/dts/rockchip/rk3399-gru.dtsi
index 199a5118b20d..5772c52fbfd3 100644
--- a/arch/arm64/boot/dts/rockchip/rk3399-gru.dtsi
+++ b/arch/arm64/boot/dts/rockchip/rk3399-gru.dtsi
@@ -514,7 +514,8 @@
sound {
compatible = "rockchip,rk3399-gru-sound";
rockchip,cpu = <&i2s0 &i2s2>;
- rockchip,codec = <&max98357a &headsetcodec &codec>;
+ rockchip,codec = <&max98357a &headsetcodec
+ &codec &wacky_spi_audio>;
};
};
--
2.11.0
^ permalink raw reply related [flat|nested] 10+ messages in thread
* [RESENT PATCH v7 3/7] arm64: dts: rockchip: Update rt5514 devices' compatible for Gru
2017-08-24 4:52 [RESENT PATCH v7 0/7] ASoC: rockchip: Parse dai links from dts Jeffy Chen
2017-08-24 4:52 ` [RESENT PATCH v7 2/7] arm64: dts: rockchip: Add rt5514 dsp for Gru Jeffy Chen
@ 2017-08-24 4:52 ` Jeffy Chen
[not found] ` <20170824045227.15504-4-jeffy.chen-TNX95d0MmH7DzftRWevZcw@public.gmane.org>
2017-08-24 4:52 ` [RESENT PATCH v7 7/7] dt-bindings: ASoC: rockchip: Update description of rockchip,codec Jeffy Chen
2 siblings, 1 reply; 10+ messages in thread
From: Jeffy Chen @ 2017-08-24 4:52 UTC (permalink / raw)
To: linux-kernel, dgreid, heiko
Cc: briannorris, mka, dianders, Jeffy Chen, devicetree, Klaus Goger,
linux-rockchip, Rob Herring, linux-arm-kernel, Will Deacon,
Mark Rutland, Caesar Wang, Catalin Marinas
Currently the rt5514 i2c driver and rt5514 spi driver are using the same
compatible string.
Add additional unused compatible strings to identify them for Gru
boards.
Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com>
---
Changes in v7: None
Changes in v6: None
Changes in v3: None
Changes in v2: None
arch/arm64/boot/dts/rockchip/rk3399-gru.dtsi | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/arch/arm64/boot/dts/rockchip/rk3399-gru.dtsi b/arch/arm64/boot/dts/rockchip/rk3399-gru.dtsi
index 5772c52fbfd3..50fb11ad9f17 100644
--- a/arch/arm64/boot/dts/rockchip/rk3399-gru.dtsi
+++ b/arch/arm64/boot/dts/rockchip/rk3399-gru.dtsi
@@ -611,7 +611,7 @@ ap_i2c_mic: &i2c1 {
i2c-scl-rising-time-ns = <300>;
headsetcodec: rt5514@57 {
- compatible = "realtek,rt5514";
+ compatible = "realtek,rt5514", "realtek,rt5514-i2c";
reg = <0x57>;
realtek,dmic-init-delay-ms = <20>;
};
@@ -820,7 +820,7 @@ ap_i2c_audio: &i2c8 {
status = "okay";
wacky_spi_audio: spi2@0 {
- compatible = "realtek,rt5514";
+ compatible = "realtek,rt5514", "realtek,rt5514-spi";
reg = <0>;
interrupt-parent = <&gpio1>;
interrupts = <13 IRQ_TYPE_LEVEL_HIGH>;
--
2.11.0
^ permalink raw reply related [flat|nested] 10+ messages in thread
* [RESENT PATCH v7 7/7] dt-bindings: ASoC: rockchip: Update description of rockchip,codec
2017-08-24 4:52 [RESENT PATCH v7 0/7] ASoC: rockchip: Parse dai links from dts Jeffy Chen
2017-08-24 4:52 ` [RESENT PATCH v7 2/7] arm64: dts: rockchip: Add rt5514 dsp for Gru Jeffy Chen
2017-08-24 4:52 ` [RESENT PATCH v7 3/7] arm64: dts: rockchip: Update rt5514 devices' compatible " Jeffy Chen
@ 2017-08-24 4:52 ` Jeffy Chen
2 siblings, 0 replies; 10+ messages in thread
From: Jeffy Chen @ 2017-08-24 4:52 UTC (permalink / raw)
To: linux-kernel, dgreid, heiko
Cc: briannorris, mka, dianders, Jeffy Chen, devicetree, alsa-devel,
Liam Girdwood, Mark Brown, linux-rockchip, Rob Herring,
Mark Rutland, linux-arm-kernel
Update description for newly added optional audio codecs.
Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com>
Acked-by: Rob Herring <robh@kernel.org>
---
Changes in v7: None
Changes in v6: None
Changes in v3: None
Changes in v2: None
Documentation/devicetree/bindings/sound/rockchip,rk3399-gru-sound.txt | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Documentation/devicetree/bindings/sound/rockchip,rk3399-gru-sound.txt b/Documentation/devicetree/bindings/sound/rockchip,rk3399-gru-sound.txt
index eac91db07178..72d3cf4c2606 100644
--- a/Documentation/devicetree/bindings/sound/rockchip,rk3399-gru-sound.txt
+++ b/Documentation/devicetree/bindings/sound/rockchip,rk3399-gru-sound.txt
@@ -4,7 +4,7 @@ Required properties:
- compatible: "rockchip,rk3399-gru-sound"
- rockchip,cpu: The phandle of the Rockchip I2S controller that's
connected to the codecs
-- rockchip,codec: The phandle of the MAX98357A/RT5514/DA7219 codecs
+- rockchip,codec: The phandle of the audio codecs
Optional properties:
- dmic-wakeup-delay-ms : specify delay time (ms) for DMIC ready.
--
2.11.0
^ permalink raw reply related [flat|nested] 10+ messages in thread
* Re: [RESENT PATCH v7 3/7] arm64: dts: rockchip: Update rt5514 devices' compatible for Gru
[not found] ` <20170824045227.15504-4-jeffy.chen-TNX95d0MmH7DzftRWevZcw@public.gmane.org>
@ 2017-08-30 13:30 ` Heiko Stübner
2017-08-30 17:00 ` jeffy
0 siblings, 1 reply; 10+ messages in thread
From: Heiko Stübner @ 2017-08-30 13:30 UTC (permalink / raw)
To: Jeffy Chen
Cc: linux-kernel-u79uwXL29TY76Z2rM5mHXA,
dgreid-F7+t8E8rja9g9hUCZPvPmw, briannorris-F7+t8E8rja9g9hUCZPvPmw,
mka-F7+t8E8rja9g9hUCZPvPmw, dianders-F7+t8E8rja9g9hUCZPvPmw,
devicetree-u79uwXL29TY76Z2rM5mHXA, Klaus Goger,
linux-rockchip-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, Rob Herring,
linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, Will Deacon,
Mark Rutland, Caesar Wang, Catalin Marinas
Hi Jeffy,
Am Donnerstag, 24. August 2017, 12:52:23 CEST schrieb Jeffy Chen:
> Currently the rt5514 i2c driver and rt5514 spi driver are using the same
> compatible string.
>
> Add additional unused compatible strings to identify them for Gru
> boards.
>
> Signed-off-by: Jeffy Chen <jeffy.chen-TNX95d0MmH7DzftRWevZcw@public.gmane.org>
> ---
>
> Changes in v7: None
> Changes in v6: None
> Changes in v3: None
> Changes in v2: None
>
> arch/arm64/boot/dts/rockchip/rk3399-gru.dtsi | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/arch/arm64/boot/dts/rockchip/rk3399-gru.dtsi
> b/arch/arm64/boot/dts/rockchip/rk3399-gru.dtsi index
> 5772c52fbfd3..50fb11ad9f17 100644
> --- a/arch/arm64/boot/dts/rockchip/rk3399-gru.dtsi
> +++ b/arch/arm64/boot/dts/rockchip/rk3399-gru.dtsi
> @@ -611,7 +611,7 @@ ap_i2c_mic: &i2c1 {
> i2c-scl-rising-time-ns = <300>;
>
> headsetcodec: rt5514@57 {
> - compatible = "realtek,rt5514";
> + compatible = "realtek,rt5514", "realtek,rt5514-i2c";
the rt5514-i2c and -spi compatibles should be documented in the binding-txt
of the chip, but I haven't found any mention of this.
Heiko
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [RESENT PATCH v7 3/7] arm64: dts: rockchip: Update rt5514 devices' compatible for Gru
2017-08-30 13:30 ` Heiko Stübner
@ 2017-08-30 17:00 ` jeffy
[not found] ` <59A6EF3C.5090308-TNX95d0MmH7DzftRWevZcw@public.gmane.org>
0 siblings, 1 reply; 10+ messages in thread
From: jeffy @ 2017-08-30 17:00 UTC (permalink / raw)
To: Heiko Stübner
Cc: linux-kernel, dgreid, briannorris, mka, dianders, devicetree,
Klaus Goger, linux-rockchip, Rob Herring, linux-arm-kernel,
Will Deacon, Mark Rutland, Caesar Wang, Catalin Marinas
Hi Heiko,
thanks for your reply.
On 08/30/2017 09:30 PM, Heiko Stübner wrote:
>> >- compatible = "realtek,rt5514";
>> >+ compatible = "realtek,rt5514", "realtek,rt5514-i2c";
> the rt5514-i2c and -spi compatibles should be documented in the binding-txt
> of the chip, but I haven't found any mention of this.
>
>
> Heiko
these compatibles are only used for our snd driver to detect rt5514 i2c
driver and rt5514 spi driver, suggested by Matthias at
https://patchwork.kernel.org/patch/9904731/
should i add it in the rockchip,rk3399-gru-sound.txt or rt5514 binding
document?
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [RESENT PATCH v7 3/7] arm64: dts: rockchip: Update rt5514 devices' compatible for Gru
[not found] ` <59A6EF3C.5090308-TNX95d0MmH7DzftRWevZcw@public.gmane.org>
@ 2017-09-04 22:33 ` Heiko Stübner
2017-09-05 4:26 ` jeffy
0 siblings, 1 reply; 10+ messages in thread
From: Heiko Stübner @ 2017-09-04 22:33 UTC (permalink / raw)
To: jeffy
Cc: linux-kernel-u79uwXL29TY76Z2rM5mHXA,
dgreid-F7+t8E8rja9g9hUCZPvPmw, briannorris-F7+t8E8rja9g9hUCZPvPmw,
mka-F7+t8E8rja9g9hUCZPvPmw, dianders-F7+t8E8rja9g9hUCZPvPmw,
devicetree-u79uwXL29TY76Z2rM5mHXA, Klaus Goger,
linux-rockchip-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, Rob Herring,
linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, Will Deacon,
Mark Rutland, Caesar Wang, Catalin Marinas
Am Donnerstag, 31. August 2017, 01:00:44 CEST schrieb jeffy:
> On 08/30/2017 09:30 PM, Heiko Stübner wrote:
> >> >- compatible = "realtek,rt5514";
> >> >+ compatible = "realtek,rt5514", "realtek,rt5514-i2c";
> >
> > the rt5514-i2c and -spi compatibles should be documented in the
> > binding-txt
> > of the chip, but I haven't found any mention of this.
> >
> >
> > Heiko
>
> these compatibles are only used for our snd driver to detect rt5514 i2c
> driver and rt5514 spi driver, suggested by Matthias at
> https://patchwork.kernel.org/patch/9904731/
>
> should i add it in the rockchip,rk3399-gru-sound.txt or rt5514 binding
> document?
You're introducing new bindings for the codec, so they should of course
part of the rt5514 binding.
Heiko
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [RESENT PATCH v7 3/7] arm64: dts: rockchip: Update rt5514 devices' compatible for Gru
2017-09-04 22:33 ` Heiko Stübner
@ 2017-09-05 4:26 ` jeffy
0 siblings, 0 replies; 10+ messages in thread
From: jeffy @ 2017-09-05 4:26 UTC (permalink / raw)
To: Heiko Stübner
Cc: linux-kernel, dgreid, briannorris, mka, dianders, devicetree,
Klaus Goger, linux-rockchip, Rob Herring, linux-arm-kernel,
Will Deacon, Mark Rutland, Caesar Wang, Catalin Marinas
Hi Heiko,
On 09/05/2017 06:33 AM, Heiko Stübner wrote:
> Am Donnerstag, 31. August 2017, 01:00:44 CEST schrieb jeffy:
>> On 08/30/2017 09:30 PM, Heiko Stübner wrote:
>>>>> - compatible = "realtek,rt5514";
>>>>> + compatible = "realtek,rt5514", "realtek,rt5514-i2c";
>>>
>>> the rt5514-i2c and -spi compatibles should be documented in the
>>> binding-txt
>>> of the chip, but I haven't found any mention of this.
>>>
>>>
>>> Heiko
>>
>> these compatibles are only used for our snd driver to detect rt5514 i2c
>> driver and rt5514 spi driver, suggested by Matthias at
>> https://patchwork.kernel.org/patch/9904731/
>>
>> should i add it in the rockchip,rk3399-gru-sound.txt or rt5514 binding
>> document?
>
> You're introducing new bindings for the codec, so they should of course
> part of the rt5514 binding.
ok, will do that.
and it looks like there's no binding for rt5514-spi, will add it too :)
>
>
> Heiko
>
>
>
>
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [RESENT PATCH v7 2/7] arm64: dts: rockchip: Add rt5514 dsp for Gru
[not found] ` <20170824045227.15504-3-jeffy.chen-TNX95d0MmH7DzftRWevZcw@public.gmane.org>
@ 2017-09-09 11:13 ` Heiko Stuebner
2017-09-09 11:45 ` Heiko Stuebner
0 siblings, 1 reply; 10+ messages in thread
From: Heiko Stuebner @ 2017-09-09 11:13 UTC (permalink / raw)
To: Jeffy Chen
Cc: linux-kernel-u79uwXL29TY76Z2rM5mHXA,
dgreid-F7+t8E8rja9g9hUCZPvPmw, briannorris-F7+t8E8rja9g9hUCZPvPmw,
mka-F7+t8E8rja9g9hUCZPvPmw, dianders-F7+t8E8rja9g9hUCZPvPmw,
devicetree-u79uwXL29TY76Z2rM5mHXA, Klaus Goger,
linux-rockchip-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, Rob Herring,
linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, Will Deacon,
Mark Rutland, Caesar Wang, Catalin Marinas
Am Donnerstag, 24. August 2017, 12:52:22 CEST schrieb Jeffy Chen:
> Add rt5514 dsp of_node to codec list for Gru boards.
>
> Signed-off-by: Jeffy Chen <jeffy.chen-TNX95d0MmH7DzftRWevZcw@public.gmane.org>
applied for 4.15
Second patch needs to wait a bit more for the binding to get accepted.
Thanks
Heiko
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [RESENT PATCH v7 2/7] arm64: dts: rockchip: Add rt5514 dsp for Gru
2017-09-09 11:13 ` Heiko Stuebner
@ 2017-09-09 11:45 ` Heiko Stuebner
0 siblings, 0 replies; 10+ messages in thread
From: Heiko Stuebner @ 2017-09-09 11:45 UTC (permalink / raw)
To: Jeffy Chen
Cc: linux-kernel-u79uwXL29TY76Z2rM5mHXA,
dgreid-F7+t8E8rja9g9hUCZPvPmw, briannorris-F7+t8E8rja9g9hUCZPvPmw,
mka-F7+t8E8rja9g9hUCZPvPmw, dianders-F7+t8E8rja9g9hUCZPvPmw,
devicetree-u79uwXL29TY76Z2rM5mHXA, Klaus Goger,
linux-rockchip-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, Rob Herring,
linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, Will Deacon,
Mark Rutland, Caesar Wang, Catalin Marinas
Am Samstag, 9. September 2017, 13:13:01 CEST schrieb Heiko Stuebner:
> Am Donnerstag, 24. August 2017, 12:52:22 CEST schrieb Jeffy Chen:
> > Add rt5514 dsp of_node to codec list for Gru boards.
> >
> > Signed-off-by: Jeffy Chen <jeffy.chen-TNX95d0MmH7DzftRWevZcw@public.gmane.org>
>
> applied for 4.15
> Second patch needs to wait a bit more for the binding to get accepted.
just realized that
[PATCH v7 3/7] arm64: dts: rockchip: Update rt5514 devices' compatible for Gru
is also part of the 2-patch series adding the compatible, so I don't need
to track it here anymore, so nevermind the comment above.
Heiko
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2017-09-09 11:45 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-08-24 4:52 [RESENT PATCH v7 0/7] ASoC: rockchip: Parse dai links from dts Jeffy Chen
2017-08-24 4:52 ` [RESENT PATCH v7 2/7] arm64: dts: rockchip: Add rt5514 dsp for Gru Jeffy Chen
[not found] ` <20170824045227.15504-3-jeffy.chen-TNX95d0MmH7DzftRWevZcw@public.gmane.org>
2017-09-09 11:13 ` Heiko Stuebner
2017-09-09 11:45 ` Heiko Stuebner
2017-08-24 4:52 ` [RESENT PATCH v7 3/7] arm64: dts: rockchip: Update rt5514 devices' compatible " Jeffy Chen
[not found] ` <20170824045227.15504-4-jeffy.chen-TNX95d0MmH7DzftRWevZcw@public.gmane.org>
2017-08-30 13:30 ` Heiko Stübner
2017-08-30 17:00 ` jeffy
[not found] ` <59A6EF3C.5090308-TNX95d0MmH7DzftRWevZcw@public.gmane.org>
2017-09-04 22:33 ` Heiko Stübner
2017-09-05 4:26 ` jeffy
2017-08-24 4:52 ` [RESENT PATCH v7 7/7] dt-bindings: ASoC: rockchip: Update description of rockchip,codec Jeffy Chen
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).