1/*
2 * Hardkernel Odroid XU3 Audio Codec device tree source
3 *
4 * Copyright (c) 2015 Krzysztof Kozlowski
5 * Copyright (c) 2014 Collabora Ltd.
6 * Copyright (c) 2013 Samsung Electronics Co., Ltd.
7 *		http://www.samsung.com
8 *
9 * This program is free software; you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License version 2 as
11 * published by the Free Software Foundation.
12*/
13
14/ {
15	sound: sound {
16		compatible = "simple-audio-card";
17
18		simple-audio-card,name = "Odroid-XU3";
19		simple-audio-card,widgets =
20			"Headphone", "Headphone Jack",
21			"Speakers", "Speakers";
22		simple-audio-card,routing =
23			"Headphone Jack", "HPL",
24			"Headphone Jack", "HPR",
25			"Headphone Jack", "MICBIAS",
26			"IN1", "Headphone Jack",
27			"Speakers", "SPKL",
28			"Speakers", "SPKR";
29
30		simple-audio-card,format = "i2s";
31		simple-audio-card,bitclock-master = <&link0_codec>;
32		simple-audio-card,frame-master = <&link0_codec>;
33
34		simple-audio-card,cpu {
35			sound-dai = <&i2s0 0>;
36			system-clock-frequency = <19200000>;
37		};
38
39		link0_codec: simple-audio-card,codec {
40			sound-dai = <&max98090>;
41			clocks = <&i2s0 CLK_I2S_CDCLK>;
42		};
43	};
44};
45
46&hsi2c_5 {
47	status = "okay";
48	max98090: max98090@10 {
49		compatible = "maxim,max98090";
50		reg = <0x10>;
51		interrupt-parent = <&gpx3>;
52		interrupts = <2 0>;
53		clocks = <&i2s0 CLK_I2S_CDCLK>;
54		clock-names = "mclk";
55		#sound-dai-cells = <0>;
56	};
57};
58
59&i2s0 {
60	status = "okay";
61};
62