From: Sylwester Nawrocki <s.nawrocki@samsung.com> To: krzk@kernel.org Cc: kgene@kernel.org, devicetree@vger.kernel.org, javierm@redhat.com, linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, b.zolnierkie@samsung.com, m.szyprowski@samsung.com, Sylwester Nawrocki <s.nawrocki@samsung.com> Subject: [PATCH v3 6/6] ARM: dts: exynos: Enable HDMI audio support on exynos5800-peach-pi Date: Fri, 09 Mar 2018 18:22:50 +0100 [thread overview] Message-ID: <20180309172250.23019-6-s.nawrocki@samsung.com> (raw) In-Reply-To: <20180309172250.23019-1-s.nawrocki@samsung.com> This patch adds new cpu, codec subnodes according to the updated "google,snow-audio-max98091" DT bindings and the I2S clock tree configuration so sound on the HDMI interface can be also supported. Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com> --- NOTE: I couldn't test this patch as I have no access to Peach-pi Chromebook. I think it shouldn't be applied unless someone actually tests it. Changes since v1: - edited commit summary line. --- arch/arm/boot/dts/exynos5800-peach-pi.dts | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/arch/arm/boot/dts/exynos5800-peach-pi.dts b/arch/arm/boot/dts/exynos5800-peach-pi.dts index 0029ec27819c..0a4766e0484e 100644 --- a/arch/arm/boot/dts/exynos5800-peach-pi.dts +++ b/arch/arm/boot/dts/exynos5800-peach-pi.dts @@ -14,6 +14,7 @@ #include <dt-bindings/interrupt-controller/irq.h> #include <dt-bindings/clock/maxim,max77802.h> #include <dt-bindings/regulator/maxim,max77802.h> +#include <dt-bindings/sound/samsung-i2s.h> #include "exynos5800.dtsi" #include "exynos5420-cpus.dtsi" @@ -89,6 +90,14 @@ samsung,model = "Peach-Pi-I2S-MAX98091"; samsung,i2s-controller = <&i2s0>; samsung,audio-codec = <&max98091>; + + cpu { + sound-dai = <&i2s0 0>; + }; + + codec { + sound-dai = <&max98091>, <&hdmi>; + }; }; usb300_vbus_reg: regulator-usb300 { @@ -145,6 +154,11 @@ vdd-supply = <&ldo9_reg>; }; +&clock_audss { + assigned-clocks = <&clock_audss EXYNOS_MOUT_AUDSS>; + assigned-clock-parents = <&clock CLK_FOUT_EPLL>; +}; + &cpu0 { cpu-supply = <&buck2_reg>; }; @@ -609,6 +623,7 @@ pinctrl-0 = <&max98091_irq>; clocks = <&pmu_system_controller 0>; clock-names = "mclk"; + #sound-dai-cells = <0>; }; light-sensor@44 { @@ -661,6 +676,8 @@ }; &i2s0 { + assigned-clocks = <&i2s0 CLK_I2S_RCLK_SRC>; + assigned-clock-parents = <&clock_audss EXYNOS_I2S_BUS>; status = "okay"; }; -- 2.14.2
WARNING: multiple messages have this Message-ID (diff)
From: s.nawrocki@samsung.com (Sylwester Nawrocki) To: linux-arm-kernel@lists.infradead.org Subject: [PATCH v3 6/6] ARM: dts: exynos: Enable HDMI audio support on exynos5800-peach-pi Date: Fri, 09 Mar 2018 18:22:50 +0100 [thread overview] Message-ID: <20180309172250.23019-6-s.nawrocki@samsung.com> (raw) In-Reply-To: <20180309172250.23019-1-s.nawrocki@samsung.com> This patch adds new cpu, codec subnodes according to the updated "google,snow-audio-max98091" DT bindings and the I2S clock tree configuration so sound on the HDMI interface can be also supported. Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com> --- NOTE: I couldn't test this patch as I have no access to Peach-pi Chromebook. I think it shouldn't be applied unless someone actually tests it. Changes since v1: - edited commit summary line. --- arch/arm/boot/dts/exynos5800-peach-pi.dts | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/arch/arm/boot/dts/exynos5800-peach-pi.dts b/arch/arm/boot/dts/exynos5800-peach-pi.dts index 0029ec27819c..0a4766e0484e 100644 --- a/arch/arm/boot/dts/exynos5800-peach-pi.dts +++ b/arch/arm/boot/dts/exynos5800-peach-pi.dts @@ -14,6 +14,7 @@ #include <dt-bindings/interrupt-controller/irq.h> #include <dt-bindings/clock/maxim,max77802.h> #include <dt-bindings/regulator/maxim,max77802.h> +#include <dt-bindings/sound/samsung-i2s.h> #include "exynos5800.dtsi" #include "exynos5420-cpus.dtsi" @@ -89,6 +90,14 @@ samsung,model = "Peach-Pi-I2S-MAX98091"; samsung,i2s-controller = <&i2s0>; samsung,audio-codec = <&max98091>; + + cpu { + sound-dai = <&i2s0 0>; + }; + + codec { + sound-dai = <&max98091>, <&hdmi>; + }; }; usb300_vbus_reg: regulator-usb300 { @@ -145,6 +154,11 @@ vdd-supply = <&ldo9_reg>; }; +&clock_audss { + assigned-clocks = <&clock_audss EXYNOS_MOUT_AUDSS>; + assigned-clock-parents = <&clock CLK_FOUT_EPLL>; +}; + &cpu0 { cpu-supply = <&buck2_reg>; }; @@ -609,6 +623,7 @@ pinctrl-0 = <&max98091_irq>; clocks = <&pmu_system_controller 0>; clock-names = "mclk"; + #sound-dai-cells = <0>; }; light-sensor at 44 { @@ -661,6 +676,8 @@ }; &i2s0 { + assigned-clocks = <&i2s0 CLK_I2S_RCLK_SRC>; + assigned-clock-parents = <&clock_audss EXYNOS_I2S_BUS>; status = "okay"; }; -- 2.14.2
next prev parent reply other threads:[~2018-03-09 17:25 UTC|newest] Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top [not found] <CGME20180309172349epcas2p120eb4533e672b52eb13ddba97f3e6833@epcas2p1.samsung.com> 2018-03-09 17:22 ` [PATCH v3 1/6] ARM: dts: exynos: Add #sound-dai-cells property to hdmi node in exynos5250.dtsi Sylwester Nawrocki 2018-03-09 17:22 ` Sylwester Nawrocki [not found] ` <CGME20180309172404epcas1p446cf7033027ccefe2d8cfcfc49edc179@epcas1p4.samsung.com> 2018-03-09 17:22 ` [PATCH v3 2/6] ARM: dts: exynos: Add audio clocks configuration for exynos5250-snow Sylwester Nawrocki 2018-03-09 17:22 ` Sylwester Nawrocki 2018-03-11 17:44 ` Krzysztof Kozlowski 2018-03-11 17:44 ` Krzysztof Kozlowski [not found] ` <CGME20180309172414epcas1p36b0c39ad993afcad7f8cf8941cc6bf68@epcas1p3.samsung.com> 2018-03-09 17:22 ` [PATCH v3 3/6] ARM: dts: exynos: Update of the max98095 node in exynos5250-snow.dts Sylwester Nawrocki 2018-03-09 17:22 ` Sylwester Nawrocki 2018-03-11 17:44 ` Krzysztof Kozlowski 2018-03-11 17:44 ` Krzysztof Kozlowski [not found] ` <CGME20180309172436epcas2p20e1da46084c1dcc67d6dd6cd1bf24368@epcas2p2.samsung.com> 2018-03-09 17:22 ` [PATCH v3 4/6] ARM: dts: exynos: Enable HDMI audio on Snow Chromebook Sylwester Nawrocki 2018-03-09 17:22 ` Sylwester Nawrocki 2018-03-11 17:43 ` Krzysztof Kozlowski 2018-03-11 17:43 ` Krzysztof Kozlowski [not found] ` <CGME20180309172442epcas2p16d82d119fea8471383ccacee501c539a@epcas2p1.samsung.com> 2018-03-09 17:22 ` [PATCH v3 5/6] ARM: dts: exynos: Enable HDMI audio support on exynos5420-peach-pit Sylwester Nawrocki 2018-03-09 17:22 ` Sylwester Nawrocki 2018-03-11 17:43 ` Krzysztof Kozlowski 2018-03-11 17:43 ` Krzysztof Kozlowski [not found] ` <CGME20180309172450epcas1p2b845a521afbadc81da991330bdbc588c@epcas1p2.samsung.com> 2018-03-09 17:22 ` Sylwester Nawrocki [this message] 2018-03-09 17:22 ` [PATCH v3 6/6] ARM: dts: exynos: Enable HDMI audio support on exynos5800-peach-pi Sylwester Nawrocki 2018-03-11 17:43 ` Krzysztof Kozlowski 2018-03-11 17:43 ` Krzysztof Kozlowski 2018-03-11 17:43 ` [PATCH v3 1/6] ARM: dts: exynos: Add #sound-dai-cells property to hdmi node in exynos5250.dtsi Krzysztof Kozlowski 2018-03-11 17:43 ` Krzysztof Kozlowski
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20180309172250.23019-6-s.nawrocki@samsung.com \ --to=s.nawrocki@samsung.com \ --cc=b.zolnierkie@samsung.com \ --cc=devicetree@vger.kernel.org \ --cc=javierm@redhat.com \ --cc=kgene@kernel.org \ --cc=krzk@kernel.org \ --cc=linux-arm-kernel@lists.infradead.org \ --cc=linux-kernel@vger.kernel.org \ --cc=linux-samsung-soc@vger.kernel.org \ --cc=m.szyprowski@samsung.com \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.