[PATCH v2 0/8] drm/bridge: dw-hdmi: improve i2s support

2019-08-12 Thread Jerome Brunet
://lkml.kernel.org/r/20190805134102.24173-1-jbru...@baylibre.com Jerome Brunet (8): drm/bridge: dw-hdmi-i2s: support more i2s format drm/bridge: dw-hdmi: move audio channel setup out of ahb drm/bridge: dw-hdmi: set channel count in the infoframes drm/bridge: dw-hdmi-i2s: enable lpcm multi

Re: [PATCH v2 0/4] clk: meson: g12a: add support for DVFS

2019-08-09 Thread Jerome Brunet
On Thu 08 Aug 2019 at 14:18, Kevin Hilman wrote: > Neil Armstrong writes: > >> The G12A/G12B Socs embeds a specific clock tree for each CPU cluster : >> cpu_clk / cpub_clk >> | \- cpu_clk_dyn >> | | \- cpu_clk_premux0 >> | ||- cpu_clk_postmux0 >> | |||-

Re: [PATCH 3/9] clk: meson: axg-audio: Don't reference clk_init_data after registration

2019-08-07 Thread Jerome Brunet
On Tue 06 Aug 2019 at 14:48, Stephen Boyd wrote: > Quoting Jerome Brunet (2019-08-06 01:49:47) >> On Wed 31 Jul 2019 at 12:35, Stephen Boyd wrote: >> >> > A future patch is going to change semantics of clk_register() so that >> > clk_hw::init is guaranteed to

Re: [PATCH 3/9] clk: meson: axg-audio: Don't reference clk_init_data after registration

2019-08-06 Thread Jerome Brunet
ta untouched if the registration fails. > > Cc: Neil Armstrong > Cc: Jerome Brunet > Signed-off-by: Stephen Boyd > --- > > Please ack so I can take this through clk tree > > drivers/clk/meson/axg-audio.c | 7 +-- > 1 file changed, 5 insertions(+), 2 deletions(-) > > diff

Re: [PATCH v2 0/4] clk: meson: g12a: add support for DVFS

2019-08-06 Thread Jerome Brunet
On Wed 31 Jul 2019 at 10:40, Neil Armstrong wrote: > > Neil Armstrong (4): > clk: core: introduce clk_hw_set_parent() > clk: meson: add g12a cpu dynamic divider driver > clk: meson: g12a: add notifiers to handle cpu clock change > clk: meson: g12a: expose CPUB clock ID for G12B > >

Re: [PATCH v2 1/4] clk: core: introduce clk_hw_set_parent()

2019-08-06 Thread Jerome Brunet
On Wed 31 Jul 2019 at 10:40, Neil Armstrong wrote: > Introduce the clk_hw_set_parent() provider call to change parent of > a clock by using the clk_hw pointers. > > This eases the clock reparenting from clock rate notifiers and > implementing DVFS with simpler code avoiding the boilerplates >

Re: [PATCH 3/4] clk: meson: g12a: add notifiers to handle cpu clock change

2019-07-30 Thread Jerome Brunet
On Mon 29 Jul 2019 at 15:16, Neil Armstrong wrote: > In order to implement clock switching for the CLKID_CPU_CLK and > CLKID_CPUB_CLK, notifiers are added on specific points of the > clock tree : > > cpu_clk / cpub_clk > | \- cpu_clk_dyn > | | \- cpu_clk_premux0 > | ||-

Re: [PATCH 2/2] clk: meson: axg-audio: add g12a reset support

2019-07-30 Thread Jerome Brunet
On Mon 29 Jul 2019 at 15:29, Stephen Boyd wrote: > Quoting Jerome Brunet (2019-07-03 05:26:14) >> @@ -1005,8 +1087,27 @@ static int axg_audio_clkc_probe(struct >> platform_device *pdev) >> } >> } >> >> -

Re: [PATCH v2 0/8] clk: meson: ee: use the new parent description method

2019-07-29 Thread Jerome Brunet
On Thu 25 Jul 2019 at 18:42, Alexandre Mergnat wrote: > Meson SoCs clock controllers use the string comparison method to describe > parent relation between the clocks, which is not optimized. > > Its also use bypass clock made from device-tree clock to provide an input > clock which can be

Re: [PATCH v2 0/4] clk: meson: ao: use the new parent description method

2019-07-29 Thread Jerome Brunet
On Thu 25 Jul 2019 at 18:41, Alexandre Mergnat wrote: > Meson SoCs clock controllers use the string comparison method to describe > parent relation between the clocks, which is not optimized. > > Its also use bypass clock made from device-tree clock to provide an input > clock which can be

Re: [PATCH v2] clk: meson: axg-audio: migrate to the new parent description method

