Commit | Line | Data |
---|---|---|
114abfe1 | 1 | // SPDX-License-Identifier: (GPL-2.0+ OR MIT) |
da47515e NA |
2 | /* |
3 | * Copyright (c) 2016 Endless Computers, Inc. | |
4 | * Author: Carlo Caione <carlo@endlessm.com> | |
da47515e NA |
5 | */ |
6 | ||
bb51b535 NA |
7 | /* Common DTSI for same Amlogic Q200/Q201 and P230/P231 boards using either |
8 | * the pin-compatible S912 (GXM) or S905D (GXL) SoCs. | |
9 | */ | |
da47515e NA |
10 | |
11 | / { | |
12 | aliases { | |
13 | serial0 = &uart_AO; | |
059a58fc | 14 | ethernet0 = ðmac; |
da47515e NA |
15 | }; |
16 | ||
17 | chosen { | |
18 | stdout-path = "serial0:115200n8"; | |
19 | }; | |
20 | ||
21 | memory@0 { | |
22 | device_type = "memory"; | |
23 | reg = <0x0 0x0 0x0 0x80000000>; | |
24 | }; | |
1d92bc89 | 25 | |
b409f625 NA |
26 | hdmi_5v: regulator-hdmi-5v { |
27 | compatible = "regulator-fixed"; | |
28 | ||
29 | regulator-name = "HDMI_5V"; | |
30 | regulator-min-microvolt = <5000000>; | |
31 | regulator-max-microvolt = <5000000>; | |
32 | ||
33 | gpio = <&gpio GPIOH_3 GPIO_ACTIVE_HIGH>; | |
34 | enable-active-high; | |
35 | regulator-always-on; | |
36 | }; | |
37 | ||
41ed2e0d MB |
38 | vddio_ao18: regulator-vddio_ao18 { |
39 | compatible = "regulator-fixed"; | |
40 | regulator-name = "VDDIO_AO18"; | |
41 | regulator-min-microvolt = <1800000>; | |
42 | regulator-max-microvolt = <1800000>; | |
43 | }; | |
44 | ||
1d92bc89 NA |
45 | vddio_boot: regulator-vddio_boot { |
46 | compatible = "regulator-fixed"; | |
47 | regulator-name = "VDDIO_BOOT"; | |
48 | regulator-min-microvolt = <1800000>; | |
49 | regulator-max-microvolt = <1800000>; | |
50 | }; | |
51 | ||
52 | vddao_3v3: regulator-vddao_3v3 { | |
53 | compatible = "regulator-fixed"; | |
54 | regulator-name = "VDDAO_3V3"; | |
55 | regulator-min-microvolt = <3300000>; | |
56 | regulator-max-microvolt = <3300000>; | |
57 | }; | |
58 | ||
59 | vcc_3v3: regulator-vcc_3v3 { | |
60 | compatible = "regulator-fixed"; | |
61 | regulator-name = "VCC_3V3"; | |
62 | regulator-min-microvolt = <3300000>; | |
63 | regulator-max-microvolt = <3300000>; | |
64 | }; | |
65 | ||
66 | emmc_pwrseq: emmc-pwrseq { | |
67 | compatible = "mmc-pwrseq-emmc"; | |
68 | reset-gpios = <&gpio BOOT_9 GPIO_ACTIVE_LOW>; | |
69 | }; | |
70 | ||
71 | wifi32k: wifi32k { | |
72 | compatible = "pwm-clock"; | |
73 | #clock-cells = <0>; | |
74 | clock-frequency = <32768>; | |
75 | pwms = <&pwm_ef 0 30518 0>; /* PWM_E at 32.768KHz */ | |
76 | }; | |
77 | ||
78 | sdio_pwrseq: sdio-pwrseq { | |
79 | compatible = "mmc-pwrseq-simple"; | |
80 | reset-gpios = <&gpio GPIOX_6 GPIO_ACTIVE_LOW>; | |
81 | clocks = <&wifi32k>; | |
82 | clock-names = "ext_clock"; | |
83 | }; | |
6939db7e NA |
84 | |
85 | cvbs-connector { | |
86 | compatible = "composite-video-connector"; | |
87 | ||
88 | port { | |
89 | cvbs_connector_in: endpoint { | |
90 | remote-endpoint = <&cvbs_vdac_out>; | |
91 | }; | |
92 | }; | |
93 | }; | |
94 | ||
95 | hdmi-connector { | |
96 | compatible = "hdmi-connector"; | |
97 | type = "a"; | |
98 | ||
99 | port { | |
100 | hdmi_connector_in: endpoint { | |
101 | remote-endpoint = <&hdmi_tx_tmds_out>; | |
102 | }; | |
103 | }; | |
104 | }; | |
da47515e NA |
105 | }; |
106 | ||
b16c71c9 NA |
107 | &cec_AO { |
108 | status = "okay"; | |
109 | pinctrl-0 = <&ao_cec_pins>; | |
110 | pinctrl-names = "default"; | |
111 | hdmi-phandle = <&hdmi_tx>; | |
112 | }; | |
113 | ||
d5463d25 AF |
114 | &cvbs_vdac_port { |
115 | cvbs_vdac_out: endpoint { | |
116 | remote-endpoint = <&cvbs_connector_in>; | |
117 | }; | |
118 | }; | |
119 | ||
120 | ðmac { | |
da47515e | 121 | status = "okay"; |
d5463d25 AF |
122 | }; |
123 | ||
124 | &hdmi_tx { | |
125 | status = "okay"; | |
126 | pinctrl-0 = <&hdmi_hpd_pins>, <&hdmi_i2c_pins>; | |
c67fe414 | 127 | pinctrl-names = "default"; |
e1f2163d | 128 | hdmi-supply = <&hdmi_5v>; |
da47515e | 129 | }; |
1d92bc89 | 130 | |
d5463d25 AF |
131 | &hdmi_tx_tmds_port { |
132 | hdmi_tx_tmds_out: endpoint { | |
133 | remote-endpoint = <&hdmi_connector_in>; | |
134 | }; | |
135 | }; | |
136 | ||
72093fac NA |
137 | &ir { |
138 | status = "okay"; | |
139 | pinctrl-0 = <&remote_input_ao_pins>; | |
140 | pinctrl-names = "default"; | |
141 | }; | |
142 | ||
d5463d25 AF |
143 | &pwm_ef { |
144 | status = "okay"; | |
145 | pinctrl-0 = <&pwm_e_pins>; | |
146 | pinctrl-names = "default"; | |
147 | clocks = <&clkc CLKID_FCLK_DIV4>; | |
148 | clock-names = "clkin0"; | |
149 | }; | |
150 | ||
41ed2e0d MB |
151 | &saradc { |
152 | status = "okay"; | |
153 | vref-supply = <&vddio_ao18>; | |
154 | }; | |
155 | ||
1d92bc89 NA |
156 | /* Wireless SDIO Module */ |
157 | &sd_emmc_a { | |
158 | status = "okay"; | |
159 | pinctrl-0 = <&sdio_pins>; | |
67e7607f JB |
160 | pinctrl-1 = <&sdio_clk_gate_pins>; |
161 | pinctrl-names = "default", "clk-gate"; | |
1d92bc89 NA |
162 | #address-cells = <1>; |
163 | #size-cells = <0>; | |
164 | ||
165 | bus-width = <4>; | |
166 | cap-sd-highspeed; | |
167 | max-frequency = <100000000>; | |
168 | ||
169 | non-removable; | |
170 | disable-wp; | |
171 | ||
172 | mmc-pwrseq = <&sdio_pwrseq>; | |
173 | ||
174 | vmmc-supply = <&vddao_3v3>; | |
175 | vqmmc-supply = <&vddio_boot>; | |
1d92bc89 NA |
176 | }; |
177 | ||
178 | /* SD card */ | |
179 | &sd_emmc_b { | |
180 | status = "okay"; | |
181 | pinctrl-0 = <&sdcard_pins>; | |
67e7607f JB |
182 | pinctrl-1 = <&sdcard_clk_gate_pins>; |
183 | pinctrl-names = "default", "clk-gate"; | |
1d92bc89 NA |
184 | |
185 | bus-width = <4>; | |
186 | cap-sd-highspeed; | |
187 | max-frequency = <100000000>; | |
188 | disable-wp; | |
189 | ||
f29200c8 | 190 | cd-gpios = <&gpio CARD_6 GPIO_ACTIVE_LOW>; |
1d92bc89 NA |
191 | |
192 | vmmc-supply = <&vddao_3v3>; | |
193 | vqmmc-supply = <&vddio_boot>; | |
194 | }; | |
195 | ||
196 | /* eMMC */ | |
197 | &sd_emmc_c { | |
198 | status = "okay"; | |
ab36be66 | 199 | pinctrl-0 = <&emmc_pins>, <&emmc_ds_pins>; |
67e7607f JB |
200 | pinctrl-1 = <&emmc_clk_gate_pins>; |
201 | pinctrl-names = "default", "clk-gate"; | |
1d92bc89 NA |
202 | |
203 | bus-width = <8>; | |
1d92bc89 NA |
204 | cap-mmc-highspeed; |
205 | max-frequency = <200000000>; | |
206 | non-removable; | |
207 | disable-wp; | |
208 | mmc-ddr-1_8v; | |
209 | mmc-hs200-1_8v; | |
210 | ||
211 | mmc-pwrseq = <&emmc_pwrseq>; | |
212 | vmmc-supply = <&vcc_3v3>; | |
213 | vqmmc-supply = <&vddio_boot>; | |
214 | }; | |
215 | ||
d5463d25 AF |
216 | /* This UART is brought out to the DB9 connector */ |
217 | &uart_AO { | |
6939db7e | 218 | status = "okay"; |
d5463d25 | 219 | pinctrl-0 = <&uart_ao_a_pins>; |
6939db7e NA |
220 | pinctrl-names = "default"; |
221 | }; | |
972cd12a MB |
222 | |
223 | &usb0 { | |
224 | status = "okay"; | |
225 | }; |