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