From: Rob Herring <robh@kernel.org>
To: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Cc: Mark Brown <broonie@kernel.org>,
Linux-ALSA <alsa-devel@alsa-project.org>,
Liam Girdwood <lgirdwood@gmail.com>, Simon <horms@verge.net.au>,
Laurent <laurent.pinchart@ideasonboard.com>,
Guennadi <g.liakhovetski@gmx.de>,
Grant Likely <grant.likely@linaro.org>,
Frank Rowand <frowand.list@gmail.com>,
Linux-DT <devicetree@vger.kernel.org>,
Linux-Kernel <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH v5 11/14] ASoC: add simple-graph-card document
Date: Fri, 2 Dec 2016 07:50:48 -0600 [thread overview]
Message-ID: <20161202135048.tzvrv7pzv2dubcy3@rob-hp-laptop> (raw)
In-Reply-To: <874m2swcbx.wl%kuninori.morimoto.gx@renesas.com>
On Mon, Nov 28, 2016 at 02:47:57AM +0000, Kuninori Morimoto wrote:
>
> From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
>
> Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
> ---
> .../bindings/sound/simple-graph-card.txt | 67 ++++++++++++++++++++++
> 1 file changed, 67 insertions(+)
> create mode 100644 Documentation/devicetree/bindings/sound/simple-graph-card.txt
>
> diff --git a/Documentation/devicetree/bindings/sound/simple-graph-card.txt b/Documentation/devicetree/bindings/sound/simple-graph-card.txt
> new file mode 100644
> index 0000000..3d4c5a8
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/sound/simple-graph-card.txt
> @@ -0,0 +1,67 @@
> +Simple-Graph-Card:
There's nothing simple about this. graph-audio-card or audio-card-graph.
> +
> +Simple-Graph-Card specifies audio DAI connections of SoC <-> codec.
> +It is based on common bindings for device graphs.
> +see ${LINUX}/Documentation/devicetree/bindings/graph.txt
> +
> +Basically, Simple-Graph-Card property is same as Simple-Card.
> +see ${LINUX}/Documentation/devicetree/bindings/sound/simple-card.txt
> +
> +Below are same as Simple-Card.
> +
> +- simple-audio-card,name
> +- simple-audio-card,widgets
> +- simple-audio-card,routing
> +- simple-audio-card,mclk-fs
> +- simple-audio-card,hp-det-gpio
> +- simple-audio-card,mic-det-gpio
> +- simple-audio-card,format
> +- simple-audio-card,frame-master
> +- simple-audio-card,bitclock-master
> +- simple-audio-card,bitclock-inversion
> +- simple-audio-card,frame-inversion
> +- simple-audio-card,mclk-fs
> +- simple-audio-card,dai-tdm-slot-num
> +- simple-audio-card,dai-tdm-slot-width
The simple-audio-card prefix is pointless. It's fine to reuse, but don't
add to it.
> +- clocks / system-clock-frequency
> +
> +In Simple-Graph-Card, above properties need in CPU side port on DT.
> +And it needs to have "compatible" property too.
> +In addition, CPU side driver needs to call asoc_simple_card_try_to_probe_graph_card().
> +It will probe specified Card driver if it could find "compatible" property on port.
> +Otherwise, it will do nothing.
> +
> +Required properties:
> +
> +- compatible : "asoc-simple-graph-card";
> +- type : "sound";
> +
> +Example
> +
> +ak4643: codec@12 {
> + compatible = "asahi-kasei,ak4643";
> + ...
> + port {
> + type = "sound";
> + ak4643_port: endpoint {
> + remote-endpoint = <&rcar_ak4643_port>;
> + ...
> + };
> + };
> +};
> +
> +rcar_sound {
> + ...
> + port {
> + compatible = "asoc-simple-graph-card";
Do you have an example where you'd have multiple ports? If not, this
should go up a level.
> +
> + simple-audio-card,format = "left_j";
> + simple-audio-card,bitclock-master = <&ak4643_port>;
> + simple-audio-card,frame-master = <&ak4643_port>;
If you follow video-interfaces.txt, these should all go in the endpoint
node.
> + type = "sound";
> + rcar_ak4643_port: endpoint {
> + remote-endpoint = <&ak4643_port>;
> + ...
> + };
> + };
> +};
> --
> 1.9.1
>
next prev parent reply other threads:[~2016-12-02 13:50 UTC|newest]
Thread overview: 31+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-11-28 2:42 [PATCH v5 00/14] ASoC: add OF graph base simple-card Kuninori Morimoto
2016-11-28 2:44 ` [PATCH v5 01/14] Documentation: of: add type property Kuninori Morimoto
2016-12-01 16:26 ` Rob Herring
2016-12-08 1:57 ` Kuninori Morimoto
2016-11-28 2:45 ` [PATCH v5 02/14] of_graph: add of_graph_get_remote_endpoint() Kuninori Morimoto
2016-11-28 2:45 ` [PATCH v5 03/14] of_graph: add of_graph_port_type_is() Kuninori Morimoto
2016-11-28 2:45 ` [PATCH v5 04/14] of_graph: add of_graph_get_port_parent() Kuninori Morimoto
2016-11-28 2:46 ` [PATCH v5 05/14] of_graph: add of_graph_get_top_port() Kuninori Morimoto
2016-11-28 2:46 ` [PATCH v5 06/14] of_graph: add for_each_of_port() / for_each_of_endpoint_in_port() Kuninori Morimoto
2016-11-28 2:46 ` [PATCH v5 07/14] of_graph: add of_graph_get_endpoint_count() Kuninori Morimoto
2016-11-28 2:46 ` [PATCH v5 08/14] ASoC: simple-card-utils: adjust for graph on asoc_simple_card_parse_card_name Kuninori Morimoto
2016-11-28 2:47 ` [PATCH v5 09/14] ASoC: simple-card-utils: add asoc_simple_card_parse_graph_dai() Kuninori Morimoto
2016-11-28 3:41 ` kbuild test robot
2016-11-28 4:10 ` Kuninori Morimoto
2016-11-28 2:47 ` [PATCH v5 10/14] ASoC: simple-card-utils: add asoc_simple_card_try_to_probe_graph_card() Kuninori Morimoto
2016-11-28 2:47 ` [PATCH v5 11/14] ASoC: add simple-graph-card document Kuninori Morimoto
2016-12-02 13:50 ` Rob Herring [this message]
2016-12-04 23:48 ` Kuninori Morimoto
2016-12-05 2:38 ` Kuninori Morimoto
2016-12-05 22:58 ` Rob Herring
2016-12-06 0:57 ` Kuninori Morimoto
2016-12-06 15:03 ` Rob Herring
2016-12-07 0:10 ` Kuninori Morimoto
2016-12-05 2:21 ` Kuninori Morimoto
2016-11-28 2:48 ` [PATCH v5 12/14] ASoC: add simple-graph-card support Kuninori Morimoto
2016-11-28 4:19 ` kbuild test robot
2016-11-28 2:48 ` [PATCH v5 13/14] ASoC: add simple-graph-scu-card document Kuninori Morimoto
2016-12-05 22:40 ` Rob Herring
2016-12-06 6:33 ` Kuninori Morimoto
2016-11-28 2:48 ` [PATCH v5 14/14] ASoC: add simple-graph-scu-card support Kuninori Morimoto
2016-11-28 4:36 ` kbuild test robot
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=20161202135048.tzvrv7pzv2dubcy3@rob-hp-laptop \
--to=robh@kernel.org \
--cc=alsa-devel@alsa-project.org \
--cc=broonie@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=frowand.list@gmail.com \
--cc=g.liakhovetski@gmx.de \
--cc=grant.likely@linaro.org \
--cc=horms@verge.net.au \
--cc=kuninori.morimoto.gx@renesas.com \
--cc=laurent.pinchart@ideasonboard.com \
--cc=lgirdwood@gmail.com \
--cc=linux-kernel@vger.kernel.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
all inboxes | Powered by JetHome®