diff mbox

[1/2] ARM: dts: Add sound node for Snow board

Message ID 1398320219-23362-2-git-send-email-tushar.behera@linaro.org
State New
Headers show

Commit Message

Tushar Behera April 24, 2014, 6:16 a.m. UTC
The audio codec on Snow board, MAX98095 is connected on I2C7 bus.
Also it requires the GPX1-7 line to be pulled up.

Updated Snow DTS file to incorporate above changes and added a
sound node to instantiate the I2S-based sound card.

Signed-off-by: Tushar Behera <tushar.behera@linaro.org>
---
 arch/arm/boot/dts/exynos5250-snow.dts |   32 ++++++++++++++++++++++++++++++++
 1 file changed, 32 insertions(+)

Comments

Tushar Behera April 30, 2014, 10:51 a.m. UTC | #1
On 04/24/2014 11:46 AM, Tushar Behera wrote:
> The audio codec on Snow board, MAX98095 is connected on I2C7 bus.
> Also it requires the GPX1-7 line to be pulled up.
> 
> Updated Snow DTS file to incorporate above changes and added a
> sound node to instantiate the I2S-based sound card.
> 
> Signed-off-by: Tushar Behera <tushar.behera@linaro.org>
> ---
>  arch/arm/boot/dts/exynos5250-snow.dts |   32 ++++++++++++++++++++++++++++++++
>  1 file changed, 32 insertions(+)
> 
> diff --git a/arch/arm/boot/dts/exynos5250-snow.dts b/arch/arm/boot/dts/exynos5250-snow.dts
> index 1bc9b50..f63df3c 100644
> --- a/arch/arm/boot/dts/exynos5250-snow.dts
> +++ b/arch/arm/boot/dts/exynos5250-snow.dts
> @@ -196,6 +196,38 @@
>  		};
>  	};
>  
> +	regulators {
> +		compatible = "simple-bus";
> +		#address-cells = <1>;
> +		#size-cells = <0>;
> +
> +		max98095-en-regulator {
> +			compatible = "regulator-fixed";
> +			gpio = <&gpx1 7 0>;
> +			enable-active-high;
> +			regulator-boot-on;
> +			regulator-always-on;
> +		};
> +	};
> +

Instead of relying on regulator framework, I will add a related
pin-control entry and update sound node accordingly.

> +	i2c@12CD0000 {
> +		max98095: codec@11 {
> +			compatible = "maxim,max98095";
> +			reg = <0x11>;
> +		};
> +	};
> +
> +	i2s0: i2s@03830000 {
> +		status = "okay";
> +	};
> +
> +	sound {
> +		compatible = "google,snow-audio-max98095";
> +
> +		samsung,i2s-controller = <&i2s0>;
> +		samsung,audio-codec = <&max98095>;
> +	};
> +
>  	usb@12110000 {
>  		samsung,vbus-gpio = <&gpx1 1 0>;
>  	};
>
diff mbox

Patch

diff --git a/arch/arm/boot/dts/exynos5250-snow.dts b/arch/arm/boot/dts/exynos5250-snow.dts
index 1bc9b50..f63df3c 100644
--- a/arch/arm/boot/dts/exynos5250-snow.dts
+++ b/arch/arm/boot/dts/exynos5250-snow.dts
@@ -196,6 +196,38 @@ 
 		};
 	};
 
+	regulators {
+		compatible = "simple-bus";
+		#address-cells = <1>;
+		#size-cells = <0>;
+
+		max98095-en-regulator {
+			compatible = "regulator-fixed";
+			gpio = <&gpx1 7 0>;
+			enable-active-high;
+			regulator-boot-on;
+			regulator-always-on;
+		};
+	};
+
+	i2c@12CD0000 {
+		max98095: codec@11 {
+			compatible = "maxim,max98095";
+			reg = <0x11>;
+		};
+	};
+
+	i2s0: i2s@03830000 {
+		status = "okay";
+	};
+
+	sound {
+		compatible = "google,snow-audio-max98095";
+
+		samsung,i2s-controller = <&i2s0>;
+		samsung,audio-codec = <&max98095>;
+	};
+
 	usb@12110000 {
 		samsung,vbus-gpio = <&gpx1 1 0>;
 	};