Re: [PATCH V6 02/10] ASoC: SAMSUNG: Add DT support for i2s

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

On 01/18/2013 12:47 PM, Padmavathi Venna wrote:
> Add support for device based discovery.
> 
> Signed-off-by: Padmavathi Venna <padma.v@xxxxxxxxxxx>
> ---
>  .../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@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

--
To unsubscribe from this list: send the line "unsubscribe linux-samsung-soc" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux SoC Development]     [Linux Rockchip Development]     [Linux USB Development]     [Video for Linux]     [Linux Audio Users]     [Linux SCSI]     [Yosemite News]

  Powered by Linux