Blame view

arch/arm64/boot/dts/freescale/fsl-imx8qxp-lpddr4-arm2-spdif.dts 1.28 KB
81f7e3824   Eric Lee   Initial Release, ...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
  /*
   * Copyright 2017 NXP
   *
   * This program is free software; you can redistribute it and/or
   * modify it under the terms of the GNU General Public License
   * as published by the Free Software Foundation; either version 2
   * of the License, or (at your option) any later version.
   *
   * This program is distributed in the hope that it will be useful,
   * but WITHOUT ANY WARRANTY; without even the implied warranty of
   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   * GNU General Public License for more details.
   */
  
  #include "fsl-imx8qxp-lpddr4-arm2.dts"
  
  / {
  
  	sound-cs42888 {
  		status = "disabled";
  	};
  
  	sound-spdif {
  		compatible = "fsl,imx-audio-spdif";
  		model = "imx-spdif";
  		spdif-controller = <&spdif0>;
  		spdif-in;
  		spdif-out;
  	};
  };
  
  &iomuxc {
  
  	imx8qxp-arm2 {
  
  		pinctrl_spdif0: spdif0grp {
  			fsl,pins = <
  				SC_P_SPDIF0_TX_ADMA_SPDIF0_TX	0xc6000040
  				SC_P_SPDIF0_RX_ADMA_SPDIF0_RX	0xc6000040
  			>;
  		};
  
  	};
  };
  
  &esai0 {
  	status = "disabled";
  };
  
  &spdif0 {
  	compatible = "fsl,imx8qm-spdif";
  	pinctrl-names = "default";
  	pinctrl-0 = <&pinctrl_spdif0>;
  	assigned-clocks = <&clk IMX8QXP_AUD_PLL0_DIV>,
  			<&clk IMX8QXP_AUD_ACM_AUD_PLL_CLK0_DIV>,
  			<&clk IMX8QXP_AUD_ACM_AUD_REC_CLK0_DIV>;
  	assigned-clock-rates = <786432000>, <49152000>, <24576000>;
  	status = "okay";
  };