xref: /linux/arch/arm64/boot/dts/freescale/fsl-ls1028a-rdb.dts (revision e8a1d70117116c8d96c266f0b99e931717670eaf)
1// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2/*
3 * Device Tree file for NXP LS1028A RDB Board.
4 *
5 * Copyright 2018 NXP
6 *
7 * Harninder Rai <harninder.rai@nxp.com>
8 *
9 */
10
11/dts-v1/;
12#include "fsl-ls1028a.dtsi"
13
14/ {
15	model = "LS1028A RDB Board";
16	compatible = "fsl,ls1028a-rdb", "fsl,ls1028a";
17
18	aliases {
19		serial0 = &duart0;
20		serial1 = &duart1;
21	};
22
23	chosen {
24		stdout-path = "serial0:115200n8";
25	};
26
27	memory@80000000 {
28		device_type = "memory";
29		reg = <0x0 0x80000000 0x1 0x0000000>;
30	};
31
32	sys_mclk: clock-mclk {
33		compatible = "fixed-clock";
34		#clock-cells = <0>;
35		clock-frequency = <25000000>;
36	};
37
38	reg_1p8v: regulator-1p8v {
39		compatible = "regulator-fixed";
40		regulator-name = "1P8V";
41		regulator-min-microvolt = <1800000>;
42		regulator-max-microvolt = <1800000>;
43		regulator-always-on;
44	};
45
46	sound {
47		compatible = "simple-audio-card";
48		simple-audio-card,format = "i2s";
49		simple-audio-card,widgets =
50			"Microphone", "Microphone Jack",
51			"Headphone", "Headphone Jack",
52			"Speaker", "Speaker Ext",
53			"Line", "Line In Jack";
54		simple-audio-card,routing =
55			"MIC_IN", "Microphone Jack",
56			"Microphone Jack", "Mic Bias",
57			"LINE_IN", "Line In Jack",
58			"Headphone Jack", "HP_OUT",
59			"Speaker Ext", "LINE_OUT";
60
61		simple-audio-card,cpu {
62			sound-dai = <&sai4>;
63			frame-master;
64			bitclock-master;
65		};
66
67		simple-audio-card,codec {
68			sound-dai = <&sgtl5000>;
69			frame-master;
70			bitclock-master;
71			system-clock-frequency = <25000000>;
72		};
73	};
74};
75
76&i2c0 {
77	status = "okay";
78
79	i2c-mux@77 {
80		compatible = "nxp,pca9847";
81		reg = <0x77>;
82		#address-cells = <1>;
83		#size-cells = <0>;
84
85		i2c@1 {
86			#address-cells = <1>;
87			#size-cells = <0>;
88			reg = <0x1>;
89
90			sgtl5000: audio-codec@a {
91				#sound-dai-cells = <0>;
92				compatible = "fsl,sgtl5000";
93				reg = <0xa>;
94				VDDA-supply = <&reg_1p8v>;
95				VDDIO-supply = <&reg_1p8v>;
96				clocks = <&sys_mclk>;
97				sclk-strength = <3>;
98			};
99		};
100
101		i2c@2 {
102			#address-cells = <1>;
103			#size-cells = <0>;
104			reg = <0x02>;
105
106			current-monitor@40 {
107				compatible = "ti,ina220";
108				reg = <0x40>;
109				shunt-resistor = <500>;
110			};
111		};
112
113		i2c@3 {
114			#address-cells = <1>;
115			#size-cells = <0>;
116			reg = <0x3>;
117
118			rtc@51 {
119				compatible = "nxp,pcf2129";
120				reg = <0x51>;
121			};
122		};
123	};
124};
125
126&duart0 {
127	status = "okay";
128};
129
130&duart1 {
131	status = "okay";
132};
133
134&enetc_port0 {
135	phy-handle = <&sgmii_phy0>;
136	phy-connection-type = "sgmii";
137
138	mdio {
139		#address-cells = <1>;
140		#size-cells = <0>;
141		sgmii_phy0: ethernet-phy@2 {
142			reg = <0x2>;
143		};
144	};
145};
146
147&enetc_port1 {
148	status = "disabled";
149};
150
151&sai4 {
152	status = "okay";
153};
154