]> asedeno.scripts.mit.edu Git - linux.git/blob - arch/arm64/boot/dts/amlogic/meson-g12a-sei510.dts
be1d9ed6d5210a1f50194cbe06ecc42d2e7b1026
[linux.git] / arch / arm64 / boot / dts / amlogic / meson-g12a-sei510.dts
1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2 /*
3  * Copyright (c) 2019 BayLibre SAS. All rights reserved.
4  */
5
6 /dts-v1/;
7
8 #include "meson-g12a.dtsi"
9 #include <dt-bindings/gpio/gpio.h>
10 #include <dt-bindings/input/input.h>
11 #include <dt-bindings/gpio/meson-g12a-gpio.h>
12
13 / {
14         compatible = "seirobotics,sei510", "amlogic,g12a";
15         model = "SEI Robotics SEI510";
16
17         adc_keys {
18                 compatible = "adc-keys";
19                 io-channels = <&saradc 0>;
20                 io-channel-names = "buttons";
21                 keyup-threshold-microvolt = <1800000>;
22
23                 button-onoff {
24                         label = "On/Off";
25                         linux,code = <KEY_POWER>;
26                         press-threshold-microvolt = <1700000>;
27                 };
28         };
29
30         aliases {
31                 serial0 = &uart_AO;
32                 ethernet0 = &ethmac;
33         };
34
35         chosen {
36                 stdout-path = "serial0:115200n8";
37         };
38
39         cvbs-connector {
40                 compatible = "composite-video-connector";
41
42                 port {
43                         cvbs_connector_in: endpoint {
44                                 remote-endpoint = <&cvbs_vdac_out>;
45                         };
46                 };
47         };
48
49         emmc_pwrseq: emmc-pwrseq {
50                 compatible = "mmc-pwrseq-emmc";
51                 reset-gpios = <&gpio BOOT_12 GPIO_ACTIVE_LOW>;
52         };
53
54         hdmi-connector {
55                 compatible = "hdmi-connector";
56                 type = "a";
57
58                 port {
59                         hdmi_connector_in: endpoint {
60                                 remote-endpoint = <&hdmi_tx_tmds_out>;
61                         };
62                 };
63         };
64
65         memory@0 {
66                 device_type = "memory";
67                 reg = <0x0 0x0 0x0 0x40000000>;
68         };
69
70         ao_5v: regulator-ao_5v {
71                 compatible = "regulator-fixed";
72                 regulator-name = "AO_5V";
73                 regulator-min-microvolt = <5000000>;
74                 regulator-max-microvolt = <5000000>;
75                 vin-supply = <&dc_in>;
76                 regulator-always-on;
77         };
78
79         dc_in: regulator-dc_in {
80                 compatible = "regulator-fixed";
81                 regulator-name = "DC_IN";
82                 regulator-min-microvolt = <5000000>;
83                 regulator-max-microvolt = <5000000>;
84                 regulator-always-on;
85         };
86
87         emmc_1v8: regulator-emmc_1v8 {
88                 compatible = "regulator-fixed";
89                 regulator-name = "EMMC_1V8";
90                 regulator-min-microvolt = <1800000>;
91                 regulator-max-microvolt = <1800000>;
92                 vin-supply = <&vddao_3v3>;
93                 regulator-always-on;
94         };
95
96         vddao_3v3: regulator-vddao_3v3 {
97                 compatible = "regulator-fixed";
98                 regulator-name = "VDDAO_3V3";
99                 regulator-min-microvolt = <3300000>;
100                 regulator-max-microvolt = <3300000>;
101                 vin-supply = <&dc_in>;
102                 regulator-always-on;
103         };
104
105         vddao_3v3_t: regultor-vddao_3v3_t {
106                 compatible = "regulator-fixed";
107                 regulator-name = "VDDAO_3V3_T";
108                 regulator-min-microvolt = <3300000>;
109                 regulator-max-microvolt = <3300000>;
110                 vin-supply = <&vddao_3v3>;
111                 gpio = <&gpio GPIOH_8 GPIO_OPEN_DRAIN>;
112                 enable-active-high;
113         };
114
115         vddio_ao1v8: regulator-vddio_ao1v8 {
116                 compatible = "regulator-fixed";
117                 regulator-name = "VDDIO_AO1V8";
118                 regulator-min-microvolt = <1800000>;
119                 regulator-max-microvolt = <1800000>;
120                 vin-supply = <&vddao_3v3>;
121                 regulator-always-on;
122         };
123
124         reserved-memory {
125                 /* TEE Reserved Memory */
126                 bl32_reserved: bl32@5000000 {
127                         reg = <0x0 0x05300000 0x0 0x2000000>;
128                         no-map;
129                 };
130         };
131 };
132
133 &cec_AO {
134         pinctrl-0 = <&cec_ao_a_h_pins>;
135         pinctrl-names = "default";
136         status = "disabled";
137         hdmi-phandle = <&hdmi_tx>;
138 };
139
140 &cecb_AO {
141         pinctrl-0 = <&cec_ao_b_h_pins>;
142         pinctrl-names = "default";
143         status = "okay";
144         hdmi-phandle = <&hdmi_tx>;
145 };
146
147 &cvbs_vdac_port {
148         cvbs_vdac_out: endpoint {
149                 remote-endpoint = <&cvbs_connector_in>;
150         };
151 };
152
153 &ethmac {
154         status = "okay";
155         phy-handle = <&internal_ephy>;
156         phy-mode = "rmii";
157 };
158
159 &hdmi_tx {
160         status = "okay";
161         pinctrl-0 = <&hdmitx_hpd_pins>, <&hdmitx_ddc_pins>;
162         pinctrl-names = "default";
163 };
164
165 &hdmi_tx_tmds_port {
166         hdmi_tx_tmds_out: endpoint {
167                 remote-endpoint = <&hdmi_connector_in>;
168         };
169 };
170
171 &i2c3 {
172         status = "okay";
173         pinctrl-0 = <&i2c3_sda_a_pins>, <&i2c3_sck_a_pins>;
174         pinctrl-names = "default";
175 };
176
177 &saradc {
178         status = "okay";
179         vref-supply = <&vddio_ao1v8>;
180 };
181
182 /* SD card */
183 &sd_emmc_b {
184         status = "okay";
185         pinctrl-0 = <&sdcard_c_pins>;
186         pinctrl-1 = <&sdcard_clk_gate_c_pins>;
187         pinctrl-names = "default", "clk-gate";
188
189         bus-width = <4>;
190         cap-sd-highspeed;
191         max-frequency = <50000000>;
192         disable-wp;
193
194         cd-gpios = <&gpio GPIOC_6 GPIO_ACTIVE_LOW>;
195         vmmc-supply = <&vddao_3v3>;
196         vqmmc-supply = <&vddao_3v3>;
197 };
198
199 /* eMMC */
200 &sd_emmc_c {
201         status = "okay";
202         pinctrl-0 = <&emmc_pins>, <&emmc_ds_pins>;
203         pinctrl-1 = <&emmc_clk_gate_pins>;
204         pinctrl-names = "default", "clk-gate";
205
206         bus-width = <8>;
207         cap-mmc-highspeed;
208         mmc-ddr-1_8v;
209         mmc-hs200-1_8v;
210         max-frequency = <200000000>;
211         non-removable;
212         disable-wp;
213
214         mmc-pwrseq = <&emmc_pwrseq>;
215         vmmc-supply = <&vddao_3v3>;
216         vqmmc-supply = <&emmc_1v8>;
217 };
218
219 &uart_A {
220         status = "okay";
221         pinctrl-0 = <&uart_a_pins>, <&uart_a_cts_rts_pins>;
222         pinctrl-names = "default";
223         uart-has-rtscts;
224
225         bluetooth {
226                 compatible = "brcm,bcm43438-bt";
227                 shutdown-gpios = <&gpio GPIOX_17 GPIO_ACTIVE_HIGH>;
228                 vbat-supply = <&vddao_3v3>;
229                 vddio-supply = <&vddio_ao1v8>;
230         };
231 };
232
233 &uart_AO {
234         status = "okay";
235         pinctrl-0 = <&uart_ao_a_pins>;
236         pinctrl-names = "default";
237 };
238
239 &usb {
240         status = "okay";
241         dr_mode = "host";
242 };