Linux-libre 5.3.12-gnu
[librecmc/linux-libre.git] / arch / arm64 / boot / dts / freescale / fsl-ls1028a-qds.dts
1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2 /*
3  * Device Tree file for NXP LS1028A QDS Board.
4  *
5  * Copyright 2018 NXP
6  *
7  * Harninder Rai <harninder.rai@nxp.com>
8  *
9  */
10
11 /dts-v1/;
12
13 #include "fsl-ls1028a.dtsi"
14
15 / {
16         model = "LS1028A QDS Board";
17         compatible = "fsl,ls1028a-qds", "fsl,ls1028a";
18
19         aliases {
20                 crypto = &crypto;
21                 gpio0 = &gpio1;
22                 gpio1 = &gpio2;
23                 gpio2 = &gpio3;
24                 serial0 = &duart0;
25                 serial1 = &duart1;
26         };
27
28         chosen {
29                 stdout-path = "serial0:115200n8";
30         };
31
32         memory@80000000 {
33                 device_type = "memory";
34                 reg = <0x0 0x80000000 0x1 0x00000000>;
35         };
36
37         sys_mclk: clock-mclk {
38                 compatible = "fixed-clock";
39                 #clock-cells = <0>;
40                 clock-frequency = <25000000>;
41         };
42
43         reg_1p8v: regulator-1p8v {
44                 compatible = "regulator-fixed";
45                 regulator-name = "1P8V";
46                 regulator-min-microvolt = <1800000>;
47                 regulator-max-microvolt = <1800000>;
48                 regulator-always-on;
49         };
50
51         sb_3v3: regulator-sb3v3 {
52                 compatible = "regulator-fixed";
53                 regulator-name = "3v3_vbus";
54                 regulator-min-microvolt = <3300000>;
55                 regulator-max-microvolt = <3300000>;
56                 regulator-boot-on;
57                 regulator-always-on;
58         };
59
60         sound {
61                 compatible = "simple-audio-card";
62                 simple-audio-card,format = "i2s";
63                 simple-audio-card,widgets =
64                         "Microphone", "Microphone Jack",
65                         "Headphone", "Headphone Jack",
66                         "Speaker", "Speaker Ext",
67                         "Line", "Line In Jack";
68                 simple-audio-card,routing =
69                         "MIC_IN", "Microphone Jack",
70                         "Microphone Jack", "Mic Bias",
71                         "LINE_IN", "Line In Jack",
72                         "Headphone Jack", "HP_OUT",
73                         "Speaker Ext", "LINE_OUT";
74
75                 simple-audio-card,cpu {
76                         sound-dai = <&sai1>;
77                         frame-master;
78                         bitclock-master;
79                 };
80
81                 simple-audio-card,codec {
82                         sound-dai = <&sgtl5000>;
83                         frame-master;
84                         bitclock-master;
85                         system-clock-frequency = <25000000>;
86                 };
87         };
88 };
89
90 &duart0 {
91         status = "okay";
92 };
93
94 &duart1 {
95         status = "okay";
96 };
97
98 &i2c0 {
99         status = "okay";
100
101         i2c-mux@77 {
102                 compatible = "nxp,pca9847";
103                 reg = <0x77>;
104                 #address-cells = <1>;
105                 #size-cells = <0>;
106
107                 i2c@2 {
108                         #address-cells = <1>;
109                         #size-cells = <0>;
110                         reg = <0x2>;
111
112                         current-monitor@40 {
113                                 compatible = "ti,ina220";
114                                 reg = <0x40>;
115                                 shunt-resistor = <1000>;
116                         };
117
118                         current-monitor@41 {
119                                 compatible = "ti,ina220";
120                                 reg = <0x41>;
121                                 shunt-resistor = <1000>;
122                         };
123                 };
124
125                 i2c@3 {
126                         #address-cells = <1>;
127                         #size-cells = <0>;
128                         reg = <0x3>;
129
130                         temperature-sensor@4c {
131                                 compatible = "nxp,sa56004";
132                                 reg = <0x4c>;
133                                 vcc-supply = <&sb_3v3>;
134                         };
135
136                         rtc@51 {
137                                 compatible = "nxp,pcf2129";
138                                 reg = <0x51>;
139                         };
140
141                         eeprom@56 {
142                                 compatible = "atmel,24c512";
143                                 reg = <0x56>;
144                         };
145
146                         eeprom@57 {
147                                 compatible = "atmel,24c512";
148                                 reg = <0x57>;
149                         };
150                 };
151
152                 i2c@5 {
153                         #address-cells = <1>;
154                         #size-cells = <0>;
155                         reg = <0x5>;
156
157                         sgtl5000: audio-codec@a {
158                                 #sound-dai-cells = <0>;
159                                 compatible = "fsl,sgtl5000";
160                                 reg = <0xa>;
161                                 VDDA-supply = <&reg_1p8v>;
162                                 VDDIO-supply = <&reg_1p8v>;
163                                 clocks = <&sys_mclk>;
164                         };
165                 };
166         };
167 };
168
169 &sai1 {
170         status = "okay";
171 };
172
173 &sata {
174         status = "okay";
175 };