* [PATCH V2 0/2] Add sound card node Snow/Peach-pit board
@ 2014-05-07 4:52 Tushar Behera
2014-05-07 4:52 ` [PATCH V2 1/2] ARM: dts: Add sound node for Snow board Tushar Behera
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Tushar Behera @ 2014-05-07 4:52 UTC (permalink / raw)
To: linux-samsung-soc-u79uwXL29TY76Z2rM5mHXA,
devicetree-u79uwXL29TY76Z2rM5mHXA
Cc: kgene.kim-Sze3O3UU22JBDgjK7y7TUQ, robh+dt-DgEjT+Ai2ygdnm+yROfE0A
Patch 2 is dependent on Arun's following patch.
1. [PATCH v4 0/2] Add peach-pit board support
http://www.mail-archive.com/linux-samsung-soc-u79uwXL29TY76Z2rM5mHXA@public.gmane.org/msg29948.html
Tushar Behera (2):
ARM: dts: Add sound node for Snow board
ARM: dts: Add sound node for Peach-pit board
arch/arm/boot/dts/exynos5250-snow.dts | 27 ++++++++++++++++++++++++
arch/arm/boot/dts/exynos5420-peach-pit.dts | 31 ++++++++++++++++++++++++++++
2 files changed, 58 insertions(+)
--
1.7.9.5
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH V2 1/2] ARM: dts: Add sound node for Snow board
2014-05-07 4:52 [PATCH V2 0/2] Add sound card node Snow/Peach-pit board Tushar Behera
@ 2014-05-07 4:52 ` Tushar Behera
2014-05-07 4:52 ` [PATCH V2 2/2] ARM: dts: Add sound node for Peach-pit board Tushar Behera
2014-05-16 12:51 ` [PATCH V2 0/2] Add sound card node Snow/Peach-pit board Kukjin Kim
2 siblings, 0 replies; 4+ messages in thread
From: Tushar Behera @ 2014-05-07 4:52 UTC (permalink / raw)
To: linux-samsung-soc, devicetree; +Cc: kgene.kim, robh+dt
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>
---
Changes for V2:
1. GPX1-7 gpio is now configured through pincontrol, earlier
it was configured through a fixed-regualtor.
arch/arm/boot/dts/exynos5250-snow.dts | 27 +++++++++++++++++++++++++++
1 file changed, 27 insertions(+)
diff --git a/arch/arm/boot/dts/exynos5250-snow.dts b/arch/arm/boot/dts/exynos5250-snow.dts
index 1ce1088..809af33 100644
--- a/arch/arm/boot/dts/exynos5250-snow.dts
+++ b/arch/arm/boot/dts/exynos5250-snow.dts
@@ -37,6 +37,13 @@
sd3_bus4: sd3-bus-width4 {
samsung,pin-drv = <0>;
};
+
+ max98095_en: max98095-en {
+ samsung,pins = "gpx1-7";
+ samsung,pin-function = <0>;
+ samsung,pin-pud = <3>;
+ samsung,pin-drv = <0>;
+ };
};
gpio-keys {
@@ -196,6 +203,26 @@
};
};
+ i2c@12CD0000 {
+ max98095: codec@11 {
+ compatible = "maxim,max98095";
+ reg = <0x11>;
+ pinctrl-0 = <&max98095_en>;
+ pinctrl-names = "default";
+ };
+ };
+
+ 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>;
};
--
1.7.9.5
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH V2 2/2] ARM: dts: Add sound node for Peach-pit board
2014-05-07 4:52 [PATCH V2 0/2] Add sound card node Snow/Peach-pit board Tushar Behera
2014-05-07 4:52 ` [PATCH V2 1/2] ARM: dts: Add sound node for Snow board Tushar Behera
@ 2014-05-07 4:52 ` Tushar Behera
2014-05-16 12:51 ` [PATCH V2 0/2] Add sound card node Snow/Peach-pit board Kukjin Kim
2 siblings, 0 replies; 4+ messages in thread
From: Tushar Behera @ 2014-05-07 4:52 UTC (permalink / raw)
To: linux-samsung-soc, devicetree; +Cc: kgene.kim, robh+dt
The audio setup on Peach-pit board is similar to Snow board, hence the
sound-card driver used on Snow board can be reused on Peach-pit board.
Peach-pit board uses MAX98090 audio codec.
Signed-off-by: Tushar Behera <tushar.behera@linaro.org>
---
Changes for V2:
1. Rebased on now-accepted exynos5420-peach-pit.dts file
arch/arm/boot/dts/exynos5420-peach-pit.dts | 31 ++++++++++++++++++++++++++++
1 file changed, 31 insertions(+)
diff --git a/arch/arm/boot/dts/exynos5420-peach-pit.dts b/arch/arm/boot/dts/exynos5420-peach-pit.dts
index fae33dd..9902183 100644
--- a/arch/arm/boot/dts/exynos5420-peach-pit.dts
+++ b/arch/arm/boot/dts/exynos5420-peach-pit.dts
@@ -58,9 +58,23 @@
pinctrl-0 = <&pwm0_out>;
pinctrl-names = "default";
};
+
+ sound {
+ compatible = "google,snow-audio-max98090";
+
+ samsung,i2s-controller = <&i2s0>;
+ samsung,audio-codec = <&max98090>;
+ };
};
&pinctrl_0 {
+ max98090_irq: max98090-irq {
+ samsung,pins = "gpx0-2";
+ samsung,pin-function = <0>;
+ samsung,pin-pud = <0>;
+ samsung,pin-drv = <0>;
+ };
+
tpm_irq: tpm-irq {
samsung,pins = "gpx1-0";
samsung,pin-function = <0>;
@@ -123,6 +137,19 @@
};
};
+&hsi2c_7 {
+ status = "okay";
+
+ max98090: codec@10 {
+ compatible = "maxim,max98090";
+ reg = <0x10>;
+ interrupts = <2 0>;
+ interrupt-parent = <&gpx0>;
+ pinctrl-names = "default";
+ pinctrl-0 = <&max98090_irq>;
+ };
+};
+
&hsi2c_9 {
status = "okay";
clock-frequency = <400000>;
@@ -145,3 +172,7 @@
&watchdog {
timeout-sec = <32>;
};
+
+&i2s0 {
+ status = "okay";
+};
--
1.7.9.5
^ permalink raw reply related [flat|nested] 4+ messages in thread
* RE: [PATCH V2 0/2] Add sound card node Snow/Peach-pit board
2014-05-07 4:52 [PATCH V2 0/2] Add sound card node Snow/Peach-pit board Tushar Behera
2014-05-07 4:52 ` [PATCH V2 1/2] ARM: dts: Add sound node for Snow board Tushar Behera
2014-05-07 4:52 ` [PATCH V2 2/2] ARM: dts: Add sound node for Peach-pit board Tushar Behera
@ 2014-05-16 12:51 ` Kukjin Kim
2 siblings, 0 replies; 4+ messages in thread
From: Kukjin Kim @ 2014-05-16 12:51 UTC (permalink / raw)
To: 'Tushar Behera', linux-samsung-soc, devicetree; +Cc: robh+dt
Tushar Behera wrote:
>
>
> Patch 2 is dependent on Arun's following patch.
> 1. [PATCH v4 0/2] Add peach-pit board support
> http://www.mail-archive.com/linux-samsung-
> soc@vger.kernel.org/msg29948.html
>
> Tushar Behera (2):
> ARM: dts: Add sound node for Snow board
> ARM: dts: Add sound node for Peach-pit board
>
> arch/arm/boot/dts/exynos5250-snow.dts | 27
++++++++++++++++++++++++
> arch/arm/boot/dts/exynos5420-peach-pit.dts | 31
> ++++++++++++++++++++++++++++
> 2 files changed, 58 insertions(+)
>
> --
Looks good to me and I can see its bindings in -next.
Applied this series, thanks.
- Kukjin
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2014-05-16 12:51 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-05-07 4:52 [PATCH V2 0/2] Add sound card node Snow/Peach-pit board Tushar Behera
2014-05-07 4:52 ` [PATCH V2 1/2] ARM: dts: Add sound node for Snow board Tushar Behera
2014-05-07 4:52 ` [PATCH V2 2/2] ARM: dts: Add sound node for Peach-pit board Tushar Behera
2014-05-16 12:51 ` [PATCH V2 0/2] Add sound card node Snow/Peach-pit board Kukjin Kim
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).