From: robh@kernel.org (Rob Herring)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v1 1/2] ASoC: rockchip: add support for pdm controller
Date: Sun, 18 Jun 2017 09:05:27 -0500 [thread overview]
Message-ID: <20170618140527.fqaoc55qisd5n36b@rob-hp-laptop> (raw)
In-Reply-To: <1497338867-52684-2-git-send-email-sugar.zhang@rock-chips.com>
On Tue, Jun 13, 2017 at 03:27:46PM +0800, Sugar Zhang wrote:
> The Pulse Density Modulation Interface Controller (PDMC) is
> a PDM interface controller and decoder that support PDM format.
> It integrates a clock generator driving the PDM microphone
> and embeds filters which decimate the incoming bit stream to
> obtain most common audio rates.
>
> Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
> ---
>
> .../devicetree/bindings/sound/rockchip,pdm.txt | 39 ++
> sound/soc/rockchip/Kconfig | 9 +
> sound/soc/rockchip/Makefile | 2 +
> sound/soc/rockchip/rockchip_pdm.c | 516 +++++++++++++++++++++
> sound/soc/rockchip/rockchip_pdm.h | 83 ++++
> 5 files changed, 649 insertions(+)
> create mode 100644 Documentation/devicetree/bindings/sound/rockchip,pdm.txt
> create mode 100644 sound/soc/rockchip/rockchip_pdm.c
> create mode 100644 sound/soc/rockchip/rockchip_pdm.h
>
> diff --git a/Documentation/devicetree/bindings/sound/rockchip,pdm.txt b/Documentation/devicetree/bindings/sound/rockchip,pdm.txt
> new file mode 100644
> index 0000000..921729d
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/sound/rockchip,pdm.txt
> @@ -0,0 +1,39 @@
> +* Rockchip PDM controller
> +
> +Required properties:
> +
> +- compatible: "rockchip,pdm"
Too generic. This should be SoC specific.
> +- reg: physical base address of the controller and length of memory mapped
> + region.
> +- dmas: DMA specifiers for rx dma. See the DMA client binding,
> + Documentation/devicetree/bindings/dma/dma.txt
> +- dma-names: should include "rx".
> +- clocks: a list of phandle + clock-specifer pairs, one for each entry in clock-names.
> +- clock-names: should contain following:
> + - "pdm_hclk": clock for PDM BUS
> + - "pdm_clk" : clock for PDM controller
> +- pinctrl-names: Must contain a "default" entry.
> +- pinctrl-N: One property must exist for each entry in
> + pinctrl-names. See ../pinctrl/pinctrl-bindings.txt
> + for details of the property values.
> +
> +Example for rk3328 PDM controller:
> +
> +pdm: pdm at ff040000 {
> + compatible = "rockchip,pdm";
> + reg = <0x0 0xff040000 0x0 0x1000>;
> + clocks = <&clk_pdm>, <&clk_gates28 0>;
> + clock-names = "pdm_clk", "pdm_hclk";
> + dmas = <&pdma 16>;
> + #dma-cells = <1>;
> + dma-names = "rx";
> + pinctrl-names = "default", "sleep";
> + pinctrl-0 = <&pdmm0_clk
> + &pdmm0_fsync
> + &pdmm0_sdi0
> + &pdmm0_sdi1
> + &pdmm0_sdi2
> + &pdmm0_sdi3>;
> + pinctrl-1 = <&pdmm0_sleep>;
> + status = "disabled";
> +};
next prev parent reply other threads:[~2017-06-18 14:05 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-06-13 7:27 [PATCH v1 0/2] Patches to add support pdm controller for rk3328 Sugar Zhang
2017-06-13 7:27 ` [PATCH v1 1/2] ASoC: rockchip: add support for pdm controller Sugar Zhang
2017-06-13 21:09 ` Applied "ASoC: rockchip: add support for pdm controller" to the asoc tree Mark Brown
2017-06-18 14:05 ` Rob Herring [this message]
2017-06-13 7:27 ` [PATCH v1 2/2] arm64: dts: rk3328: add pdm node Sugar Zhang
2017-06-17 18:05 ` Heiko Stuebner
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=20170618140527.fqaoc55qisd5n36b@rob-hp-laptop \
--to=robh@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