ASoC: samsung: let device core setup the default pin configuration
Subsystems (5)
PATCH 1/1 ASoC: samsung: let device core setup the default pin configuration
With device core now able to setup the default pin configuration, the pin configuration code based on the deprecated Samsung specific gpio bindings in i2s driver is removed.
--- .../devicetree/bindings/sound/samsung-i2s.txt | 30 +-------- sound/soc/samsung/i2s.c | 67 +------------------ 2 files changed, 8 insertions(+), 89 deletions(-)
Documentation/devicetree/bindings/sound/samsung-i2s.txt +4 -26
@@ -20,23 +20,11 @@ Optional SoC Specific Properties: then this flag is enabled. - samsung,idma-addr: Internal DMA register base address of the audio sub system(used in secondary sound source). - -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]> +- pinctrl-0: Should specify pin control groups used for this controller. +- pinctrl-names: Should contain only one value - "default". Example: -- SoC Specific Portion: - i2s@03830000 { compatible = "samsung,i2s-v5"; reg = <0x03830000 0x100>;
@@ -48,16 +36,6 @@ i2s@03830000 { samsung,supports-rstclr; samsung,supports-secdai; samsung,idma-addr = <0x03000000>; -}; - -- 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] */ + pinctrl-names = "default"; + pinctrl-0 = <&i2s0_bus>; };
sound/soc/samsung/i2s.c +4 -63
97 lines not on this page · raw message
Signature · 1 line
1.6.6.rc2
Quoted 3 lines · Thomas Abraham
With device core now able to setup the default pin configuration, the pin configuration code based on the deprecated Samsung specific gpio bindings in i2s driver is removed.
There's rather a lot of non-DT Samsung platforms...
Am Mittwoch, 6. März 2013, 12:37:43 schrieb Mark Brown:
Quoted 6 lines · Thomas Abraham
Quoted 3 lines
With device core now able to setup the default pin configuration, the pin configuration code based on the deprecated Samsung specific gpio bindings in i2s driver is removed.
There's rather a lot of non-DT Samsung platforms...
I think the real non-dt platforms won't be affected.
+ if (i2s_pdata->cfg_gpio && i2s_pdata->cfg_gpio(pdev)) {
+ dev_err(&pdev->dev, "Unable to configure gpio\n"); + ret = -EINVAL; + goto err;
is still there for them.
What is going away is the deprecated non-pinctrl way to setup the pins on dt platforms.
Quoted 2 lines · Heiko Stübner
What is going away is the deprecated non-pinctrl way to setup the pins on dt platforms.
OK, can we have a changelog improvement please? I didn't read the patch properly because the changelog said it would break my primary development system.
Quoted 8 lines · Mark Brown
Quoted 2 lines · Heiko Stübner
What is going away is the deprecated non-pinctrl way to setup the pins on dt platforms.
OK, can we have a changelog improvement please? I didn't read the patch properly because the changelog said it would break my primary development system.
Ok. I will repost again with additional details in the changelog.
Quoted 5 lines · Thomas Abraham
With device core now able to setup the default pin configuration, the pin configuration code based on the deprecated Samsung specific gpio bindings in i2s driver is removed.
Signed-off-by Thomas Abraham <[email protected]>
Yours,
Linus Walleij