xref: /linux/scripts/dtc/include-prefixes/arm/samsung/exynos5422-odroidxu3-audio.dtsi (revision 0ea5c948cb64bab5bc7a5516774eb8536f05aa0d)
1724ba675SRob Herring// SPDX-License-Identifier: GPL-2.0
2724ba675SRob Herring/*
3724ba675SRob Herring * Hardkernel Odroid XU3 audio subsystem device tree source
4724ba675SRob Herring *
5724ba675SRob Herring * Copyright (c) 2015 Krzysztof Kozlowski
6724ba675SRob Herring * Copyright (c) 2014 Collabora Ltd.
7724ba675SRob Herring * Copyright (c) 2013 Samsung Electronics Co., Ltd.
8724ba675SRob Herring *		http://www.samsung.com
9724ba675SRob Herring */
10724ba675SRob Herring
11724ba675SRob Herring#include <dt-bindings/sound/samsung-i2s.h>
12724ba675SRob Herring
13724ba675SRob Herring/ {
14724ba675SRob Herring	sound: sound {
15724ba675SRob Herring		compatible = "samsung,odroid-xu3-audio";
16724ba675SRob Herring		model = "Odroid-XU3";
17724ba675SRob Herring
18724ba675SRob Herring		samsung,audio-widgets =
19724ba675SRob Herring			"Headphone", "Headphone Jack",
20724ba675SRob Herring			"Speakers", "Speakers";
21*c670e7c8SKrzysztof Kozlowski		audio-routing = "Headphone Jack", "HPL",
22724ba675SRob Herring				"Headphone Jack", "HPR",
23724ba675SRob Herring				"Headphone Jack", "MICBIAS",
24724ba675SRob Herring				"IN12", "Headphone Jack",
25724ba675SRob Herring				"Speakers", "SPKL",
26724ba675SRob Herring				"Speakers", "SPKR",
27724ba675SRob Herring				"I2S Playback", "Mixer DAI TX",
28724ba675SRob Herring				"HiFi Playback", "Mixer DAI TX",
29724ba675SRob Herring				"Mixer DAI RX", "HiFi Capture";
30724ba675SRob Herring
31724ba675SRob Herring		cpu {
32724ba675SRob Herring			sound-dai = <&i2s0 0>, <&i2s0 1>;
33724ba675SRob Herring		};
34724ba675SRob Herring		codec {
35724ba675SRob Herring			sound-dai = <&hdmi>, <&max98090>;
36724ba675SRob Herring		};
37724ba675SRob Herring	};
38724ba675SRob Herring};
39724ba675SRob Herring
40724ba675SRob Herring&hsi2c_5 {
41724ba675SRob Herring	status = "okay";
42724ba675SRob Herring	max98090: audio-codec@10 {
43724ba675SRob Herring		compatible = "maxim,max98090";
44724ba675SRob Herring		reg = <0x10>;
45724ba675SRob Herring		interrupt-parent = <&gpx3>;
46724ba675SRob Herring		interrupts = <2 IRQ_TYPE_NONE>;
47724ba675SRob Herring		clocks = <&i2s0 CLK_I2S_CDCLK>;
48724ba675SRob Herring		clock-names = "mclk";
49724ba675SRob Herring		#sound-dai-cells = <0>;
50724ba675SRob Herring	};
51724ba675SRob Herring};
52724ba675SRob Herring
53724ba675SRob Herring&i2s0 {
54724ba675SRob Herring	status = "okay";
55724ba675SRob Herring	assigned-clocks = <&clock CLK_MOUT_EPLL>,
56724ba675SRob Herring			<&clock CLK_MOUT_MAU_EPLL>,
57724ba675SRob Herring			<&clock CLK_MOUT_USER_MAU_EPLL>,
58724ba675SRob Herring			<&clock_audss EXYNOS_MOUT_AUDSS>,
59724ba675SRob Herring			<&clock_audss EXYNOS_MOUT_I2S>,
60724ba675SRob Herring			<&i2s0 CLK_I2S_RCLK_SRC>,
61724ba675SRob Herring			<&clock_audss EXYNOS_DOUT_SRP>,
62724ba675SRob Herring			<&clock_audss EXYNOS_DOUT_AUD_BUS>,
63724ba675SRob Herring			<&clock_audss EXYNOS_DOUT_I2S>;
64724ba675SRob Herring
65724ba675SRob Herring	assigned-clock-parents = <&clock CLK_FOUT_EPLL>,
66724ba675SRob Herring			<&clock CLK_MOUT_EPLL>,
67724ba675SRob Herring			<&clock CLK_MOUT_MAU_EPLL>,
68724ba675SRob Herring			<&clock CLK_MAU_EPLL>,
69724ba675SRob Herring			<&clock_audss EXYNOS_MOUT_AUDSS>,
70724ba675SRob Herring			<&clock_audss EXYNOS_SCLK_I2S>;
71724ba675SRob Herring
72724ba675SRob Herring	assigned-clock-rates = <0>,
73724ba675SRob Herring			<0>,
74724ba675SRob Herring			<0>,
75724ba675SRob Herring			<0>,
76724ba675SRob Herring			<0>,
77724ba675SRob Herring			<0>,
78724ba675SRob Herring			<196608001>,
79724ba675SRob Herring			<(196608002 / 2)>,
80724ba675SRob Herring			<196608000>;
81724ba675SRob Herring
82724ba675SRob Herring};
83