]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - src/arm64/freescale/fsl-ls1012a-frdm.dts
dts: Update our copy to Linux 4.19
[FreeBSD/FreeBSD.git] / src / arm64 / freescale / fsl-ls1012a-frdm.dts
1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2 /*
3  * Device Tree file for Freescale LS1012A Freedom Board.
4  *
5  * Copyright 2016 Freescale Semiconductor, Inc.
6  *
7  */
8 /dts-v1/;
9
10 #include "fsl-ls1012a.dtsi"
11
12 / {
13         model = "LS1012A Freedom Board";
14         compatible = "fsl,ls1012a-frdm", "fsl,ls1012a";
15
16         sys_mclk: clock-mclk {
17                 compatible = "fixed-clock";
18                 #clock-cells = <0>;
19                 clock-frequency = <25000000>;
20         };
21
22         reg_1p8v: regulator-1p8v {
23                 compatible = "regulator-fixed";
24                 regulator-name = "1P8V";
25                 regulator-min-microvolt = <1800000>;
26                 regulator-max-microvolt = <1800000>;
27                 regulator-always-on;
28         };
29
30         sound {
31                 compatible = "simple-audio-card";
32                 simple-audio-card,format = "i2s";
33                 simple-audio-card,widgets =
34                         "Microphone", "Microphone Jack",
35                         "Headphone", "Headphone Jack",
36                         "Speaker", "Speaker Ext",
37                         "Line", "Line In Jack";
38                 simple-audio-card,routing =
39                         "MIC_IN", "Microphone Jack",
40                         "Microphone Jack", "Mic Bias",
41                         "LINE_IN", "Line In Jack",
42                         "Headphone Jack", "HP_OUT",
43                         "Speaker Ext", "LINE_OUT";
44
45                 simple-audio-card,cpu {
46                         sound-dai = <&sai2>;
47                         frame-master;
48                         bitclock-master;
49                 };
50
51                 simple-audio-card,codec {
52                         sound-dai = <&codec>;
53                         frame-master;
54                         bitclock-master;
55                         system-clock-frequency = <25000000>;
56                 };
57         };
58 };
59
60 &duart0 {
61         status = "okay";
62 };
63
64 &i2c0 {
65         status = "okay";
66
67         codec: sgtl5000@a {
68                 #sound-dai-cells = <0>;
69                 compatible = "fsl,sgtl5000";
70                 reg = <0xa>;
71                 VDDA-supply = <&reg_1p8v>;
72                 VDDIO-supply = <&reg_1p8v>;
73                 clocks = <&sys_mclk>;
74         };
75 };
76
77 &sai2 {
78         status = "okay";
79 };
80
81 &sata {
82         status = "okay";
83 };