Lines Matching +full:link +full:- +full:gpios

1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
7 /dts-v1/;
9 #include "meson-g12b-s922x.dtsi"
10 #include <dt-bindings/input/input.h>
11 #include <dt-bindings/gpio/meson-g12a-gpio.h>
12 #include <dt-bindings/sound/meson-g12a-tohdmitx.h>
15 compatible = "hardkernel,odroid-n2", "amlogic,g12b";
16 model = "Hardkernel ODROID-N2";
24 stdout-path = "serial0:115200n8";
32 emmc_pwrseq: emmc-pwrseq {
33 compatible = "mmc-pwrseq-emmc";
34 reset-gpios = <&gpio BOOT_12 GPIO_ACTIVE_LOW>;
38 compatible = "gpio-leds";
42 gpios = <&gpio_ao GPIOAO_11 GPIO_ACTIVE_HIGH>;
43 linux,default-trigger = "heartbeat";
47 tflash_vdd: regulator-tflash_vdd {
48 compatible = "regulator-fixed";
50 regulator-name = "TFLASH_VDD";
51 regulator-min-microvolt = <3300000>;
52 regulator-max-microvolt = <3300000>;
55 enable-active-high;
56 regulator-always-on;
59 tf_io: gpio-regulator-tf_io {
60 compatible = "regulator-gpio";
62 regulator-name = "TF_IO";
63 regulator-min-microvolt = <1800000>;
64 regulator-max-microvolt = <3300000>;
66 gpios = <&gpio_ao GPIOAO_9 GPIO_ACTIVE_HIGH>;
67 gpios-states = <0>;
73 flash_1v8: regulator-flash_1v8 {
74 compatible = "regulator-fixed";
75 regulator-name = "FLASH_1V8";
76 regulator-min-microvolt = <1800000>;
77 regulator-max-microvolt = <1800000>;
78 vin-supply = <&vcc_3v3>;
79 regulator-always-on;
82 main_12v: regulator-main_12v {
83 compatible = "regulator-fixed";
84 regulator-name = "12V";
85 regulator-min-microvolt = <12000000>;
86 regulator-max-microvolt = <12000000>;
87 regulator-always-on;
90 vcc_5v: regulator-vcc_5v {
91 compatible = "regulator-fixed";
92 regulator-name = "5V";
93 regulator-min-microvolt = <5000000>;
94 regulator-max-microvolt = <5000000>;
95 regulator-always-on;
96 vin-supply = <&main_12v>;
99 vcc_1v8: regulator-vcc_1v8 {
100 compatible = "regulator-fixed";
101 regulator-name = "VCC_1V8";
102 regulator-min-microvolt = <1800000>;
103 regulator-max-microvolt = <1800000>;
104 vin-supply = <&vcc_3v3>;
105 regulator-always-on;
108 vcc_3v3: regulator-vcc_3v3 {
109 compatible = "regulator-fixed";
110 regulator-name = "VCC_3V3";
111 regulator-min-microvolt = <3300000>;
112 regulator-max-microvolt = <3300000>;
113 vin-supply = <&vddao_3v3>;
114 regulator-always-on;
118 vddcpu_a: regulator-vddcpu-a {
122 compatible = "pwm-regulator";
124 regulator-name = "VDDCPU_A";
125 regulator-min-microvolt = <721000>;
126 regulator-max-microvolt = <1022000>;
128 vin-supply = <&main_12v>;
131 pwm-dutycycle-range = <100 0>;
133 regulator-boot-on;
134 regulator-always-on;
137 vddcpu_b: regulator-vddcpu-b {
141 compatible = "pwm-regulator";
143 regulator-name = "VDDCPU_B";
144 regulator-min-microvolt = <721000>;
145 regulator-max-microvolt = <1022000>;
147 vin-supply = <&main_12v>;
150 pwm-dutycycle-range = <100 0>;
152 regulator-boot-on;
153 regulator-always-on;
156 hub_5v: regulator-hub_5v {
157 compatible = "regulator-fixed";
158 regulator-name = "HUB_5V";
159 regulator-min-microvolt = <5000000>;
160 regulator-max-microvolt = <5000000>;
161 vin-supply = <&vcc_5v>;
165 enable-active-high;
168 usb_pwr_en: regulator-usb_pwr_en {
169 compatible = "regulator-fixed";
170 regulator-name = "USB_PWR_EN";
171 regulator-min-microvolt = <5000000>;
172 regulator-max-microvolt = <5000000>;
173 vin-supply = <&vcc_5v>;
177 enable-active-high;
180 vddao_1v8: regulator-vddao_1v8 {
181 compatible = "regulator-fixed";
182 regulator-name = "VDDAO_1V8";
183 regulator-min-microvolt = <1800000>;
184 regulator-max-microvolt = <1800000>;
185 vin-supply = <&vddao_3v3>;
186 regulator-always-on;
189 vddao_3v3: regulator-vddao_3v3 {
190 compatible = "regulator-fixed";
191 regulator-name = "VDDAO_3V3";
192 regulator-min-microvolt = <3300000>;
193 regulator-max-microvolt = <3300000>;
194 vin-supply = <&main_12v>;
195 regulator-always-on;
198 hdmi-connector {
199 compatible = "hdmi-connector";
204 remote-endpoint = <&hdmi_tx_tmds_out>;
210 compatible = "amlogic,axg-sound-card";
211 model = "G12A-ODROIDN2";
212 audio-aux-devs = <&tdmout_b>;
213 audio-routing = "TDMOUT_B IN 0", "FRDDR_A OUT 1",
218 assigned-clocks = <&clkc CLKID_MPLL2>,
221 assigned-clock-parents = <0>, <0>, <0>;
222 assigned-clock-rates = <294912000>,
227 dai-link-0 {
228 sound-dai = <&frddr_a>;
231 dai-link-1 {
232 sound-dai = <&frddr_b>;
235 dai-link-2 {
236 sound-dai = <&frddr_c>;
240 dai-link-3 {
241 sound-dai = <&tdmif_b>;
242 dai-format = "i2s";
243 dai-tdm-slot-tx-mask-0 = <1 1>;
244 dai-tdm-slot-tx-mask-1 = <1 1>;
245 dai-tdm-slot-tx-mask-2 = <1 1>;
246 dai-tdm-slot-tx-mask-3 = <1 1>;
247 mclk-fs = <256>;
250 sound-dai = <&tohdmitx TOHDMITX_I2S_IN_B>;
255 dai-link-4 {
256 sound-dai = <&tohdmitx TOHDMITX_I2S_OUT>;
259 sound-dai = <&hdmi_tx>;
270 pinctrl-0 = <&cec_ao_a_h_pins>;
271 pinctrl-names = "default";
273 hdmi-phandle = <&hdmi_tx>;
277 pinctrl-0 = <&cec_ao_b_h_pins>;
278 pinctrl-names = "default";
280 hdmi-phandle = <&hdmi_tx>;
288 cpu-supply = <&vddcpu_b>;
289 operating-points-v2 = <&cpu_opp_table_0>;
291 clock-latency = <50000>;
295 cpu-supply = <&vddcpu_b>;
296 operating-points-v2 = <&cpu_opp_table_0>;
298 clock-latency = <50000>;
302 cpu-supply = <&vddcpu_a>;
303 operating-points-v2 = <&cpub_opp_table_1>;
305 clock-latency = <50000>;
309 cpu-supply = <&vddcpu_a>;
310 operating-points-v2 = <&cpub_opp_table_1>;
312 clock-latency = <50000>;
316 cpu-supply = <&vddcpu_a>;
317 operating-points-v2 = <&cpub_opp_table_1>;
319 clock-latency = <50000>;
323 cpu-supply = <&vddcpu_a>;
324 operating-points-v2 = <&cpub_opp_table_1>;
326 clock-latency = <50000>;
330 external_phy: ethernet-phy@0 {
333 max-speed = <1000>;
335 reset-assert-us = <10000>;
336 reset-deassert-us = <30000>;
337 reset-gpios = <&gpio GPIOZ_15 (GPIO_ACTIVE_LOW | GPIO_OPEN_DRAIN)>;
339 interrupt-parent = <&gpio_intc>;
346 pinctrl-0 = <&eth_pins>, <&eth_rgmii_pins>;
347 pinctrl-names = "default";
349 phy-mode = "rgmii";
350 phy-handle = <&external_phy>;
351 amlogic,tx-delay-ns = <2>;
368 * WARNING: The USB Hub on the Odroid-N2 needs a reset signal
373 usb-hub {
374 gpio-hog;
375 gpios = <GPIOH_4 GPIO_ACTIVE_HIGH>;
376 output-high;
377 line-name = "usb-hub-reset";
383 pinctrl-0 = <&hdmitx_hpd_pins>, <&hdmitx_ddc_pins>;
384 pinctrl-names = "default";
385 hdmi-supply = <&vcc_5v>;
390 remote-endpoint = <&hdmi_connector_in>;
396 pinctrl-0 = <&remote_input_ao_pins>;
397 pinctrl-names = "default";
398 linux,rc-map-name = "rc-odroid";
402 pinctrl-0 = <&pwm_a_e_pins>;
403 pinctrl-names = "default";
405 clock-names = "clkin0";
410 pinctrl-0 = <&pwm_ao_d_e_pins>;
411 pinctrl-names = "default";
413 clock-names = "clkin1";
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 = <&tflash_vdd>;
431 vqmmc-supply = <&tf_io>;
438 pinctrl-0 = <&emmc_pins>, <&emmc_ds_pins>;
439 pinctrl-1 = <&emmc_clk_gate_pins>;
440 pinctrl-names = "default", "clk-gate";
442 bus-width = <8>;
443 cap-mmc-highspeed;
444 mmc-ddr-1_8v;
445 mmc-hs200-1_8v;
446 max-frequency = <200000000>;
447 disable-wp;
449 mmc-pwrseq = <&emmc_pwrseq>;
450 vmmc-supply = <&vcc_3v3>;
451 vqmmc-supply = <&flash_1v8>;
468 pinctrl-0 = <&uart_ao_a_pins>;
469 pinctrl-names = "default";
474 vbus-supply = <&usb_pwr_en>;
478 phy-supply = <&vcc_5v>;
483 phy-supply = <&hub_5v>;