2019-07-29 Thread Jerome Brunet
On Thu 25 Jul 2019 at 18:40, Alexandre Mergnat wrote: > /* Audio Master Clocks */ > -static const char * const mst_mux_parent_names[] = { > - "aud_mst_in0", "aud_mst_in1", "aud_mst_in2", "aud_mst_in3", > - "aud_mst_in4", "aud_mst_in5", "aud_mst_in6", "aud_mst_in7", > +static const

[PATCH] ASoC: meson: g12a-tohdmitx: override codec2codec params

2019-07-29 Thread Jerome Brunet
So far, forwarding the hw_params of the input to output relied on the .hw_params() callback of the cpu side of the codec2codec link to be called first. This is a bit weak. Instead, override the stream params of the codec2codec to link to set it up correctly. Signed-off-by: Jerome Brunet

Re: [RFC/RFT v3 04/14] clk: meson: eeclk: add setup callback

2019-07-29 Thread Jerome Brunet
On Fri 26 Jul 2019 at 16:50, Neil Armstrong wrote: > On 03/07/2019 16:17, Jerome Brunet wrote: >> On Mon 01 Jul 2019 at 11:12, Neil Armstrong wrote: >> >>> Add a setup() callback in the eeclk structure, to call an optional >>> call() function at end of eeclk pr

[PATCH v2 0/6] ASoC: improve codec to codec link support

2019-07-25 Thread Jerome Brunet
handling and rollback a bit [0]: https://lkml.kernel.org/r/20190515131858.32130-1-jbru...@baylibre.com [1]: https://lkml.kernel.org/r/20190724162405.6574-1-jbru...@baylibre.com Jerome Brunet (6): ASoC: codec2codec: run callbacks in order ASoC: codec2codec: name link using stream direction ASoC

[PATCH v2 3/6] ASoC: codec2codec: deal with params when necessary

2019-07-25 Thread Jerome Brunet
party on the link to alter params content in .startup(), which might be useful in some cases Signed-off-by: Jerome Brunet --- sound/soc/soc-dapm.c | 159 +-- 1 file changed, 92 insertions(+), 67 deletions(-) diff --git a/sound/soc/soc-dapm.c b/sound/soc

[PATCH v2 2/6] ASoC: codec2codec: name link using stream direction

2019-07-25 Thread Jerome Brunet
Signed-off-by: Jerome Brunet --- sound/soc/soc-dapm.c | 12 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/sound/soc/soc-dapm.c b/sound/soc/soc-dapm.c index 034b31fd2ecb..7db4abd9a0a5 100644 --- a/sound/soc/soc-dapm.c +++ b/sound/soc/soc-dapm.c @@ -4056,8 +4056,7

[PATCH v2 5/6] ASoC: codec2codec: remove ephemeral variables

2019-07-25 Thread Jerome Brunet
Now that codec to codec links struct snd_soc_pcm_runtime have lasting pcm and substreams, let's use them. Alsa allocate and keep the struct snd_pcm_runtime as long as the link is powered. Signed-off-by: Jerome Brunet --- sound/soc/soc-dapm.c | 72 ++-- 1

[PATCH v2 1/6] ASoC: codec2codec: run callbacks in order

2019-07-25 Thread Jerome Brunet
When handling dai_link events on codec to codec links, run all .startup() callbacks on sinks and sources before running any .hw_params(). Same goes for hw_free() and shutdown(). This is closer to the behavior of regular dai links Signed-off-by: Jerome Brunet --- sound/soc/soc-dapm.c | 36

[PATCH v2 6/6] ASoC: codec2codec: fill some of the runtime stream parameters

2019-07-25 Thread Jerome Brunet
Set the information provided struct snd_soc_pcm_stream in the struct snd_pcm_runtime of the codec to codec link. Signed-off-by: Jerome Brunet --- sound/soc/soc-dapm.c | 5 + 1 file changed, 5 insertions(+) diff --git a/sound/soc/soc-dapm.c b/sound/soc/soc-dapm.c index 3e3b81ae87dd

[PATCH v2 4/6] ASoC: create pcm for codec2codec links as well

2019-07-25 Thread Jerome Brunet
links. Signed-off-by: Jerome Brunet --- sound/soc/soc-core.c | 42 -- sound/soc/soc-pcm.c | 35 --- 2 files changed, 44 insertions(+), 33 deletions(-) diff --git a/sound/soc/soc-core.c b/sound/soc/soc-core.c index

Re: [PATCH 3/8] clk: meson: gxbb: migrate to the new parent description method

2019-07-25 Thread Jerome Brunet
On Mon 22 Jul 2019 at 11:54, Alexandre Mergnat wrote: > @@ -1592,13 +1737,29 @@ static struct clk_regmap gxbb_vid_pll_div = { > .hw.init = &(struct clk_init_data) { > .name = "vid_pll_div", > .ops = _vid_pll_div_ro_ops, > - .parent_names = (const

Re: [PATCH 2/4] clk: meson: gxbb-aoclk: migrate to the new parent description method

2019-07-25 Thread Jerome Brunet
On Mon 22 Jul 2019 at 11:50, Alexandre Mergnat wrote: > @@ -208,8 +216,10 @@ static struct clk_regmap ao_cts_cec = { >* Until CCF gets fixed, adding this fake parent that won't >* ever be registered should work around the problem >*/ > -

Re: [PATCH] clk: meson: axg-audio: migrate to the new parent description method

2019-07-25 Thread Jerome Brunet
On Mon 22 Jul 2019 at 11:49, Alexandre Mergnat wrote: > diff --git a/drivers/clk/meson/axg-audio.c b/drivers/clk/meson/axg-audio.c > index 8028ff6f6610..4253a466eae8 100644 > --- a/drivers/clk/meson/axg-audio.c > +++ b/drivers/clk/meson/axg-audio.c > @@ -15,7 +15,6 @@ > #include > >

Re: [PATCH] clk: meson: g12a: fix hifi typo in mali parent_names

2019-07-25 Thread Jerome Brunet
On Fri 24 May 2019 at 11:15, Alexandre Mergnat wrote: > Replace hihi by hifi in the mali parent_names of the g12a SoC family. > > Fixes: 085a4ea93d54 ("clk: meson: g12a: add peripheral clock controller") > Cc: Jerome Brunet > Signed-off-by: Alexandre Mergnat Missed t

Re: [PATCH 3/6] ASoC: codec2codec: deal with params when necessary

2019-07-25 Thread Jerome Brunet
On Thu 25 Jul 2019 at 13:55, Mark Brown wrote: > On Wed, Jul 24, 2019 at 06:24:02PM +0200, Jerome Brunet wrote: > >> Also, params does not need to be dynamically allocated as it does not >> need to survive the event. > > It's dynamically allocated because it's a prett

Re: [PATCH 1/6] ASoC: codec2codec: run callbacks in order

2019-07-25 Thread Jerome Brunet
On Thu 25 Jul 2019 at 14:00, Mark Brown wrote: > On Wed, Jul 24, 2019 at 06:24:00PM +0200, Jerome Brunet wrote: >> When handling dai_link events on codec to codec links, run all .startup() >> callbacks on sinks and sources before running any .hw_params(). Same goes >> for h

[PATCH 3/6] ASoC: codec2codec: deal with params when necessary

2019-07-24 Thread Jerome Brunet
, dealing with the codec to codec params just before calling .hw_params() callbacks give change to either party on the link to alter params content in .startup(), which might be useful in some cases Signed-off-by: Jerome Brunet --- sound/soc/soc-dapm.c | 81

[PATCH 6/6] ASoC: codec2codec: fill some of the runtime stream parameters

2019-07-24 Thread Jerome Brunet
Set the information provided struct snd_soc_pcm_stream in the struct snd_pcm_runtime of the codec to codec link. Signed-off-by: Jerome Brunet --- sound/soc/soc-dapm.c | 5 + 1 file changed, 5 insertions(+) diff --git a/sound/soc/soc-dapm.c b/sound/soc/soc-dapm.c index e0eedff5fe94

[PATCH 2/6] ASoC: codec2codec: name link using stream direction

2019-07-24 Thread Jerome Brunet
Signed-off-by: Jerome Brunet --- sound/soc/soc-dapm.c | 12 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/sound/soc/soc-dapm.c b/sound/soc/soc-dapm.c index 5348abda7ce2..d20cd89513a4 100644 --- a/sound/soc/soc-dapm.c +++ b/sound/soc/soc-dapm.c @@ -4056,8 +4056,7

[PATCH 5/6] ASoC: codec2codec: remove ephemeral variables

2019-07-24 Thread Jerome Brunet
Now that codec to codec links struct snd_soc_pcm_runtime have lasting pcm and substreams, let's use them. Alsa allocate and keep the struct snd_pcm_runtime as long as the link is powered. Signed-off-by: Jerome Brunet --- sound/soc/soc-dapm.c | 86 1

[PATCH 1/6] ASoC: codec2codec: run callbacks in order

2019-07-24 Thread Jerome Brunet
When handling dai_link events on codec to codec links, run all .startup() callbacks on sinks and sources before running any .hw_params(). Same goes for hw_free() and shutdown(). This is closer to the behavior of regular dai links Signed-off-by: Jerome Brunet --- sound/soc/soc-dapm.c | 38

[PATCH 4/6] ASoC: create pcm for codec2codec links as well

2019-07-24 Thread Jerome Brunet
links. Signed-off-by: Jerome Brunet --- sound/soc/soc-core.c | 42 -- sound/soc/soc-pcm.c | 35 --- 2 files changed, 44 insertions(+), 33 deletions(-) diff --git a/sound/soc/soc-core.c b/sound/soc/soc-core.c index

[PATCH 0/6] ASoC: improve codec to codec link support

2019-07-24 Thread Jerome Brunet
... The challenge lies in the dapm mutex. The soc_pcm call dapm function locking this mutex but the dapm mutex is already held in snd_soc_dai_link_event() [0]: https://lkml.kernel.org/r/20190515131858.32130-1-jbru...@baylibre.com Jerome Brunet (6): ASoC: codec2codec: run callbacks in order ASoC

[PATCH] ARM: dts: meson8b: add ethernet fifo sizes

2019-07-18 Thread Jerome Brunet
if necessary. Signed-off-by: Jerome Brunet --- arch/arm/boot/dts/meson8b.dtsi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/boot/dts/meson8b.dtsi b/arch/arm/boot/dts/meson8b.dtsi index fba2c70c2fda..b044ad78b475 100644 --- a/arch/arm/boot/dts/meson8b.dtsi +++ b/arch/arm/boot/dts

[PATCH] arm64: dts: meson: add ethernet fifo sizes

2019-07-18 Thread Jerome Brunet
if necessary. Signed-off-by: Jerome Brunet --- arch/arm64/boot/dts/amlogic/meson-axg.dtsi | 2 ++ arch/arm64/boot/dts/amlogic/meson-g12a.dtsi | 2 ++ arch/arm64/boot/dts/amlogic/meson-gx.dtsi | 2 ++ 3 files changed, 6 insertions(+) diff --git a/arch/arm64/boot/dts/amlogic/meson-axg.dtsi b

Re: [RFC/RFT v3 04/14] clk: meson: eeclk: add setup callback

2019-07-03 Thread Jerome Brunet
On Mon 01 Jul 2019 at 11:12, Neil Armstrong wrote: > Add a setup() callback in the eeclk structure, to call an optional > call() function at end of eeclk probe to setup clocks. > > It's used for the G12A clock controller to setup the CPU clock > notifiers. I'd prefer if you implement the probe

Re: [RFC/RFT v3 09/14] arm64: dts: move common G12A & G12B modes to meson-g12-common.dtsi

2019-07-03 Thread Jerome Brunet
On Wed 03 Jul 2019 at 13:51, Neil Armstrong wrote: > On 03/07/2019 01:54, Martin Blumenstingl wrote: >> Hi Neil, >> [...] >> does it make sense to name this file "meson-g12a-g12b-sm1-common.dtsi" >> instead? >> do you know whether there will be a successor to G12B and what it's >> code-name

Re: [RFC/RFT v3 04/14] clk: meson: eeclk: add setup callback

2019-07-03 Thread Jerome Brunet
On Wed 03 Jul 2019 at 13:45, Neil Armstrong wrote: > On 03/07/2019 01:16, Martin Blumenstingl wrote: >> +Cc Alexandre Mergnat >> >> On Mon, Jul 1, 2019 at 11:13 AM Neil Armstrong >> wrote: >>> >>> Add a setup() callback in the eeclk structure, to call an optional >>> call() function at end of

[PATCH 0/2] clk: meson: axg-audio: add reset support

2019-07-03 Thread Jerome Brunet
This patchset adds support for the reset provided in the register space of the g12a audio clock controller Jerome Brunet (2): dt-bindings: clock: meson: add resets to the audio clock controller clk: meson: axg-audio: add g12a reset support .../bindings/clock/amlogic,axg-audio-clkc.txt | 1

[PATCH 1/2] dt-bindings: clock: meson: add resets to the audio clock controller

2019-07-03 Thread Jerome Brunet
Add the documentation and bindings for the resets provided by the g12a audio clock controller Signed-off-by: Jerome Brunet --- .../bindings/clock/amlogic,axg-audio-clkc.txt | 1 + .../reset/amlogic,meson-g12a-audio-reset.h| 38 +++ 2 files changed, 39 insertions(+) create

[PATCH 2/2] clk: meson: axg-audio: add g12a reset support

2019-07-03 Thread Jerome Brunet
On the g12a, the register space dedicated to the audio clock also provides some resets. Let the clock controller register a reset provider as well for this SoC family. the axg SoC family does not appear to provide this feature. Signed-off-by: Jerome Brunet --- drivers/clk/meson/axg-audio.c

[PATCH 2/2] ASoC: meson: axg-tdm-formatter: add reset

2019-07-03 Thread Jerome Brunet
Add the optional reset line handling which is present on the new SoC families, such as the g12a. Triggering this reset is not critical but it helps solve a channel shift issue on the g12a. Signed-off-by: Jerome Brunet --- sound/soc/meson/axg-tdm-formatter.c | 29 + 1

[PATCH 0/2] ASoC: meson: axg-tdm-formatter: add g12a reset

2019-07-03 Thread Jerome Brunet
This patchset add the possibility to provide a reset to the tdm formatter. Such reset is available on the g12a SoC family and helps solve a random channel output shift when using more than one output lane. Jerome Brunet (2): ASoC: meson: axg-tdm-formatter: add reset to the bindings

[PATCH 1/2] ASoC: meson: axg-tdm-formatter: add reset to the bindings documentation

2019-07-03 Thread Jerome Brunet
Add an optional reset property to the tdm formatter bindings. The dedicated reset line is present on some SoC families, such as the g12a. Signed-off-by: Jerome Brunet --- .../bindings/sound/amlogic,axg-tdm-formatters.txt | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff

Re: [RFC 01/11] soc: amlogic: meson-gx-socinfo: Add SM1 and S905X3 IDs

2019-07-02 Thread Jerome Brunet
On Mon 01 Jul 2019 at 12:46, Neil Armstrong wrote: > Add the SoC IDs for the S905X3 Amlogic SM1 SoC. > > Signed-off-by: Neil Armstrong Reviewed-by: Jerome Brunet > --- > drivers/soc/amlogic/meson-gx-socinfo.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --g

[PATCH] ASoC: meson: axg-card: remove useless check on codec

2019-06-28 Thread Jerome Brunet
While checking cpus before dereferencing the pointer is required, it is not necessary for codecs. 'codec' can't possibly be NULL in the loop Reported-by: Dan Carpenter Signed-off-by: Jerome Brunet --- sound/soc/meson/axg-card.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff

[PATCH v2 1/2] ASoC: soc-core: defer card registration if codec component is missing

2019-06-27 Thread Jerome Brunet
Like cpus and platforms, defer sound card initialization if the codec component is missing when initializing the dai_link Signed-off-by: Jerome Brunet --- sound/soc/soc-core.c | 8 1 file changed, 8 insertions(+) diff --git a/sound/soc/soc-core.c b/sound/soc/soc-core.c index

[PATCH v2 2/2] ASoC: soc-core: support dai_link with platforms_num != 1

2019-06-27 Thread Jerome Brunet
allow no Platform on dai_link"). However, this change may still be useful for those who need multiple platform components on a single dai_link (it solves one of the FIXME note in soc-core) Acked-by: Kuninori Morimoto Signed-off-by: Jerome Brunet --- include/sound/soc.h | 6 + sou

[PATCH v2 0/2] ASoC: soc-core: update dai_link init

2019-06-27 Thread Jerome Brunet
://lkml.kernel.org/r/20190626133617.25959-1-jbru...@baylibre.com Jerome Brunet (2): ASoC: soc-core: defer card registration if codec component is missing ASoC: soc-core: support dai_link with platforms_num != 1 include/sound/soc.h | 6 sound/soc/soc-core.c | 67

[PATCH 2/2] ASoC: soc-core: support dai_link with platforms_num != 1

2019-06-26 Thread Jerome Brunet
allow no Platform on dai_link"). However, this change may still be useful for those who need multiple platform components on a single dai_link (it solves one of the FIXME note in soc-core) Cc: Kuninori Morimoto Signed-off-by: Jerome Brunet --- include/sound/soc.h | 6 sound/soc/

[PATCH 1/2] ASoC: soc-core: defer card registration if codec component is missing

2019-06-26 Thread Jerome Brunet
Like cpus and platforms, defer sound card initialization if the codec component is missing when initializing the dai_link Signed-off-by: Jerome Brunet --- sound/soc/soc-core.c | 8 1 file changed, 8 insertions(+) diff --git a/sound/soc/soc-core.c b/sound/soc/soc-core.c index

[PATCH 0/2] ASoC: soc-core: update dai_link init

2019-06-26 Thread Jerome Brunet
platform components on a dai_link, which is one of the FIXME note in soc-core. I have also added a check on the codecs component availability to align on what was done for platforms and cpus Jerome Brunet (2): ASoC: soc-core: defer card registration if codec component is missing ASoC: soc

Re: [PATCH] clk: Simplify clk_core_can_round()

2019-06-17 Thread Jerome Brunet
e || core->ops->round_rate; > } > > static int clk_core_round_rate_nolock(struct clk_core *core, Reviewed-by: Jerome Brunet

[PATCH 0/4] ASoC: meson: axg-tdm: i2s format fixups

2019-06-13 Thread Jerome Brunet
The patchset fixes a few mistakes regarding the format on the i2s bus on the Amlogic axg tdm drivers. Jerome Brunet (4): ASoC: meson: axg-tdmin: right_j is not supported ASoC: meson: axg-tdmout: right_j is not supported ASoC: meson: axg-tdm: fix sample clock inversion ASoC: meson: axg-tdm

[PATCH 3/4] ASoC: meson: axg-tdm: fix sample clock inversion

2019-06-13 Thread Jerome Brunet
: 1a11d88f499c ("ASoC: meson: add tdm formatter base driver") Signed-off-by: Jerome Brunet --- sound/soc/meson/axg-tdm.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/meson/axg-tdm.h b/sound/soc/meson/axg-tdm.h index e578b6f40a07..5774ce0916d4 100644 --- a

[PATCH 1/4] ASoC: meson: axg-tdmin: right_j is not supported

2019-06-13 Thread Jerome Brunet
Right justified format is actually not supported by the amlogic tdm input decoder. Fixes: 13a22e6a98f8 ("ASoC: meson: add tdm input driver") Signed-off-by: Jerome Brunet --- sound/soc/meson/axg-tdmin.c | 1 - 1 file changed, 1 deletion(-) diff --git a/sound/soc/meson/axg-tdmin.c b

[PATCH 2/4] ASoC: meson: axg-tdmout: right_j is not supported

2019-06-13 Thread Jerome Brunet
Right justified format is actually not supported by the amlogic tdm output encoder. Fixes: c41c2a355b86 ("ASoC: meson: add tdm output driver") Signed-off-by: Jerome Brunet --- sound/soc/meson/axg-tdmout.c | 1 - 1 file changed, 1 deletion(-) diff --git a/sound/soc/meson/axg-tdmout

[PATCH 4/4] ASoC: meson: axg-tdm: consistently use SND_SOC_DAIFMT defines

2019-06-13 Thread Jerome Brunet
There a mix of SND_SOC_DAIFMT_ and SND_SOC_DAI_FORMAT_ in axg-tdm-interface.c. Even, if this is currently the same thing, lets use the same group consistently. Signed-off-by: Jerome Brunet --- sound/soc/meson/axg-tdm-interface.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff

Re: [PATCH 0/4] 32-bit Meson: audio clock support

2019-06-11 Thread Jerome Brunet
On Mon, 2019-05-20 at 22:03 +0200, Martin Blumenstingl wrote: > The audio clocks on the 32-bit Meson8, Meson8b and Meson8m2 are > (probably) identical to the ones on GXBB, GXL and GXM. > > The first piece of evidence is that Amlogic's vendor kernel is using > the same basic driver (just slightly

Re: [PATCH v2 0/3] clk: meson: add support for Amlogic G12B

2019-06-11 Thread Jerome Brunet
On Tue, 2019-05-28 at 10:07 +0200, Neil Armstrong wrote: > The Amlogic G12B SoC is very similar with the G12A SoC, sharing > most of the features and architecture. > G12B clock tree is very close, the main differences are : > - SYS_PLL is used for the second cluster (otherwise used fir the first

Re: [PATCH v3 0/2] Add support of Temperature sensor Clock for G12 SoC

2019-06-11 Thread Jerome Brunet
On Fri, 2019-04-12 at 12:02 +0200, Guillaume La Roque wrote: > This patch series add support of Clock for temperature sensor > on Amlogic G12a SoC. > > Guillaume > > cahnges sinve v2: > - rebase on good branch > > changes since v1: > - fix .width value > > Guillaume La Roque (2): >

[PATCH] ASoC: meson: axg-card: fix null pointer dereference in clean up

2019-06-10 Thread Jerome Brunet
. Fixes: c84836d7f650 ("ASoC: meson: axg-card: use modern dai_link style") Cc: Kuninori Morimoto Signed-off-by: Jerome Brunet --- sound/soc/meson/axg-card.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/sound/soc/meson/axg-card.c b/sound/soc/meson/axg-ca

[PATCH] arm64: dts: meson: g12a: sort sdio nodes correctly

2019-06-10 Thread Jerome Brunet
Fix sdio node order in the soc device tree Fixes: a1737347250e ("arm64: dts: meson: g12a: add SDIO controller") Signed-off-by: Jerome Brunet --- arch/arm64/boot/dts/amlogic/meson-g12a.dtsi | 73 ++--- 1 file changed, 36 insertions(+), 37 deletions(-) diff --git a/

Re: [PATCH] clk: fix clock global name usage.

2019-06-10 Thread Jerome Brunet
On Thu, 2019-06-06 at 15:54 -0700, Stephen Boyd wrote: > > > > Do you think we could come up with a priority order which makes the > > > > first > > > > example work ? > > > > > > Maybe? I'm open to suggestions. > > > > > > > Something like: > > > > > > > > if (hw) { > > > > /* use

Re: [PATCH] clk: fix clock global name usage.

2019-05-24 Thread Jerome Brunet
On Fri, 2019-05-24 at 10:44 -0700, Stephen Boyd wrote: > Quoting Jerome Brunet (2019-05-24 08:00:08) > > On Fri, 2019-05-24 at 07:33 -0700, Stephen Boyd wrote: > > > Do you set the index to 0 in this clk's parent_data? We purposefully set > > > the index to -1 in clk_co

Re: [PATCH] clk: fix clock global name usage.

2019-05-24 Thread Jerome Brunet
On Fri, 2019-05-24 at 07:33 -0700, Stephen Boyd wrote: > Do you set the index to 0 in this clk's parent_data? We purposefully set > the index to -1 in clk_core_populate_parent_map() so that the fw_name > can be NULL but the index can be something >= 0 and then we'll use that > to lookup the clk

[PATCH 1/2] arm64: dts: meson: sei510: add max98357a DAC

2019-05-24 Thread Jerome Brunet
From: Maxime Jourdan The SEI510 board features a max98357a audio codec for built-in speaker Signed-off-by: Maxime Jourdan Signed-off-by: Jerome Brunet --- arch/arm64/boot/dts/amlogic/meson-g12a-sei510.dts | 7 +++ 1 file changed, 7 insertions(+) diff --git a/arch/arm64/boot/dts/amlogic

[PATCH 2/2] arm64: dts: meson: sei510: add sound card

2019-05-24 Thread Jerome Brunet
interface. * Both TDM outputs may use HW loopback. The internal DAC connected to audio jack will be added later on, when driver support is added. Signed-off-by: Jerome Brunet --- .../boot/dts/amlogic/meson-g12a-sei510.dts| 202 +- 1 file changed, 201 insertions(+), 1 deletion

[PATCH 0/2] arm64: dts: meson: sei510: add sound card

2019-05-24 Thread Jerome Brunet
]: e35f5ad6a965 ("ASoC: meson: add tohdmitx DT bindings") [1]: https://lkml.kernel.org/r/20190513123115.18145-1-jbru...@baylibre.com Jerome Brunet (1): arm64: dts: meson: sei510: add sound card Maxime Jourdan (1): arm64: dts: meson: sei510: add max98357a DAC .../boot/dts/amlogic/meson-g12a-

[PATCH] arm64: dts: meson: add dwmac-3.70a to ethmac compatible list

2019-05-24 Thread Jerome Brunet
After discussing with Amlogic, the Synopsys GMAC version used by the gx and axg family is the 3.70a. Set this is in DT Signed-off-by: Jerome Brunet --- Hi, The same should be true for the meson8 families but I did not test it which is why only the patch only address the 64bits SoC families

[PATCH] mmc: meson-gx: fix irq ack

2019-05-23 Thread Jerome Brunet
ng Tested-by: Kevin Hilman Signed-off-by: Jerome Brunet --- drivers/mmc/host/meson-gx-mmc.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/mmc/host/meson-gx-mmc.c b/drivers/mmc/host/meson-gx-mmc.c index 6ef465304052..cb3f6811d69a 100644 --- a/drivers/mmc/host/meso

Re: [PATCH 0/3] clk: meson: add support for Amlogic G12A

2019-05-21 Thread Jerome Brunet
On Tue, 2019-05-21 at 17:21 +0200, Neil Armstrong wrote: > On 21/05/2019 17:01, Neil Armstrong wrote: > > The Amlogic G12B SoC is very similar with the G12A SoC, sharing > > most of the features and architecture. > > G12B clock tree is very close, the main differences are : > > - SYS_PLL is used

Re: [PATCH v2 3/5] arm64: dts: meson: g12a: add mdio multiplexer

2019-05-20 Thread Jerome Brunet
On Mon, 2019-05-20 at 21:05 +0200, Andrew Lunn wrote: > > > + int_mdio: mdio@1 { > > > + reg = <1>; > > > + #address-cells = <1>; > > > + #size-cells =

[PATCH v2 3/5] arm64: dts: meson: g12a: add mdio multiplexer

2019-05-20 Thread Jerome Brunet
Add the g12a mdio multiplexer which allows to connect to either an external phy through the SoC pins or the internal 10/100 phy Signed-off-by: Jerome Brunet --- arch/arm64/boot/dts/amlogic/meson-g12a.dtsi | 32 + 1 file changed, 32 insertions(+) diff --git a/arch/arm64/boot

[PATCH v2 4/5] arm64: dts: meson: u200: add internal network

2019-05-20 Thread Jerome Brunet
The u200 is the main mother board for the S905D2. It can provide both the internal and external network. However, by default the resistance required for the external RGMII bus are not fitted, so enable the internal PHY. Signed-off-by: Jerome Brunet --- arch/arm64/boot/dts/amlogic/meson-g12a

[PATCH v2 1/5] arm64: dts: meson: g12a: add ethernet mac controller

2019-05-20 Thread Jerome Brunet
Add the synopsys ethernet mac controller embedded in the g12a SoC family. Signed-off-by: Jerome Brunet --- arch/arm64/boot/dts/amlogic/meson-g12a.dtsi | 21 + 1 file changed, 21 insertions(+) diff --git a/arch/arm64/boot/dts/amlogic/meson-g12a.dtsi b/arch/arm64/boot/dts

[PATCH v2 5/5] arm64: dts: meson: sei510: add network support

2019-05-20 Thread Jerome Brunet
Enable the network interface of the SEI510 which use the internal PHY. Tested-by: Kevin Hilman Signed-off-by: Jerome Brunet --- arch/arm64/boot/dts/amlogic/meson-g12a-sei510.dts | 7 +++ 1 file changed, 7 insertions(+) diff --git a/arch/arm64/boot/dts/amlogic/meson-g12a-sei510.dts b/arch

[PATCH v2 2/5] arm64: dts: meson: g12a: add ethernet pinctrl definitions

2019-05-20 Thread Jerome Brunet
Add the ethernet pinctrl settings for RMII, RGMII and internal phy leds Signed-off-by: Jerome Brunet --- arch/arm64/boot/dts/amlogic/meson-g12a.dtsi | 37 + 1 file changed, 37 insertions(+) diff --git a/arch/arm64/boot/dts/amlogic/meson-g12a.dtsi b/arch/arm64/boot/dts

[PATCH v2 0/5] arm64: dts: meson: g12a: add ethernet support

2019-05-20 Thread Jerome Brunet
clk-meson [0]. Changes since v1: [1] * rebased on v5.2-rc1 * s/eth_rmii_pins/eth_pins * fix MPLL50M typo [0]: git://github.com/BayLibre/clk-meson.git [1]: https://lkml.kernel.org/r/20190510164940.13496-1-jbru...@baylibre.com Jerome Brunet (5): arm64: dts: meson: g12a: add ethernet mac

Re: [PATCH v2 0/7] clk: meson: fix mpll jitter

2019-05-20 Thread Jerome Brunet
On Mon, 2019-05-13 at 14:31 +0200, Jerome Brunet wrote: > This patchset is a squash of these previous patchsets [0], [1] without > modification, beside a re-ordering of the changes to facilitate backports > > We are observing a lot of jitter on the MPLL outputs of the g12a. >

Re: [PATCH] clk: meson: fix MPLL 50M binding id typo

2019-05-20 Thread Jerome Brunet
On Sun, 2019-05-12 at 22:57 +0200, Jerome Brunet wrote: > MPLL_5OM (the capital letter o) should indeed be MPLL_50M (the number) > Fix this before it gets used. > > Reported-by: Martin Blumenstingl > Fixes: 25db146aa726 ("dt-bindings: clk: meson: add g12a periph clock &

Re: [PATCH 1/1] clk: meson: meson8b: fix a typo in the VPU parent names array variable

2019-05-20 Thread Jerome Brunet
On Sun, 2019-05-12 at 21:43 +0200, Martin Blumenstingl wrote: > The variable which holds the parent names for the VPU clocks has a typo > in it. Fix this typo to make the variable naming in the driver > consistent. No functional changes. > > Fixes: 41785ce562491d ("clk: meson: meson8b: add the

[PATCH 1/2] dt-bindings: pinctrl: meson: add output support in pinconf

2019-05-16 Thread Jerome Brunet
add support for the pinconf DT property output-enable, output-disable, output-low and output-high in the meson pinctrl driver. Signed-off-by: Jerome Brunet --- .../devicetree/bindings/pinctrl/meson,pinctrl.txt| 12 +--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git

[PATCH 2/2] pinctrl: meson: add output support in pinconf

2019-05-16 Thread Jerome Brunet
Add pinconf support for PIN_CONFIG_OUTPUT_ENABLE and PIN_CONFIG_OUTPUT in the meson pinctrl driver. Signed-off-by: Jerome Brunet --- drivers/pinctrl/meson/pinctrl-meson.c | 182 ++ 1 file changed, 127 insertions(+), 55 deletions(-) diff --git a/drivers/pinctrl/meson

[PATCH 0/2] pinctrl: meson: pinconf output support

2019-05-16 Thread Jerome Brunet
This patchset adds output support in the amlogic pinctrl driver. Linus, this patchset is based on the drive strength series from Guillaume which you just applied [0] [0]: https://lkml.kernel.org/r/cacrpkdz+p-j5em3rzzcuwpa-a+cvoy91cglqorm_qvzp6e4...@mail.gmail.com Jerome Brunet (2): dt

[PATCH] arm64: dts: meson: g12a: add tohdmitx

2019-05-16 Thread Jerome Brunet
Add the hdmitx glue device linking the SoC audio interfaces to the embedded Synopsys hdmi controller. Signed-off-by: Jerome Brunet --- Hi Kevin, The related device driver and dt-binding have been merged in the ASoC tree, for-5.3 branch [0] This patch is based on the audio series I have

[PATCH] arm64: dts: meson: sei510: add bluetooth supplies

2019-05-16 Thread Jerome Brunet
Add bluetooth vbat and vddio power supplies Signed-off-by: Jerome Brunet --- arch/arm64/boot/dts/amlogic/meson-g12a-sei510.dts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm64/boot/dts/amlogic/meson-g12a-sei510.dts b/arch/arm64/boot/dts/amlogic/meson-g12a-sei510.dts index

[PATCH 3/5] ASoC: meson: add tohdmitx DT bindings

2019-05-15 Thread Jerome Brunet
Add the bindings and the related documentation for the audio hdmitx control glue of the Amlogic g12a SoC family Signed-off-by: Jerome Brunet --- .../bindings/sound/amlogic,g12a-tohdmitx.txt | 55 +++ .../dt-bindings/sound/meson-g12a-tohdmitx.h | 13 + 2 files changed, 68

[PATCH 2/5] ASoC: dapm: allow muxes to force a disconnect

2019-05-15 Thread Jerome Brunet
or force a (re)configuration. Signed-off-by: Jerome Brunet --- sound/soc/soc-dapm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/soc-dapm.c b/sound/soc/soc-dapm.c index 81a7a12196ff..a4d6c068b545 100644 --- a/sound/soc/soc-dapm.c +++ b/sound/soc/soc-dapm.c

[PATCH 4/5] ASoC: meson: axg-card: add basic codec-to-codec link support

2019-05-15 Thread Jerome Brunet
Add basic support for codec-to-codec link in the axg sound card. The cpu side of these links is expected to properly set the hw_params and format of the link. ATM, only the tohdmitx glue is supported but others (like the internal DAC glue) should follow. Signed-off-by: Jerome Brunet --- sound

[PATCH 0/5] ASoC: meson: add hdmitx glue support

2019-05-15 Thread Jerome Brunet
switching input, the trick is to temporarily force a disconnection of the mux output, which shutdowns the output dai link. This also ensure that the stream parameters and fmt are updated when the output is connected back. Jerome Brunet (5): ASoC: meson: axg-card: set link name based on link node

[PATCH 5/5] ASoC: meson: add g12a tohdmitx control

2019-05-15 Thread Jerome Brunet
Add support for the hdmitx control glue of the Amlogic g12a SoC family. This glue links the 3 TDM and 2 SPDIF output interfaces of the SoC to the related inputs of the Synopsys HDMI controller found in these SoCs. Signed-off-by: Jerome Brunet --- sound/soc/meson/Kconfig | 8 + sound

[PATCH 1/5] ASoC: meson: axg-card: set link name based on link node name

2019-05-15 Thread Jerome Brunet
the node name of the dai link. DT already enforce the uniqueness of this name Signed-off-by: Jerome Brunet --- sound/soc/meson/axg-card.c | 12 +++- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/sound/soc/meson/axg-card.c b/sound/soc/meson/axg-card.c index aa54d2c612c9

[PATCH v2 2/8] arm64: dts: meson: g12a: add audio memory arbitrer

2019-05-14 Thread Jerome Brunet
Add the audio DDR memory arbitrer of the g12a SoC family. Signed-off-by: Jerome Brunet --- arch/arm64/boot/dts/amlogic/meson-g12a.dtsi | 9 + 1 file changed, 9 insertions(+) diff --git a/arch/arm64/boot/dts/amlogic/meson-g12a.dtsi b/arch/arm64/boot/dts/amlogic/meson-g12a.dtsi index

[PATCH v2 8/8] arm64: dts: meson: g12a: enable hdmi_tx sound dai provider

2019-05-14 Thread Jerome Brunet
At the moment the sysnopsys hdmi i2s driver provides a single playback DAI. Add the corresponding sound-dai-cell to the hdmi device node. Signed-off-by: Jerome Brunet --- arch/arm64/boot/dts/amlogic/meson-g12a.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/boot/dts/amlogic

[PATCH v2 3/8] arm64: dts: meson: g12a: add audio fifos

2019-05-14 Thread Jerome Brunet
Add the playback and capture memory interfaces of the g12a SoC family. Signed-off-by: Jerome Brunet --- arch/arm64/boot/dts/amlogic/meson-g12a.dtsi | 73 + 1 file changed, 73 insertions(+) diff --git a/arch/arm64/boot/dts/amlogic/meson-g12a.dtsi b/arch/arm64/boot/dts

[PATCH v2 6/8] arm64: dts: meson: g12a: add pdm

2019-05-14 Thread Jerome Brunet
Add the pdm device node and the pinctrl definition for this capture interface g12a SoC family Signed-off-by: Jerome Brunet --- arch/arm64/boot/dts/amlogic/meson-g12a.dtsi | 177 1 file changed, 177 insertions(+) diff --git a/arch/arm64/boot/dts/amlogic/meson-g12a.dtsi b

[PATCH v2 5/8] arm64: dts: meson: g12a: add spdifouts

2019-05-14 Thread Jerome Brunet
Add the devices nodes and pinctrl definitions for the spdif outputs of the g12a SoC family Signed-off-by: Jerome Brunet --- arch/arm64/boot/dts/amlogic/meson-g12a.dtsi | 60 + 1 file changed, 60 insertions(+) diff --git a/arch/arm64/boot/dts/amlogic/meson-g12a.dtsi b/arch

[PATCH v2 4/8] arm64: dts: meson: g12a: add tdm

2019-05-14 Thread Jerome Brunet
Add the devices and pinctrl definitions for the tdm interfaces of the g12a SoC family. Signed-off-by: Jerome Brunet --- arch/arm64/boot/dts/amlogic/meson-g12a.dtsi | 658 1 file changed, 658 insertions(+) diff --git a/arch/arm64/boot/dts/amlogic/meson-g12a.dtsi b/arch

[PATCH v2 7/8] arm64: dts: meson: g12a: add spdifin

2019-05-14 Thread Jerome Brunet
Add the spdif input device node and the pinctrl definition for this capture interface g12a SoC family Signed-off-by: Jerome Brunet --- arch/arm64/boot/dts/amlogic/meson-g12a.dtsi | 37 + 1 file changed, 37 insertions(+) diff --git a/arch/arm64/boot/dts/amlogic/meson

<    1   2   3   4   5   6   7   8   9   10   >