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