Lines Matching +full:meson +full:- +full:g12a +full:- +full:usb

1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
6 /dts-v1/;
8 #include "meson-sm1.dtsi"
9 #include <dt-bindings/gpio/meson-g12a-gpio.h>
10 #include <dt-bindings/leds/common.h>
11 #include <dt-bindings/sound/meson-g12a-tohdmitx.h>
14 compatible = "hardkernel,odroid-c4", "amlogic,sm1";
15 model = "Hardkernel ODROID-C4";
23 stdout-path = "serial0:115200n8";
31 emmc_pwrseq: emmc-pwrseq {
32 compatible = "mmc-pwrseq-emmc";
33 reset-gpios = <&gpio BOOT_12 GPIO_ACTIVE_LOW>;
37 compatible = "gpio-leds";
39 led-blue {
43 linux,default-trigger = "heartbeat";
44 panic-indicator;
48 tflash_vdd: regulator-tflash_vdd {
49 compatible = "regulator-fixed";
51 regulator-name = "TFLASH_VDD";
52 regulator-min-microvolt = <3300000>;
53 regulator-max-microvolt = <3300000>;
56 enable-active-high;
57 regulator-always-on;
60 tf_io: gpio-regulator-tf_io {
61 compatible = "regulator-gpio";
63 regulator-name = "TF_IO";
64 regulator-min-microvolt = <1800000>;
65 regulator-max-microvolt = <3300000>;
68 gpios-states = <0>;
74 flash_1v8: regulator-flash_1v8 {
75 compatible = "regulator-fixed";
76 regulator-name = "FLASH_1V8";
77 regulator-min-microvolt = <1800000>;
78 regulator-max-microvolt = <1800000>;
79 vin-supply = <&vcc_3v3>;
80 regulator-always-on;
83 main_12v: regulator-main_12v {
84 compatible = "regulator-fixed";
85 regulator-name = "12V";
86 regulator-min-microvolt = <12000000>;
87 regulator-max-microvolt = <12000000>;
88 regulator-always-on;
91 vcc_5v: regulator-vcc_5v {
92 compatible = "regulator-fixed";
93 regulator-name = "5V";
94 regulator-min-microvolt = <5000000>;
95 regulator-max-microvolt = <5000000>;
96 regulator-always-on;
97 vin-supply = <&main_12v>;
100 vcc_1v8: regulator-vcc_1v8 {
101 compatible = "regulator-fixed";
102 regulator-name = "VCC_1V8";
103 regulator-min-microvolt = <1800000>;
104 regulator-max-microvolt = <1800000>;
105 vin-supply = <&vcc_3v3>;
106 regulator-always-on;
109 vcc_3v3: regulator-vcc_3v3 {
110 compatible = "regulator-fixed";
111 regulator-name = "VCC_3V3";
112 regulator-min-microvolt = <3300000>;
113 regulator-max-microvolt = <3300000>;
114 vin-supply = <&vddao_3v3>;
115 regulator-always-on;
119 vddcpu: regulator-vddcpu {
123 compatible = "pwm-regulator";
125 regulator-name = "VDDCPU";
126 regulator-min-microvolt = <721000>;
127 regulator-max-microvolt = <1022000>;
129 vin-supply = <&main_12v>;
132 pwm-dutycycle-range = <100 0>;
134 regulator-boot-on;
135 regulator-always-on;
138 hub_5v: regulator-hub_5v {
139 compatible = "regulator-fixed";
140 regulator-name = "HUB_5V";
141 regulator-min-microvolt = <5000000>;
142 regulator-max-microvolt = <5000000>;
143 vin-supply = <&vcc_5v>;
147 enable-active-high;
150 usb_pwr_en: regulator-usb_pwr_en {
151 compatible = "regulator-fixed";
152 regulator-name = "USB_PWR_EN";
153 regulator-min-microvolt = <5000000>;
154 regulator-max-microvolt = <5000000>;
155 vin-supply = <&vcc_5v>;
159 enable-active-high;
162 vddao_1v8: regulator-vddao_1v8 {
163 compatible = "regulator-fixed";
164 regulator-name = "VDDAO_1V8";
165 regulator-min-microvolt = <1800000>;
166 regulator-max-microvolt = <1800000>;
167 vin-supply = <&vddao_3v3>;
168 regulator-always-on;
171 vddao_3v3: regulator-vddao_3v3 {
172 compatible = "regulator-fixed";
173 regulator-name = "VDDAO_3V3";
174 regulator-min-microvolt = <3300000>;
175 regulator-max-microvolt = <3300000>;
176 vin-supply = <&main_12v>;
177 regulator-always-on;
180 hdmi-connector {
181 compatible = "hdmi-connector";
186 remote-endpoint = <&hdmi_tx_tmds_out>;
192 compatible = "amlogic,axg-sound-card";
193 model = "SM1-ODROID-C4";
194 audio-aux-devs = <&tdmout_b>;
195 audio-routing = "TDMOUT_B IN 0", "FRDDR_A OUT 1",
200 assigned-clocks = <&clkc CLKID_MPLL2>,
203 assigned-clock-parents = <0>, <0>, <0>;
204 assigned-clock-rates = <294912000>,
209 dai-link-0 {
210 sound-dai = <&frddr_a>;
213 dai-link-1 {
214 sound-dai = <&frddr_b>;
217 dai-link-2 {
218 sound-dai = <&frddr_c>;
222 dai-link-3 {
223 sound-dai = <&tdmif_b>;
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_B>;
237 dai-link-4 {
238 sound-dai = <&tohdmitx TOHDMITX_I2S_OUT>;
241 sound-dai = <&hdmi_tx>;
256 cpu-supply = <&vddcpu>;
257 operating-points-v2 = <&cpu_opp_table>;
259 clock-latency = <50000>;
263 cpu-supply = <&vddcpu>;
264 operating-points-v2 = <&cpu_opp_table>;
266 clock-latency = <50000>;
270 cpu-supply = <&vddcpu>;
271 operating-points-v2 = <&cpu_opp_table>;
273 clock-latency = <50000>;
277 cpu-supply = <&vddcpu>;
278 operating-points-v2 = <&cpu_opp_table>;
280 clock-latency = <50000>;
284 external_phy: ethernet-phy@0 {
287 max-speed = <1000>;
289 interrupt-parent = <&gpio_intc>;
296 pinctrl-0 = <&eth_pins>, <&eth_rgmii_pins>;
297 pinctrl-names = "default";
299 phy-mode = "rgmii";
300 phy-handle = <&external_phy>;
301 amlogic,tx-delay-ns = <2>;
317 gpio-line-names =
360 * WARNING: The USB Hub on the Odroid-C4 needs a reset signal
361 * to be turned high in order to be detected by the USB Controller
362 * This signal should be handled by a USB specific power sequence
363 * in order to reset the Hub when USB bus is powered down.
365 usb-hub {
366 gpio-hog;
368 output-high;
369 line-name = "usb-hub-reset";
374 gpio-line-names =
390 pinctrl-0 = <&hdmitx_hpd_pins>, <&hdmitx_ddc_pins>;
391 pinctrl-names = "default";
392 hdmi-supply = <&vcc_5v>;
397 remote-endpoint = <&hdmi_connector_in>;
403 pinctrl-0 = <&remote_input_ao_pins>;
404 pinctrl-names = "default";
405 linux,rc-map-name = "rc-odroid";
409 pinctrl-0 = <&pwm_ao_d_e_pins>;
410 pinctrl-names = "default";
412 clock-names = "clkin1";
423 pinctrl-0 = <&sdcard_c_pins>;
424 pinctrl-1 = <&sdcard_clk_gate_c_pins>;
425 pinctrl-names = "default", "clk-gate";
427 bus-width = <4>;
428 cap-sd-highspeed;
429 max-frequency = <200000000>;
430 sd-uhs-sdr12;
431 sd-uhs-sdr25;
432 sd-uhs-sdr50;
433 sd-uhs-sdr104;
434 disable-wp;
436 cd-gpios = <&gpio GPIOC_6 GPIO_ACTIVE_LOW>;
437 vmmc-supply = <&tflash_vdd>;
438 vqmmc-supply = <&tf_io>;
444 pinctrl-0 = <&emmc_ctrl_pins>, <&emmc_data_8b_pins>, <&emmc_ds_pins>;
445 pinctrl-1 = <&emmc_clk_gate_pins>;
446 pinctrl-names = "default", "clk-gate";
448 bus-width = <8>;
449 cap-mmc-highspeed;
450 mmc-ddr-1_8v;
451 mmc-hs200-1_8v;
452 max-frequency = <200000000>;
453 disable-wp;
455 mmc-pwrseq = <&emmc_pwrseq>;
456 vmmc-supply = <&vcc_3v3>;
457 vqmmc-supply = <&flash_1v8>;
474 pinctrl-0 = <&uart_ao_a_pins>;
475 pinctrl-names = "default";
478 &usb {
480 vbus-supply = <&usb_pwr_en>;
484 phy-supply = <&vcc_5v>;
489 phy-supply = <&hub_5v>;