xref: /freebsd/sys/contrib/device-tree/src/arm64/freescale/fsl-ls1012a-qds.dts (revision 8bab661a3316d8bd9b9fbd11a3b4371b91507bd2)
1// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2/*
3 * Device Tree file for Freescale LS1012A QDS Board.
4 *
5 * Copyright 2016 Freescale Semiconductor, Inc.
6 *
7 */
8/dts-v1/;
9
10#include "fsl-ls1012a.dtsi"
11
12/ {
13	model = "LS1012A QDS Board";
14	compatible = "fsl,ls1012a-qds", "fsl,ls1012a";
15
16	aliases {
17		mmc0 = &esdhc0;
18		mmc1 = &esdhc1;
19	};
20
21	sys_mclk: clock-mclk {
22		compatible = "fixed-clock";
23		#clock-cells = <0>;
24		clock-frequency = <24576000>;
25	};
26
27	reg_3p3v: regulator-3p3v {
28		compatible = "regulator-fixed";
29		regulator-name = "3P3V";
30		regulator-min-microvolt = <3300000>;
31		regulator-max-microvolt = <3300000>;
32		regulator-always-on;
33	};
34
35	sound {
36		compatible = "simple-audio-card";
37		simple-audio-card,format = "i2s";
38		simple-audio-card,widgets =
39			"Microphone", "Microphone Jack",
40			"Headphone", "Headphone Jack",
41			"Speaker", "Speaker Ext",
42			"Line", "Line In Jack";
43		simple-audio-card,routing =
44			"MIC_IN", "Microphone Jack",
45			"Microphone Jack", "Mic Bias",
46			"LINE_IN", "Line In Jack",
47			"Headphone Jack", "HP_OUT",
48			"Speaker Ext", "LINE_OUT";
49
50		simple-audio-card,cpu {
51			sound-dai = <&sai2>;
52			frame-master;
53			bitclock-master;
54		};
55
56		simple-audio-card,codec {
57			sound-dai = <&codec>;
58			frame-master;
59			bitclock-master;
60			system-clock-frequency = <24576000>;
61		};
62	};
63};
64
65&dspi {
66	bus-num = <0>;
67	status = "okay";
68
69	flash@0 {
70		#address-cells = <1>;
71		#size-cells = <1>;
72		compatible = "micron,n25q128a11", "jedec,spi-nor";
73		reg = <0>;
74		spi-max-frequency = <10000000>;
75	};
76
77	flash@1 {
78		#address-cells = <1>;
79		#size-cells = <1>;
80		compatible = "sst25wf040b", "jedec,spi-nor";
81		spi-cpol;
82		spi-cpha;
83		reg = <1>;
84		spi-max-frequency = <10000000>;
85	};
86
87	flash@2 {
88		#address-cells = <1>;
89		#size-cells = <1>;
90		compatible = "en25s64", "jedec,spi-nor";
91		spi-cpol;
92		spi-cpha;
93		reg = <2>;
94		spi-max-frequency = <10000000>;
95	};
96};
97
98&duart0 {
99	status = "okay";
100};
101
102&esdhc0 {
103	status = "okay";
104};
105
106&esdhc1 {
107	status = "okay";
108};
109
110&i2c0 {
111	status = "okay";
112
113	i2c-mux@77 {
114		compatible = "nxp,pca9547";
115		reg = <0x77>;
116		#address-cells = <1>;
117		#size-cells = <0>;
118
119		i2c@4 {
120			#address-cells = <1>;
121			#size-cells = <0>;
122			reg = <0x4>;
123
124			codec: sgtl5000@a {
125				#sound-dai-cells = <0>;
126				compatible = "fsl,sgtl5000";
127				reg = <0xa>;
128				VDDA-supply = <&reg_3p3v>;
129				VDDIO-supply = <&reg_3p3v>;
130				clocks = <&sys_mclk>;
131			};
132		};
133	};
134};
135
136&qspi {
137	status = "okay";
138
139	s25fs512s0: flash@0 {
140		compatible = "jedec,spi-nor";
141		#address-cells = <1>;
142		#size-cells = <1>;
143		spi-max-frequency = <50000000>;
144		m25p,fast-read;
145		reg = <0>;
146		spi-rx-bus-width = <2>;
147		spi-tx-bus-width = <2>;
148	};
149};
150
151&sai2 {
152	status = "okay";
153};
154
155&sata {
156	status = "okay";
157};
158