Debian Codegraph @

arch/arm64/boot/dts/amlogic/meson-s4-s805x2-aq222.dts

raw
1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2 /*
3 * Copyright (c) 2021 Amlogic, Inc. All rights reserved.
4 */
5
6 /dts-v1/;
7
8 #include "meson-s4.dtsi"
9
10 / {
11 model = "Amlogic Meson S4 AQ222 Development Board";
12 compatible = "amlogic,aq222", "amlogic,s805x2", "amlogic,s4";
13 interrupt-parent = <&gic>;
14 #address-cells = <2>;
15 #size-cells = <2>;
16
17 aliases {
18 serial0 = &uart_b;
19 };
20
21 memory@0 {
22 device_type = "memory";
23 reg = <0x0 0x0 0x0 0x40000000>;
24 };
25
26 reserved-memory {
27 #address-cells = <2>;
28 #size-cells = <2>;
29 ranges;
30
31 /* 52 MiB reserved for ARM Trusted Firmware */
32 secmon_reserved: secmon@5000000 {
33 reg = <0x0 0x05000000 0x0 0x3400000>;
34 no-map;
35 };
36 };
37
38 sdio_32k: sdio-32k {
39 compatible = "pwm-clock";
40 #clock-cells = <0>;
41 clock-frequency = <32768>;
42 pwms = <&pwm_ef 0 30518 0>; /* PWM_E at 32.768KHz */
43 };
44
45 sdio_pwrseq: sdio-pwrseq {
46 compatible = "mmc-pwrseq-simple";
47 reset-gpios = <&gpio GPIOX_6 GPIO_ACTIVE_LOW>;
48 clocks = <&sdio_32k>;
49 clock-names = "ext_clock";
50 };
51
52 main_12v: regulator-main-12v {
53 compatible = "regulator-fixed";
54 regulator-name = "12V";
55 regulator-min-microvolt = <12000000>;
56 regulator-max-microvolt = <12000000>;
57 regulator-always-on;
58 };
59
60 vddao_3v3: regulator-vddao-3v3 {
61 compatible = "regulator-fixed";
62 regulator-name = "VDDAO_3V3";
63 regulator-min-microvolt = <3300000>;
64 regulator-max-microvolt = <3300000>;
65 vin-supply = <&main_12v>;
66 regulator-always-on;
67 };
68
69 vddio_ao1v8: regulator-vddio-ao1v8 {
70 compatible = "regulator-fixed";
71 regulator-name = "VDDIO_AO1V8";
72 regulator-min-microvolt = <1800000>;
73 regulator-max-microvolt = <1800000>;
74 vin-supply = <&vddao_3v3>;
75 regulator-always-on;
76 };
77
78 /* SY8120B1ABC DC/DC Regulator. */
79 vddcpu: regulator-vddcpu {
80 compatible = "pwm-regulator";
81
82 regulator-name = "VDDCPU";
83 regulator-min-microvolt = <689000>;
84 regulator-max-microvolt = <1049000>;
85
86 vin-supply = <&main_12v>;
87
88 pwms = <&pwm_ij 1 1500 0>;
89 pwm-dutycycle-range = <100 0>;
90
91 regulator-boot-on;
92 regulator-always-on;
93 /* Voltage Duty-Cycle */
94 voltage-table = <1049000 0>,
95 <1039000 3>,
96 <1029000 6>,
97 <1019000 9>,
98 <1009000 12>,
99 <999000 14>,
100 <989000 17>,
101 <979000 20>,
102 <969000 23>,
103 <959000 26>,
104 <949000 29>,
105 <939000 31>,
106 <929000 34>,
107 <919000 37>,
108 <909000 40>,
109 <899000 43>,
110 <889000 45>,
111 <879000 48>,
112 <869000 51>,
113 <859000 54>,
114 <849000 56>,
115 <839000 59>,
116 <829000 62>,
117 <819000 65>,
118 <809000 68>,
119 <799000 70>,
120 <789000 73>,
121 <779000 76>,
122 <769000 79>,
123 <759000 81>,
124 <749000 84>,
125 <739000 87>,
126 <729000 89>,
127 <719000 92>,
128 <709000 95>,
129 <699000 98>,
130 <689000 100>;
131 };
132 };
133
134 &pwm_ef {
135 status = "okay";
136 pinctrl-0 = <&pwm_e_pins1>;
137 pinctrl-names = "default";
138 };
139
140 &pwm_ij {
141 status = "okay";
142 };
143
144 &uart_b {
145 status = "okay";
146 };
147
148 &ir {
149 status = "okay";
150 pinctrl-0 = <&remote_pins>;
151 pinctrl-names = "default";
152 };
153
154 &sdio {
155 pinctrl-0 = <&sdio_pins>;
156 pinctrl-1 = <&sdio_clk_gate_pins>;
157 pinctrl-names = "default", "clk-gate";
158 #address-cells = <1>;
159 #size-cells = <0>;
160 bus-width = <4>;
161 cap-sd-highspeed;
162 sd-uhs-sdr50;
163 sd-uhs-sdr104;
164 max-frequency = <200000000>;
165 non-removable;
166 disable-wp;
167 no-sd;
168 no-mmc;
169 vmmc-supply = <&vddao_3v3>;
170 vqmmc-supply = <&vddio_ao1v8>;
171 };
172
173 &sd {
174 status = "okay";
175 pinctrl-0 = <&sdcard_pins>;
176 pinctrl-1 = <&sdcard_clk_gate_pins>;
177 pinctrl-names = "default", "clk-gate";
178 bus-width = <4>;
179 cap-sd-highspeed;
180 max-frequency = <200000000>;
181 disable-wp;
182
183 cd-gpios = <&gpio GPIOC_6 GPIO_ACTIVE_LOW>;
184 vmmc-supply = <&vddao_3v3>;
185 vqmmc-supply = <&vddao_3v3>;
186 };
187
188 &nand {
189 status = "okay";
190 #address-cells = <1>;
191 #size-cells = <0>;
192
193 pinctrl-0 = <&nand_pins>;
194 pinctrl-names = "default";
195
196 nand@0 {
197 reg = <0>;
198 #address-cells = <1>;
199 #size-cells = <1>;
200
201 nand-on-flash-bbt;
202
203 partition@0 {
204 label = "boot";
205 reg = <0x0 0x00200000>;
206 };
207 partition@200000 {
208 label = "env";
209 reg = <0x00200000 0x00400000>;
210 };
211 partition@600000 {
212 label = "system";
213 reg = <0x00600000 0x00a00000>;
214 };
215 partition@1000000 {
216 label = "rootfs";
217 reg = <0x01000000 0x03000000>;
218 };
219 partition@4000000 {
220 label = "media";
221 reg = <0x04000000 0x8000000>;
222 };
223 };
224 };
225
226 &spicc0 {
227 status = "okay";
228 pinctrl-names = "default";
229 pinctrl-0 = <&spicc0_pins_x>;
230 cs-gpios = <&gpio GPIOX_10 GPIO_ACTIVE_LOW>;
231 };
232
233 &ethmac {
234 status = "okay";
235 phy-handle = <&internal_ephy>;
236 phy-mode = "rmii";
237 };