17a2aeb91SLi Yang// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2ba321360SHarninder Rai/*
3ba321360SHarninder Rai * Device Tree file for Freescale LS1012A QDS Board.
4ba321360SHarninder Rai *
58637f58bSLi Yang * Copyright 2016 Freescale Semiconductor, Inc.
6ba321360SHarninder Rai *
7ba321360SHarninder Rai */
8ba321360SHarninder Rai/dts-v1/;
9ba321360SHarninder Rai
10ba321360SHarninder Rai#include "fsl-ls1012a.dtsi"
11ba321360SHarninder Rai
12ba321360SHarninder Rai/ {
13ba321360SHarninder Rai	model = "LS1012A QDS Board";
14ba321360SHarninder Rai	compatible = "fsl,ls1012a-qds", "fsl,ls1012a";
15ba321360SHarninder Rai
169c2eb8b7SYangbo Lu	aliases {
179c2eb8b7SYangbo Lu		mmc0 = &esdhc0;
189c2eb8b7SYangbo Lu		mmc1 = &esdhc1;
199c2eb8b7SYangbo Lu	};
209c2eb8b7SYangbo Lu
21ba321360SHarninder Rai	sys_mclk: clock-mclk {
22ba321360SHarninder Rai		compatible = "fixed-clock";
23ba321360SHarninder Rai		#clock-cells = <0>;
24ba321360SHarninder Rai		clock-frequency = <24576000>;
25ba321360SHarninder Rai	};
26ba321360SHarninder Rai
27ba321360SHarninder Rai	reg_3p3v: regulator-3p3v {
28ba321360SHarninder Rai		compatible = "regulator-fixed";
29ba321360SHarninder Rai		regulator-name = "3P3V";
30ba321360SHarninder Rai		regulator-min-microvolt = <3300000>;
31ba321360SHarninder Rai		regulator-max-microvolt = <3300000>;
32ba321360SHarninder Rai		regulator-always-on;
33ba321360SHarninder Rai	};
34ba321360SHarninder Rai
35ba321360SHarninder Rai	sound {
36ba321360SHarninder Rai		compatible = "simple-audio-card";
37ba321360SHarninder Rai		simple-audio-card,format = "i2s";
38ba321360SHarninder Rai		simple-audio-card,widgets =
39ba321360SHarninder Rai			"Microphone", "Microphone Jack",
40ba321360SHarninder Rai			"Headphone", "Headphone Jack",
41ba321360SHarninder Rai			"Speaker", "Speaker Ext",
42ba321360SHarninder Rai			"Line", "Line In Jack";
43ba321360SHarninder Rai		simple-audio-card,routing =
44ba321360SHarninder Rai			"MIC_IN", "Microphone Jack",
45ba321360SHarninder Rai			"Microphone Jack", "Mic Bias",
46ba321360SHarninder Rai			"LINE_IN", "Line In Jack",
47ba321360SHarninder Rai			"Headphone Jack", "HP_OUT",
48ba321360SHarninder Rai			"Speaker Ext", "LINE_OUT";
49ba321360SHarninder Rai
50ba321360SHarninder Rai		simple-audio-card,cpu {
51ba321360SHarninder Rai			sound-dai = <&sai2>;
52ba321360SHarninder Rai			frame-master;
53ba321360SHarninder Rai			bitclock-master;
54ba321360SHarninder Rai		};
55ba321360SHarninder Rai
56ba321360SHarninder Rai		simple-audio-card,codec {
57ba321360SHarninder Rai			sound-dai = <&codec>;
58ba321360SHarninder Rai			frame-master;
59ba321360SHarninder Rai			bitclock-master;
60ba321360SHarninder Rai			system-clock-frequency = <24576000>;
61ba321360SHarninder Rai		};
62ba321360SHarninder Rai	};
63ba321360SHarninder Rai};
64ba321360SHarninder Rai
65519de51cSYuan Yao&dspi {
66519de51cSYuan Yao	bus-num = <0>;
67519de51cSYuan Yao	status = "okay";
68519de51cSYuan Yao
69519de51cSYuan Yao	flash@0 {
70519de51cSYuan Yao		#address-cells = <1>;
71519de51cSYuan Yao		#size-cells = <1>;
72*8c91374bSKrzysztof Kozlowski		compatible = "micron,n25q128a11", "jedec,spi-nor";
73519de51cSYuan Yao		reg = <0>;
74519de51cSYuan Yao		spi-max-frequency = <10000000>;
75519de51cSYuan Yao	};
76519de51cSYuan Yao
77519de51cSYuan Yao	flash@1 {
78519de51cSYuan Yao		#address-cells = <1>;
79519de51cSYuan Yao		#size-cells = <1>;
80519de51cSYuan Yao		compatible = "sst25wf040b", "jedec,spi-nor";
81519de51cSYuan Yao		spi-cpol;
82519de51cSYuan Yao		spi-cpha;
83519de51cSYuan Yao		reg = <1>;
84519de51cSYuan Yao		spi-max-frequency = <10000000>;
85519de51cSYuan Yao	};
86519de51cSYuan Yao
87519de51cSYuan Yao	flash@2 {
88519de51cSYuan Yao		#address-cells = <1>;
89519de51cSYuan Yao		#size-cells = <1>;
90519de51cSYuan Yao		compatible = "en25s64", "jedec,spi-nor";
91519de51cSYuan Yao		spi-cpol;
92519de51cSYuan Yao		spi-cpha;
93519de51cSYuan Yao		reg = <2>;
94519de51cSYuan Yao		spi-max-frequency = <10000000>;
95519de51cSYuan Yao	};
96519de51cSYuan Yao};
97519de51cSYuan Yao
98ba321360SHarninder Rai&duart0 {
99ba321360SHarninder Rai	status = "okay";
100ba321360SHarninder Rai};
101ba321360SHarninder Rai
1020f098701SYangbo Lu&esdhc0 {
1030f098701SYangbo Lu	status = "okay";
1040f098701SYangbo Lu};
1050f098701SYangbo Lu
1060f098701SYangbo Lu&esdhc1 {
1070f098701SYangbo Lu	status = "okay";
1080f098701SYangbo Lu};
1090f098701SYangbo Lu
110ba321360SHarninder Rai&i2c0 {
111ba321360SHarninder Rai	status = "okay";
112ba321360SHarninder Rai
113ba321360SHarninder Rai	pca9547@77 {
114ba321360SHarninder Rai		compatible = "nxp,pca9547";
115ba321360SHarninder Rai		reg = <0x77>;
116ba321360SHarninder Rai		#address-cells = <1>;
117ba321360SHarninder Rai		#size-cells = <0>;
118ba321360SHarninder Rai
119ba321360SHarninder Rai		i2c@4 {
120ba321360SHarninder Rai			#address-cells = <1>;
121ba321360SHarninder Rai			#size-cells = <0>;
122ba321360SHarninder Rai			reg = <0x4>;
123ba321360SHarninder Rai
124ba321360SHarninder Rai			codec: sgtl5000@a {
125ba321360SHarninder Rai				#sound-dai-cells = <0>;
126ba321360SHarninder Rai				compatible = "fsl,sgtl5000";
127ba321360SHarninder Rai				reg = <0xa>;
128ba321360SHarninder Rai				VDDA-supply = <&reg_3p3v>;
129ba321360SHarninder Rai				VDDIO-supply = <&reg_3p3v>;
130ba321360SHarninder Rai				clocks = <&sys_mclk>;
131ba321360SHarninder Rai			};
132ba321360SHarninder Rai		};
133ba321360SHarninder Rai	};
134ba321360SHarninder Rai};
135ba321360SHarninder Rai
136f5ac5ac1SKuldeep Singh&qspi {
137f5ac5ac1SKuldeep Singh	status = "okay";
138f5ac5ac1SKuldeep Singh
139f5ac5ac1SKuldeep Singh	s25fs512s0: flash@0 {
140f5ac5ac1SKuldeep Singh		compatible = "jedec,spi-nor";
141f5ac5ac1SKuldeep Singh		#address-cells = <1>;
142f5ac5ac1SKuldeep Singh		#size-cells = <1>;
143f5ac5ac1SKuldeep Singh		spi-max-frequency = <50000000>;
144f5ac5ac1SKuldeep Singh		m25p,fast-read;
145f5ac5ac1SKuldeep Singh		reg = <0>;
146f5ac5ac1SKuldeep Singh		spi-rx-bus-width = <2>;
147f5ac5ac1SKuldeep Singh		spi-tx-bus-width = <2>;
148f5ac5ac1SKuldeep Singh	};
149f5ac5ac1SKuldeep Singh};
150f5ac5ac1SKuldeep Singh
151ba321360SHarninder Rai&sai2 {
152ba321360SHarninder Rai	status = "okay";
153ba321360SHarninder Rai};
154427700a7SYuantian Tang
155427700a7SYuantian Tang&sata {
156427700a7SYuantian Tang	status = "okay";
157427700a7SYuantian Tang};
158