[PATCH V6 02/10] ASoC: SAMSUNG: Add DT support for i2s
Sylwester Nawrocki
s.nawrocki at samsung.com
Thu Feb 14 21:29:24 EST 2013
Hi,
On 01/18/2013 12:47 PM, Padmavathi Venna wrote:
> Add support for device based discovery.
>
> Signed-off-by: Padmavathi Venna <padma.v at samsung.com>
> ---
> .../devicetree/bindings/sound/samsung-i2s.txt | 63 ++++++
> sound/soc/samsung/dma.c | 3 +-
> sound/soc/samsung/dma.h | 1 +
> sound/soc/samsung/i2s.c | 209 +++++++++++++++-----
> 4 files changed, 230 insertions(+), 46 deletions(-)
> create mode 100644 Documentation/devicetree/bindings/sound/samsung-i2s.txt
>
> diff --git a/Documentation/devicetree/bindings/sound/samsung-i2s.txt
> b/Documentation/devicetree/bindings/sound/samsung-i2s.txt
> new file mode 100644
> index 0000000..3070046
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/sound/samsung-i2s.txt
> @@ -0,0 +1,63 @@
> +* Samsung I2S controller
> +
...
> +Required Board Specific Properties:
> +
> +- gpios: The gpio specifier for data out,data in, LRCLK, CDCLK and SCLK
> + interface lines. The format of the gpio specifier depends on the gpio
> + controller.
> + The syntax of samsung gpio specifier is
> + <[phandle of the gpio controller node]
> + [pin number within the gpio controller]
> + [mux function]
> + [flags and pull up/down]
> + [drive strength]>
I don't think there is a need to copy the gpio specifier documentation
over to this file. Moreover this gpio specifier was supposed to be temporary,
until pinctrl support is added. Now Exynos4 uses generic gpio specifiers
and pinctrl for pin muxing and Exynos5 is still not converted to that,
although I believe this wouldn't require much effort now.
> +Example:
> +
...
> +- Board Specific Portion:
> +
> +i2s at 03830000 {
> + gpios = <&gpz 0 2 0 0>, /* I2S_0_SCLK */
> + <&gpz 1 2 0 0>, /* I2S_0_CDCLK */
> + <&gpz 2 2 0 0>, /* I2S_0_LRCK */
> + <&gpz 3 2 0 0>, /* I2S_0_SDI */
> + <&gpz 4 2 0 0>, /* I2S_0_SDO[1] */
> + <&gpz 5 2 0 0>, /* I2S_0_SDO[2] */
> + <&gpz 6 2 0 0>; /* I2S_0_SDO[3] */
> +};
We should switch to pinctrl instead. Most of work now seems to be
to define pinctrl nodes for each Exynos5 device, so there is proper
pinctrl support for Exynos5.
--
Thanks,
Sylwester
More information about the devicetree-discuss
mailing list