xref: /linux/arch/arm64/boot/dts/freescale/fsl-ls1012a-frdm.dts (revision 55d0969c451159cff86949b38c39171cab962069)
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 <dt-bindings/interrupt-controller/irq.h>
11#include "fsl-ls1012a.dtsi"
12
13/ {
14	model = "LS1012A Freedom Board";
15	compatible = "fsl,ls1012a-frdm", "fsl,ls1012a";
16
17	sys_mclk: clock-mclk {
18		compatible = "fixed-clock";
19		#clock-cells = <0>;
20		clock-frequency = <25000000>;
21	};
22
23	sc16is7xx_clk: clock-sc16is7xx {
24		compatible = "fixed-clock";
25		#clock-cells = <0>;
26		clock-frequency = <24000000>;
27	};
28
29	reg_1p8v: regulator-1p8v {
30		compatible = "regulator-fixed";
31		regulator-name = "1P8V";
32		regulator-min-microvolt = <1800000>;
33		regulator-max-microvolt = <1800000>;
34		regulator-always-on;
35	};
36
37	sound {
38		compatible = "simple-audio-card";
39		simple-audio-card,format = "i2s";
40		simple-audio-card,widgets =
41			"Microphone", "Microphone Jack",
42			"Headphone", "Headphone Jack",
43			"Speaker", "Speaker Ext",
44			"Line", "Line In Jack";
45		simple-audio-card,routing =
46			"MIC_IN", "Microphone Jack",
47			"Microphone Jack", "Mic Bias",
48			"LINE_IN", "Line In Jack",
49			"Headphone Jack", "HP_OUT",
50			"Speaker Ext", "LINE_OUT";
51
52		simple-audio-card,cpu {
53			sound-dai = <&sai2>;
54			frame-master;
55			bitclock-master;
56		};
57
58		simple-audio-card,codec {
59			sound-dai = <&codec>;
60			frame-master;
61			bitclock-master;
62			system-clock-frequency = <25000000>;
63		};
64	};
65};
66
67&dspi {
68	bus-num = <0>;
69	status = "okay";
70
71	serial@0 {
72		compatible = "nxp,sc16is740";
73		reg = <0>;
74		spi-max-frequency = <4000000>;
75		clocks = <&sc16is7xx_clk>;
76		interrupt-parent = <&gpio1>;
77		interrupts = <13 IRQ_TYPE_EDGE_FALLING>;
78	};
79};
80
81&duart0 {
82	status = "okay";
83};
84
85&i2c0 {
86	status = "okay";
87
88	codec: sgtl5000@a {
89		#sound-dai-cells = <0>;
90		compatible = "fsl,sgtl5000";
91		reg = <0xa>;
92		VDDA-supply = <&reg_1p8v>;
93		VDDIO-supply = <&reg_1p8v>;
94		clocks = <&sys_mclk>;
95	};
96};
97
98&qspi {
99	status = "okay";
100
101	s25fs512s0: flash@0 {
102		compatible = "jedec,spi-nor";
103		#address-cells = <1>;
104		#size-cells = <1>;
105		spi-max-frequency = <50000000>;
106		m25p,fast-read;
107		reg = <0>;
108		spi-rx-bus-width = <2>;
109		spi-tx-bus-width = <2>;
110	};
111};
112
113&sai2 {
114	status = "okay";
115};
116
117&sata {
118	status = "okay";
119};
120