1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
3 * Copyright (c) 2019 BayLibre, SAS
4 * Author: Neil Armstrong <narmstrong@baylibre.com>
5 * Copyright (c) 2019 Christian Hewitt <christianshewitt@gmail.com>
8 #include <dt-bindings/input/input.h>
9 #include <dt-bindings/gpio/meson-g12a-gpio.h>
12 model = "Khadas VIM3";
20 stdout-path = "serial0:115200n8";
24 device_type = "memory";
25 reg = <0x0 0x0 0x0 0x80000000>;
29 compatible = "adc-keys";
30 io-channels = <&saradc 2>;
31 io-channel-names = "buttons";
32 keyup-threshold-microvolt = <1710000>;
36 linux,code = <KEY_FN>;
37 press-threshold-microvolt = <10000>;
42 compatible = "gpio-leds";
45 label = "vim3:white:sys";
46 gpios = <&gpio_ao GPIOAO_4 GPIO_ACTIVE_HIGH>;
47 linux,default-trigger = "heartbeat";
52 gpios = <&gpio_expander 5 GPIO_ACTIVE_HIGH>;
56 emmc_pwrseq: emmc-pwrseq {
57 compatible = "mmc-pwrseq-emmc";
58 reset-gpios = <&gpio BOOT_12 GPIO_ACTIVE_LOW>;
62 compatible = "gpio-keys-polled";
63 poll-interval = <100>;
67 linux,code = <KEY_POWER>;
68 gpios = <&gpio_ao GPIOAO_7 GPIO_ACTIVE_LOW>;
72 sdio_pwrseq: sdio-pwrseq {
73 compatible = "mmc-pwrseq-simple";
74 reset-gpios = <&gpio GPIOX_6 GPIO_ACTIVE_LOW>;
76 clock-names = "ext_clock";
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>;
87 vcc_5v: regulator-vcc_5v {
88 compatible = "regulator-fixed";
89 regulator-name = "VCC_5V";
90 regulator-min-microvolt = <5000000>;
91 regulator-max-microvolt = <5000000>;
92 vin-supply = <&dc_in>;
94 gpio = <&gpio GPIOH_8 GPIO_OPEN_DRAIN>;
98 vcc_1v8: regulator-vcc_1v8 {
99 compatible = "regulator-fixed";
100 regulator-name = "VCC_1V8";
101 regulator-min-microvolt = <1800000>;
102 regulator-max-microvolt = <1800000>;
103 vin-supply = <&vcc_3v3>;
107 vcc_3v3: regulator-vcc_3v3 {
108 compatible = "regulator-fixed";
109 regulator-name = "VCC_3V3";
110 regulator-min-microvolt = <3300000>;
111 regulator-max-microvolt = <3300000>;
112 vin-supply = <&vsys_3v3>;
114 /* FIXME: actually controlled by VDDCPU_B_EN */
117 vddao_1v8: regulator-vddao_1v8 {
118 compatible = "regulator-fixed";
119 regulator-name = "VDDIO_AO1V8";
120 regulator-min-microvolt = <1800000>;
121 regulator-max-microvolt = <1800000>;
122 vin-supply = <&vsys_3v3>;
126 emmc_1v8: regulator-emmc_1v8 {
127 compatible = "regulator-fixed";
128 regulator-name = "EMMC_AO1V8";
129 regulator-min-microvolt = <1800000>;
130 regulator-max-microvolt = <1800000>;
131 vin-supply = <&vcc_3v3>;
135 vsys_3v3: regulator-vsys_3v3 {
136 compatible = "regulator-fixed";
137 regulator-name = "VSYS_3V3";
138 regulator-min-microvolt = <3300000>;
139 regulator-max-microvolt = <3300000>;
140 vin-supply = <&dc_in>;
144 usb_pwr: regulator-usb_pwr {
145 compatible = "regulator-fixed";
146 regulator-name = "USB_PWR";
147 regulator-min-microvolt = <5000000>;
148 regulator-max-microvolt = <5000000>;
149 vin-supply = <&vcc_5v>;
151 gpio = <&gpio GPIOA_6 GPIO_ACTIVE_HIGH>;
156 compatible = "hdmi-connector";
160 hdmi_connector_in: endpoint {
161 remote-endpoint = <&hdmi_tx_tmds_out>;
167 compatible = "pwm-clock";
169 clock-frequency = <32768>;
170 pwms = <&pwm_ef 0 30518 0>; /* PWM_E at 32.768KHz */
175 pinctrl-0 = <&cec_ao_a_h_pins>;
176 pinctrl-names = "default";
178 hdmi-phandle = <&hdmi_tx>;
182 pinctrl-0 = <&cec_ao_b_h_pins>;
183 pinctrl-names = "default";
185 hdmi-phandle = <&hdmi_tx>;
189 external_phy: ethernet-phy@0 {
190 /* Realtek RTL8211F (0x001cc916) */
194 interrupt-parent = <&gpio_intc>;
195 /* MAC_INTR on GPIOZ_14 */
196 interrupts = <26 IRQ_TYPE_LEVEL_LOW>;
201 pinctrl-0 = <ð_pins>, <ð_rgmii_pins>;
202 pinctrl-names = "default";
205 phy-handle = <&external_phy>;
206 amlogic,tx-delay-ns = <2>;
211 pinctrl-0 = <&hdmitx_hpd_pins>, <&hdmitx_ddc_pins>;
212 pinctrl-names = "default";
213 hdmi-supply = <&vcc_5v>;
217 hdmi_tx_tmds_out: endpoint {
218 remote-endpoint = <&hdmi_connector_in>;
224 pinctrl-0 = <&i2c_ao_sck_pins>, <&i2c_ao_sda_pins>;
225 pinctrl-names = "default";
227 gpio_expander: gpio-controller@20 {
228 compatible = "ti,tca6408";
230 vcc-supply = <&vcc_3v3>;
236 compatible = "haoyu,hym8563";
244 pinctrl-0 = <&remote_input_ao_pins>;
245 pinctrl-names = "default";
246 linux,rc-map-name = "rc-khadas";
251 pinctrl-0 = <&pwm_e_pins>;
252 pinctrl-names = "default";
257 vref-supply = <&vddao_1v8>;
263 pinctrl-0 = <&sdio_pins>;
264 pinctrl-1 = <&sdio_clk_gate_pins>;
265 pinctrl-names = "default", "clk-gate";
266 #address-cells = <1>;
272 max-frequency = <100000000>;
277 mmc-pwrseq = <&sdio_pwrseq>;
279 vmmc-supply = <&vsys_3v3>;
280 vqmmc-supply = <&vddao_1v8>;
284 compatible = "brcm,bcm4329-fmac";
291 pinctrl-0 = <&sdcard_c_pins>;
292 pinctrl-1 = <&sdcard_clk_gate_c_pins>;
293 pinctrl-names = "default", "clk-gate";
297 max-frequency = <50000000>;
300 cd-gpios = <&gpio GPIOC_6 GPIO_ACTIVE_LOW>;
301 vmmc-supply = <&vsys_3v3>;
302 vqmmc-supply = <&vsys_3v3>;
308 pinctrl-0 = <&emmc_pins>, <&emmc_ds_pins>;
309 pinctrl-1 = <&emmc_clk_gate_pins>;
310 pinctrl-names = "default", "clk-gate";
316 max-frequency = <200000000>;
319 mmc-pwrseq = <&emmc_pwrseq>;
320 vmmc-supply = <&vcc_3v3>;
321 vqmmc-supply = <&emmc_1v8>;
326 pinctrl-0 = <&uart_a_pins>, <&uart_a_cts_rts_pins>;
327 pinctrl-names = "default";
331 compatible = "brcm,bcm43438-bt";
332 shutdown-gpios = <&gpio GPIOX_17 GPIO_ACTIVE_HIGH>;
333 max-speed = <2000000>;
341 pinctrl-0 = <&uart_ao_a_pins>;
342 pinctrl-names = "default";
346 phy-supply = <&dc_in>;
350 phy-supply = <&usb_pwr>;
354 phy-supply = <&usb_pwr>;
359 dr_mode = "peripheral";