xref: /linux/arch/arm64/boot/dts/freescale/fsl-ls1012a-frdm.dts (revision e2be04c7f9958dde770eeb8b30e829ca969b37bb)
1/*
2 * Device Tree file for Freescale LS1012A Freedom Board.
3 *
4 * Copyright 2016 Freescale Semiconductor, Inc.
5 *
6 * This file is dual-licensed: you can use it either under the terms
7 * of the GPLv2 or the X11 license, at your option. Note that this dual
8 * licensing only applies to this file, and not this project as a
9 * whole.
10 *
11 *  a) This library is free software; you can redistribute it and/or
12 *     modify it under the terms of the GNU General Public License as
13 *     published by the Free Software Foundation; either version 2 of the
14 *     License, or (at your option) any later version.
15 *
16 *     This library is distributed in the hope that it will be useful,
17 *     but WITHOUT ANY WARRANTY; without even the implied warranty of
18 *     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19 *     GNU General Public License for more details.
20 *
21 * Or, alternatively,
22 *
23 *  b) Permission is hereby granted, free of charge, to any person
24 *     obtaining a copy of this software and associated documentation
25 *     files (the "Software"), to deal in the Software without
26 *     restriction, including without limitation the rights to use,
27 *     copy, modify, merge, publish, distribute, sublicense, and/or
28 *     sell copies of the Software, and to permit persons to whom the
29 *     Software is furnished to do so, subject to the following
30 *     conditions:
31 *
32 *     The above copyright notice and this permission notice shall be
33 *     included in all copies or substantial portions of the Software.
34 *
35 *     THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
36 *     EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
37 *     OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
38 *     NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
39 *     HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
40 *     WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
41 *     FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
42 *     OTHER DEALINGS IN THE SOFTWARE.
43 */
44/dts-v1/;
45
46#include "fsl-ls1012a.dtsi"
47
48/ {
49	model = "LS1012A Freedom Board";
50	compatible = "fsl,ls1012a-frdm", "fsl,ls1012a";
51
52	sys_mclk: clock-mclk {
53		compatible = "fixed-clock";
54		#clock-cells = <0>;
55		clock-frequency = <25000000>;
56	};
57
58	reg_1p8v: regulator-1p8v {
59		compatible = "regulator-fixed";
60		regulator-name = "1P8V";
61		regulator-min-microvolt = <1800000>;
62		regulator-max-microvolt = <1800000>;
63		regulator-always-on;
64	};
65
66	sound {
67		compatible = "simple-audio-card";
68		simple-audio-card,format = "i2s";
69		simple-audio-card,widgets =
70			"Microphone", "Microphone Jack",
71			"Headphone", "Headphone Jack",
72			"Speaker", "Speaker Ext",
73			"Line", "Line In Jack";
74		simple-audio-card,routing =
75			"MIC_IN", "Microphone Jack",
76			"Microphone Jack", "Mic Bias",
77			"LINE_IN", "Line In Jack",
78			"Headphone Jack", "HP_OUT",
79			"Speaker Ext", "LINE_OUT";
80
81		simple-audio-card,cpu {
82			sound-dai = <&sai2>;
83			frame-master;
84			bitclock-master;
85		};
86
87		simple-audio-card,codec {
88			sound-dai = <&codec>;
89			frame-master;
90			bitclock-master;
91			system-clock-frequency = <25000000>;
92		};
93	};
94};
95
96&duart0 {
97	status = "okay";
98};
99
100&i2c0 {
101	status = "okay";
102
103	codec: sgtl5000@a {
104		#sound-dai-cells = <0>;
105		compatible = "fsl,sgtl5000";
106		reg = <0xa>;
107		VDDA-supply = <&reg_1p8v>;
108		VDDIO-supply = <&reg_1p8v>;
109		clocks = <&sys_mclk>;
110	};
111};
112
113&sai2 {
114	status = "okay";
115};
116
117&sata {
118	status = "okay";
119};
120