Hi Rob
> This looks okay, but I think we need to be improving the graph api at
> a higher level. Each user seems to be doing too much open coding of
> walking of the graph. The user typically just wants the remote node
> parent of a given port and endpoint number. Why does the user walk the
>
;
Signed-off-by: Kuninori Morimoto <kuninori.morimoto...@renesas.com>
---
drivers/thermal/rcar_thermal.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/thermal/rcar_thermal.c b/drivers/thermal/rcar_thermal.c
index 4d07644..b5c6442 100644
--- a/drivers/thermal/rc
Hi Zhang
> > > > > From: Kuninori Morimoto <kuninori.morimoto...@renesas.com>
> > > > >
> > > > > rcar-thermal is supporting both
> > > > > thermal_zone_of_sensor_register()
> > > > > and
> > > > > t
> match them.
>
> Signed-off-by: Nicolas Iooss <nicolas.iooss_li...@m4x.org>
> ---
Acked-by: Kuninori Morimoto <kuninori.morimoto...@renesas.com>
arm64: defconfig: Enable R-Car Gen3 thermal support
For all patches
Acked-by: Kuninori Morimoto <kuninori.morimoto...@renesas.com>
> +static int rcar_gen3_thermal_get_temp(void *devdata, int *temp)
> +{
> + struct rcar_gen3_thermal_priv *priv = devdata;
> + in
Hi Mark
Can I have feedback about this patch ?
> From: Kuninori Morimoto <kuninori.morimoto...@renesas.com>
>
> Current dw-hdmi is supporting sound via AHB bus, but it has
> I2S audio feature too. This patch adds I2S audio support to dw-hdmi.
> This HDMI I2S is suppor
c-det-gpio : Reference to GPIO that signals when
> a microphone is attached.
> +- simple-audio-card,aux-devs : List of phandles pointing to
> auxiliary devices, such
> + as amplifiers, to be added to the
> sound card.
>
> Optional subnodes:
I think it is very helpful if this document has above sample
Best regards
---
Kuninori Morimoto
Arnd Bergmann <a...@arndb.de>
> ---
Sorry about that
Acked-by: Kuninori Morimoto <kuninori.morimoto...@renesas.com>
Hi Zhang
> > > From: Kuninori Morimoto <kuninori.morimoto...@renesas.com>
> > >
> > > rcar-thermal is supporting both thermal_zone_of_sensor_register()
> > > and
> > > thermal_zone_device_register(). But
> > > thermal_zon
ilar ? It can be just 1 line :)
include/sound/simple*card*
Best regards
---
Kuninori Morimoto
From: Kuninori Morimoto <kuninori.morimoto...@renesas.com>
CQ0093VC is no longer dependent on MFD_DAVINCI_VOICECODEC,
let's remove it. Otherwise, we can't compile it by COMPILE_TEST
on non-DAVINCE platform
Signed-off-by: Kuninori Morimoto <kuninori.morimoto...@renesas.com>
---
soun
+ shmobile_defconfig + COMPILE_TEST.
Kuninori Morimoto (2):
mfd: davinci_voicecodec: tidyup header difinitions
ASoC: cq93vc: remove MFD_DAVINCI_VOICECODEC dependency for CQ0093VC
drivers/mfd/davinci_voicecodec.c | 1 +
include/linux/mfd/davinci_voicecodec.h | 4
sound/soc/codecs/Kconfig
From: Kuninori Morimoto <kuninori.morimoto...@renesas.com>
mach/hardware.h is needed on C source code side, not header.
And struct davinci_vc is duplicated definition.
Signed-off-by: Kuninori Morimoto <kuninori.morimoto...@renesas.com>
---
drivers/mfd/davinci_voicecodec.c |
Hi Russell
> > @@ -11,4 +11,11 @@ struct dw_hdmi_audio_data {
> > u8 *eld;
> > };
> >
> > +struct dw_hdmi_i2s_audio_data {
> > + struct dw_hdmi *hdmi;
> > +
> > + void (*write)(struct dw_hdmi *hdmi, u8 val, int offset);
> > + u8 (*read)(struct dw_hdmi *hdmi, int offset);
> > +};
>
Hi Russell
> > + platform = platform_device_register_full();
> > + if (IS_ERR_OR_NULL(platform))
> > + return PTR_ERR(platform);
>
> This is wrong. If platform is NULL, PTR_ERR() will return zero, which
> will be interpreted as success. Please, avoid using IS_ERR_OR_NULL(),
> it
Hi Mark
> This document really needs quite a bit of fleshing out but I'm not sure
> that should be a blocker for the series as a whole especially given that
> English is not your native language - we can build out later. I think
I'm sorry about my English...
> One thing I'm not 100% clear on
);
> > if (IS_ERR(platform))
> > return PTR_ERR(platform);
>
> Yes, that's exactly correct.
Thanks !
I will send v4 patch
Best regards
---
Kuninori Morimoto
From: Kuninori Morimoto <kuninori.morimoto...@renesas.com>
Current dw-hdmi is supporting sound via AHB bus, but it has
I2S audio feature too. This patch adds I2S audio support to dw-hdmi.
This HDMI I2S is supported by using ALSA SoC common HDMI encoder
driver.
Tested-by: Jose Abreu
From: Kuninori Morimoto <kuninori.morimoto...@renesas.com>
driver want to get top level of port[s] node. This patch adds
of_graph_get_top_port() for this purpose
Signed-off-by: Kuninori Morimoto <kuninori.morimoto...@renesas.com>
---
v2 -> v3
- no change
drivers/of/bas
From: Kuninori Morimoto <kuninori.morimoto...@renesas.com>
graph base DT binding are used on V4L2, and ALSA SoC is using different
style of DT. In case of simple case, ALSA SoC supports simple-card
driver.
In the future, V4L2 / ALSA will support HDMI, and then, DT bindings
between V4L2
From: Kuninori Morimoto <kuninori.morimoto...@renesas.com>
If CPU/Platform side driver probes successfully, and if it is supporting
both previous normal sound card style and graph style DT, it can call
asoc_simple_card_try_to_probe_graph_card().
It checks graph style DT, and do n
From: Kuninori Morimoto <kuninori.morimoto...@renesas.com>
It is assuming that the card related information is located on
"card" node, but graph case doesn't have it.
This patch adds node parameter to adjust for graph support
Signed-off-by: Kuninori Morimoto <kuninori.mori
From: Kuninori Morimoto <kuninori.morimoto...@renesas.com>
OF graph want to count its port/endpoint number, same as
of_get_child_count(). This patch adds these functions.
Signed-off-by: Kuninori Morimoto <kuninori.morimoto...@renesas.com>
---
v2 -> v3
- no change
dr
From: Kuninori Morimoto <kuninori.morimoto...@renesas.com>
OF graph is used mainly from V4L2, but ALSA needs to use it. It already
has for_each_endpoint_of_node() which is for-loop for each endpoint.
But, ALSA needs for-loop for each port[s], and for-loop for each
endpoint of inside
From: Kuninori Morimoto <kuninori.morimoto...@renesas.com>
simple-card already has asoc_simple_card_parse_dai(),
but graph base parsing needs graph specific version of it.
Signed-off-by: Kuninori Morimoto <kuninori.morimoto...@renesas.com>
---
v2 -> v3
- no change
From: Kuninori Morimoto <kuninori.morimoto...@renesas.com>
It is assuming that the card related information is located on
"card" node, but graph case doesn't have it.
This patch adds node parameter to adjust for graph support
Signed-off-by: Kuninori Morimoto <kuninori.mori
From: Kuninori Morimoto <kuninori.morimoto...@renesas.com>
It is assuming that the card related information is located on
"card" node, but graph case doesn't have it.
This patch adds node parameter to adjust for graph support
Signed-off-by: Kuninori Morimoto <kuninori.mori
c/core and topic/simple, both.
Please let me know if you can't do it.
*** BLURB HERE ***
Kuninori Morimoto (17):
1) ASoC: soc-core: adjust for graph on snd_soc_of_parse_card_name
2) ASoC: soc-core: adjust for graph on snd_soc_of_parse_audio_simple_widgets
3) ASoC: soc-core: adjust for
From: Kuninori Morimoto <kuninori.morimoto...@renesas.com>
Linux kernel already has of_graph_get_remote_port_parent(),
but, sometimes we want to get own port parent.
This patch adds of_graph_get_port_parent()
Signed-off-by: Kuninori Morimoto <kuninori.morimoto...@renesas.com>
From: Kuninori Morimoto <kuninori.morimoto...@renesas.com>
graph base DT binding are used on V4L2, and ALSA SoC is using different
style of DT. In case of simple case, ALSA SoC supports simple-card
driver.
In the future, V4L2 / ALSA will support HDMI, and then, DT bindings
between V4L2
From: Kuninori Morimoto <kuninori.morimoto...@renesas.com>
It is assuming that the card related information is located on
"card" node, but graph case doesn't have it.
This patch adds node parameter to adjust for graph support
Signed-off-by: Kuninori Morimoto <kuninori.mori
From: Kuninori Morimoto <kuninori.morimoto...@renesas.com>
Signed-off-by: Kuninori Morimoto <kuninori.morimoto...@renesas.com>
---
v2 -> v3
- Added how to use Simple-Graph-SCU-Card, and cleaned-up
.../bindings/sound/simple-graph-scu-card.txt | 65 ++
From: Kuninori Morimoto <kuninori.morimoto...@renesas.com>
It is assuming that the card related information is located on
"card" node, but graph case doesn't have it.
This patch adds node parameter to adjust for graph support
Signed-off-by: Kuninori Morimoto <kuninori.mori
From: Kuninori Morimoto <kuninori.morimoto...@renesas.com>
Signed-off-by: Kuninori Morimoto <kuninori.morimoto...@renesas.com>
---
v2 -> v3
- Added how to use Simple-Graph-Card, and cleanup
.../bindings/sound/simple-graph-card.txt | 65 ++
1 f
From: Kuninori Morimoto <kuninori.morimoto...@renesas.com>
snd_soc_get_dai_name() is used from snd_soc_of_get_dai_name(),
and it is assuming that DT is using "sound-dai" / "#sound-dai-cells".
But graph base DT is using "remote-endpoint". This patch mak
From: Kuninori Morimoto <kuninori.morimoto...@renesas.com>
It should use same method to get same result.
To getting remote-endpoint node,
let's use of_graph_get_remote_endpoint()
Signed-off-by: Kuninori Morimoto <kuninori.morimoto...@renesas.com>
---
v2 -> v3
- no change
dr
Hi Rob
Thank you for your feedback
> > Do you mean "on this sample" ? or in general ?
> > Indeed this sample is definitely for sound, so type is very clear
> > without property.
> > But in general, for example HDMI, it want to know port type.
> > Anyway, I can remove above "type" from this new
in a module or in the simple-card-utils.
We can replace few drivers to use it. I will post it if these were accepted.
And let's follow Rob's opinion. Actually, these patches had posted
few month ago, and these already got OK from him.
Best regards
---
Kuninori Morimoto
From: Kuninori Morimoto <kuninori.morimoto...@renesas.com>
Current dw-hdmi is supporting sound via AHB bus, but it has
I2S audio feature too. This patch adds I2S audio support to dw-hdmi.
This HDMI I2S is supported by using ALSA SoC common HDMI encoder
driver.
Tested-by: Jose Abreu
about usecase. 18) - 23) can be usecase for it.
1) - 10) are independent (= Mark)
11) - 17) are independent (= Rob)
18) - 23) are depends on 1) - 10) and 11) - 17) (= Mark)
Kuninori Morimoto (23):
1) ASoC: simple-scu-card: code sync: follow to simple family style
2) ASoC: simple-scu
From: Kuninori Morimoto <kuninori.morimoto...@renesas.com>
simple sound card family are using very similar style, but because of its
historical reason, there are small differences. For example pointer style,
function name, caller postion etc...
This patch synchronized simple card style to
From: Kuninori Morimoto <kuninori.morimoto...@renesas.com>
simple sound card family are using very similar style, but because of its
historical reason, there are small differences. For example pointer style,
function name, caller postion etc...
This patch synchronized simple card style to
From: Kuninori Morimoto <kuninori.morimoto...@renesas.com>
It is assuming that the card related information is located on
"card" node, but graph case doesn't have it.
This patch adds node parameter to adjust for graph support
Signed-off-by: Kuninori Morimoto <kuninori.mori
From: Kuninori Morimoto <kuninori.morimoto...@renesas.com>
simple sound card family are using very similar style, but because of its
historical reason, there are small differences. For example pointer style,
function name, caller postion etc...
This patch synchronizes style to other simpl
From: Kuninori Morimoto <kuninori.morimoto...@renesas.com>
It is assuming that the card related information is located on
"card" node, but graph case doesn't have it.
This patch adds node parameter to adjust for graph support
Signed-off-by: Kuninori Morimoto <kuninori.mori
From: Kuninori Morimoto <kuninori.morimoto...@renesas.com>
Remove cpu/codec pointer check from asoc_simple_card_canonicalize_dailink()
This is verbose check, and will be issue if CPU name was created by
fmt_single_name() on simple-scu-card.c.
see also asoc_simple_card_canonicalize_cpu()
From: Kuninori Morimoto <kuninori.morimoto...@renesas.com>
It is assuming that the card related information is located on
"card" node, but graph case doesn't have it.
This patch adds node parameter to adjust for graph support
Signed-off-by: Kuninori Morimoto <kuninori.mori
From: Kuninori Morimoto <kuninori.morimoto...@renesas.com>
snd_soc_get_dai_name() is used from snd_soc_of_get_dai_name(),
and it is assuming that DT is using "sound-dai" / "#sound-dai-cells".
But graph base DT is using "remote-endpoint". This patch mak
From: Kuninori Morimoto <kuninori.morimoto...@renesas.com>
OF graph indicates each devices connection. But it doesn't support type
of each port. For example HDMI case, it has video port and sound port
in one device node.
In this case, current driver can't handle each port correctly.
This
From: Kuninori Morimoto <kuninori.morimoto...@renesas.com>
It is assuming that the card related information is located on
"card" node, but graph case doesn't have it.
This patch adds node parameter to adjust for graph support
Signed-off-by: Kuninori Morimoto <kuninori.mori
From: Kuninori Morimoto <kuninori.morimoto...@renesas.com>
It is assuming that the card related information is located on
"card" node, but graph case doesn't have it.
This patch adds node parameter to adjust for graph support
Signed-off-by: Kuninori Morimoto <kuninori.mori
From: Kuninori Morimoto <kuninori.morimoto...@renesas.com>
graph base DT binding are used on V4L2, and ALSA SoC is using different
style of DT. In case of simple case, ALSA SoC supports simple-card
driver.
In the future, V4L2 / ALSA will support HDMI, and then, DT bindings
between V4L2
From: Kuninori Morimoto <kuninori.morimoto...@renesas.com>
graph base DT binding are used on V4L2, and ALSA SoC is using different
style of DT. In case of simple case, ALSA SoC supports simple-card
driver.
In the future, V4L2 / ALSA will support HDMI, and then, DT bindings
between V4L2
From: Kuninori Morimoto <kuninori.morimoto...@renesas.com>
OF graph is used mainly from V4L2, but ALSA needs to use it. It already
has for_each_endpoint_of_node() which is for-loop for each endpoint.
But, ALSA needs for-loop for each port[s], and for-loop for each
endpoint of inside
From: Kuninori Morimoto <kuninori.morimoto...@renesas.com>
Signed-off-by: Kuninori Morimoto <kuninori.morimoto...@renesas.com>
---
.../bindings/sound/simple-graph-card.txt | 65 ++
1 file changed, 65 insertions(+)
create mode 100644
Documentatio
From: Kuninori Morimoto <kuninori.morimoto...@renesas.com>
It should use same method to get same result.
To getting remote-endpoint node,
let's use of_graph_get_remote_endpoint()
Signed-off-by: Kuninori Morimoto <kuninori.morimoto...@renesas.com>
---
drivers/of/base.c
From: Kuninori Morimoto <kuninori.morimoto...@renesas.com>
Signed-off-by: Kuninori Morimoto <kuninori.morimoto...@renesas.com>
---
.../bindings/sound/simple-graph-scu-card.txt | 66 ++
1 file changed, 66 insertions(+)
create mode 100644
Documentatio
From: Kuninori Morimoto <kuninori.morimoto...@renesas.com>
If CPU/Platform side driver probes successfully, and if it is supporting
both previous normal sound card style and graph style DT, it can call
asoc_simple_card_try_to_probe_graph_card().
It checks graph style DT, and do n
From: Kuninori Morimoto <kuninori.morimoto...@renesas.com>
driver want to get top level of port[s] node. This patch adds
of_graph_get_top_port() for this purpose
Signed-off-by: Kuninori Morimoto <kuninori.morimoto...@renesas.com>
---
drivers/of/base.c
From: Kuninori Morimoto <kuninori.morimoto...@renesas.com>
Linux kernel already has of_graph_get_remote_port_parent(),
but, sometimes we want to get own port parent.
This patch adds of_graph_get_port_parent()
Signed-off-by: Kuninori Morimoto <kuninori.morimoto...@renesas.com>
From: Kuninori Morimoto <kuninori.morimoto...@renesas.com>
OF graph indicates each devices connection. But it doesn't support type
of each port. For example HDMI case, it has video port and sound port
in one device node.
In this case, current driver can't handle each port correctly.
This
From: Kuninori Morimoto <kuninori.morimoto...@renesas.com>
OF graph want to count its endpoint number, same as
of_get_child_count(). This patch adds of_graph_get_endpoint_count()
which can check specific type. It will count all endpoint if type
was NULL.
Signed-off-by: Kuninori Mo
From: Kuninori Morimoto <kuninori.morimoto...@renesas.com>
simple-card already has asoc_simple_card_parse_dai(),
but graph base parsing needs graph specific version of it.
Signed-off-by: Kuninori Morimoto <kuninori.morimoto...@renesas.com>
---
include/sound/simple_card_util
simple-audio-card,frame-master = <_ak4613_port>;
> };
> port@1 {
> simple-audio-card,format = "i2s";
> simple-audio-card,bitclock-master = <_hdmi0_port>;
> simple-audio-card,frame-master = <_hdmi0_port>;
> };
> port@2 {
> simple-audio-card,format = "i2s";
> simple-audio-card,bitclock-master = <_hdmi1_port>;
> simple-audio-card,frame-master = <_hdmi1_port>;
> };
> };
>
> Best regards
> ---
> Kuninori Morimoto
Hi Laurent, John,
> > Here's what I'm using to get it working:
> > https://git.linaro.org/people/john.stultz/android-dev.git/commitdiff/1024cb4
> > 85b6f00a7e355ce60425f04a584481148
>
> Thank you.
>
> We need to standardize DT bindings for HDMI sound output. Morimoto-san, could
> you have a
card,format = "i2s";
simple-audio-card,bitclock-master = <_hdmi0_port>;
simple-audio-card,frame-master = <_hdmi0_port>;
};
port@2 {
simple-audio-card,format = "i2s";
simple-audio-card,bitclock-master = <_hdmi1_port>;
simple-audio-card,frame-master = <_hdmi1_port>;
};
};
Best regards
---
Kuninori Morimoto
,
> struct device_node *child);
Thanks. I will check above 2 ideas.
Best regards
---
Kuninori Morimoto
Hi Archit, David, and DRM ML
I had heared that Archit is the maintainer of dw-hdmi driver, but am I wrong ??
I'm posting this patch series since half year ago, but no response
from him, and nothing happen (I got review from Russell though).
Is Archit really maintainer ??
OTOH, get_maintainer.pl
rom_child(struct device *dev,
> > const char *con_id,
> > struct device_node *child);
Thanks, but, my point is that Linux already have "of_clk_get()",
but we don't have its devm_ version.
The point is that of_clk_get() can get clock from "device_node".
Why having devm_ version become so problem ?
Best regards
---
Kuninori Morimoto
Hi Rob
> These are v4 of OF graph base simple-card patch-set.
> v3 patch had ALSA SoC side prepare patches as [1/xx] - [5/xx],
> but these are already accepted by Mark, thus, this v4 doesn't
> include these.
> Mainly, v4 solved non-OF case compile error which was reported
> by kbuild.
About
Hi Archit
> > I had heared that Archit is the maintainer of dw-hdmi driver, but am I
> > wrong ??
> > I'm posting this patch series since half year ago, but no response
> > from him, and nothing happen (I got review from Russell though).
> > Is Archit really maintainer ??
> > OTOH,
Fixes: 2761ba6c0925 ("drm: bridge: add DesignWare HDMI I2S audio support")
> Signed-off-by: Arnd Bergmann <a...@arndb.de>
> ---
Acked-by: Kuninori Morimoto <kuninori.morimoto...@renesas.com>
> drivers/gpu/drm/bridge/Kconfig | 1 +
> 1 file changed, 1 inser
From: Kuninori Morimoto <kuninori.morimoto...@renesas.com>
Current Linux has of_clk_get(), but doesn't have devm_of_clk_get().
This patch adds it. It is implemeted in clk-devres.c to share
devm_clk_release().
Signed-off-by: Kuninori Morimoto <kuninori.morimoto...@renesas.com>
From: Kuninori Morimoto <kuninori.morimoto...@renesas.com>
It should use same method to get same result.
To getting remote-endpoint node,
let's use of_graph_get_remote_endpoint()
Signed-off-by: Kuninori Morimoto <kuninori.morimoto...@renesas.com>
---
drivers/of/base.c
From: Kuninori Morimoto <kuninori.morimoto...@renesas.com>
OF graph indicates each devices connection. But it doesn't support type
of each port. For example HDMI case, it has video port and sound port
in one device node.
In this case, current driver can't handle each port correctly.
This
Current Linux has of_clk_get(), but doesn't have devm_of_clk_get().
This patch adds it. This is based on devm_clk_get()
Signed-off-by: Kuninori Morimoto <kuninori.morimoto...@renesas.com>
---
v1 -> v2
- update git log
drivers/clk/clkdev.c | 26 ++
include/li
ound had 2 ports,
this case, HDMI sound ports will be port@4, port@5.
Here, ALSA SoC side needs to know total 2 sound port,
and, it should be handled as 1st / 2nd port.
It is impossible without "type" property.
1) - 7) : OF graph new feature
8) - 14) : OF graph base simple-card
K
From: Kuninori Morimoto <kuninori.morimoto...@renesas.com>
graph base DT binding are used on V4L2, and ALSA SoC is using different
style of DT. In case of simple case, ALSA SoC supports simple-card
driver.
In the future, V4L2 / ALSA will support HDMI, and then, DT bindings
between V4L2
From: Kuninori Morimoto <kuninori.morimoto...@renesas.com>
OF graph is used mainly from V4L2, but ALSA needs to use it. It already
has for_each_endpoint_of_node() which is for-loop for each endpoint.
But, ALSA needs for-loop for each port[s], and for-loop for each
endpoint of inside
From: Kuninori Morimoto <kuninori.morimoto...@renesas.com>
Linux kernel already has of_graph_get_remote_port_parent(),
but, sometimes we want to get own port parent.
This patch adds of_graph_get_port_parent()
Signed-off-by: Kuninori Morimoto <kuninori.morimoto...@renesas.com>
From: Kuninori Morimoto <kuninori.morimoto...@renesas.com>
driver want to get top level of port[s] node. This patch adds
of_graph_get_top_port() for this purpose
Signed-off-by: Kuninori Morimoto <kuninori.morimoto...@renesas.com>
---
drivers/of/base.c
From: Kuninori Morimoto <kuninori.morimoto...@renesas.com>
It is assuming that the card related information is located on
"card" node, but graph case doesn't have it.
This patch adds node parameter to adjust for graph support
Signed-off-by: Kuninori Morimoto <kuninori.mori
From: Kuninori Morimoto <kuninori.morimoto...@renesas.com>
If CPU/Platform side driver probes successfully, and if it is supporting
both previous normal sound card style and graph style DT, it can call
asoc_simple_card_try_to_probe_graph_card().
It checks graph style DT, and do n
From: Kuninori Morimoto <kuninori.morimoto...@renesas.com>
OF graph indicates each devices connection. But it doesn't support type
of each port. For example HDMI case, it has video port and sound port
in one device node.
In this case, current driver can't handle each port correctly.
This
From: Kuninori Morimoto <kuninori.morimoto...@renesas.com>
Signed-off-by: Kuninori Morimoto <kuninori.morimoto...@renesas.com>
---
.../bindings/sound/simple-graph-card.txt | 67 ++
1 file changed, 67 insertions(+)
create mode 100644
Documentatio
From: Kuninori Morimoto <kuninori.morimoto...@renesas.com>
simple-card already has asoc_simple_card_parse_dai(),
but graph base parsing needs graph specific version of it.
Signed-off-by: Kuninori Morimoto <kuninori.morimoto...@renesas.com>
---
include/sound/simple_card_util
From: Kuninori Morimoto <kuninori.morimoto...@renesas.com>
OF graph want to count its endpoint number, same as
of_get_child_count(). This patch adds of_graph_get_endpoint_count()
which can check specific type. It will count all endpoint if type
was NULL.
Signed-off-by: Kuninori Mo
> https://github.com/0day-ci/linux/commits/Kuninori-Morimoto/ASoC-add-OF-graph-base-simple-card/20161128-111639
> base: https://git.kernel.org/pub/scm/linux/kernel/git/robh/linux.git
> for-next
> config: i386-randconfig-x002-201648 (attached as .config)
> compiler: gcc-6 (Debian
From: Kuninori Morimoto <kuninori.morimoto...@renesas.com>
Signed-off-by: Kuninori Morimoto <kuninori.morimoto...@renesas.com>
---
.../bindings/sound/simple-graph-scu-card.txt | 69 ++
1 file changed, 69 insertions(+)
create mode 100644
Documentatio
From: Kuninori Morimoto <kuninori.morimoto...@renesas.com>
graph base DT binding are used on V4L2, and ALSA SoC is using different
style of DT. In case of simple case, ALSA SoC supports simple-card
driver.
In the future, V4L2 / ALSA will support HDMI, and then, DT bindings
between V4L2
Hi Russell
> > Current Linux has of_clk_get(), but doesn't have devm_of_clk_get().
> > This patch adds it. This is based on devm_clk_get()
> >
> > Signed-off-by: Kuninori Morimoto <kuninori.morimoto...@renesas.com>
>
> Please put this in drivers/clk/clk-d
From: Kuninori Morimoto <kuninori.morimoto...@renesas.com>
Current Linux has of_clk_get(), but doesn't have devm_of_clk_get().
This patch adds it.
Signed-off-by: Kuninori Morimoto <kuninori.morimoto...@renesas.com>
---
v2 -> v3
- implement in clk-devres.c, and reused existing d
only. Thus, we are using of_clk_get() for these now.
> >
> > clk = of_clk_get(cpu, xxx);
> > clk = of_clk_get(codec, xxx);
> >
> > sound_soc {
> > ...
> > cpu {
> > ...
> > => clocks = <>;
> > };
> > codec {
> > ...
> > => clocks = <>;
> > };
> > };
Best regards
---
Kuninori Morimoto
From: Kuninori Morimoto <kuninori.morimoto...@renesas.com>
Linux kernel already has of_graph_get_remote_port_parent(),
but, sometimes we want to get own port parent.
This patch adds of_graph_get_port_parent()
Signed-off-by: Kuninori Morimoto <kuninori.morimoto...@renesas.com>
From: Kuninori Morimoto <kuninori.morimoto...@renesas.com>
driver want to get top level of port[s] node. This patch adds
of_graph_get_top_port() for this purpose
Signed-off-by: Kuninori Morimoto <kuninori.morimoto...@renesas.com>
---
v3 -> v4
- care non-OF case
drivers/of/bas
From: Kuninori Morimoto <kuninori.morimoto...@renesas.com>
It should use same method to get same result.
To getting remote-endpoint node,
let's use of_graph_get_remote_endpoint()
Signed-off-by: Kuninori Morimoto <kuninori.morimoto...@renesas.com>
---
v3 -> v4
- no change
dr
From: Kuninori Morimoto <kuninori.morimoto...@renesas.com>
graph base DT binding are used on V4L2, and ALSA SoC is using different
style of DT. In case of simple case, ALSA SoC supports simple-card
driver.
In the future, V4L2 / ALSA will support HDMI, and then, DT bindings
between V4L2
Hi
> [auto build test ERROR on asoc/for-next]
> [also build test ERROR on v4.9-rc4 next-20161110]
> [if your patch is applied to the wrong git tree, please drop us a note to
> help improve the system]
>
> url:
> https://github.com/0day-ci/linux/commits/Kuninori-Morim
) : OF graph new feature
6) - 12) : OF graph base simple-card (depends on above 2 patch-set)
Kuninori Morimoto (12):
1) of_graph: add of_graph_get_remote_endpoint()
2) of_graph: add of_graph_get_port_parent()
3) of_graph: add of_graph_get_top_port()
4) of_graph: add for_each_of_port
From: Kuninori Morimoto <kuninori.morimoto...@renesas.com>
OF graph is used mainly from V4L2, but ALSA needs to use it. It already
has for_each_endpoint_of_node() which is for-loop for each endpoint.
But, ALSA needs for-loop for each port[s], and for-loop for each
endpoint of inside
401 - 500 of 1650 matches
Mail list logo