xref: /linux/scripts/dtc/include-prefixes/arm/samsung/exynos5422-odroidxu3-audio.dtsi (revision 724ba6751532055db75992fc6ae21c3e322e94a7)
1*724ba675SRob Herring// SPDX-License-Identifier: GPL-2.0
2*724ba675SRob Herring/*
3*724ba675SRob Herring * Hardkernel Odroid XU3 audio subsystem device tree source
4*724ba675SRob Herring *
5*724ba675SRob Herring * Copyright (c) 2015 Krzysztof Kozlowski
6*724ba675SRob Herring * Copyright (c) 2014 Collabora Ltd.
7*724ba675SRob Herring * Copyright (c) 2013 Samsung Electronics Co., Ltd.
8*724ba675SRob Herring *		http://www.samsung.com
9*724ba675SRob Herring */
10*724ba675SRob Herring
11*724ba675SRob Herring#include <dt-bindings/sound/samsung-i2s.h>
12*724ba675SRob Herring
13*724ba675SRob Herring/ {
14*724ba675SRob Herring	sound: sound {
15*724ba675SRob Herring		compatible = "samsung,odroid-xu3-audio";
16*724ba675SRob Herring		model = "Odroid-XU3";
17*724ba675SRob Herring
18*724ba675SRob Herring		samsung,audio-widgets =
19*724ba675SRob Herring			"Headphone", "Headphone Jack",
20*724ba675SRob Herring			"Speakers", "Speakers";
21*724ba675SRob Herring		samsung,audio-routing =
22*724ba675SRob Herring			"Headphone Jack", "HPL",
23*724ba675SRob Herring			"Headphone Jack", "HPR",
24*724ba675SRob Herring			"Headphone Jack", "MICBIAS",
25*724ba675SRob Herring			"IN12", "Headphone Jack",
26*724ba675SRob Herring			"Speakers", "SPKL",
27*724ba675SRob Herring			"Speakers", "SPKR",
28*724ba675SRob Herring			"I2S Playback", "Mixer DAI TX",
29*724ba675SRob Herring			"HiFi Playback", "Mixer DAI TX",
30*724ba675SRob Herring			"Mixer DAI RX", "HiFi Capture";
31*724ba675SRob Herring
32*724ba675SRob Herring		cpu {
33*724ba675SRob Herring			sound-dai = <&i2s0 0>, <&i2s0 1>;
34*724ba675SRob Herring		};
35*724ba675SRob Herring		codec {
36*724ba675SRob Herring			sound-dai = <&hdmi>, <&max98090>;
37*724ba675SRob Herring		};
38*724ba675SRob Herring	};
39*724ba675SRob Herring};
40*724ba675SRob Herring
41*724ba675SRob Herring&hsi2c_5 {
42*724ba675SRob Herring	status = "okay";
43*724ba675SRob Herring	max98090: audio-codec@10 {
44*724ba675SRob Herring		compatible = "maxim,max98090";
45*724ba675SRob Herring		reg = <0x10>;
46*724ba675SRob Herring		interrupt-parent = <&gpx3>;
47*724ba675SRob Herring		interrupts = <2 IRQ_TYPE_NONE>;
48*724ba675SRob Herring		clocks = <&i2s0 CLK_I2S_CDCLK>;
49*724ba675SRob Herring		clock-names = "mclk";
50*724ba675SRob Herring		#sound-dai-cells = <0>;
51*724ba675SRob Herring	};
52*724ba675SRob Herring};
53*724ba675SRob Herring
54*724ba675SRob Herring&i2s0 {
55*724ba675SRob Herring	status = "okay";
56*724ba675SRob Herring	assigned-clocks = <&clock CLK_MOUT_EPLL>,
57*724ba675SRob Herring			<&clock CLK_MOUT_MAU_EPLL>,
58*724ba675SRob Herring			<&clock CLK_MOUT_USER_MAU_EPLL>,
59*724ba675SRob Herring			<&clock_audss EXYNOS_MOUT_AUDSS>,
60*724ba675SRob Herring			<&clock_audss EXYNOS_MOUT_I2S>,
61*724ba675SRob Herring			<&i2s0 CLK_I2S_RCLK_SRC>,
62*724ba675SRob Herring			<&clock_audss EXYNOS_DOUT_SRP>,
63*724ba675SRob Herring			<&clock_audss EXYNOS_DOUT_AUD_BUS>,
64*724ba675SRob Herring			<&clock_audss EXYNOS_DOUT_I2S>;
65*724ba675SRob Herring
66*724ba675SRob Herring	assigned-clock-parents = <&clock CLK_FOUT_EPLL>,
67*724ba675SRob Herring			<&clock CLK_MOUT_EPLL>,
68*724ba675SRob Herring			<&clock CLK_MOUT_MAU_EPLL>,
69*724ba675SRob Herring			<&clock CLK_MAU_EPLL>,
70*724ba675SRob Herring			<&clock_audss EXYNOS_MOUT_AUDSS>,
71*724ba675SRob Herring			<&clock_audss EXYNOS_SCLK_I2S>;
72*724ba675SRob Herring
73*724ba675SRob Herring	assigned-clock-rates = <0>,
74*724ba675SRob Herring			<0>,
75*724ba675SRob Herring			<0>,
76*724ba675SRob Herring			<0>,
77*724ba675SRob Herring			<0>,
78*724ba675SRob Herring			<0>,
79*724ba675SRob Herring			<196608001>,
80*724ba675SRob Herring			<(196608002 / 2)>,
81*724ba675SRob Herring			<196608000>;
82*724ba675SRob Herring
83*724ba675SRob Herring};
84