Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ed7d1307 authored by Sylwester Nawrocki's avatar Sylwester Nawrocki Committed by Krzysztof Kozlowski
Browse files

ARM: dts: exynos: Enable HDMI audio support on Peach Pit



This patch adds new cpu, codec subnodes according to the updated
"google,snow-audio-max98090" DT bindings and the I2S clock tree
configuration so sound on the HDMI interface can also be supported.

Signed-off-by: default avatarSylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: default avatarKrzysztof Kozlowski <krzk@kernel.org>
parent 6ab56993
Loading
Loading
Loading
Loading
+17 −0
Original line number Original line Diff line number Diff line
@@ -11,6 +11,7 @@
#include <dt-bindings/interrupt-controller/irq.h>
#include <dt-bindings/interrupt-controller/irq.h>
#include <dt-bindings/clock/maxim,max77802.h>
#include <dt-bindings/clock/maxim,max77802.h>
#include <dt-bindings/regulator/maxim,max77802.h>
#include <dt-bindings/regulator/maxim,max77802.h>
#include <dt-bindings/sound/samsung-i2s.h>
#include "exynos5420.dtsi"
#include "exynos5420.dtsi"
#include "exynos5420-cpus.dtsi"
#include "exynos5420-cpus.dtsi"


@@ -86,6 +87,14 @@
		samsung,model = "Peach-Pit-I2S-MAX98090";
		samsung,model = "Peach-Pit-I2S-MAX98090";
		samsung,i2s-controller = <&i2s0>;
		samsung,i2s-controller = <&i2s0>;
		samsung,audio-codec = <&max98090>;
		samsung,audio-codec = <&max98090>;

		cpu {
			sound-dai = <&i2s0 0>;
		};

		codec {
			sound-dai = <&max98090>, <&hdmi>;
		};
	};
	};


	usb300_vbus_reg: regulator-usb300 {
	usb300_vbus_reg: regulator-usb300 {
@@ -142,6 +151,11 @@
	vdd-supply = <&ldo9_reg>;
	vdd-supply = <&ldo9_reg>;
};
};


&clock_audss {
	assigned-clocks = <&clock_audss EXYNOS_MOUT_AUDSS>;
	assigned-clock-parents = <&clock CLK_FOUT_EPLL>;
};

&cpu0 {
&cpu0 {
	cpu-supply = <&buck2_reg>;
	cpu-supply = <&buck2_reg>;
};
};
@@ -606,6 +620,7 @@
		pinctrl-0 = <&max98090_irq>;
		pinctrl-0 = <&max98090_irq>;
		clocks = <&pmu_system_controller 0>;
		clocks = <&pmu_system_controller 0>;
		clock-names = "mclk";
		clock-names = "mclk";
		#sound-dai-cells = <0>;
	};
	};


	light-sensor@44 {
	light-sensor@44 {
@@ -690,6 +705,8 @@
};
};


&i2s0 {
&i2s0 {
	assigned-clocks = <&i2s0 CLK_I2S_RCLK_SRC>;
	assigned-clock-parents = <&clock_audss EXYNOS_I2S_BUS>;
	status = "okay";
	status = "okay";
};
};