Re: [PATCH 4/9] ARM: dts: iwg22d-sodimm: Enable SGTL5000 audio codec

2017-12-21 Thread Geert Uytterhoeven
On Wed, Dec 20, 2017 at 9:02 PM, Biju Das  wrote:
> This patch enables SGTL5000 audio codec on the carrier board.
>
> Signed-off-by: Biju Das 
> Reviewed-by: Fabrizio Castro 

Reviewed-by: Geert Uytterhoeven 

Gr{oetje,eeting}s,

Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- ge...@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds


[PATCH 4/9] ARM: dts: iwg22d-sodimm: Enable SGTL5000 audio codec

2017-12-20 Thread Biju Das
This patch enables SGTL5000 audio codec on the carrier board.

Signed-off-by: Biju Das 
Reviewed-by: Fabrizio Castro 
---
 arch/arm/boot/dts/r8a7745-iwg22d-sodimm.dts | 28 
 1 file changed, 28 insertions(+)

diff --git a/arch/arm/boot/dts/r8a7745-iwg22d-sodimm.dts 
b/arch/arm/boot/dts/r8a7745-iwg22d-sodimm.dts
index 39ce7e7..5d4b7d2 100644
--- a/arch/arm/boot/dts/r8a7745-iwg22d-sodimm.dts
+++ b/arch/arm/boot/dts/r8a7745-iwg22d-sodimm.dts
@@ -26,6 +26,12 @@
stdout-path = "serial3:115200n8";
};
 
+   audio_clock: audio_clock {
+   compatible = "fixed-clock";
+   #clock-cells = <0>;
+   clock-frequency = <2600>;
+   };
+
vccq_sdhi0: regulator-vccq-sdhi0 {
compatible = "regulator-gpio";
 
@@ -80,6 +86,23 @@
pinctrl-names = "default";
 };
 
+ {
+   pinctrl-0 = <_pins>;
+   pinctrl-names = "default";
+
+   status = "okay";
+   clock-frequency = <40>;
+
+   sgtl5000: codec@a {
+   compatible = "fsl,sgtl5000";
+   #sound-dai-cells = <0>;
+   reg = <0x0a>;
+   clocks = <_clock>;
+   VDDA-supply = <_3p3v>;
+   VDDIO-supply = <_3p3v>;
+   };
+};
+
  {
status = "okay";
pinctrl-0 = <_pins>;
@@ -102,6 +125,11 @@
function = "hscif1";
};
 
+   i2c5_pins: i2c5 {
+   groups = "i2c5_b";
+   function = "i2c5";
+   };
+
scif4_pins: scif4 {
groups = "scif4_data_b";
function = "scif4";
-- 
1.9.1