Lines Matching +full:meson +full:- +full:g12a +full:- +full:usb
1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
8 #include <dt-bindings/input/input.h>
9 #include <dt-bindings/leds/common.h>
10 #include <dt-bindings/gpio/meson-g12a-gpio.h>
11 #include <dt-bindings/sound/meson-g12a-tohdmitx.h>
22 stdout-path = "serial0:115200n8";
30 adc-keys {
31 compatible = "adc-keys";
32 io-channels = <&saradc 2>;
33 io-channel-names = "buttons";
34 keyup-threshold-microvolt = <1710000>;
36 button-function {
39 press-threshold-microvolt = <10000>;
44 compatible = "gpio-leds";
46 led-white {
50 linux,default-trigger = "heartbeat";
53 led-red {
60 emmc_pwrseq: emmc-pwrseq {
61 compatible = "mmc-pwrseq-emmc";
62 reset-gpios = <&gpio BOOT_12 GPIO_ACTIVE_LOW>;
65 gpio-keys-polled {
66 compatible = "gpio-keys-polled";
67 poll-interval = <100>;
69 power-button {
76 sdio_pwrseq: sdio-pwrseq {
77 compatible = "mmc-pwrseq-simple";
78 reset-gpios = <&gpio GPIOX_6 GPIO_ACTIVE_LOW>;
80 clock-names = "ext_clock";
83 dc_in: regulator-dc-in {
84 compatible = "regulator-fixed";
85 regulator-name = "DC_IN";
86 regulator-min-microvolt = <5000000>;
87 regulator-max-microvolt = <5000000>;
88 regulator-always-on;
91 vcc_5v: regulator-vcc-5v {
92 compatible = "regulator-fixed";
93 regulator-name = "VCC_5V";
94 regulator-min-microvolt = <5000000>;
95 regulator-max-microvolt = <5000000>;
96 vin-supply = <&dc_in>;
99 enable-active-high;
102 vcc_1v8: regulator-vcc-1v8 {
103 compatible = "regulator-fixed";
104 regulator-name = "VCC_1V8";
105 regulator-min-microvolt = <1800000>;
106 regulator-max-microvolt = <1800000>;
107 vin-supply = <&vcc_3v3>;
108 regulator-always-on;
111 vcc_3v3: regulator-vcc-3v3 {
112 compatible = "regulator-fixed";
113 regulator-name = "VCC_3V3";
114 regulator-min-microvolt = <3300000>;
115 regulator-max-microvolt = <3300000>;
116 vin-supply = <&vsys_3v3>;
117 regulator-always-on;
121 vddao_1v8: regulator-vddao-1v8 {
122 compatible = "regulator-fixed";
123 regulator-name = "VDDIO_AO1V8";
124 regulator-min-microvolt = <1800000>;
125 regulator-max-microvolt = <1800000>;
126 vin-supply = <&vsys_3v3>;
127 regulator-always-on;
130 emmc_1v8: regulator-emmc-1v8 {
131 compatible = "regulator-fixed";
132 regulator-name = "EMMC_AO1V8";
133 regulator-min-microvolt = <1800000>;
134 regulator-max-microvolt = <1800000>;
135 vin-supply = <&vcc_3v3>;
136 regulator-always-on;
139 vsys_3v3: regulator-vsys-3v3 {
140 compatible = "regulator-fixed";
141 regulator-name = "VSYS_3V3";
142 regulator-min-microvolt = <3300000>;
143 regulator-max-microvolt = <3300000>;
144 vin-supply = <&dc_in>;
145 regulator-always-on;
148 usb_pwr: regulator-usb-pwr {
149 compatible = "regulator-fixed";
150 regulator-name = "USB_PWR";
151 regulator-min-microvolt = <5000000>;
152 regulator-max-microvolt = <5000000>;
153 vin-supply = <&vcc_5v>;
156 enable-active-high;
159 hdmi-connector {
160 compatible = "hdmi-connector";
165 remote-endpoint = <&hdmi_tx_tmds_out>;
172 compatible = "amlogic,axg-sound-card";
173 model = "KHADAS-VIM3";
174 audio-aux-devs = <&tdmin_a>, <&tdmout_a>;
175 audio-routing = "TDMOUT_A IN 0", "FRDDR_A OUT 0",
189 assigned-clocks = <&clkc CLKID_MPLL2>,
192 assigned-clock-parents = <0>, <0>, <0>;
193 assigned-clock-rates = <294912000>,
197 dai-link-0 {
198 sound-dai = <&frddr_a>;
201 dai-link-1 {
202 sound-dai = <&frddr_b>;
205 dai-link-2 {
206 sound-dai = <&frddr_c>;
209 dai-link-3 {
210 sound-dai = <&toddr_a>;
213 dai-link-4 {
214 sound-dai = <&toddr_b>;
217 dai-link-5 {
218 sound-dai = <&toddr_c>;
222 dai-link-6 {
223 sound-dai = <&tdmif_a>;
224 dai-format = "i2s";
225 dai-tdm-slot-tx-mask-0 = <1 1>;
226 dai-tdm-slot-tx-mask-1 = <1 1>;
227 dai-tdm-slot-tx-mask-2 = <1 1>;
228 dai-tdm-slot-tx-mask-3 = <1 1>;
229 mclk-fs = <256>;
232 sound-dai = <&tohdmitx TOHDMITX_I2S_IN_A>;
237 dai-link-7 {
238 sound-dai = <&tohdmitx TOHDMITX_I2S_OUT>;
241 sound-dai = <&hdmi_tx>;
247 compatible = "pwm-clock";
248 #clock-cells = <0>;
249 clock-frequency = <32768>;
263 pinctrl-0 = <&cec_ao_a_h_pins>;
264 pinctrl-names = "default";
266 hdmi-phandle = <&hdmi_tx>;
270 pinctrl-0 = <&cec_ao_b_h_pins>;
271 pinctrl-names = "default";
273 hdmi-phandle = <&hdmi_tx>;
278 cpu_active: cpu-active {
285 cooling-maps {
288 cooling-device = <&khadas_mcu THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
294 external_phy: ethernet-phy@0 {
297 max-speed = <1000>;
299 interrupt-parent = <&gpio_intc>;
306 pinctrl-0 = <ð_pins>, <ð_rgmii_pins>;
307 pinctrl-names = "default";
309 phy-mode = "rgmii";
310 phy-handle = <&external_phy>;
311 amlogic,tx-delay-ns = <2>;
328 pinctrl-0 = <&hdmitx_hpd_pins>, <&hdmitx_ddc_pins>;
329 pinctrl-names = "default";
330 hdmi-supply = <&vcc_5v>;
335 remote-endpoint = <&hdmi_connector_in>;
341 pinctrl-0 = <&i2c_ao_sck_pins>, <&i2c_ao_sda_pins>;
342 pinctrl-names = "default";
344 khadas_mcu: system-controller@18 {
347 #cooling-cells = <2>;
350 gpio_expander: gpio-controller@20 {
353 vcc-supply = <&vcc_3v3>;
354 gpio-controller;
355 #gpio-cells = <2>;
361 #clock-cells = <0>;
367 pinctrl-0 = <&remote_input_ao_pins>;
368 pinctrl-names = "default";
369 linux,rc-map-name = "rc-khadas";
373 reset-gpios = <&gpio GPIOA_8 GPIO_ACTIVE_LOW>;
378 pinctrl-0 = <&pwm_e_pins>;
379 pinctrl-names = "default";
384 vref-supply = <&vddao_1v8>;
390 pinctrl-0 = <&sdio_pins>;
391 pinctrl-1 = <&sdio_clk_gate_pins>;
392 pinctrl-names = "default", "clk-gate";
393 #address-cells = <1>;
394 #size-cells = <0>;
396 bus-width = <4>;
397 cap-sd-highspeed;
398 max-frequency = <100000000>;
400 non-removable;
401 disable-wp;
404 keep-power-in-suspend;
406 mmc-pwrseq = <&sdio_pwrseq>;
408 vmmc-supply = <&vsys_3v3>;
409 vqmmc-supply = <&vddao_1v8>;
413 compatible = "brcm,bcm4329-fmac";
420 pinctrl-0 = <&sdcard_c_pins>;
421 pinctrl-1 = <&sdcard_clk_gate_c_pins>;
422 pinctrl-names = "default", "clk-gate";
424 bus-width = <4>;
425 cap-sd-highspeed;
426 max-frequency = <50000000>;
427 disable-wp;
429 cd-gpios = <&gpio GPIOC_6 GPIO_ACTIVE_LOW>;
430 vmmc-supply = <&vsys_3v3>;
431 vqmmc-supply = <&vsys_3v3>;
437 pinctrl-0 = <&emmc_ctrl_pins>, <&emmc_data_8b_pins>, <&emmc_ds_pins>;
438 pinctrl-1 = <&emmc_clk_gate_pins>;
439 pinctrl-names = "default", "clk-gate";
441 bus-width = <8>;
442 cap-mmc-highspeed;
443 mmc-ddr-1_8v;
444 mmc-hs200-1_8v;
445 max-frequency = <200000000>;
446 disable-wp;
448 mmc-pwrseq = <&emmc_pwrseq>;
449 vmmc-supply = <&vcc_3v3>;
450 vqmmc-supply = <&emmc_1v8>;
456 * Replace emmc_data_8b_pins to emmc_data_4b_pins from sd_emmc_c pinctrl-0,
457 * and change bus-width to 4 then spifc can be enabled.
461 pinctrl-0 = <&nor_pins>;
462 pinctrl-names = "default";
465 #address-cells = <1>;
466 #size-cells = <1>;
467 compatible = "winbond,w25q128fw", "jedec,spi-nor";
469 spi-max-frequency = <104000000>;
503 pinctrl-0 = <&uart_a_pins>, <&uart_a_cts_rts_pins>;
504 pinctrl-names = "default";
505 uart-has-rtscts;
508 compatible = "brcm,bcm43438-bt";
509 shutdown-gpios = <&gpio GPIOX_17 GPIO_ACTIVE_HIGH>;
510 max-speed = <2000000>;
512 clock-names = "lpo";
518 pinctrl-0 = <&uart_ao_a_pins>;
519 pinctrl-names = "default";
523 phy-supply = <&dc_in>;
527 phy-supply = <&usb_pwr>;
531 phy-supply = <&usb_pwr>;
534 &usb {