ARM: dts: iwg20d-q7-common: Enable SGTL5000 audio codec
authorBiju Das <biju.das@bp.renesas.com>
Tue, 12 Dec 2017 18:25:11 +0000 (18:25 +0000)
committerSimon Horman <horms+renesas@verge.net.au>
Wed, 20 Dec 2017 11:52:33 +0000 (12:52 +0100)
This patch enables SGTL5000 audio codec on the carrier board.

Signed-off-by: Biju Das <biju.das@bp.renesas.com>
Reviewed-by: Fabrizio Castro <fabrizio.castro@bp.renesas.com>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
arch/arm/boot/dts/iwg20d-q7-common.dtsi

index 54470c6..03d41a7 100644 (file)
                stdout-path = "serial0:115200n8";
        };
 
+       audio_clock: audio_clock {
+               compatible = "fixed-clock";
+               #clock-cells = <0>;
+               clock-frequency = <26000000>;
+       };
+
+       reg_1p5v: 1p5v {
+               compatible = "regulator-fixed";
+               regulator-name = "1P5V";
+               regulator-min-microvolt = <1500000>;
+               regulator-max-microvolt = <1500000>;
+               regulator-always-on;
+       };
+
        vcc_sdhi1: regulator-vcc-sdhi1 {
                compatible = "regulator-fixed";
 
                compatible = "ti,bq32000";
                reg = <0x68>;
        };
+
+       sgtl5000: codec@a {
+               compatible = "fsl,sgtl5000";
+               #sound-dai-cells = <0>;
+               reg = <0x0a>;
+               clocks = <&audio_clock>;
+               VDDA-supply = <&reg_3p3v>;
+               VDDIO-supply = <&reg_3p3v>;
+               VDDD-supply = <&reg_1p5v>;
+       };
 };
 
 &pci0 {