]>
Commit | Line | Data |
---|---|---|
8897f325 BU |
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 | gpio0 = &gpio1; | |
21 | gpio1 = &gpio2; | |
22 | gpio2 = &gpio3; | |
23 | serial0 = &duart0; | |
24 | serial1 = &duart1; | |
25 | }; | |
26 | ||
27 | chosen { | |
28 | stdout-path = "serial0:115200n8"; | |
29 | }; | |
30 | ||
31 | memory@80000000 { | |
32 | device_type = "memory"; | |
33 | reg = <0x0 0x80000000 0x1 0x00000000>; | |
34 | }; | |
f54f7be5 AW |
35 | |
36 | sys_mclk: clock-mclk { | |
37 | compatible = "fixed-clock"; | |
38 | #clock-cells = <0>; | |
39 | clock-frequency = <25000000>; | |
40 | }; | |
41 | ||
42 | reg_1p8v: regulator-1p8v { | |
43 | compatible = "regulator-fixed"; | |
44 | regulator-name = "1P8V"; | |
45 | regulator-min-microvolt = <1800000>; | |
46 | regulator-max-microvolt = <1800000>; | |
47 | regulator-always-on; | |
48 | }; | |
49 | ||
50 | sound { | |
51 | compatible = "simple-audio-card"; | |
52 | simple-audio-card,format = "i2s"; | |
53 | simple-audio-card,widgets = | |
54 | "Microphone", "Microphone Jack", | |
55 | "Headphone", "Headphone Jack", | |
56 | "Speaker", "Speaker Ext", | |
57 | "Line", "Line In Jack"; | |
58 | simple-audio-card,routing = | |
59 | "MIC_IN", "Microphone Jack", | |
60 | "Microphone Jack", "Mic Bias", | |
61 | "LINE_IN", "Line In Jack", | |
62 | "Headphone Jack", "HP_OUT", | |
63 | "Speaker Ext", "LINE_OUT"; | |
64 | ||
65 | simple-audio-card,cpu { | |
66 | sound-dai = <&sai1>; | |
67 | frame-master; | |
68 | bitclock-master; | |
69 | }; | |
70 | ||
71 | simple-audio-card,codec { | |
72 | sound-dai = <&sgtl5000>; | |
73 | frame-master; | |
74 | bitclock-master; | |
75 | system-clock-frequency = <25000000>; | |
76 | }; | |
77 | }; | |
8897f325 BU |
78 | }; |
79 | ||
80 | &duart0 { | |
81 | status = "okay"; | |
82 | }; | |
83 | ||
84 | &duart1 { | |
85 | status = "okay"; | |
86 | }; | |
87 | ||
88 | &i2c0 { | |
89 | status = "okay"; | |
90 | ||
91 | i2c-mux@77 { | |
92 | compatible = "nxp,pca9847"; | |
93 | reg = <0x77>; | |
94 | #address-cells = <1>; | |
95 | #size-cells = <0>; | |
96 | ||
97 | i2c@2 { | |
98 | #address-cells = <1>; | |
99 | #size-cells = <0>; | |
100 | reg = <0x2>; | |
101 | ||
102 | current-monitor@40 { | |
103 | compatible = "ti,ina220"; | |
104 | reg = <0x40>; | |
105 | shunt-resistor = <1000>; | |
106 | }; | |
107 | ||
108 | current-monitor@41 { | |
109 | compatible = "ti,ina220"; | |
110 | reg = <0x41>; | |
111 | shunt-resistor = <1000>; | |
112 | }; | |
113 | }; | |
114 | ||
115 | i2c@3 { | |
116 | #address-cells = <1>; | |
117 | #size-cells = <0>; | |
118 | reg = <0x3>; | |
119 | ||
120 | rtc@51 { | |
121 | compatible = "nxp,pcf2129"; | |
122 | reg = <0x51>; | |
123 | }; | |
124 | ||
125 | eeprom@56 { | |
126 | compatible = "atmel,24c512"; | |
127 | reg = <0x56>; | |
128 | }; | |
129 | ||
130 | eeprom@57 { | |
131 | compatible = "atmel,24c512"; | |
132 | reg = <0x57>; | |
133 | }; | |
134 | }; | |
f54f7be5 AW |
135 | |
136 | i2c@5 { | |
137 | #address-cells = <1>; | |
138 | #size-cells = <0>; | |
139 | reg = <0x5>; | |
140 | ||
141 | sgtl5000: audio-codec@a { | |
142 | #sound-dai-cells = <0>; | |
143 | compatible = "fsl,sgtl5000"; | |
144 | reg = <0xa>; | |
145 | VDDA-supply = <®_1p8v>; | |
146 | VDDIO-supply = <®_1p8v>; | |
147 | clocks = <&sys_mclk>; | |
148 | }; | |
149 | }; | |
8897f325 BU |
150 | }; |
151 | }; | |
f54f7be5 AW |
152 | |
153 | &sai1 { | |
154 | status = "okay"; | |
155 | }; |